Home
last modified time | relevance | path

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

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextLinksTest.java165 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/
DLinkifyTest.java482 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/
DTextViewTest.java3643 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() local
3644 assertEquals("URLSpan count should be zero", 0, urlSpans.length); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks()
3657 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() local
3658 assertEquals("URLSpan count should be zero", 0, urlSpans.length); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled()
3672 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled() local
3673 assertEquals("URLSpan count should be one after appending a URL", 1, urlSpans.length); in testAppend_addsLinksWhenAutoLinkIsEnabled()
3675 urlSpans[0].getURL(), "http://android.com"); in testAppend_addsLinksWhenAutoLinkIsEnabled()
3689 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() local
3690 assertEquals("URLSpan count should be two after appending another URL", 2, urlSpans.length); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore()
3692 urlSpans[0].getURL(), "http://android.com/before"); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore()
[all …]