Searched refs:spannableString (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 123 SpannableString spannableString = new SpannableString(text); in testTerminateToken() local 126 spannableString.setSpan(what, 0, spannableString.length(), in testTerminateToken() 129 SpannableString actual = (SpannableString) mCommaTokenizer.terminateToken(spannableString); in testTerminateToken() 132 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 1761 SpannableString spannableString = new SpannableString("Spannable String"); in testStringOrSpannedString() local 1763 TextUtils.stringOrSpannedString(spannableString).toString()); in testStringOrSpannedString() 1765 TextUtils.stringOrSpannedString(spannableString).getClass()); in testStringOrSpannedString() 1852 SpannableString spannableString = new SpannableString("Spannable String"); in testWriteToParcel() local 1853 int urlSpanStart = spannableString.length() >> 1; in testWriteToParcel() 1854 int urlSpanEnd = spannableString.length(); in testWriteToParcel() 1858 spannableString.setSpan(urlSpan, urlSpanStart, urlSpanEnd, in testWriteToParcel() 1860 TextUtils.writeToParcel(spannableString, p, 0); in testWriteToParcel() 1883 int textAppearanceSpanEnd = spannableString.length() >> 1; in testWriteToParcel() 1884 spannableString.setSpan(textAppearanceSpan, textAppearanceSpanStart, in testWriteToParcel() [all …]
|