Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java64 Object[] spans = spanned.getSpans(start, end, Object.class); in assertSingleTagOnWhileString()
84 Object[] spans = spanned.getSpans(start, end, Object.class); in assertBadHtml()
102 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColor()
106 colors = s.getSpans(0, s.length(), type); in testColor()
110 colors = s.getSpans(0, s.length(), type); in testColor()
115 colors = s.getSpans(0, s.length(), type); in testColor()
119 colors = s.getSpans(0, s.length(), type); in testColor()
123 colors = s.getSpans(0, s.length(), type); in testColor()
127 colors = s.getSpans(0, s.length(), type); in testColor()
131 colors = s.getSpans(0, s.length(), type); in testColor()
[all …]
DSpannableStringBuilderSpanTest.java242 Object[] addedSpans = replacementSpannable.getSpans(replStart, replEnd, Object.class); in checkReplacementSpanPositions()
508 assertEquals(1, newText.getSpans(0, newText.length(), ParagraphStyle.class).length); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore()
512 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore()
522 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore()
526 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore()
538 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfStartIsZero()
542 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_retainsParagraphSpanInSourceIfStartIsZero()
558 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString()
562 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString()
575 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineAfter()
[all …]
DSpannableStringBuilderTest.java563 Object[] emptySpans = builder.getSpans(0, 10, null); in testGetSpans()
567 UnderlineSpan[] underlineSpans = builder.getSpans(0, 10, UnderlineSpan.class); in testGetSpans()
572 StrikethroughSpan[] strikeSpans = builder.getSpans(0, 10, StrikethroughSpan.class); in testGetSpans()
575 builder.getSpans(-1, 100, UnderlineSpan.class); in testGetSpans()
577 builder.getSpans(4, 1, UnderlineSpan.class); in testGetSpans()
584 Object[] spans = builder.getSpans(0, text.length(), Object.class); in testGetSpans_returnsEmptyIfSetSpanIsNotCalled()
598 Object[] spans = builder.getSpans(0, text.length(), Object.class); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
623 Object[] spans = builder.getSpans(0, text.length(), Object.class); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
650 Object[] spans = builder.getSpans(0, text.length(), Object.class); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
672 Object[] spans = builder.getSpans(0, text.length(), Object.class, false); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse()
DSpannableStringTest.java145 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testSubsequence_copiesSpans()
170 Object[] firstSpans = first.getSpans(0, first.length(), Object.class); in testCopyConstructor_copiesAllSpans()
174 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testCopyConstructor_copiesAllSpans()
DTextUtilsTest.java155 Object spans[] = strResult.getSpans(0, strResult.length(), Object.class); in testConcat()
195 spans = dest1.getSpans(0, dest1.length(), Object.class); in testCopySpansFrom()
212 spans = dest2.getSpans(0, dest2.length(), Object.class); in testCopySpansFrom()
222 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom()
225 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom()
236 spans = dest4.getSpans(0, dest4.length(), Object.class); in testCopySpansFrom()
245 spans = dest5.getSpans(0, 1, Object.class); in testCopySpansFrom()
250 spans = dest5.getSpans(0, 1, Object.class); in testCopySpansFrom()
252 spans = dest5.getSpans(2, dest5.length(), Object.class); in testCopySpansFrom()
266 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
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java92 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks1()
100 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks1()
120 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2()
127 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2()
147 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3()
155 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3()
177 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3()
190 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()
214 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()
221 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java105 …assertTrue("Expected at least 2 spans", 2 <= spannable.getSpans(0, spannable.length(), Object.clas… in testOnTakeFocus()
108 assertEquals(1, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
109 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0]; in testOnTakeFocus()
117 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testOnTakeFocus()
120 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
127 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testOnTakeFocus()
130 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
447 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testInitialize()
450 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testInitialize()
DQwertyKeyListenerTest.java172 Object[] repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
176 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
183 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/widget/src/android/widget/cts/
DTextViewTest.java365 URLSpan[] spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask()
383 spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask()
1975 return spannable.getSpans(at, at, type).length > 0; in hasSpansAtMiddleOfText()
2842 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks()
2855 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled()
2869 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled()
2885 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore()
2918 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenTextIsSpannableAndContainsUrlAndAutoLinkIsEnabled()
2933 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextCompletesPartialUrlAtTheEndOfExistingText()
2949 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextUpdatesUrlAtTheEndOfExistingText()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java849 Object[] expectedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals()
850 Object[] observedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals()
/cts/tools/dex-tools/dex/
Dclasses.out.dex75212 public abstract java.lang.Object[] getSpans(
75255 public java.lang.Object[] getSpans(
76851 public java.lang.Object[] getSpans(
77260 public java.lang.Object[] getSpans(
77311 public volatile java.lang.Object[] getSpans(
77533 public java.lang.Object[] getSpans(
77646 public volatile java.lang.Object[] getSpans(
79295 public java.lang.Object[] getSpans(