Home
last modified time | relevance | path

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

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextLinksTest.java114 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/
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.java9618 SpannableString spannableString = new SpannableString(textViewContent); in prepareAndRetrieveClickableSpanDetails() local
9620 spannableString.setSpan(mockTextLink, startPos, endPos, 0); in prepareAndRetrieveClickableSpanDetails()
9622 mTextView.setText(spannableString); in prepareAndRetrieveClickableSpanDetails()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20944/test-app/src/android/security/cts/CVE_2023_20944_test/
DPocActivity.java104 SpannableString spannableString = new SpannableString(getString(R.string.spannableString)); in createLabelInjectingOptions() local
105 spannableString.setSpan(new TtsSpan("", wrapperBundle), 0, 0, 0); in createLabelInjectingOptions()
106 return spannableString; in createLabelInjectingOptions()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35669/test-app/src/android/security/cts/CVE_2023_35669_test/
DPocAuthService.java99 SpannableString spannableString = in getAccountRemovalAllowed() local
100 new SpannableString(getString(R.string.spannableString)); in getAccountRemovalAllowed()
101 spannableString.setSpan( in getAccountRemovalAllowed()
111 nonLocalizedLabelField.set(labeledIntent, spannableString); in getAccountRemovalAllowed()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21131/test-app/src/android/security/cts/CVE_2023_21131_test/
DPocAuthService.java102 SpannableString spannableString = in getAccountRemovalAllowed() local
103 new SpannableString(getString(R.string.spannableString)); in getAccountRemovalAllowed()
104 spannableString.setSpan( in getAccountRemovalAllowed()
114 nonLocalizedLabelField.set(labeledIntent, spannableString); in getAccountRemovalAllowed()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21124/test-app/src/android/security/cts/CVE_2023_21124_test/
DPocAuthService.java111 SpannableString spannableString = new SpannableString(""); in addAccount() local
112 spannableString.setSpan( in addAccount()
120 field.set(labeledIntent, spannableString); in addAccount()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java2009 SpannableString spannableString = new SpannableString("Spannable String"); in testStringOrSpannedString() local
2011 TextUtils.stringOrSpannedString(spannableString).toString()); in testStringOrSpannedString()
2013 TextUtils.stringOrSpannedString(spannableString).getClass()); in testStringOrSpannedString()
2103 SpannableString spannableString = new SpannableString("Spannable String"); in testWriteToParcel() local
2104 int urlSpanStart = spannableString.length() >> 1; in testWriteToParcel()
2105 int urlSpanEnd = spannableString.length(); in testWriteToParcel()
2109 spannableString.setSpan(urlSpan, urlSpanStart, urlSpanEnd, in testWriteToParcel()
2111 TextUtils.writeToParcel(spannableString, p, 0); in testWriteToParcel()
2134 int textAppearanceSpanEnd = spannableString.length() >> 1; in testWriteToParcel()
2135 spannableString.setSpan(textAppearanceSpan, textAppearanceSpanStart, in testWriteToParcel()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java474 SpannableString spannableString = new SpannableString(text); in setText_parcelableSpanChanged_receivesUndefinedEvent() local
475 spannableString.setSpan(new LocaleSpan(Locale.ENGLISH), 0, 1, 0); in setText_parcelableSpanChanged_receivesUndefinedEvent()
476 mTextView.setText(spannableString); in setText_parcelableSpanChanged_receivesUndefinedEvent()