Searched refs:spannableString (Results 1 – 3 of 3) 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()
|
D | TextViewTest.java | 7721 SpannableString spannableString = new SpannableString(textViewContent); in prepareAndRetrieveClickableSpanDetails() local 7723 spannableString.setSpan(mockTextLink, startPos, endPos, 0); in prepareAndRetrieveClickableSpanDetails() 7725 mTextView.setText(spannableString); in prepareAndRetrieveClickableSpanDetails()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 1949 SpannableString spannableString = new SpannableString("Spannable String"); in testStringOrSpannedString() local 1951 TextUtils.stringOrSpannedString(spannableString).toString()); in testStringOrSpannedString() 1953 TextUtils.stringOrSpannedString(spannableString).getClass()); in testStringOrSpannedString() 2042 SpannableString spannableString = new SpannableString("Spannable String"); in testWriteToParcel() local 2043 int urlSpanStart = spannableString.length() >> 1; in testWriteToParcel() 2044 int urlSpanEnd = spannableString.length(); in testWriteToParcel() 2048 spannableString.setSpan(urlSpan, urlSpanStart, urlSpanEnd, in testWriteToParcel() 2050 TextUtils.writeToParcel(spannableString, p, 0); in testWriteToParcel() 2073 int textAppearanceSpanEnd = spannableString.length() >> 1; in testWriteToParcel() 2074 spannableString.setSpan(textAppearanceSpan, textAppearanceSpanStart, in testWriteToParcel() [all …]
|