/external/exoplayer/tree/library/ui/src/test/java/com/google/android/exoplayer2/ui/ |
D | SpannedToHtmlConverterTest.java | 40 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/ |
D | TtmlDecoderTest.java | 73 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/ |
D | SpannedToHtmlConverter.java | 77 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/ |
D | SpannedSubject.java | 63 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/ |
D | abort.stderr | 33 = note: spanned simple note 34 = note: spanned format note
|
D | emit.stderr | 41 = note: spanned simple note 42 = note: spanned format note
|
/external/rust/crates/quote/src/ |
D | runtime.rs | 236 ($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/ |
D | ShadowHtmlTest.java | 56 Spanned spanned = Html.fromHtml(text); in fromHtml_shouldJustReturnArgByDefault() local 57 assertThat(spanned.toString()).isEqualTo("foo"); in fromHtml_shouldJustReturnArgByDefault()
|
/external/rust/crates/structopt-derive/src/ |
D | ty.rs | 3 use crate::spanned::Sp; 6 spanned::Spanned, GenericArgument, Path, PathArguments, PathArguments::AngleBracketed,
|
D | lib.rs | 23 mod spanned; module 28 spanned::Sp, 35 use syn::{punctuated::Punctuated, spanned::Spanned, token::Comma, *};
|
D | attrs.rs | 10 use crate::{parse::*, spanned::Sp, ty::Ty}; 19 self, ext::IdentExt, spanned::Spanned, Attribute, Expr, Ident, LitStr, MetaNameValue, Type,
|
/external/rust/crates/syn/src/ |
D | spanned.rs | 86 use quote::spanned::Spanned as ToTokens;
|
D | lib.rs | 463 pub mod spanned; module
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | TestMisc.java | 452 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/ |
D | diagnostic.rs | 101 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/ |
D | delegate.rs | 44 let mut res = PDiag::spanned(span, level, msg); in emit_diagnostic()
|
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/ |
D | SpannedSubjectTest.java | 20 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/ |
D | ApiCompatibilityUtils.java | 262 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/ |
D | pinned_drop.rs | 4 parse_quote, spanned::Spanned, visit_mut::VisitMut, Error, FnArg, GenericArgument, ImplItem,
|
/external/rust/crates/pin-project-internal/src/pin_project/ |
D | args.rs | 5 spanned::Spanned,
|
/external/vm_tools/p9/wire_format_derive/ |
D | wire_format_derive.rs | 21 use syn::spanned::Spanned;
|
/external/bcc/tools/ |
D | xfsslower_example.txt | 61 spanned 14 seconds), as the lower threshold is catching more I/O.
|
D | fileslower_example.txt | 61 spanned 12 seconds), and the lower threshold is catching more I/O.
|
D | btrfsslower_example.txt | 71 spanned 6 seconds), as the lower threshold is catching more I/O.
|
/external/rust/crates/tokio-macros/src/ |
D | entry.rs | 4 use syn::spanned::Spanned;
|