/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 | 9618 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/ |
D | PocActivity.java | 104 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/ |
D | PocAuthService.java | 99 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/ |
D | PocAuthService.java | 102 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/ |
D | PocAuthService.java | 111 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/ |
D | TextUtilsTest.java | 2009 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/ |
D | AccessibilityEventTest.java | 474 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()
|