/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 75 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString() 96 Object[] spans = spanned.getSpans(start, end, Object.class); in verifyBadHtml() 168 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColor() 203 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColorInvalid() 217 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testUseCssColor() 221 colors = s.getSpans(0, s.length(), type); in testUseCssColor() 225 colors = s.getSpans(0, s.length(), type); in testUseCssColor() 229 colors = s.getSpans(0, s.length(), type); in testUseCssColor() 233 colors = s.getSpans(0, s.length(), type); in testUseCssColor() 237 colors = s.getSpans(0, s.length(), type); in testUseCssColor() [all …]
|
D | SpannableStringBuilderSpanTest.java | 256 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 …]
|
D | SelectionTest.java | 317 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 …]
|
D | SpannableStringTest.java | 167 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()
|
D | SpannableStringBuilderTest.java | 403 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 …]
|
D | BidiFormatterTest.java | 266 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()
|
D | TextUtilsTest.java | 280 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 …]
|
D | InputFilter_AllCapsTest.java | 128 final Object[] resultSpans = spannedResult.getSpans( in testFilter_greekWithSpans()
|
D | AlteredCharSequenceTest.java | 167 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in AlteredCharSequenceTest.MockSpanned
|
D | PrecomputedTextTest.java | 220 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()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 116 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinksToSpannable() 124 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinksToSpannable() 144 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView() 151 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView() 172 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithScheme() 180 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithScheme() 188 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithScheme() 217 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithSchemeAndFilter() 225 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithSchemeAndFilter() 232 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextViewWithSchemeAndFilter() [all …]
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextLinksTest.java | 124 final TextLinks.TextLinkSpan[] textLinkSpans = spannableString.getSpans(0, in testTextLinks_apply() 162 final TextLinks.TextLinkSpan[] textLinkSpans = spannableString.getSpans(0, in testTextLinks_applyStrategyReplace() 165 final URLSpan[] urlSpans = spannableString.getSpans(0, spannableString.length() - 1, in testTextLinks_applyStrategyReplace() 184 final TextLinks.TextLinkSpan[] textLinkSpans = spannableString.getSpans(0, in testTextLinks_applyStrategyIgnore() 187 final URLSpan[] urlSpans = spannableString.getSpans(0, spannableString.length() - 1, in testTextLinks_applyStrategyIgnore() 209 final CustomTextLinkSpan[] customTextLinkSpans = spannableString.getSpans(0, in testTextLinks_applyWithCustomSpanFactory()
|
D | TextViewIntegrationTest.java | 164 TextLinks.TextLinkSpan[] spans = linkifiedText.getSpans(0, TEXT.length(), in smartLinkify()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 124 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()
|
D | QwertyKeyListenerTest.java | 213 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()
|
D | MetaKeyKeyListenerTest.java | 435 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/ |
D | ExtractedTextTest.java | 103 spannedText.getSpans(0, spannedText.length(), Annotation.class); in assertTestInstance() 115 spannedHint.getSpans(0, spannedHint.length(), Annotation.class); in assertTestInstance()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | PhoneNumberUtilsTest.java | 370 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/ |
D | BundleTest.java | 852 Object[] expectedSpans = expected.getSpans(0, expected.length(), Object.class); in assertSpannableEquals() 853 Object[] observedSpans = observedSpan.getSpans(0, observedSpan.length(), Object.class); in assertSpannableEquals()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | BaseUsePermissionTest.kt | 360 val clickableSpan = text.getSpans(0, text.length, ClickableSpan::class.java)[0] in <lambda>()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfoTest.java | 279 final ReplacementSpan[] actualSpans = receivedString.getSpans(0, receivedString.length(), in testParcelTextImageSpans_haveSameContentDescriptions()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 668 URLSpan[] spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask() 684 spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask() 2531 return spannable.getSpans(at, at, type).length > 0; in hasSpansAtMiddleOfText() 3561 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() 3575 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() 3590 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled() 3607 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() 3642 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenTextIsSpannableAndContainsUrlAndAutoLinkIsEnabled() 3658 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextCompletesPartialUrlAtTheEndOfExistingText() 3675 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextUpdatesUrlAtTheEndOfExistingText() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextActionTest.java | 613 .getSpans(0, accessibilityTextWithSpan.length(), type); in findSingleSpanInViewWithText()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | UiBot.java | 1251 .getSpans(0, accessibilityTextWithSpan.length(), URLSpan.class);
|