Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DAccessibilityContextMenuMaker.java91 Spanned spanned = getText(textView); in populateMenuContent() local
92 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() argument
123 if (spanned == null) { in getSpans()
126 ClickableSpan[] spans = spanned.getSpans(0, spanned.length(), ClickableSpan.class); in getSpans()
DHtmlToSpannedParser.java57 Spanned spanned = Html.fromHtml(checkStringNotEmpty(htmlContent), HTML_MODE); in parseHtml() local
58 if (spanned == null) { in parseHtml()
63 SpannableStringBuilder result = new SpannableStringBuilder(spanned); in parseHtml()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtilsTests.java53 private static void assertLocaleSpan(final Spanned spanned, final int index, in assertLocaleSpan() argument
56 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() argument
65 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() argument
70 final Object[] spans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpanCount()
DSuggestionSpanUtilsTest.java73 final Spanned spanned = (Spanned)actualText; in assertNotSuggestionSpan() local
74 final SuggestionSpan[] suggestionSpans = spanned.getSpans(0, spanned.length(), in assertNotSuggestionSpan()
85 final Spanned spanned = (Spanned)actualText; in assertSuggestionSpan() local
86 final SuggestionSpan[] suggestionSpans = spanned.getSpans(0, spanned.length(), in assertSuggestionSpan()
94 assertTrue((spanned.getSpanFlags(suggestionSpan) & requiredSpanFlags) != 0); in assertSuggestionSpan()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java79 final Spanned spanned = (Spanned) cs; in assertSpanCount() local
80 actualCount = spanned.getSpans(0, spanned.length(), Object.class).length; in assertSpanCount()
90 final Spanned spanned = (Spanned) cs; in assertSpan() local
91 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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java91 boolean spanned = false; in concatWithNonParagraphSuggestionSpansOnly()
94 spanned = true; in concatWithNonParagraphSuggestionSpansOnly()
104 if (!spanned) { in concatWithNonParagraphSuggestionSpansOnly()
128 final Spanned spanned = (Spanned)text; in hasUrlSpans() local
131 final URLSpan[] spans = spanned.getSpans(startIndex - 1, endIndex + 1, URLSpan.class); in hasUrlSpans()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java549 SpannableString spanned = new SpannableString(msg); in wrapForTts() local
550 spanned.setSpan(new TtsSpan.TextBuilder(ttsMsg).build(), in wrapForTts()
551 0, spanned.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in wrapForTts()
552 return spanned; in wrapForTts()
563 SpannableString spanned = new SpannableString(" " + msg); in prefixTextWithIcon() local
564 spanned.setSpan(new TintedDrawableSpan(context, iconRes), in prefixTextWithIcon()
566 return spanned; in prefixTextWithIcon()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DHtmlToSpannedParserTest.java71 Spanned spanned = mHtmlToSpannedParser.parseHtml(inputHtml); in assertRawTextCorrect() local
72 assertThat(spanned.toString(), equalTo(textRaw)); in assertRawTextCorrect()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DLevenshteinFormatterTest.java350 public void verify(Spanned spanned) { in verify() argument
351 String spannedText = spanned.subSequence(mStart, mEnd).toString(); in verify()
353 MockStyleSpan[] spans = spanned.getSpans(mStart, mEnd, MockStyleSpan.class); in verify()
/packages/apps/Contacts/src/com/android/contacts/editor/
DTextFieldsEditorView.java229 Object[] spanned = input.getSpans(0, input.length(), Object.class); in isUnFixed() local
230 if (spanned != null) { in isUnFixed()
231 for (Object obj : spanned) { in isUnFixed()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...