Searched refs:urlSpan (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/text/src/android/text/style/cts/ |
D | URLSpanTest.java | 68 URLSpan urlSpan = new URLSpan(TEST_URL); in testConstructor() local 72 urlSpan.writeToParcel(p, 0); in testConstructor() 82 URLSpan urlSpan = new URLSpan(TEST_URL); in testGetURL() local 83 assertEquals(TEST_URL, urlSpan.getURL()); in testGetURL() 89 final URLSpan urlSpan = new URLSpan(TEST_URL); in testOnClick() local 96 mActivityRule.runOnUiThread(() -> urlSpan.onClick(textView)); in testOnClick() 105 URLSpan urlSpan = new URLSpan(TEST_URL); in testOnClickFailure() local 107 urlSpan.onClick(null); in testOnClickFailure() 112 URLSpan urlSpan = new URLSpan(TEST_URL); in testDescribeContents() local 113 urlSpan.describeContents(); in testDescribeContents() [all …]
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextLinksTest.java | 154 final URLSpan urlSpan = new URLSpan("http://www.google.com"); in testTextLinks_applyStrategyReplace() local 155 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyReplace() 176 final URLSpan urlSpan = new URLSpan("http://www.google.com"); in testTextLinks_applyStrategyIgnore() local 177 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyIgnore()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 288 URLSpan urlSpan = new URLSpan(url); in testConcat() local 289 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat() 302 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat() 303 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat() 390 URLSpan urlSpan = new URLSpan(url); in testCopySpansFrom() local 391 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom() 405 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom() 406 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom() 407 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan)); in testCopySpansFrom() 413 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testCopySpansFrom() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextActionTest.java | 236 final URLSpan urlSpan = new URLSpan(url) { in testUrlSpan_shouldWorkFromAccessibilityService() local 245 textWithClickableSpan.setSpan(urlSpan, 0, 1, 0); in testUrlSpan_shouldWorkFromAccessibilityService()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 1401 final URLSpan urlSpan = new URLSpan("ctstest://TextView/test"); in testAccessFreezesText() local 1407 Uri uri = Uri.parse(urlSpan.getURL()); in testAccessFreezesText() 1431 Uri uri = Uri.parse(urlSpan.getURL()); in testAccessFreezesText()
|