Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java71 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString()
92 Object[] spans = spanned.getSpans(start, end, Object.class); in verifyBadHtml()
112 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColor()
116 colors = s.getSpans(0, s.length(), type); in testColor()
120 colors = s.getSpans(0, s.length(), type); in testColor()
125 colors = s.getSpans(0, s.length(), type); in testColor()
129 colors = s.getSpans(0, s.length(), type); in testColor()
133 colors = s.getSpans(0, s.length(), type); in testColor()
137 colors = s.getSpans(0, s.length(), type); in testColor()
141 colors = s.getSpans(0, s.length(), type); in testColor()
[all …]
DSpannableStringBuilderSpanTest.java256 Object[] addedSpans = replacementSpannable.getSpans(replStart, replEnd, Object.class); in verifyReplacementSpanPositions()
520 assertEquals(1, newText.getSpans(0, newText.length(), ParagraphStyle.class).length); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore()
524 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore()
533 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore()
537 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore()
548 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfStartIsZero()
552 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_retainsParagraphSpanInSourceIfStartIsZero()
567 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString()
571 ParagraphStyle[] paragraphSpans = spannable.getSpans(0, spannable.length(), in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString()
583 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineAfter()
[all …]
DSelectionTest.java317 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMoveUpKeepsOriginalMemoryPosition()
324 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMoveUpKeepsOriginalMemoryPosition()
330 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMoveUpKeepsOriginalMemoryPosition()
405 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMoveDownKeepsOriginalMemoryPosition()
412 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMoveDownKeepsOriginalMemoryPosition()
418 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMoveDownKeepsOriginalMemoryPosition()
430 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMemoryPositionResetByHorizontalMovement()
437 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMemoryPositionResetByHorizontalMovement()
443 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMemoryPositionResetByHorizontalMovement()
449 builder.getSpans(0, builder.length(), Selection.MemoryTextWatcher.class).length); in testMemoryPositionResetByHorizontalMovement()
[all …]
DSpannableStringBuilderTest.java403 final Object[] spans = builder.getSpans(0, builder.length(), Object.class); in testAppend_textWithSpan()
607 Object[] emptySpans = builder.getSpans(0, 10, null); in testGetSpans()
611 UnderlineSpan[] underlineSpans = builder.getSpans(0, 10, UnderlineSpan.class); in testGetSpans()
616 StrikethroughSpan[] strikeSpans = builder.getSpans(0, 10, StrikethroughSpan.class); in testGetSpans()
619 builder.getSpans(-1, 100, UnderlineSpan.class); in testGetSpans()
621 builder.getSpans(4, 1, UnderlineSpan.class); in testGetSpans()
628 Object[] spans = builder.getSpans(0, text.length(), Object.class); in testGetSpans_returnsEmptyIfSetSpanIsNotCalled()
653 final SubscriptSpan[] spans = builder.getSpans(0, builder.length(), SubscriptSpan.class); in assertGetSpans_returnsInInsertionOrder()
690 final SubscriptSpan[] spans = builder.getSpans(0, builder.length(), SubscriptSpan.class); in testGetSpans_returnsInInsertionOrder_priorityAndRegular()
715 Object[] spans = builder.getSpans(0, text.length(), Object.class); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
[all …]
DSpannableStringTest.java167 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testSubsequence_copiesSpans()
191 Object[] firstSpans = first.getSpans(0, first.length(), Object.class); in testCopyConstructor_copiesAllSpans()
195 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testCopyConstructor_copiesAllSpans()
217 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testCopyGrowable()
230 AlignmentSpan.Standard[] copiedSpans = copied.getSpans(0, copied.length(), in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
239 copiedSpans = copied.getSpans(0, copied.length(), AlignmentSpan.Standard.class); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
DBidiFormatterTest.java266 spans = wrapped.getSpans(0, wrapped.length(), Object.class); in testCharSequenceApis()
274 spans = wrapped.getSpans(0, wrapped.length(), Object.class); in testCharSequenceApis()
282 spans = wrapped.getSpans(0, wrapped.length(), Object.class); in testCharSequenceApis()
290 spans = wrapped.getSpans(0, wrapped.length(), Object.class); in testCharSequenceApis()
DTextUtilsTest.java280 Object spans[] = strResult.getSpans(0, strResult.length(), Object.class); in testConcat()
312 final Object[] spans = result.getSpans(0, result.length(), Object.class); in testConcat_NullParameters()
332 final Object[] spans = result.getSpans(0, result.length(), Object.class); in testConcat_twoParagraphSpans()
352 final Object[] spans = result.getSpans(0, result.length(), Object.class); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
378 spans = dest1.getSpans(0, dest1.length(), Object.class); in testCopySpansFrom()
395 spans = dest2.getSpans(0, dest2.length(), Object.class); in testCopySpansFrom()
405 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom()
408 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom()
419 spans = dest4.getSpans(0, dest4.length(), Object.class); in testCopySpansFrom()
428 spans = dest5.getSpans(0, 1, Object.class); in testCopySpansFrom()
[all …]
DPrecomputedTextTest.java220 final LocaleSpan[] spans = s.getSpans(0, s.length(), LocaleSpan.class); in testSpannedInterface_Spanned()
238 assertEquals(0, s.getSpans(0, s.length(), BackgroundColorSpan.class).length); in testSpannedInterface_Spannable()
242 final BackgroundColorSpan[] spans = s.getSpans(0, s.length(), BackgroundColorSpan.class); in testSpannedInterface_Spannable()
252 assertEquals(0, s.getSpans(0, s.length(), BackgroundColorSpan.class).length); in testSpannedInterface_Spannable()
273 LocaleSpan[] spans = s.getSpans(0, s.length(), LocaleSpan.class); in testSpannedInterface_String()
DInputFilter_AllCapsTest.java128 final Object[] resultSpans = spannedResult.getSpans( in testFilter_greekWithSpans()
DAlteredCharSequenceTest.java167 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.java115 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinksToSpannable()
123 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinksToSpannable()
143 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView()
150 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView()
171 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithScheme()
179 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithScheme()
187 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithScheme()
216 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithSchemeAndFilter()
224 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithSchemeAndFilter()
231 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithSchemeAndFilter()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java124 2 <= spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
127 assertEquals(1, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
128 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0]; in testOnTakeFocus()
137 3 <= spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
140 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
148 3 <= spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
151 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus()
467 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testInitialize()
470 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testInitialize()
DQwertyKeyListenerTest.java213 Object[] repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
217 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
224 repl = content.getSpans(0, content.length(), Object.class); in testMarkAsReplaced()
DMetaKeyKeyListenerTest.java435 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in MetaKeyKeyListenerTest.MockSpannable
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractedTextTest.java63 assertEquals(1, hintText.getSpans(0, hintText.length(), StyleSpan.class).length); in testWriteToParcel()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneNumberUtilsTest.java370 TtsSpan[] ttsSpans = spannable.getSpans(5, spannable.length() - 1, TtsSpan.class); in testAddPhoneTtsSpan()
383 TtsSpan[] ttsSpans = spannable.getSpans(0, spannable.length() - 1, TtsSpan.class); in testGetPhoneTtsSpannable()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java852 Object[] expectedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals()
853 Object[] observedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextActionTest.java459 .getSpans(0, accessibilityTextWithSpan.length(), type); in findSingleSpanInViewWithText()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java545 URLSpan[] spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask()
561 spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask()
2408 return spannable.getSpans(at, at, type).length > 0; in hasSpansAtMiddleOfText()
3421 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks()
3435 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled()
3450 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled()
3467 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore()
3502 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenTextIsSpannableAndContainsUrlAndAutoLinkIsEnabled()
3518 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextCompletesPartialUrlAtTheEndOfExistingText()
3535 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextUpdatesUrlAtTheEndOfExistingText()
[all …]