/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 90 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks1() 98 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks1() 118 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2() 125 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2() 145 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3() 153 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3() 175 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3() 188 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4() 212 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4() 219 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 56 Object[] spans = spanned.getSpans(start, end, Object.class); in assertSingleTagOnWhileString() 76 Object[] spans = spanned.getSpans(start, end, Object.class); in assertBadHtml() 97 colors = s.getSpans(start, end, type); in testColor() 103 colors = s.getSpans(start, end, type); in testColor() 109 colors = s.getSpans(start, end, type); in testColor()
|
D | SpannableStringBuilderTest.java | 556 UnderlineSpan[] underlineSpans = builder.getSpans(0, 10, UnderlineSpan.class); in testGetSpans() 561 StrikethroughSpan[] strikeSpans = builder.getSpans(0, 10, StrikethroughSpan.class); in testGetSpans() 564 builder.getSpans(-1, 100, UnderlineSpan.class); in testGetSpans() 566 builder.getSpans(4, 1, UnderlineSpan.class); in testGetSpans()
|
D | TextUtilsTest.java | 158 Object spans[] = strResult.getSpans(0, strResult.length(), Object.class); in testConcat() 198 spans = dest1.getSpans(0, dest1.length(), Object.class); in testCopySpansFrom() 215 spans = dest2.getSpans(0, dest2.length(), Object.class); in testCopySpansFrom() 225 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom() 228 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom() 239 spans = dest4.getSpans(0, dest4.length(), Object.class); in testCopySpansFrom() 248 spans = dest5.getSpans(0, 1, Object.class); in testCopySpansFrom() 253 spans = dest5.getSpans(0, 1, Object.class); in testCopySpansFrom() 255 spans = dest5.getSpans(2, dest5.length(), Object.class); in testCopySpansFrom() 269 spans = dest6.getSpans(0, dest6.length(), Object.class); in testCopySpansFrom() [all …]
|
D | AlteredCharSequenceTest.java | 152 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in AlteredCharSequenceTest.MockSpanned
|
D | SpannableStringBuilderSpanTest.java | 237 Object[] addedSpans = replacementSpannable.getSpans(replStart, replEnd, Object.class); in checkReplacementSpanPositions()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 103 …assertTrue("Expected at least 2 spans", 2 <= spannable.getSpans(0, spannable.length(), Object.clas… in testOnTakeFocus() 106 assertEquals(1, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 107 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0]; in testOnTakeFocus() 115 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testOnTakeFocus() 118 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 125 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testOnTakeFocus() 128 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 445 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testInitialize() 448 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testInitialize()
|
D | QwertyKeyListenerTest.java | 175 Object[] repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced() 179 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced() 186 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
|
D | MetaKeyKeyListenerTest.java | 376 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in MetaKeyKeyListenerTest.MockSpannable
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | PhoneNumberUtilsTest.java | 350 TtsSpan[] ttsSpans = spannable.getSpans(5, spannable.length() - 1, TtsSpan.class); in testAddPhoneTtsSpan() 362 TtsSpan[] ttsSpans = spannable.getSpans(0, spannable.length() - 1, TtsSpan.class); in testGetPhoneTtsSpannable()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 829 Object[] expectedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals() 830 Object[] observedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 357 URLSpan[] spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask() 375 spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask() 1729 return spannable.getSpans(at, at, type).length > 0; in hasSpansAtMiddleOfText()
|