/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringTest.java | 82 assertEquals(1, spannable.getSpanStart(null)); in testSetSpan() 88 assertEquals(0, spannable.getSpanStart(underlineSpan)); in testSetSpan() 115 assertEquals(0, spannable.getSpanStart(underlineSpan)); in testRemoveSpan() 120 assertEquals(-1, spannable.getSpanStart(underlineSpan)); in testRemoveSpan() 126 assertEquals(-1, spannable.getSpanStart(underlineSpan)); in testRemoveSpan() 179 assertEquals(expected[i][1], second.getSpanStart(secondSpan)); in testSubsequence_copiesSpans() 202 assertEquals(first.getSpanStart(firstSpan), second.getSpanStart(secondSpan)); in testCopyConstructor_copiesAllSpans()
|
D | SpannableStringBuilderTest.java | 144 assertEquals(1, builder.getSpanStart(null)); in testSetSpan() 149 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testSetSpan() 408 spanStart, builder.getSpanStart(spans[0])); in testAppend_textWithSpan() 418 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testClearSpans() 423 assertEquals(-1, builder.getSpanStart(mUnderlineSpan)); in testClearSpans() 432 assertEquals(1, builder.getSpanStart(mUnderlineSpan)); in testGetSpanStart() 433 assertEquals(-1, builder.getSpanStart(mStrikethroughSpan)); in testGetSpanStart() 434 assertEquals(-1, builder.getSpanStart(null)); in testGetSpanStart() 457 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan() 462 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan() [all …]
|
D | BidiFormatterTest.java | 269 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis() 277 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis() 285 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis() 293 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
|
D | HtmlTest.java | 77 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in verifySingleTagOnWhileString() 458 assertEquals(expectedStart, spanned.getSpanStart(spans[0])); in testMarkupFromHtml() 482 assertEquals(0, spanned.getSpanStart(spans[0])); in testTextAlignCssFromHtml() 486 assertEquals(6, spanned.getSpanStart(spans[1])); in testTextAlignCssFromHtml() 490 assertEquals(12, spanned.getSpanStart(spans[2])); in testTextAlignCssFromHtml()
|
D | InputFilter_AllCapsTest.java | 132 assertEquals(0, spannedResult.getSpanStart(span)); in testFilter_greekWithSpans()
|
D | AlteredCharSequenceTest.java | 163 public int getSpanStart(Object tag) { in getSpanStart() method in AlteredCharSequenceTest.MockSpanned
|
D | TextUtilsTest.java | 302 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat() 304 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat() 333 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_NullParameters() 354 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_twoParagraphSpans() 375 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_oneParagraphSpanAndOneInclusiveSpan() 378 assertEquals(string1.length(), result.getSpanStart(spans[1])); in testConcat_oneParagraphSpanAndOneInclusiveSpan() 405 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom() 408 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom() 420 assertEquals(0, dest2.getSpanStart(urlSpan)); in testCopySpansFrom() 442 assertEquals(0, dest4.getSpanStart(spans[0])); in testCopySpansFrom() [all …]
|
D | SpannableStringBuilderSpanTest.java | 150 int start = spannable.getSpanStart(span); in verifySpanPositions() 264 int start = originalSpannable.getSpanStart(span); in verifyReplacementSpanPositions()
|
D | PrecomputedTextTest.java | 274 assertEquals(SPAN_START, s.getSpanStart(SPAN)); in testSpannedInterface_Spanned() 292 assertEquals(SPAN_START, s.getSpanStart(span)); in testSpannedInterface_Spannable() 326 assertEquals(-1, s.getSpanStart(SPAN)); in testSpannedInterface_String()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DialerFilterTest.java | 288 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher() 298 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher() 323 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher() 327 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher() 342 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher() 352 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher() 368 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher() 378 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher() 386 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
|
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 132 assertEquals(0, actual.getSpanStart(what)); in testTerminateToken()
|
D | TextViewStyleShortcutTest.java | 133 actualList.add(new Range(spanned.getSpanStart(span), spanned.getSpanEnd(span))); in assertBoldRegion() 151 actualList.add(new Range(spanned.getSpanStart(span), spanned.getSpanEnd(span))); in assertItalicRegion() 168 actualRanges[i] = new Range(spanned.getSpanStart(span), spanned.getSpanEnd(span)); in assertUnderlineRegion()
|
D | TextViewReceiveContentTest.java | 222 int spanStart = mTextView.getEditableText().getSpanStart(underlineSpan); in testDefaultReceiver_onReceive_styledText() 250 int spanStart = mTextView.getEditableText().getSpanStart(underlineSpan); in testDefaultReceiver_onReceive_styledText_convertToPlainText()
|
D | TextViewTest.java | 5981 assertEquals(1, editable.getSpanStart(underlineSpans[0])); in testSetExtractedText() 5987 assertEquals(2, editable.getSpanStart(urlSpans[0])); in testSetExtractedText() 6648 assertEquals(indexMap[source.getSpanStart(span)], result.getSpanStart(span)); in testAllCaps_SpansArePreserved()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 140 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus() 185 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown() 196 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown() 575 assertSelection(spannable, spannable.getSpanStart(clickableSpan), in assertSelectClickableLeftToRight() 582 spannable.getSpanStart(clickableSpan)); in assertSelectClickableRightToLeft()
|
D | QwertyKeyListenerTest.java | 219 assertEquals(0, content.getSpanStart(repl[0])); in testMarkAsReplaced() 226 assertEquals(1, content.getSpanStart(repl[0])); in testMarkAsReplaced()
|
D | DigitsKeyListenerTest.java | 113 assertEquals(0, filtered.getSpanStart(what)); in testFilter1() 192 assertEquals(0, filtered.getSpanStart(what)); in testFilter2() 275 assertEquals(0, filtered.getSpanStart(what)); in testFilter3() 361 assertEquals(0, filtered.getSpanStart(what)); in testFilter4() 475 assertEquals(0, filtered.getSpanStart(what)); in testFilter4_internationalized()
|
D | NumberKeyListenerTest.java | 82 assertEquals(0, filtered.getSpanStart(what)); in testFilter()
|
D | MetaKeyKeyListenerTest.java | 439 public int getSpanStart(Object tag) { in getSpanStart() method in MetaKeyKeyListenerTest.MockSpannable
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodSubtypeTest.java | 149 assertThat(subtypeNameSpannable.getSpanStart(spans[0])).isEqualTo(3); in testSubtypeNameOverrideParcel()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 1036 "start ".length(), spannable.getSpanStart(spans[0])); in verifyAddLinksSucceeds()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 47890 method public int getSpanStart(Object); 47987 method public int getSpanStart(Object); 48014 method public int getSpanStart(Object); 48035 method public int getSpanStart(Object); 48062 method public int getSpanStart(Object);
|