Home
last modified time | relevance | path

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

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlRenderUtil.java50 @Nullable TtmlStyle style, @Nullable String[] styleIds, Map<String, TtmlStyle> globalStyles) { in resolveStyle() argument
52 if (styleIds == null) { in resolveStyle()
55 } else if (styleIds.length == 1) { in resolveStyle()
57 return globalStyles.get(styleIds[0]); in resolveStyle()
58 } else if (styleIds.length > 1) { in resolveStyle()
61 for (String id : styleIds) { in resolveStyle()
67 if (styleIds != null && styleIds.length == 1) { in resolveStyle()
69 return style.chain(globalStyles.get(styleIds[0])); in resolveStyle()
70 } else if (styleIds != null && styleIds.length > 1) { in resolveStyle()
72 for (String id : styleIds) { in resolveStyle()
DTtmlNode.java115 @Nullable private final String[] styleIds; field in TtmlNode
143 @Nullable String[] styleIds, in buildNode() argument
148 tag, /* text= */ null, startTimeUs, endTimeUs, style, styleIds, regionId, imageId, parent); in buildNode()
157 @Nullable String[] styleIds, in TtmlNode() argument
165 this.styleIds = styleIds; in TtmlNode()
232 return styleIds; in getStyleIds()
375 @Nullable TtmlStyle resolvedStyle = TtmlRenderUtil.resolveStyle(style, styleIds, globalStyles); in applyStyleToOutput()
DTtmlDecoder.java629 @Nullable String[] styleIds = null; in parseNode() local
649 styleIds = ids; in parseNode()
690 parser.getName(), startTime, endTime, style, styleIds, regionId, imageId, parent); in parseNode()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ttml/
DTtmlRenderUtilTest.java45 String[] styleIds = {"s0"}; in resolveStyleSingleReferentialStyle() local
47 assertThat(TtmlRenderUtil.resolveStyle(null, styleIds, globalStyles)) in resolveStyleSingleReferentialStyle()
54 String[] styleIds = {"s0", "s1"}; in resolveStyleMultipleReferentialStyles() local
56 TtmlStyle resolved = TtmlRenderUtil.resolveStyle(null, styleIds, globalStyles); in resolveStyleMultipleReferentialStyles()
72 String[] styleIds = {"s0"}; in resolveMergeSingleReferentialStyleIntoInlineStyle() local
76 TtmlStyle resolved = TtmlRenderUtil.resolveStyle(style, styleIds, globalStyles); in resolveMergeSingleReferentialStyleIntoInlineStyle()
88 String[] styleIds = {"s0", "s1"}; in resolveMergeMultipleReferentialStylesIntoInlineStyle() local
92 TtmlStyle resolved = TtmlRenderUtil.resolveStyle(style, styleIds, globalStyles); in resolveMergeMultipleReferentialStylesIntoInlineStyle()
DTtmlDecoderTest.java363 String[] styleIds = queryChildrenForTag(sixthDiv, TtmlNode.TAG_P, 0).getStyleIds(); in nonExistingAndExistingStyleIdWithRedundantSpaces() local
364 assertThat(styleIds).hasLength(2); in nonExistingAndExistingStyleIdWithRedundantSpaces()