Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java83 assertEquals(4, spannable.getSpanEnd(null)); in testSetSpan()
89 assertEquals(2, spannable.getSpanEnd(underlineSpan)); in testSetSpan()
116 assertEquals(2, spannable.getSpanEnd(underlineSpan)); in testRemoveSpan()
121 assertEquals(-1, spannable.getSpanEnd(underlineSpan)); in testRemoveSpan()
127 assertEquals(-1, spannable.getSpanEnd(underlineSpan)); in testRemoveSpan()
180 assertEquals(expected[i][2], second.getSpanEnd(secondSpan)); in testSubsequence_copiesSpans()
203 assertEquals(first.getSpanEnd(firstSpan), second.getSpanEnd(secondSpan)); in testCopyConstructor_copiesAllSpans()
DSpannableStringBuilderTest.java145 assertEquals(4, builder.getSpanEnd(null)); in testSetSpan()
150 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testSetSpan()
410 spanEnd, builder.getSpanEnd(spans[0])); in testAppend_textWithSpan()
419 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testClearSpans()
424 assertEquals(-1, builder.getSpanEnd(mUnderlineSpan)); in testClearSpans()
458 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testRemoveSpan()
463 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); in testRemoveSpan()
468 assertEquals(-1, builder.getSpanEnd(mUnderlineSpan)); in testRemoveSpan()
488 assertEquals(3, builder.getSpanEnd(mUnderlineSpan)); in testGetSpanEnd()
489 assertEquals(-1, builder.getSpanEnd(mStrikethroughSpan)); in testGetSpanEnd()
[all …]
DBidiFormatterTest.java270 assertEquals(EN.length(), wrapped.getSpanEnd(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
278 assertEquals(EN.length(), wrapped.getSpanEnd(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
286 assertEquals(EN.length(), wrapped.getSpanEnd(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
294 assertEquals(EN.length(), wrapped.getSpanEnd(RELATIVE_SIZE_SPAN)); in testCharSequenceApis()
DHtmlTest.java74 assertEquals(expectEnd, spanned.getSpanEnd(spans[0])); in verifySingleTagOnWhileString()
401 assertEquals(expectedEnd, spanned.getSpanEnd(spans[0])); in testMarkupFromHtml()
425 assertEquals(5, spanned.getSpanEnd(spans[0])); in testTextAlignCssFromHtml()
429 assertEquals(11, spanned.getSpanEnd(spans[1])); in testTextAlignCssFromHtml()
433 assertEquals(17, spanned.getSpanEnd(spans[2])); in testTextAlignCssFromHtml()
DTextUtilsTest.java287 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat()
289 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat()
316 assertEquals(piece.length(), result.getSpanEnd(spans[0])); in testConcat_NullParameters()
336 assertEquals(result.length(), result.getSpanEnd(spans[0])); in testConcat_twoParagraphSpans()
356 assertEquals(result.length(), result.getSpanEnd(spans[0])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
359 assertEquals(result.length(), result.getSpanEnd(spans[1])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
385 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom()
388 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()
400 assertEquals(source2.length() - 1, dest2.getSpanEnd(urlSpan)); in testCopySpansFrom()
424 assertEquals(dest4.length(), dest4.getSpanEnd(spans[0])); in testCopySpansFrom()
[all …]
DInputFilter_AllCapsTest.java134 assertEquals(1, spannedResult.getSpanEnd(span)); in testFilter_greekWithSpans()
DAlteredCharSequenceTest.java155 public int getSpanEnd(Object tag) { in getSpanEnd() method in AlteredCharSequenceTest.MockSpanned
DSpannableStringBuilderSpanTest.java151 int end = spannable.getSpanEnd(span); in verifySpanPositions()
265 int end = originalSpannable.getSpanEnd(span); in verifyReplacementSpanPositions()
DPrecomputedTextTest.java226 assertEquals(SPAN_END, s.getSpanEnd(SPAN)); in testSpannedInterface_Spanned()
244 assertEquals(SPAN_END, s.getSpanEnd(span)); in testSpannedInterface_Spannable()
278 assertEquals(-1, s.getSpanEnd(SPAN)); in testSpannedInterface_String()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java279 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetLettersWatcher()
289 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testSetLettersWatcher()
314 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetDigitsWatcher()
318 assertEquals(mDialerFilter.getDigits().length(), span.getSpanEnd(mockTextWatcher)); in testSetDigitsWatcher()
333 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetFilterWatcher()
343 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testSetFilterWatcher()
359 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testRemoveFilterWatcher()
369 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testRemoveFilterWatcher()
377 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testRemoveFilterWatcher()
DMultiAutoCompleteTextView_CommaTokenizerTest.java133 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
DTextViewTest.java5610 assertEquals(3, editable.getSpanEnd(underlineSpans[0])); in testSetExtractedText()
5616 assertEquals(3, editable.getSpanEnd(urlSpans[0])); in testSetExtractedText()
6277 assertEquals(indexMap[source.getSpanEnd(span)], result.getSpanEnd(span)); in testAllCaps_SpansArePreserved()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java130 assertEquals(0, spannable.getSpanEnd(span)); in testOnTakeFocus()
175 mSpannable.getSpanEnd(mClickable0)); in testOnKeyDown()
184 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
203 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
204 mSpannable.getSpanEnd(mClickable1)); in testOnKeyDown()
213 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
214 mSpannable.getSpanEnd(mClickable1)); in testOnKeyDown()
517 spannable.getSpanEnd(clickableSpan)); in assertSelectClickableLeftToRight()
522 assertSelection(spannable, spannable.getSpanEnd(clickableSpan), in assertSelectClickableRightToLeft()
DQwertyKeyListenerTest.java220 assertEquals(content.length(), content.getSpanEnd(repl[0])); in testMarkAsReplaced()
227 assertEquals(2, content.getSpanEnd(repl[0])); in testMarkAsReplaced()
DDigitsKeyListenerTest.java116 assertEquals("123".length(), filtered.getSpanEnd(what)); in testFilter1()
195 assertEquals("5123".length(), filtered.getSpanEnd(what)); in testFilter2()
278 assertEquals("51.23".length(), filtered.getSpanEnd(what)); in testFilter3()
364 assertEquals("-51.23".length(), filtered.getSpanEnd(what)); in testFilter4()
478 assertEquals("-\u06F5\u06F1\u066B\u06F2\u06F3".length(), filtered.getSpanEnd(what)); in testFilter4_internationalized()
DNumberKeyListenerTest.java85 assertEquals("12345".length(), filtered.getSpanEnd(what)); in testFilter()
DMetaKeyKeyListenerTest.java443 public int getSpanEnd(Object tag) { in getSpanEnd() method in MetaKeyKeyListenerTest.MockSpannable
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java131 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); in testChooseHeight()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java1036 str.length() - " end".length(), spannable.getSpanEnd(spans[0])); in verifyAddLinksSucceeds()