Home
last modified time | relevance | path

Searched refs:RubySpan (Results 1 – 12 of 12) sorted by relevance

/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSpannedToHtmlConverter.java30 import com.google.android.exoplayer2.text.span.RubySpan;
141 } else if (span instanceof RubySpan) { in getOpeningTag()
142 RubySpan rubySpan = (RubySpan) span; in getOpeningTag()
144 case RubySpan.POSITION_OVER: in getOpeningTag()
146 case RubySpan.POSITION_UNDER: in getOpeningTag()
148 case RubySpan.POSITION_UNKNOWN: in getOpeningTag()
175 } else if (span instanceof RubySpan) { in getClosingTag()
176 RubySpan rubySpan = (RubySpan) span; in getClosingTag()
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubjectTest.java43 import com.google.android.exoplayer2.text.span.RubySpan;
610 new RubySpan("ruby text", RubySpan.POSITION_OVER), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in rubySpan_success()
614 .withTextAndPosition("ruby text", RubySpan.POSITION_OVER) in rubySpan_success()
621 new RubySpan("ruby text", RubySpan.POSITION_OVER), SpannedSubject::hasRubySpanBetween); in rubySpan_wrongEndIndex()
626 SpannableString spannable = createSpannable(new RubySpan("ruby text", RubySpan.POSITION_OVER)); in rubySpan_wrongText()
634 .withTextAndPosition("incorrect text", RubySpan.POSITION_OVER)); in rubySpan_wrongText()
643 SpannableString spannable = createSpannable(new RubySpan("ruby text", RubySpan.POSITION_OVER)); in rubySpan_wrongPosition()
651 .withTextAndPosition("ruby text", RubySpan.POSITION_UNDER)); in rubySpan_wrongPosition()
654 assertThat(expected).factValue("expected").contains("position=" + RubySpan.POSITION_UNDER); in rubySpan_wrongPosition()
655 assertThat(expected).factValue("but was").contains("position=" + RubySpan.POSITION_OVER); in rubySpan_wrongPosition()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCueParserTest.java24 import com.google.android.exoplayer2.text.span.RubySpan;
62 .withTextAndPosition("with ruby", RubySpan.POSITION_OVER); in parseRubyTag()
71 assertThat(text).hasRubySpanBetween(0, 1).withTextAndPosition("1", RubySpan.POSITION_OVER); in parseSingleRubyTagWithMultipleRts()
72 assertThat(text).hasRubySpanBetween(1, 2).withTextAndPosition("2", RubySpan.POSITION_OVER); in parseSingleRubyTagWithMultipleRts()
73 assertThat(text).hasRubySpanBetween(2, 3).withTextAndPosition("3", RubySpan.POSITION_OVER); in parseSingleRubyTagWithMultipleRts()
83 assertThat(text).hasRubySpanBetween(0, 1).withTextAndPosition("1", RubySpan.POSITION_OVER); in parseMultipleRubyTagsWithSingleRtEach()
84 assertThat(text).hasRubySpanBetween(1, 2).withTextAndPosition("2", RubySpan.POSITION_OVER); in parseMultipleRubyTagsWithSingleRtEach()
85 assertThat(text).hasRubySpanBetween(2, 3).withTextAndPosition("3", RubySpan.POSITION_OVER); in parseMultipleRubyTagsWithSingleRtEach()
103 .withTextAndPosition("", RubySpan.POSITION_OVER); in parseRubyTagWithEmptyTextTag()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlStyle.java24 import com.google.android.exoplayer2.text.span.RubySpan;
88 @RubySpan.Position private int rubyPosition;
100 rubyPosition = RubySpan.POSITION_UNKNOWN; in TtmlStyle()
232 if (rubyPosition == RubySpan.POSITION_UNKNOWN) { in inherit()
279 public TtmlStyle setRubyPosition(@RubySpan.Position int position) { in setRubyPosition()
284 @RubySpan.Position
DTtmlRenderUtil.java33 import com.google.android.exoplayer2.text.span.RubySpan;
141 @RubySpan.Position in applyStylesToSpan()
145 : RubySpan.POSITION_UNKNOWN; in applyStylesToSpan()
147 new RubySpan(rubyText, rubyPosition), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStylesToSpan()
DTtmlDecoder.java25 import com.google.android.exoplayer2.text.span.RubySpan;
565 style = createIfNull(style).setRubyPosition(RubySpan.POSITION_OVER); in parseStyleAttributes()
568 style = createIfNull(style).setRubyPosition(RubySpan.POSITION_UNDER); in parseStyleAttributes()
/external/exoplayer/tree/library/ui/src/test/java/com/google/android/exoplayer2/ui/
DSpannedToHtmlConverterTest.java30 import com.google.android.exoplayer2.text.span.RubySpan;
102 new RubySpan("ruby-text", RubySpan.POSITION_OVER), in convert_supportsRubySpan()
107 new RubySpan("non-àscìì-text", RubySpan.POSITION_UNDER), in convert_supportsRubySpan()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubject.java40 import com.google.android.exoplayer2.text.span.RubySpan;
531 List<RubySpan> rubySpans = findMatchingSpans(start, end, RubySpan.class); in hasRubySpanBetween()
533 failWithExpectedSpan(start, end, RubySpan.class, actual.toString().substring(start, end)); in hasRubySpanBetween()
549 hasNoSpansOfTypeBetween(RubySpan.class, start, end); in hasNoRubySpanBetween()
1036 AndSpanFlags withTextAndPosition(String text, @RubySpan.Position int position); in withTextAndPosition()
1042 private static Factory<RubySpansSubject, List<RubySpan>> rubySpans(Spanned actualSpanned) { in rubySpans()
1043 return (FailureMetadata metadata, List<RubySpan> spans) -> in rubySpans()
1049 private final List<RubySpan> actualSpans;
1053 FailureMetadata metadata, List<RubySpan> actualSpans, Spanned actualSpanned) { in RubySpansSubject()
1060 public AndSpanFlags withTextAndPosition(String text, @RubySpan.Position int position) { in withTextAndPosition()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/span/
DRubySpan.java39 public final class RubySpan { class
82 public RubySpan(String rubyText, @Position int position) { in RubySpan() method in RubySpan
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ttml/
DTtmlStyleTest.java32 import com.google.android.exoplayer2.text.span.RubySpan;
47 private static final int RUBY_POSITION = RubySpan.POSITION_UNDER;
233 assertThat(style.getRubyPosition()).isEqualTo(RubySpan.POSITION_UNKNOWN); in rubyPosition()
234 style.setRubyPosition(RubySpan.POSITION_OVER); in rubyPosition()
235 assertThat(style.getRubyPosition()).isEqualTo(RubySpan.POSITION_OVER); in rubyPosition()
DTtmlDecoderTest.java30 import com.google.android.exoplayer2.text.span.RubySpan;
618 .withTextAndPosition("1st rubies", RubySpan.POSITION_OVER); in rubies()
621 .withTextAndPosition("2nd rubies", RubySpan.POSITION_UNKNOWN); in rubies()
627 .withTextAndPosition("rubies", RubySpan.POSITION_UNKNOWN); in rubies()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCueParser.java41 import com.google.android.exoplayer2.text.span.RubySpan;
593 new RubySpan(rubyText.toString(), RubySpan.POSITION_OVER), in applyRubySpans()