Searched refs:spanned (Results 1 – 13 of 13) sorted by relevance
91 Spanned spanned = getText(textView); in populateMenuContent() local92 ClickableSpan[] spans = getSpans(spanned); in populateMenuContent()94 if (spanned == null || spans.length == 0) { in populateMenuContent()99 int s = spanned.getSpanStart(span); in populateMenuContent()100 int t = spanned.getSpanEnd(span); in populateMenuContent()101 menu.add(spanned.subSequence(s, t)).setOnMenuItemClickListener(menuItem -> { in populateMenuContent()122 private @NonNull ClickableSpan[] getSpans(Spanned spanned) { in getSpans() argument123 if (spanned == null) { in getSpans()126 ClickableSpan[] spans = spanned.getSpans(0, spanned.length(), ClickableSpan.class); in getSpans()
57 Spanned spanned = Html.fromHtml(checkStringNotEmpty(htmlContent), HTML_MODE); in parseHtml() local58 if (spanned == null) { in parseHtml()63 SpannableStringBuilder result = new SpannableStringBuilder(spanned); in parseHtml()
53 private static void assertLocaleSpan(final Spanned spanned, final int index, in assertLocaleSpan() argument56 final Object span = spanned.getSpans(0, spanned.length(), Object.class)[index]; in assertLocaleSpan()58 assertEquals(expectedStart, spanned.getSpanStart(span)); in assertLocaleSpan()59 assertEquals(expectedEnd, spanned.getSpanEnd(span)); in assertLocaleSpan()60 assertEquals(expectedSpanFlags, spanned.getSpanFlags(span)); in assertLocaleSpan()63 private static void assertSpanEquals(final Object expectedSpan, final Spanned spanned, in assertSpanEquals() argument65 final Object[] spans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpanEquals()69 private static void assertSpanCount(final int expectedCount, final Spanned spanned) { in assertSpanCount() argument70 final Object[] spans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpanCount()
73 final Spanned spanned = (Spanned)actualText; in assertNotSuggestionSpan() local74 final SuggestionSpan[] suggestionSpans = spanned.getSpans(0, spanned.length(), in assertNotSuggestionSpan()85 final Spanned spanned = (Spanned)actualText; in assertSuggestionSpan() local86 final SuggestionSpan[] suggestionSpans = spanned.getSpans(0, spanned.length(), in assertSuggestionSpan()94 assertTrue((spanned.getSpanFlags(suggestionSpan) & requiredSpanFlags) != 0); in assertSuggestionSpan()
79 final Spanned spanned = (Spanned) cs; in assertSpanCount() local80 actualCount = spanned.getSpans(0, spanned.length(), Object.class).length; in assertSpanCount()90 final Spanned spanned = (Spanned) cs; in assertSpan() local91 final Object[] actualSpans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpan()94 final int actualStart = spanned.getSpanStart(actualSpan); in assertSpan()95 final int actualEnd = spanned.getSpanEnd(actualSpan); in assertSpan()96 final int actualFlags = spanned.getSpanFlags(actualSpan); in assertSpan()
91 boolean spanned = false; in concatWithNonParagraphSuggestionSpansOnly()94 spanned = true; in concatWithNonParagraphSuggestionSpansOnly()104 if (!spanned) { in concatWithNonParagraphSuggestionSpansOnly()128 final Spanned spanned = (Spanned)text; in hasUrlSpans() local131 final URLSpan[] spans = spanned.getSpans(startIndex - 1, endIndex + 1, URLSpan.class); in hasUrlSpans()
445 SpannableString spanned = new SpannableString(msg); in wrapForTts() local446 spanned.setSpan(new TtsSpan.TextBuilder(ttsMsg).build(), in wrapForTts()447 0, spanned.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in wrapForTts()448 return spanned; in wrapForTts()459 SpannableString spanned = new SpannableString(" " + msg); in prefixTextWithIcon() local460 spanned.setSpan(new TintedDrawableSpan(context, iconRes), in prefixTextWithIcon()462 return spanned; in prefixTextWithIcon()
350 public void verify(Spanned spanned) { in verify() argument351 String spannedText = spanned.subSequence(mStart, mEnd).toString(); in verify()353 MockStyleSpan[] spans = spanned.getSpans(mStart, mEnd, MockStyleSpan.class); in verify()
71 Spanned spanned = mHtmlToSpannedParser.parseHtml(inputHtml); in assertRawTextCorrect() local72 assertThat(spanned.toString(), equalTo(textRaw)); in assertRawTextCorrect()
229 Object[] spanned = input.getSpans(0, input.length(), Object.class); in isUnFixed() local230 if (spanned != null) { in isUnFixed()231 for (Object obj : spanned) { in isUnFixed()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...