Searched refs:urlSpan (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/text/src/android/text/style/cts/ |
D | URLSpanTest.java | 46 URLSpan urlSpan = new URLSpan(TEST_URL); in testConstructor() local 50 urlSpan.writeToParcel(p, 0); in testConstructor() 59 URLSpan urlSpan = new URLSpan(TEST_URL); in testGetURL() local 60 assertEquals(TEST_URL, urlSpan.getURL()); in testGetURL() 64 final URLSpan urlSpan = new URLSpan(TEST_URL); in testOnClick() local 74 urlSpan.onClick(textView); in testOnClick() 87 URLSpan urlSpan = new URLSpan(TEST_URL); in testOnClickFailure() local 90 urlSpan.onClick(null); in testOnClickFailure() 98 URLSpan urlSpan = new URLSpan(TEST_URL); in testDescribeContents() local 99 urlSpan.describeContents(); in testDescribeContents() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 147 URLSpan urlSpan = new URLSpan(url); in testConcat() local 148 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat() 161 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat() 162 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat() 186 URLSpan urlSpan = new URLSpan(url); in testCopySpansFrom() local 187 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom() 201 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom() 202 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom() 203 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan)); in testCopySpansFrom() 209 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testCopySpansFrom() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 890 final URLSpan urlSpan = new URLSpan("ctstest://TextView/test"); in testAccessFreezesText() local 898 Uri uri = Uri.parse(urlSpan.getURL()); in testAccessFreezesText() 928 Uri uri = Uri.parse(urlSpan.getURL()); in testAccessFreezesText()
|