Home
last modified time | relevance | path

Searched refs:urlSpan (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/text/src/android/text/style/cts/
DURLSpanTest.java60 URLSpan urlSpan = new URLSpan(TEST_URL); in testConstructor() local
64 urlSpan.writeToParcel(p, 0); in testConstructor()
74 URLSpan urlSpan = new URLSpan(TEST_URL); in testGetURL() local
75 assertEquals(TEST_URL, urlSpan.getURL()); in testGetURL()
81 final URLSpan urlSpan = new URLSpan(TEST_URL); in testOnClick() local
88 mActivityRule.runOnUiThread(() -> urlSpan.onClick(textView)); in testOnClick()
97 URLSpan urlSpan = new URLSpan(TEST_URL); in testOnClickFailure() local
99 urlSpan.onClick(null); in testOnClickFailure()
104 URLSpan urlSpan = new URLSpan(TEST_URL); in testDescribeContents() local
105 urlSpan.describeContents(); in testDescribeContents()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java272 URLSpan urlSpan = new URLSpan(url); in testConcat() local
273 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat()
286 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat()
287 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat()
369 URLSpan urlSpan = new URLSpan(url); in testCopySpansFrom() local
370 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom()
384 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom()
385 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom()
386 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan)); in testCopySpansFrom()
392 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testCopySpansFrom()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextActionTest.java211 final URLSpan urlSpan = new URLSpan(url) { in testUrlSpan_shouldWorkFromAccessibilityService() local
220 textWithClickableSpan.setSpan(urlSpan, 0, 1, 0); in testUrlSpan_shouldWorkFromAccessibilityService()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java1220 final URLSpan urlSpan = new URLSpan("ctstest://TextView/test"); in testAccessFreezesText() local
1226 Uri uri = Uri.parse(urlSpan.getURL()); in testAccessFreezesText()
1250 Uri uri = Uri.parse(urlSpan.getURL()); in testAccessFreezesText()