/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | AccessibilityContextMenuMaker.java | 91 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()
|
D | HtmlToSpannedParser.java | 57 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/ |
D | LocaleSpanCompatUtilsTests.java | 53 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()
|
D | SuggestionSpanUtilsTest.java | 73 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/ |
D | SpannableStringUtilsTests.java | 79 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/ |
D | SpannableStringUtils.java | 91 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/allapps/search/ |
D | AllAppsSearchBarController.java | 91 SpannableStringBuilder spanned = (SpannableStringBuilder) text; in extractTextConversions() local 93 spanned.getSpans(0, text.length(), SuggestionSpan.class); in extractTextConversions() 95 spanned.removeSpan(suggestionSpans[0]); in extractTextConversions()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | HtmlToSpannedParserTest.java | 71 Spanned spanned = mHtmlToSpannedParser.parseHtml(inputHtml); in assertRawTextCorrect() local 72 assertThat(spanned.toString(), equalTo(textRaw)); in assertRawTextCorrect()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 528 SpannableString spanned = new SpannableString(msg); in wrapForTts() local 529 spanned.setSpan(new TtsSpan.TextBuilder(ttsMsg).build(), in wrapForTts() 530 0, spanned.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in wrapForTts() 531 return spanned; in wrapForTts() 542 SpannableString spanned = new SpannableString(" " + msg); in prefixTextWithIcon() local 543 spanned.setSpan(new TintedDrawableSpan(context, iconRes), in prefixTextWithIcon() 545 return spanned; in prefixTextWithIcon()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | TextFieldsEditorView.java | 257 Object[] spanned = input.getSpans(0, input.length(), Object.class); in isUnFixed() local 258 if (spanned != null) { in isUnFixed() 259 for (Object obj : spanned) { in isUnFixed()
|
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/ |
D | ChooserActivityTest.java | 419 Spanned spanned = (Spanned) text; in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() local 420 assertThat(spanned.getSpans(0, spanned.length(), Object.class)) in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() 422 assertThat(spanned.getSpans(0, 4, UnderlineSpan.class)).hasLength(1); in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() 423 assertThat(spanned.getSpans(4, spanned.length(), ForegroundColorSpan.class)) in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() 432 Spanned spanned = (Spanned) text; in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() local 433 assertThat(spanned.getSpans(0, spanned.length(), Object.class)) in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() 435 assertThat(spanned.getSpans(0, 4, BackgroundColorSpan.class)).hasLength(1); in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() 436 assertThat(spanned.getSpans(4, spanned.length(), StyleSpan.class)).hasLength(1); in test_shareRichTextWithRichTitle_richTextAndRichTitleDisplayed() 1252 Spanned spanned = (Spanned) text; in test_shareImageWithRichText_RichTextIsDisplayed() local 1253 Object[] spans = spanned.getSpans(0, text.length(), Object.class); in test_shareImageWithRichText_RichTextIsDisplayed() [all …]
|
/packages/inputmethods/LatinIME/dictionaries/ |
D | en_GB_wordlist.combined.gz |
|
D | en_US_wordlist.combined.gz |
|
D | en_wordlist.combined.gz |
|