Home
last modified time | relevance | path

Searched refs:spannableString (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextView_CommaTokenizerTest.java124 SpannableString spannableString = new SpannableString(text); in testTerminateToken() local
127 spannableString.setSpan(what, 0, spannableString.length(), in testTerminateToken()
130 SpannableString actual = (SpannableString) mCommaTokenizer.terminateToken(spannableString); in testTerminateToken()
133 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
DTextViewTest.java8569 SpannableString spannableString = new SpannableString(textViewContent); in prepareAndRetrieveClickableSpanDetails() local
8571 spannableString.setSpan(mockTextLink, startPos, endPos, 0); in prepareAndRetrieveClickableSpanDetails()
8573 mTextView.setText(spannableString); in prepareAndRetrieveClickableSpanDetails()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java1965 SpannableString spannableString = new SpannableString("Spannable String"); in testStringOrSpannedString() local
1967 TextUtils.stringOrSpannedString(spannableString).toString()); in testStringOrSpannedString()
1969 TextUtils.stringOrSpannedString(spannableString).getClass()); in testStringOrSpannedString()
2058 SpannableString spannableString = new SpannableString("Spannable String"); in testWriteToParcel() local
2059 int urlSpanStart = spannableString.length() >> 1; in testWriteToParcel()
2060 int urlSpanEnd = spannableString.length(); in testWriteToParcel()
2064 spannableString.setSpan(urlSpan, urlSpanStart, urlSpanEnd, in testWriteToParcel()
2066 TextUtils.writeToParcel(spannableString, p, 0); in testWriteToParcel()
2089 int textAppearanceSpanEnd = spannableString.length() >> 1; in testWriteToParcel()
2090 spannableString.setSpan(textAppearanceSpan, textAppearanceSpanStart, in testWriteToParcel()
[all …]