Home
last modified time | relevance | path

Searched refs:getSpanEnd (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java57 assertEquals(4, spannable.getSpanEnd(null)); in testSetSpan()
63 assertEquals(2, spannable.getSpanEnd(underlineSpan)); in testSetSpan()
89 assertEquals(2, spannable.getSpanEnd(underlineSpan)); in testRemoveSpan()
94 assertEquals(-1, spannable.getSpanEnd(underlineSpan)); in testRemoveSpan()
100 assertEquals(-1, spannable.getSpanEnd(underlineSpan)); in testRemoveSpan()
DSpannableStringBuilderTest.java132 assertEquals(4, builder.getSpanEnd(null)); in testSetSpan()
137 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testSetSpan()
379 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testClearSpans()
384 assertEquals(-1, builder.getSpanEnd(mUnderlineSpan)); in testClearSpans()
415 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testRemoveSpan()
420 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testRemoveSpan()
425 assertEquals(-1, builder.getSpanEnd(mUnderlineSpan)); in testRemoveSpan()
443 assertEquals(3, builder.getSpanEnd(mUnderlineSpan)); in testGetSpanEnd()
444 assertEquals(-1, builder.getSpanEnd(mStrikethroughSpan)); in testGetSpanEnd()
445 assertEquals(-1, builder.getSpanEnd(null)); in testGetSpanEnd()
DAlteredCharSequenceTest.java143 public int getSpanEnd(Object tag) { in getSpanEnd() method in AlteredCharSequenceTest.MockSpanned
DTextUtilsTest.java165 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat()
167 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat()
205 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom()
208 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()
220 assertEquals(source2.length() - 1, dest2.getSpanEnd(urlSpan)); in testCopySpansFrom()
244 assertEquals(dest4.length(), dest4.getSpanEnd(spans[0])); in testCopySpansFrom()
1857 assertEquals(urlSpanEnd, ret.getSpanEnd(spans[0])); in testWriteToParcel()
1883 assertEquals(urlSpanEnd, ret.getSpanEnd(spans[0])); in testWriteToParcel()
1893 assertEquals(textAppearanceSpanEnd, ret.getSpanEnd(spans[1])); in testWriteToParcel()
DSpannableStringBuilderSpanTest.java132 int end = spannable.getSpanEnd(span); in checkSpanPositions()
246 int end = originalSpannable.getSpanEnd(span); in checkReplacementSpanPositions()
DHtmlTest.java59 assertEquals(expectEnd, spanned.getSpanEnd(spans[0])); in assertSingleTagOnWhileString()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java270 assertEquals(-1, span.getSpanEnd(tw)); in testSetLettersWatcher()
279 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); in testSetLettersWatcher()
302 assertEquals(-1, span.getSpanEnd(tw)); in testSetDigitsWatcher()
306 assertEquals(mDialerFilter.getDigits().length(), span.getSpanEnd(tw)); in testSetDigitsWatcher()
319 assertEquals(-1, span.getSpanEnd(tw)); in testSetFilterWatcher()
328 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); in testSetFilterWatcher()
342 assertEquals(-1, span.getSpanEnd(tw)); in testRemoveFilterWatcher()
351 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); in testRemoveFilterWatcher()
358 assertEquals(-1, span.getSpanEnd(tw)); in testRemoveFilterWatcher()
DMultiAutoCompleteTextView_CommaTokenizerTest.java132 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java109 assertEquals(0, spannable.getSpanEnd(span)); in testOnTakeFocus()
152 mSpannable.getSpanEnd(mClickable0)); in testOnKeyDown()
161 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
180 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
181 mSpannable.getSpanEnd(mClickable1)); in testOnKeyDown()
190 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
191 mSpannable.getSpanEnd(mClickable1)); in testOnKeyDown()
498 spannable.getSpanEnd(clickableSpan)); in assertSelectClickableLeftToRight()
503 assertSelection(spannable, spannable.getSpanEnd(clickableSpan), in assertSelectClickableRightToLeft()
DQwertyKeyListenerTest.java182 assertEquals(content.length(), content.getSpanEnd(repl[0])); in testMarkAsReplaced()
189 assertEquals(2, content.getSpanEnd(repl[0])); in testMarkAsReplaced()
DDigitsKeyListenerTest.java80 assertEquals("123".length(), filtered.getSpanEnd(what)); in testFilter1()
158 assertEquals("5123".length(), filtered.getSpanEnd(what)); in testFilter2()
240 assertEquals("51.23".length(), filtered.getSpanEnd(what)); in testFilter3()
325 assertEquals("-51.23".length(), filtered.getSpanEnd(what)); in testFilter4()
DNumberKeyListenerTest.java73 assertEquals("12345".length(), filtered.getSpanEnd(what)); in testFilter()
DMetaKeyKeyListenerTest.java384 public int getSpanEnd(Object tag) { in getSpanEnd() method in MetaKeyKeyListenerTest.MockSpannable
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java110 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); in testChooseHeight()