Home
last modified time | relevance | path

Searched refs:getSpans (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java90 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/
DHtmlTest.java56 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()
DSpannableStringBuilderTest.java556 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()
DTextUtilsTest.java158 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 …]
DAlteredCharSequenceTest.java152 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in AlteredCharSequenceTest.MockSpanned
DSpannableStringBuilderSpanTest.java237 Object[] addedSpans = replacementSpannable.getSpans(replStart, replEnd, Object.class); in checkReplacementSpanPositions()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java103 …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()
DQwertyKeyListenerTest.java175 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()
DMetaKeyKeyListenerTest.java376 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/
DPhoneNumberUtilsTest.java350 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/
DBundleTest.java829 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/
DTextViewTest.java357 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()