int cueBoxBottom, int windowColor) { return areCharSequencesEqual(cueText, cue.text()) && Util.areEqual(cueTextAlignment, cue.textAlignment()) && cueBitmap == cue.bitmap() && cueLine == cue.line() && cueLineType == cue.lineType() && Util.areEqual(cueLineAnchor, cue.lineAnchor()) && cuePosition == cue.position() && Util.areEqual(cuePositionAnchor, cue.positionAnchor()) && cueSize == cue.size() && cueBitmapHeight == cue.bitmapHeight() && this.applyEmbeddedStyles == applyEmbeddedStyles && this.applyEmbeddedFontSizes == applyEmbeddedFontSizes
static TextCues map(List<Cue> cues) { if (cues == null) { return TextCues.of(Collections.<NoPlayerCue>emptyList()); } List<NoPlayerCue> noPlayerCues = new ArrayList<>(cues.size()); for (Cue cue : cues) { NoPlayerCue noPlayerCue = new NoPlayerCue( cue.text, cue.textAlignment, cue.bitmap, cue.line, cue.lineType, cue.lineAnchor, cue.position, cue.positionAnchor, cue.size, cue.bitmapHeight, cue.windowColorSet, cue.windowColor ); noPlayerCues.add(noPlayerCue); } return TextCues.of(noPlayerCues); } }
int cueBoxRight, int cueBoxBottom) { boolean isTextCue = cue.bitmap() == null; int windowColor = Color.BLACK; if (isTextCue) { if (TextUtils.isEmpty(cue.text())) { windowColor = (cue.windowColorSet() && applyEmbeddedStyles) ? cue.windowColor() : Color.TRANSPARENT; this.cueText = cue.text(); this.cueTextAlignment = cue.textAlignment(); this.cueBitmap = cue.bitmap(); this.cueLine = cue.line(); this.cueLineType = cue.lineType(); this.cueLineAnchor = cue.lineAnchor(); this.cuePosition = cue.position(); this.cuePositionAnchor = cue.positionAnchor(); this.cueSize = cue.size(); this.cueBitmapHeight = cue.bitmapHeight(); this.applyEmbeddedStyles = applyEmbeddedStyles; this.applyEmbeddedFontSizes = applyEmbeddedFontSizes;