Searched refs:spannableString (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextLinksTest.java | 114 final SpannableString spannableString = SpannableString.valueOf(TEXT); in testTextLinks_apply() local 123 spannableString, TextLinks.APPLY_STRATEGY_IGNORE, null); in testTextLinks_apply() 124 final TextLinks.TextLinkSpan[] textLinkSpans = spannableString.getSpans(0, in testTextLinks_apply() 125 spannableString.length() - 1, in testTextLinks_apply() 153 final SpannableString spannableString = SpannableString.valueOf(TEXT); in testTextLinks_applyStrategyReplace() local 155 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyReplace() 161 spannableString, TextLinks.APPLY_STRATEGY_REPLACE, null); in testTextLinks_applyStrategyReplace() 162 final TextLinks.TextLinkSpan[] textLinkSpans = spannableString.getSpans(0, in testTextLinks_applyStrategyReplace() 163 spannableString.length() - 1, in testTextLinks_applyStrategyReplace() 165 final URLSpan[] urlSpans = spannableString.getSpans(0, spannableString.length() - 1, in testTextLinks_applyStrategyReplace() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 124 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()
|
D | TextViewTest.java | 8829 SpannableString spannableString = new SpannableString(textViewContent); in prepareAndRetrieveClickableSpanDetails() local 8831 spannableString.setSpan(mockTextLink, startPos, endPos, 0); in prepareAndRetrieveClickableSpanDetails() 8833 mTextView.setText(spannableString); in prepareAndRetrieveClickableSpanDetails()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 396 SpannableString spannableString = new SpannableString(text); in setText_parcelableSpanChanged_receivesUndefinedEvent() local 397 spannableString.setSpan(new LocaleSpan(Locale.ENGLISH), 0, 1, 0); in setText_parcelableSpanChanged_receivesUndefinedEvent() 398 mTextView.setText(spannableString); in setText_parcelableSpanChanged_receivesUndefinedEvent()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 1965 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 …]
|