Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java82 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()
DSpannableStringBuilderTest.java144 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 …]
DBidiFormatterTest.java269 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()
DHtmlTest.java73 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()
DTextUtilsTest.java286 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 …]
DInputFilter_AllCapsTest.java132 assertEquals(0, spannedResult.getSpanStart(span)); in testFilter_greekWithSpans()
DAlteredCharSequenceTest.java163 public int getSpanStart(Object tag) { in getSpanStart() method in AlteredCharSequenceTest.MockSpanned
DSpannableStringBuilderSpanTest.java150 int start = spannable.getSpanStart(span); in verifySpanPositions()
264 int start = originalSpannable.getSpanStart(span); in verifyReplacementSpanPositions()
DPrecomputedTextTest.java225 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/
DDialerFilterTest.java278 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()
DMultiAutoCompleteTextView_CommaTokenizerTest.java132 assertEquals(0, actual.getSpanStart(what)); in testTerminateToken()
DTextViewTest.java5609 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/
DLinkMovementMethodTest.java129 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()
DQwertyKeyListenerTest.java219 assertEquals(0, content.getSpanStart(repl[0])); in testMarkAsReplaced()
226 assertEquals(1, content.getSpanStart(repl[0])); in testMarkAsReplaced()
DDigitsKeyListenerTest.java115 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()
DNumberKeyListenerTest.java84 assertEquals(0, filtered.getSpanStart(what)); in testFilter()
DMetaKeyKeyListenerTest.java439 public int getSpanStart(Object tag) { in getSpanStart() method in MetaKeyKeyListenerTest.MockSpannable
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java1034 "start ".length(), spannable.getSpanStart(spans[0])); in verifyAddLinksSucceeds()