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 | 8073 SpannableString spannableString = new SpannableString(textViewContent); in prepareAndRetrieveClickableSpanDetails() local 8075 spannableString.setSpan(mockTextLink, startPos, endPos, 0); in prepareAndRetrieveClickableSpanDetails() 8077 mTextView.setText(spannableString); in prepareAndRetrieveClickableSpanDetails()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 1953 SpannableString spannableString = new SpannableString("Spannable String"); in testStringOrSpannedString() local 1955 TextUtils.stringOrSpannedString(spannableString).toString()); in testStringOrSpannedString() 1957 TextUtils.stringOrSpannedString(spannableString).getClass()); in testStringOrSpannedString() 2046 SpannableString spannableString = new SpannableString("Spannable String"); in testWriteToParcel() local 2047 int urlSpanStart = spannableString.length() >> 1; in testWriteToParcel() 2048 int urlSpanEnd = spannableString.length(); in testWriteToParcel() 2052 spannableString.setSpan(urlSpan, urlSpanStart, urlSpanEnd, in testWriteToParcel() 2054 TextUtils.writeToParcel(spannableString, p, 0); in testWriteToParcel() 2077 int textAppearanceSpanEnd = spannableString.length() >> 1; in testWriteToParcel() 2078 spannableString.setSpan(textAppearanceSpan, textAppearanceSpanStart, in testWriteToParcel() [all …]
|