/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 | 296 Object spans[] = strResult.getSpans(0, strResult.length(), Object.class); in testConcat() 330 final Object[] spans = result.getSpans(0, result.length(), Object.class); in testConcat_NullParameters() 351 final Object[] spans = result.getSpans(0, result.length(), Object.class); in testConcat_twoParagraphSpans() 372 final Object[] spans = result.getSpans(0, result.length(), Object.class); in testConcat_oneParagraphSpanAndOneInclusiveSpan() 399 spans = dest1.getSpans(0, dest1.length(), Object.class); in testCopySpansFrom() 416 spans = dest2.getSpans(0, dest2.length(), Object.class); in testCopySpansFrom() 426 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom() 429 spans = dest3.getSpans(0, dest3.length(), Object.class); in testCopySpansFrom() 440 spans = dest4.getSpans(0, dest4.length(), Object.class); in testCopySpansFrom() 449 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 | 269 final LocaleSpan[] spans = s.getSpans(0, s.length(), LocaleSpan.class); in testSpannedInterface_Spanned() 287 assertEquals(0, s.getSpans(0, s.length(), BackgroundColorSpan.class).length); in testSpannedInterface_Spannable() 291 final BackgroundColorSpan[] spans = s.getSpans(0, s.length(), BackgroundColorSpan.class); in testSpannedInterface_Spannable() 301 assertEquals(0, s.getSpans(0, s.length(), BackgroundColorSpan.class).length); in testSpannedInterface_Spannable() 322 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 | 156 TextLinks.TextLinkSpan[] spans = linkifiedText.getSpans(0, TEXT.length(), in smartLinkify()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 135 2 <= spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 138 assertEquals(1, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 139 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0]; 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() 159 3 <= spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 162 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length); in testOnTakeFocus() 524 …assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.clas… in testInitialize() 527 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/tests/text/src/android/text/style/cts/ |
D | LineBreakConfigSpanTest.kt | 477 var spans = requireNotNull(parceledText.getSpans(1, 2, LineBreakConfigSpan::class.java)) in testLineBreakConfigSpan_parcelable() 482 spans = requireNotNull(parceledText.getSpans(2, 3, LineBreakConfigSpan::class.java)) in testLineBreakConfigSpan_parcelable() 487 spans = requireNotNull(parceledText.getSpans(3, 4, LineBreakConfigSpan::class.java)) in testLineBreakConfigSpan_parcelable() 504 var spans = requireNotNull(text.getSpans(1, 2, LineBreakConfigSpan::class.java)) in testLineBreakConfigSpan_resource() 509 spans = requireNotNull(text.getSpans(2, 3, LineBreakConfigSpan::class.java)) in testLineBreakConfigSpan_resource() 514 spans = requireNotNull(text.getSpans(3, 4, LineBreakConfigSpan::class.java)) in testLineBreakConfigSpan_resource()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ExtractedTextTest.java | 105 spannedText.getSpans(0, spannedText.length(), Annotation.class); in assertTestInstance() 117 spannedHint.getSpans(0, spannedHint.length(), Annotation.class); in assertTestInstance()
|
D | InputMethodSubtypeTest.java | 147 subtypeNameSpannable.getSpans(0, expectedSubtypeName.length(), Object.class); in testSubtypeNameOverrideParcel()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | AlternativeSpansTest.java | 100 assertThat(altSpans.getSpans()).containsExactly(altSpan1, altSpan2, altSpan3).inOrder(); in testAlternativeSpansSetAndGet()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewStyleShortcutTest.java | 129 StyleSpan[] spans = spanned.getSpans(0, spanned.length(), StyleSpan.class); in assertBoldRegion() 147 StyleSpan[] spans = spanned.getSpans(0, spanned.length(), StyleSpan.class); in assertItalicRegion() 164 UnderlineSpan[] spans = spanned.getSpans(0, spanned.length(), UnderlineSpan.class); in assertUnderlineRegion()
|
D | TextViewTest.java | 728 URLSpan[] spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask() 744 spans = spanString.getSpans(0, spanString.length(), URLSpan.class); in testAccessAutoLinkMask() 2613 return spannable.getSpans(at, at, type).length > 0; in hasSpansAtMiddleOfText() 3643 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() 3657 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() 3672 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled() 3689 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() 3724 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenTextIsSpannableAndContainsUrlAndAutoLinkIsEnabled() 3740 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextCompletesPartialUrlAtTheEndOfExistingText() 3757 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinkIfAppendedTextUpdatesUrlAtTheEndOfExistingText() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | PhoneNumberUtilsTest.java | 400 TtsSpan[] ttsSpans = spannable.getSpans(5, spannable.length() - 1, TtsSpan.class); in testAddPhoneTtsSpan() 413 TtsSpan[] ttsSpans = spannable.getSpans(0, spannable.length() - 1, TtsSpan.class); in testGetPhoneTtsSpannable()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfoTest.java | 260 final ReplacementSpan[] actualSpans = receivedString.getSpans(0, receivedString.length(), in testParcelTextImageSpans_haveSameContentDescriptions()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextActionTest.java | 627 .getSpans(0, accessibilityTextWithSpan.length(), type); in findSingleSpanInViewWithText()
|