Home
last modified time | relevance | path

Searched refs:getSpanStart (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java56 assertEquals(1, spannable.getSpanStart(null)); in testSetSpan()
62 assertEquals(0, spannable.getSpanStart(underlineSpan)); in testSetSpan()
88 assertEquals(0, spannable.getSpanStart(underlineSpan)); in testRemoveSpan()
93 assertEquals(-1, spannable.getSpanStart(underlineSpan)); in testRemoveSpan()
99 assertEquals(-1, spannable.getSpanStart(underlineSpan)); in testRemoveSpan()
DSpannableStringBuilderTest.java131 assertEquals(1, builder.getSpanStart(null)); in testSetSpan()
136 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testSetSpan()
378 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testClearSpans()
383 assertEquals(-1, builder.getSpanStart(mUnderlineSpan)); in testClearSpans()
391 assertEquals(1, builder.getSpanStart(mUnderlineSpan)); in testGetSpanStart()
392 assertEquals(-1, builder.getSpanStart(mStrikethroughSpan)); in testGetSpanStart()
393 assertEquals(-1, builder.getSpanStart(null)); in testGetSpanStart()
414 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan()
419 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan()
424 assertEquals(-1, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan()
DAlteredCharSequenceTest.java149 public int getSpanStart(Object tag) { in getSpanStart() method in AlteredCharSequenceTest.MockSpanned
DTextUtilsTest.java164 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat()
166 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
204 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom()
207 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom()
219 assertEquals(0, dest2.getSpanStart(urlSpan)); in testCopySpansFrom()
241 assertEquals(0, dest4.getSpanStart(spans[0])); in testCopySpansFrom()
1856 assertEquals(urlSpanStart, ret.getSpanStart(spans[0])); in testWriteToParcel()
1882 assertEquals(urlSpanStart, ret.getSpanStart(spans[0])); in testWriteToParcel()
1892 assertEquals(textAppearanceSpanStart, ret.getSpanStart(spans[1])); in testWriteToParcel()
DSpannableStringBuilderSpanTest.java131 int start = spannable.getSpanStart(span); in checkSpanPositions()
245 int start = originalSpannable.getSpanStart(span); in checkReplacementSpanPositions()
DHtmlTest.java58 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in assertSingleTagOnWhileString()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java269 assertEquals(-1, span.getSpanStart(tw)); in testSetLettersWatcher()
278 assertEquals(0, span.getSpanStart(tw)); in testSetLettersWatcher()
301 assertEquals(-1, span.getSpanStart(tw)); in testSetDigitsWatcher()
305 assertEquals(0, span.getSpanStart(tw)); in testSetDigitsWatcher()
318 assertEquals(-1, span.getSpanStart(tw)); in testSetFilterWatcher()
327 assertEquals(0, span.getSpanStart(tw)); in testSetFilterWatcher()
341 assertEquals(-1, span.getSpanStart(tw)); in testRemoveFilterWatcher()
350 assertEquals(0, span.getSpanStart(tw)); in testRemoveFilterWatcher()
357 assertEquals(-1, span.getSpanStart(tw)); in testRemoveFilterWatcher()
DMultiAutoCompleteTextView_CommaTokenizerTest.java131 assertEquals(0, actual.getSpanStart(what)); in testTerminateToken()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java108 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus()
151 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
162 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown()
497 assertSelection(spannable, spannable.getSpanStart(clickableSpan), in assertSelectClickableLeftToRight()
504 spannable.getSpanStart(clickableSpan)); in assertSelectClickableRightToLeft()
DQwertyKeyListenerTest.java181 assertEquals(0, content.getSpanStart(repl[0])); in testMarkAsReplaced()
188 assertEquals(1, content.getSpanStart(repl[0])); in testMarkAsReplaced()
DDigitsKeyListenerTest.java79 assertEquals(0, filtered.getSpanStart(what)); in testFilter1()
157 assertEquals(0, filtered.getSpanStart(what)); in testFilter2()
239 assertEquals(0, filtered.getSpanStart(what)); in testFilter3()
324 assertEquals(0, filtered.getSpanStart(what)); in testFilter4()
DNumberKeyListenerTest.java72 assertEquals(0, filtered.getSpanStart(what)); in testFilter()
DMetaKeyKeyListenerTest.java380 public int getSpanStart(Object tag) { in getSpanStart() method in MetaKeyKeyListenerTest.MockSpannable