Home
last modified time | relevance | path

Searched refs:textAlignment (Results 1 – 11 of 11) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DCue.java141 @Nullable public final Alignment textAlignment; field in Cue
314 @Nullable Alignment textAlignment, in Cue() argument
323 textAlignment, in Cue()
352 @Nullable Alignment textAlignment, in Cue() argument
363 textAlignment, in Cue()
397 @Nullable Alignment textAlignment, in Cue() argument
408 textAlignment, in Cue()
426 @Nullable Alignment textAlignment, in Cue() argument
447 this.textAlignment = textAlignment; in Cue()
467 @Nullable private Alignment textAlignment; field in Cue.Builder
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCueParser.java371 builder.textAlignment = parseTextAlignment(value); in parseCueSettingsList()
743 @TextAlignment public int textAlignment; field in WebvttCueParser.WebvttCueInfoBuilder
758 textAlignment = TEXT_ALIGNMENT_CENTER; in WebvttCueInfoBuilder()
777 this.position != Cue.DIMEN_UNSET ? this.position : derivePosition(textAlignment); in toCueBuilder()
782 : derivePositionAnchor(textAlignment); in toCueBuilder()
785 .setTextAlignment(convertTextAlignment(textAlignment)) in toCueBuilder()
819 private static float derivePosition(@TextAlignment int textAlignment) { in derivePosition() argument
820 switch (textAlignment) { in derivePosition()
835 private static int derivePositionAnchor(@TextAlignment int textAlignment) { in derivePositionAnchor() argument
836 switch (textAlignment) { in derivePositionAnchor()
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitlePainter.java183 && Util.areEqual(this.cueTextAlignment, cue.textAlignment) in draw()
213 this.cueTextAlignment = cue.textAlignment; in draw()
324 Alignment textAlignment = cueTextAlignment == null ? Alignment.ALIGN_CENTER : cueTextAlignment; in setupTextLayout() local
325 textLayout = new StaticLayout(cueText, textPaint, availableWidth, textAlignment, spacingMult, in setupTextLayout()
395 this.textLayout = new StaticLayout(cueText, textPaint, textWidth, textAlignment, spacingMult, in setupTextLayout()
399 cueTextEdge, textPaint, textWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
DSubtitleWebView.java200 String textAlign = convertAlignmentToCss(cue.textAlignment); in updateWebView()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/
DWebvttDecoderTest.java195 assertThat(firstCue.textAlignment).isEqualTo(Alignment.ALIGN_NORMAL); in decodeWithPositioning()
208 assertThat(secondCue.textAlignment).isEqualTo(Alignment.ALIGN_OPPOSITE); in decodeWithPositioning()
217 assertThat(thirdCue.textAlignment).isEqualTo(Alignment.ALIGN_CENTER); in decodeWithPositioning()
227 assertThat(fourthCue.textAlignment).isEqualTo(Alignment.ALIGN_CENTER); in decodeWithPositioning()
236 assertThat(fifthCue.textAlignment).isEqualTo(Alignment.ALIGN_OPPOSITE); in decodeWithPositioning()
245 assertThat(sixthCue.textAlignment).isEqualTo(Alignment.ALIGN_CENTER); in decodeWithPositioning()
DMp4WebvttDecoderTest.java163 .that(actual.textAlignment) in assertCuesEqual()
164 .isEqualTo(expected.textAlignment); in assertCuesEqual()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ssa/
DSsaDecoderTest.java68 .that(firstCue.textAlignment) in decodeTypical()
189 .that(fifthCue.textAlignment) in decodePositions()
202 .that(sixthCue.textAlignment) in decodePositions()
232 .that(thirdCue.textAlignment) in decodeInvalidPositions()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/
DCueTest.java50 assertThat(cue.textAlignment).isEqualTo(Layout.Alignment.ALIGN_CENTER); in buildSucceeds()
/external/libchrome/base/android/java/src/org/chromium/base/
DApiCompatibilityUtils.java161 public static void setTextAlignment(View view, int textAlignment) { in setTextAlignment() argument
163 view.setTextAlignment(textAlignment); in setTextAlignment()
/external/webrtc/test/ios/
Dtest_support.mm62 label.textAlignment = NSTextAlignmentCenter;
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/cea/
DCea708Decoder.java1322 Alignment textAlignment, in Cea708CueInfo() argument
1335 textAlignment, in Cea708CueInfo()