Home
last modified time | relevance | path

Searched refs:spanned (Results 1 – 25 of 47) sorted by relevance

12

/external/exoplayer/tree/library/ui/src/test/java/com/google/android/exoplayer2/ui/
DSpannedToHtmlConverterTest.java40 SpannableString spanned = new SpannableString("String with colored section"); in convert_supportsForegroundColorSpan() local
41 spanned.setSpan( in convert_supportsForegroundColorSpan()
47 String html = SpannedToHtmlConverter.convert(spanned); in convert_supportsForegroundColorSpan()
55 SpannableString spanned = new SpannableString("Vertical text with 123 horizontal numbers"); in convert_supportsHorizontalTextInVerticalContextSpan() local
56 spanned.setSpan( in convert_supportsHorizontalTextInVerticalContextSpan()
62 String html = SpannedToHtmlConverter.convert(spanned); in convert_supportsHorizontalTextInVerticalContextSpan()
72 SpannableString spanned = in convert_supportsStyleSpan() local
74 spanned.setSpan( in convert_supportsStyleSpan()
79 spanned.setSpan( in convert_supportsStyleSpan()
84 spanned.setSpan( in convert_supportsStyleSpan()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ttml/
DTtmlDecoderTest.java73 Spanned spanned = getOnlyCueTextAtTimeUs(subtitle, 10_000_000); in inlineAttributes() local
74 assertThat(spanned.toString()).isEqualTo("text 1"); in inlineAttributes()
75 assertThat(spanned).hasTypefaceSpanBetween(0, spanned.length()).withFamily("serif"); in inlineAttributes()
76 assertThat(spanned).hasBoldItalicSpanBetween(0, spanned.length()); in inlineAttributes()
77 assertThat(spanned).hasUnderlineSpanBetween(0, spanned.length()); in inlineAttributes()
78 assertThat(spanned) in inlineAttributes()
79 .hasBackgroundColorSpanBetween(0, spanned.length()) in inlineAttributes()
81 assertThat(spanned) in inlineAttributes()
82 .hasForegroundColorSpanBetween(0, spanned.length()) in inlineAttributes()
92 Spanned spanned = getOnlyCueTextAtTimeUs(subtitle, 20_000_000); in inheritInlineAttributes() local
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSpannedToHtmlConverter.java77 Spanned spanned = (Spanned) text; in convert() local
78 SparseArray<Transition> spanTransitions = findSpanTransitions(spanned); in convert()
80 StringBuilder html = new StringBuilder(spanned.length()); in convert()
84 html.append(escapeHtml(spanned.subSequence(previousTransition, index))); in convert()
98 html.append(escapeHtml(spanned.subSequence(previousTransition, spanned.length()))); in convert()
103 private static SparseArray<Transition> findSpanTransitions(Spanned spanned) { in findSpanTransitions() argument
106 for (Object span : spanned.getSpans(0, spanned.length(), Object.class)) { in findSpanTransitions()
109 int spanStart = spanned.getSpanStart(span); in findSpanTransitions()
110 int spanEnd = spanned.getSpanEnd(span); in findSpanTransitions()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubject.java63 public static Factory<SpannedSubject, Spanned> spanned() { in spanned() method in SpannedSubject
75 public static SpannedSubject assertThat(@Nullable Spanned spanned) { in assertThat() argument
76 return assertAbout(spanned()).that(spanned); in assertThat()
656 private static String getAllSpansAsString(Spanned spanned) { in getAllSpansAsString() argument
658 for (Object span : spanned.getSpans(0, spanned.length(), Object.class)) { in getAllSpansAsString()
659 actualSpanStrings.add(getSpanAsString(span, spanned)); in getAllSpansAsString()
664 private static String getSpanAsString(Object span, Spanned spanned) { in getSpanAsString() argument
665 int spanStart = spanned.getSpanStart(span); in getSpanAsString()
666 int spanEnd = spanned.getSpanEnd(span); in getSpanAsString()
668 spanStart, spanEnd, span.getClass(), spanned.toString().substring(spanStart, spanEnd)); in getSpanAsString()
/external/rust/crates/proc-macro-error/tests/ui/
Dabort.stderr33 = note: spanned simple note
34 = note: spanned format note
Demit.stderr41 = note: spanned simple note
42 = note: spanned format note
/external/rust/crates/quote/src/
Druntime.rs236 ($name:ident $spanned:ident $char1:tt) => {
240 pub fn $spanned(tokens: &mut TokenStream, span: Span) {
246 ($name:ident $spanned:ident $char1:tt $char2:tt) => {
251 pub fn $spanned(tokens: &mut TokenStream, span: Span) {
260 ($name:ident $spanned:ident $char1:tt $char2:tt $char3:tt) => {
266 pub fn $spanned(tokens: &mut TokenStream, span: Span) {
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHtmlTest.java56 Spanned spanned = Html.fromHtml(text); in fromHtml_shouldJustReturnArgByDefault() local
57 assertThat(spanned.toString()).isEqualTo("foo"); in fromHtml_shouldJustReturnArgByDefault()
/external/rust/crates/structopt-derive/src/
Dty.rs3 use crate::spanned::Sp;
6 spanned::Spanned, GenericArgument, Path, PathArguments, PathArguments::AngleBracketed,
Dlib.rs23 mod spanned; module
28 spanned::Sp,
35 use syn::{punctuated::Punctuated, spanned::Spanned, token::Comma, *};
Dattrs.rs10 use crate::{parse::*, spanned::Sp, ty::Ty};
19 self, ext::IdentExt, spanned::Spanned, Attribute, Expr, Ident, LitStr, MetaNameValue, Type,
/external/rust/crates/syn/src/
Dspanned.rs86 use quote::spanned::Spanned as ToTokens;
Dlib.rs463 pub mod spanned; module
/external/cldr/tools/java/org/unicode/cldr/test/
DTestMisc.java452 UnicodeSet spanned = new UnicodeSet(sourceSet).addBridges(dontCares); in showSpans() local
453 spanned = spanned.complement().complement(); in showSpans()
454 String spannedString = spanned.toString(); in showSpans()
455 String unescapedString = spanned.toPattern(false); in showSpans()
456 System.out.format("\tRanges: %d" + CldrUtility.LINE_SEPARATOR, spanned.getRangeCount()); in showSpans()
/external/rust/crates/proc-macro-error/src/
Ddiagnostic.rs101 Diagnostic::spanned(Span::call_site(), level, message) in new()
105 pub fn spanned(span: Span, level: Level, message: String) -> Self { in spanned() method
/external/rust/crates/proc-macro-error/src/imp/
Ddelegate.rs44 let mut res = PDiag::spanned(span, level, msg); in emit_diagnostic()
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubjectTest.java20 import static com.google.android.exoplayer2.testutil.truth.SpannedSubject.spanned;
79 Spanned spanned = createSpannable(new UnderlineSpan()); in hasNoSpans_failure() local
81 AssertionError expected = expectFailure(whenTesting -> whenTesting.that(spanned).hasNoSpans()); in hasNoSpans_failure()
799 return expectFailureAbout(spanned(), callback); in expectFailure()
/external/libchrome/base/android/java/src/org/chromium/base/
DApiCompatibilityUtils.java262 public static String toHtml(Spanned spanned, int option) { in toHtml() argument
264 return Html.toHtml(spanned, option); in toHtml()
266 return Html.toHtml(spanned); in toHtml()
/external/rust/crates/pin-project-internal/src/
Dpinned_drop.rs4 parse_quote, spanned::Spanned, visit_mut::VisitMut, Error, FnArg, GenericArgument, ImplItem,
/external/rust/crates/pin-project-internal/src/pin_project/
Dargs.rs5 spanned::Spanned,
/external/vm_tools/p9/wire_format_derive/
Dwire_format_derive.rs21 use syn::spanned::Spanned;
/external/bcc/tools/
Dxfsslower_example.txt61 spanned 14 seconds), as the lower threshold is catching more I/O.
Dfileslower_example.txt61 spanned 12 seconds), and the lower threshold is catching more I/O.
Dbtrfsslower_example.txt71 spanned 6 seconds), as the lower threshold is catching more I/O.
/external/rust/crates/tokio-macros/src/
Dentry.rs4 use syn::spanned::Spanned;

12