Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java80 assertEquals(1, spannable.getSpanStart(null)); in testSetSpan()
86 assertEquals(0, spannable.getSpanStart(underlineSpan)); in testSetSpan()
113 assertEquals(0, spannable.getSpanStart(underlineSpan)); in testRemoveSpan()
118 assertEquals(-1, spannable.getSpanStart(underlineSpan)); in testRemoveSpan()
124 assertEquals(-1, spannable.getSpanStart(underlineSpan)); in testRemoveSpan()
177 assertEquals(expected[i][1], second.getSpanStart(secondSpan)); in testSubsequence_copiesSpans()
200 assertEquals(first.getSpanStart(firstSpan), second.getSpanStart(secondSpan)); in testCopyConstructor_copiesAllSpans()
DSpannableStringBuilderTest.java143 assertEquals(1, builder.getSpanStart(null)); in testSetSpan()
148 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testSetSpan()
407 spanStart, builder.getSpanStart(spans[0])); in testAppend_textWithSpan()
417 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testClearSpans()
422 assertEquals(-1, builder.getSpanStart(mUnderlineSpan)); in testClearSpans()
431 assertEquals(1, builder.getSpanStart(mUnderlineSpan)); in testGetSpanStart()
432 assertEquals(-1, builder.getSpanStart(mStrikethroughSpan)); in testGetSpanStart()
433 assertEquals(-1, builder.getSpanStart(null)); in testGetSpanStart()
456 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan()
461 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); in testRemoveSpan()
[all …]
DBidiFormatterTest.java314 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
322 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
330 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
338 assertEquals(0, wrapped.getSpanStart(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
DHtmlTest.java72 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in verifySingleTagOnWhileString()
399 assertEquals(expectedStart, spanned.getSpanStart(spans[0])); in testMarkupFromHtml()
423 assertEquals(0, spanned.getSpanStart(spans[0])); in testTextAlignCssFromHtml()
427 assertEquals(6, spanned.getSpanStart(spans[1])); in testTextAlignCssFromHtml()
431 assertEquals(12, spanned.getSpanStart(spans[2])); in testTextAlignCssFromHtml()
DTextUtilsTest.java285 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat()
287 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
314 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_NullParameters()
334 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_twoParagraphSpans()
354 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
357 assertEquals(string1.length(), result.getSpanStart(spans[1])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
383 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom()
386 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom()
398 assertEquals(0, dest2.getSpanStart(urlSpan)); in testCopySpansFrom()
420 assertEquals(0, dest4.getSpanStart(spans[0])); in testCopySpansFrom()
[all …]
DAlteredCharSequenceTest.java162 public int getSpanStart(Object tag) { in getSpanStart() method in AlteredCharSequenceTest.MockSpanned
DSpannableStringBuilderSpanTest.java149 int start = spannable.getSpanStart(span); in verifySpanPositions()
263 int start = originalSpannable.getSpanStart(span); in verifyReplacementSpanPositions()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java280 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher()
290 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher()
315 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher()
319 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher()
334 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher()
344 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher()
360 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
370 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
378 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
DMultiAutoCompleteTextView_CommaTokenizerTest.java131 assertEquals(0, actual.getSpanStart(what)); in testTerminateToken()
DTextViewTest.java5002 assertEquals(1, editable.getSpanStart(underlineSpans[0])); in testSetExtractedText()
5008 assertEquals(2, editable.getSpanStart(urlSpans[0])); in testSetExtractedText()
5669 assertEquals(indexMap[source.getSpanStart(span)], result.getSpanStart(span)); in testAllCaps_SpansArePreserved()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java128 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus()
173 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
184 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown()
515 assertSelection(spannable, spannable.getSpanStart(clickableSpan), in assertSelectClickableLeftToRight()
522 spannable.getSpanStart(clickableSpan)); in assertSelectClickableRightToLeft()
DQwertyKeyListenerTest.java202 assertEquals(0, content.getSpanStart(repl[0])); in testMarkAsReplaced()
209 assertEquals(1, content.getSpanStart(repl[0])); in testMarkAsReplaced()
DDigitsKeyListenerTest.java114 assertEquals(0, filtered.getSpanStart(what)); in testFilter1()
193 assertEquals(0, filtered.getSpanStart(what)); in testFilter2()
276 assertEquals(0, filtered.getSpanStart(what)); in testFilter3()
362 assertEquals(0, filtered.getSpanStart(what)); in testFilter4()
476 assertEquals(0, filtered.getSpanStart(what)); in testFilter4_internationalized()
DNumberKeyListenerTest.java83 assertEquals(0, filtered.getSpanStart(what)); in testFilter()
DMetaKeyKeyListenerTest.java438 public int getSpanStart(Object tag) { in getSpanStart() method in MetaKeyKeyListenerTest.MockSpannable
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java1000 "start ".length(), spannable.getSpanStart(spans[0])); in verifyAddLinksSucceeds()
/cts/tools/dex-tools/dex/
Dclasses.out.dex75209 public abstract int getSpanStart(
75252 public int getSpanStart(
76848 public int getSpanStart(
77257 public int getSpanStart(
77308 public volatile int getSpanStart(
77530 public int getSpanStart(
77643 public volatile int getSpanStart(
79292 public int getSpanStart(