/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 | 73 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in verifySingleTagOnWhileString() 400 assertEquals(expectedStart, spanned.getSpanStart(spans[0])); in testMarkupFromHtml() 424 assertEquals(0, spanned.getSpanStart(spans[0])); in testTextAlignCssFromHtml() 428 assertEquals(6, spanned.getSpanStart(spans[1])); in testTextAlignCssFromHtml() 432 assertEquals(12, spanned.getSpanStart(spans[2])); in testTextAlignCssFromHtml()
|
D | TextUtilsTest.java | 286 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat() 288 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat() 315 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_NullParameters() 335 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_twoParagraphSpans() 355 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_oneParagraphSpanAndOneInclusiveSpan() 358 assertEquals(string1.length(), result.getSpanStart(spans[1])); in testConcat_oneParagraphSpanAndOneInclusiveSpan() 384 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom() 387 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom() 399 assertEquals(0, dest2.getSpanStart(urlSpan)); in testCopySpansFrom() 421 assertEquals(0, dest4.getSpanStart(spans[0])); in testCopySpansFrom() [all …]
|
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 | SpannableStringBuilderSpanTest.java | 150 int start = spannable.getSpanStart(span); in verifySpanPositions() 264 int start = originalSpannable.getSpanStart(span); in verifyReplacementSpanPositions()
|
D | PrecomputedTextTest.java | 225 assertEquals(SPAN_START, s.getSpanStart(SPAN)); in testSpannedInterface_Spanned() 243 assertEquals(SPAN_START, s.getSpanStart(span)); in testSpannedInterface_Spannable() 277 assertEquals(-1, s.getSpanStart(SPAN)); in testSpannedInterface_String()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DialerFilterTest.java | 278 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher() 288 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher() 313 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher() 317 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher() 332 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher() 342 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher() 358 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher() 368 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher() 376 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
|
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 132 assertEquals(0, actual.getSpanStart(what)); in testTerminateToken()
|
D | TextViewTest.java | 5609 assertEquals(1, editable.getSpanStart(underlineSpans[0])); in testSetExtractedText() 5615 assertEquals(2, editable.getSpanStart(urlSpans[0])); in testSetExtractedText() 6276 assertEquals(indexMap[source.getSpanStart(span)], result.getSpanStart(span)); in testAllCaps_SpansArePreserved()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 129 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus() 174 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown() 185 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown() 516 assertSelection(spannable, spannable.getSpanStart(clickableSpan), in assertSelectClickableLeftToRight() 523 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 | 115 assertEquals(0, filtered.getSpanStart(what)); in testFilter1() 194 assertEquals(0, filtered.getSpanStart(what)); in testFilter2() 277 assertEquals(0, filtered.getSpanStart(what)); in testFilter3() 363 assertEquals(0, filtered.getSpanStart(what)); in testFilter4() 477 assertEquals(0, filtered.getSpanStart(what)); in testFilter4_internationalized()
|
D | NumberKeyListenerTest.java | 84 assertEquals(0, filtered.getSpanStart(what)); in testFilter()
|
D | MetaKeyKeyListenerTest.java | 439 public int getSpanStart(Object tag) { in getSpanStart() method in MetaKeyKeyListenerTest.MockSpannable
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 1034 "start ".length(), spannable.getSpanStart(spans[0])); in verifyAddLinksSucceeds()
|