Home
last modified time | relevance | path

Searched refs:Spanned (Results 1 – 25 of 51) sorted by relevance

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtilsTests.java24 import android.text.Spanned;
43 private static void assertLocaleSpan(final Spanned spanned, final int index, in assertLocaleSpan()
53 private static void assertSpanEquals(final Object expectedSpan, final Spanned spanned, in assertSpanEquals()
59 private static void assertSpanCount(final int expectedCount, final Spanned spanned) { in assertSpanCount()
74 assertLocaleSpan(text, 0, 1, 5, Locale.JAPANESE, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
81 text.setSpan(styleSpan, 0, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
85 assertLocaleSpan(text, 1, 1, 5, Locale.JAPANESE, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
92 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
95 assertLocaleSpan(text, 0, 1, 5, Locale.JAPANESE, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
102 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
[all …]
DSuggestionSpanUtilsTest.java23 import android.text.Spanned;
56 if (!(actualText instanceof Spanned)) { in assertNotSuggestionSpan()
59 final Spanned spanned = (Spanned)actualText; in assertNotSuggestionSpan()
70 assertTrue(actualText instanceof Spanned); in assertSuggestionSpan()
71 final Spanned spanned = (Spanned)actualText; in assertSuggestionSpan()
105 Spanned.SPAN_COMPOSING | Spanned.SPAN_EXCLUSIVE_EXCLUSIVE /* requiredSpanFlags */, in testGetTextWithAutoCorrectionIndicatorUnderline()
120 Spanned.SPAN_COMPOSING | Spanned.SPAN_EXCLUSIVE_EXCLUSIVE /* requiredSpanFlags */, in testGetTextWithAutoCorrectionIndicatorUnderlineRootLocale()
203 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE /* requiredSpanFlags */, in testGetTextWithSuggestionSpan()
213 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE /* requiredSpanFlags */, in testGetTextWithSuggestionSpan()
DTextInfoCompatUtilsTests.java24 import android.text.Spanned;
42 final private static int TEST_STYLE_SPAN_FLAGS = Spanned.SPAN_EXCLUSIVE_INCLUSIVE;
46 final private static int TEST_URL_SPAN_FLAGS = Spanned.SPAN_EXCLUSIVE_EXCLUSIVE;
58 final Spanned expectedSpanned = (Spanned) text.subSequence(TEST_CHAR_SEQUENCE_START, in testGetCharSequence()
68 assertTrue("should be Spanned", actualCharSequence instanceof Spanned); in testGetCharSequence()
/packages/apps/Settings/src/com/android/settings/widget/
DLinkAccessibilityHelper.java22 import android.text.Spanned;
49 if (text instanceof Spanned) { in getVirtualViewAt()
50 final Spanned spannedText = (Spanned) text; in getVirtualViewAt()
64 if (text instanceof Spanned) { in getVisibleVirtualViews()
65 final Spanned spannedText = (Spanned) text; in getVisibleVirtualViews()
124 if (text instanceof Spanned) { in getSpanForOffset()
125 Spanned spannedText = (Spanned) text; in getSpanForOffset()
136 if (text instanceof Spanned) { in getTextForSpan()
137 Spanned spannedText = (Spanned) text; in getTextForSpan()
149 if (text instanceof Spanned) { in getBoundsForSpan()
[all …]
DLinkTextView.java21 import android.text.Spanned;
48 if (text instanceof Spanned) { in setText()
50 ((Spanned) text).getSpans(0, text.length(), ClickableSpan.class); in setText()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java25 import android.text.Spanned;
38 new String[] {"" + i}, Spanned.SPAN_PARAGRAPH), in testConcatWithSuggestionSpansOnly()
39 i * 12, i * 12 + 12, Spanned.SPAN_PARAGRAPH); in testConcatWithSuggestionSpansOnly()
48 final Spanned result = in testConcatWithSuggestionSpansOnly()
49 (Spanned)SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(a, b); in testConcatWithSuggestionSpansOnly()
55 flags & Spanned.SPAN_PARAGRAPH, 0); in testConcatWithSuggestionSpansOnly()
62 if (cs instanceof Spanned) { in assertSpanCount()
63 final Spanned spanned = (Spanned) cs; in assertSpanCount()
73 assertTrue(cs instanceof Spanned); in assertSpan()
74 final Spanned spanned = (Spanned) cs; in assertSpan()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java21 import android.text.Spanned;
49 public static void copyNonParagraphSuggestionSpansFrom(Spanned source, int start, int end, in copyNonParagraphSuggestionSpansFrom()
60 fl &= ~Spanned.SPAN_PARAGRAPH; in copyNonParagraphSuggestionSpansFrom()
93 if (text[i] instanceof Spanned) { in concatWithNonParagraphSuggestionSpansOnly()
113 if (text[i] instanceof Spanned) { in concatWithNonParagraphSuggestionSpansOnly()
114 copyNonParagraphSuggestionSpansFrom((Spanned) text[i], 0, len, ss, off); in concatWithNonParagraphSuggestionSpansOnly()
125 if (!(text instanceof Spanned)) { in hasUrlSpans()
128 final Spanned spanned = (Spanned)text; in hasUrlSpans()
153 if (!(charSequence instanceof Spanned)) { in split()
DTextRange.java19 import android.text.Spanned;
54 if (!(mTextAtCursor instanceof Spanned && mWord instanceof Spanned)) { in getSuggestionSpansAtWord()
57 final Spanned text = (Spanned)mTextAtCursor; in getSuggestionSpansAtWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtils.java20 import android.text.Spanned;
131 isStartExclusive = ((spanFlag & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) == in updateLocaleSpan()
132 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in updateLocaleSpan()
136 isEndExclusive = ((spanFlag & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) == in updateLocaleSpan()
137 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in updateLocaleSpan()
205 return (originalFlag & ~Spanned.SPAN_POINT_MARK_MASK) | in getSpanFlag()
212 return isEndExclusive ? Spanned.SPAN_EXCLUSIVE_EXCLUSIVE in getSpanPointMarkFlag()
213 : Spanned.SPAN_EXCLUSIVE_INCLUSIVE; in getSpanPointMarkFlag()
215 return isEndExclusive ? Spanned.SPAN_INCLUSIVE_EXCLUSIVE in getSpanPointMarkFlag()
216 : Spanned.SPAN_INCLUSIVE_INCLUSIVE; in getSpanPointMarkFlag()
DSuggestionSpanUtils.java22 import android.text.Spanned;
69 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in getTextWithAutoCorrectionIndicatorUnderline()
98 spannable.setSpan(suggestionSpan, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextWithSuggestionSpan()
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DSpannedTestUtils.java22 import android.text.Spanned;
41 String actualHtmlText = Html.toHtml((Spanned) textView.getText()); in checkHtmlText()
59 Assert.assertTrue(seq instanceof Spanned); in assertPrefixSpan()
60 Spanned spannable = (Spanned) seq; in assertPrefixSpan()
70 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) { in getNumForegroundColorSpansBetween()
81 Assert.assertFalse(seq instanceof Spanned); in assertNotSpanned()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java22 import android.text.Spanned;
50 public static Spanned htmlToSpan(String html, HtmlTree.ConverterFactory factory) { in htmlToSpan()
55 final Spanned spanned = htmlTree.getSpanned(); in htmlToSpan()
77 public static class SpannedConverter implements HtmlTree.Converter<Spanned> {
163 mBuilder.setSpan(marker, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in handleEnd()
180 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in handleFont()
190 true /* use dip */), start, end,Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in handleFont()
200 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in handleFont()
211 public Spanned getObject() { in getObject()
DStyleUtils.java21 import android.text.Spanned;
55 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in stripUnderlinesAndLinkUrls()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
DUtilsTest.java21 import android.text.Spanned;
34 final Spanned actual = Utils.insertStringWithStyle( in testInsertStringWithStyle()
46 final Spanned actual = Utils.insertStringWithStyle( in testInsertStringWithStyle_substringNotInEntire()
53 public static void assertSpannedEquals(Spanned expected, Spanned actual) { in assertSpannedEquals()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DHtmlifyBeginResult.java18 import android.text.Spanned;
25 public final Spanned result;
28 public HtmlifyBeginResult(Spanned result, Object extras) { in HtmlifyBeginResult()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DEllipsizedMultilineTextView.java24 import android.text.Spanned;
100 if (text instanceof Spanned) { in setText()
101 final Spanned s = (Spanned) text; in setText()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DBadgeSpan.java24 import android.text.Spanned;
54 private final Spanned mSpanned;
57 public BadgeSpan(Spanned spanned, BadgeSpanDimensions dims) { in BadgeSpan()
DSubjectAndFolderView.java28 import android.text.Spanned;
134 }, start, start + 1, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in setFolders()
142 sb.setSpan(new ChangeLabelsSpan(callbacks), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setFolders()
208 sb.setSpan(span, start, start + name.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpan()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DUnicodeDialerKeyListener.java20 import android.text.Spanned;
33 Spanned dest, int dstart, int dend) { in filter()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilter.java20 import android.text.Spanned;
48 Spanned dest, int dstart, int dend) { in filter()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DLevenshteinFormatterTest.java24 import android.text.Spanned;
152 Spanned s = mFormatter.formatSuggestion(query, suggestion); in verifyFormatSuggestion()
350 public void verify(Spanned spanned) { in verify()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlTree.java18 import android.text.Spanned;
112 private Spanned constructedSpan;
598 public Spanned getSpanned() { in getSpanned()
618 Converter<Spanned> converter = (Converter<Spanned>) converterFactory.createInstance(); in convertToSpan()
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java29 import android.text.Spanned;
297 description.setSpan(titleStyle, 0, middle, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setValues()
299 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setValues()
302 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setValues()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java24 import android.text.Spanned;
40 public Spanned formatSuggestion(String query, String suggestion) { in formatSuggestion()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnEN.java27 import android.text.Spanned;
837 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in updateComposingText()
841 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in updateComposingText()
843 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in updateComposingText()
847 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in updateComposingText()

123