/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringTest.java | 57 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()
|
D | SpannableStringBuilderTest.java | 132 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()
|
D | AlteredCharSequenceTest.java | 143 public int getSpanEnd(Object tag) { in getSpanEnd() method in AlteredCharSequenceTest.MockSpanned
|
D | TextUtilsTest.java | 165 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()
|
D | SpannableStringBuilderSpanTest.java | 132 int end = spannable.getSpanEnd(span); in checkSpanPositions() 246 int end = originalSpannable.getSpanEnd(span); in checkReplacementSpanPositions()
|
D | HtmlTest.java | 59 assertEquals(expectEnd, spanned.getSpanEnd(spans[0])); in assertSingleTagOnWhileString()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DialerFilterTest.java | 270 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()
|
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 132 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 109 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()
|
D | QwertyKeyListenerTest.java | 182 assertEquals(content.length(), content.getSpanEnd(repl[0])); in testMarkAsReplaced() 189 assertEquals(2, content.getSpanEnd(repl[0])); in testMarkAsReplaced()
|
D | DigitsKeyListenerTest.java | 80 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()
|
D | NumberKeyListenerTest.java | 73 assertEquals("12345".length(), filtered.getSpanEnd(what)); in testFilter()
|
D | MetaKeyKeyListenerTest.java | 384 public int getSpanEnd(Object tag) { in getSpanEnd() method in MetaKeyKeyListenerTest.MockSpannable
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | DrawableMarginSpanTest.java | 110 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); in testChooseHeight()
|