Home
last modified time | relevance | path

Searched refs:WebvttCssStyle (Results 1 – 5 of 5) sorted by relevance

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/
DCssParserTest.java91 WebvttCssStyle expectedStyle = new WebvttCssStyle(); in parseMethodSimpleInput()
98 expectedStyle = new WebvttCssStyle(); in parseMethodSimpleInput()
103 expectedStyle = new WebvttCssStyle(); in parseMethodSimpleInput()
112 WebvttCssStyle expectedStyle = new WebvttCssStyle(); in parseMethodMultipleRulesInBlockInput()
114 WebvttCssStyle secondExpectedStyle = new WebvttCssStyle(); in parseMethodMultipleRulesInBlockInput()
123 WebvttCssStyle expectedStyle = new WebvttCssStyle(); in multiplePropertiesInBlock()
138 WebvttCssStyle expectedStyle = new WebvttCssStyle(); in rgbaColorExpression()
174 WebvttCssStyle style = new WebvttCssStyle(); in styleScoreSystem()
218 private void assertParserProduces(String styleBlock, WebvttCssStyle... expectedStyles) { in assertParserProduces()
220 List<WebvttCssStyle> styles = parser.parseBlock(input); in assertParserProduces()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCssStyle.java38 public final class WebvttCssStyle { class
103 public WebvttCssStyle() { in WebvttCssStyle() method in WebvttCssStyle
197 public WebvttCssStyle setLinethrough(boolean linethrough) { in setLinethrough()
206 public WebvttCssStyle setUnderline(boolean underline) { in setUnderline()
210 public WebvttCssStyle setBold(boolean bold) { in setBold()
215 public WebvttCssStyle setItalic(boolean italic) { in setItalic()
225 public WebvttCssStyle setFontFamily(@Nullable String fontFamily) { in setFontFamily()
237 public WebvttCssStyle setFontColor(int color) { in setFontColor()
254 public WebvttCssStyle setBackgroundColor(int backgroundColor) { in setBackgroundColor()
269 public WebvttCssStyle setTextAlign(@Nullable Layout.Alignment textAlign) { in setTextAlign()
[all …]
DCssParser.java72 public List<WebvttCssStyle> parseBlock(ParsableByteArray input) { in parseBlock()
79 List<WebvttCssStyle> styles = new ArrayList<>(); in parseBlock()
85 WebvttCssStyle style = new WebvttCssStyle(); in parseBlock()
159 private static void parseStyleDeclaration(ParsableByteArray input, WebvttCssStyle style, in parseStyleDeclaration()
329 private void applySelectorToStyle(WebvttCssStyle style, String selector) { in applySelectorToStyle()
DWebvttCueParser.java189 public static WebvttCueInfo parseCue(ParsableByteArray webvttData, List<WebvttCssStyle> styles) { in parseCue()
240 @Nullable String id, String markup, List<WebvttCssStyle> styles) { in parseCueText()
331 List<WebvttCssStyle> styles) { in parseCue()
538 List<WebvttCssStyle> styles, in applySpansForTag()
623 private static void applyStyleToText(SpannableStringBuilder spannedText, WebvttCssStyle style, in applyStyleToText()
628 if (style.getStyle() != WebvttCssStyle.UNSPECIFIED) { in applyStyleToText()
676 case WebvttCssStyle.FONT_SIZE_UNIT_PIXEL: in applyStyleToText()
684 case WebvttCssStyle.FONT_SIZE_UNIT_EM: in applyStyleToText()
692 case WebvttCssStyle.FONT_SIZE_UNIT_PERCENT: in applyStyleToText()
700 case WebvttCssStyle.UNSPECIFIED: in applyStyleToText()
[all …]
DWebvttDecoder.java57 List<WebvttCssStyle> definedStyles = new ArrayList<>(); in decode()