Searched refs:urlSpans (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextLinksTest.java | 165 final URLSpan[] urlSpans = spannableString.getSpans(0, spannableString.length() - 1, in testTextLinks_applyStrategyReplace() local 170 assertEquals(0, urlSpans.length); in testTextLinks_applyStrategyReplace() 187 final URLSpan[] urlSpans = spannableString.getSpans(0, spannableString.length() - 1, in testTextLinks_applyStrategyIgnore() local 192 assertEquals(1, urlSpans.length); in testTextLinks_applyStrategyIgnore()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 482 final URLSpan[] urlSpans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks_UrlSpanFactory_withSpannable() local 483 assertArrayEquals(myUrlSpans, urlSpans); in testAddLinks_UrlSpanFactory_withSpannable() 501 final URLSpan[] urlSpans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks_UrlSpanFactory_withSpannableAndFilter() local 502 assertArrayEquals(myUrlSpans, urlSpans); in testAddLinks_UrlSpanFactory_withSpannableAndFilter()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 3561 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() local 3562 assertEquals("URLSpan count should be zero", 0, urlSpans.length); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() 3575 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() local 3576 assertEquals("URLSpan count should be zero", 0, urlSpans.length); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() 3590 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled() local 3591 assertEquals("URLSpan count should be one after appending a URL", 1, urlSpans.length); in testAppend_addsLinksWhenAutoLinkIsEnabled() 3593 urlSpans[0].getURL(), "http://android.com"); in testAppend_addsLinksWhenAutoLinkIsEnabled() 3607 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() local 3608 assertEquals("URLSpan count should be two after appending another URL", 2, urlSpans.length); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() 3610 urlSpans[0].getURL(), "http://android.com/before"); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() [all …]
|