Home
last modified time | relevance | path

Searched refs:getSpanEnd (Results 1 – 22 of 22) 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.java78 assertEquals(expectEnd, spanned.getSpanEnd(spans[0])); in verifySingleTagOnWhileString()
459 assertEquals(expectedEnd, spanned.getSpanEnd(spans[0])); in testMarkupFromHtml()
483 assertEquals(5, spanned.getSpanEnd(spans[0])); in testTextAlignCssFromHtml()
487 assertEquals(11, spanned.getSpanEnd(spans[1])); in testTextAlignCssFromHtml()
491 assertEquals(17, spanned.getSpanEnd(spans[2])); in testTextAlignCssFromHtml()
DInputFilter_AllCapsTest.java134 assertEquals(1, spannedResult.getSpanEnd(span)); in testFilter_greekWithSpans()
DAlteredCharSequenceTest.java155 public int getSpanEnd(Object tag) { in getSpanEnd() method in AlteredCharSequenceTest.MockSpanned
DTextUtilsTest.java303 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat()
305 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat()
334 assertEquals(piece.length(), result.getSpanEnd(spans[0])); in testConcat_NullParameters()
355 assertEquals(result.length(), result.getSpanEnd(spans[0])); in testConcat_twoParagraphSpans()
376 assertEquals(result.length(), result.getSpanEnd(spans[0])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
379 assertEquals(result.length(), result.getSpanEnd(spans[1])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
406 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom()
409 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()
421 assertEquals(source2.length() - 1, dest2.getSpanEnd(urlSpan)); in testCopySpansFrom()
445 assertEquals(dest4.length(), dest4.getSpanEnd(spans[0])); in testCopySpansFrom()
[all …]
DSpannableStringBuilderSpanTest.java151 int end = spannable.getSpanEnd(span); in verifySpanPositions()
265 int end = originalSpannable.getSpanEnd(span); in verifyReplacementSpanPositions()
DPrecomputedTextTest.java275 assertEquals(SPAN_END, s.getSpanEnd(SPAN)); in testSpannedInterface_Spanned()
293 assertEquals(SPAN_END, s.getSpanEnd(span)); in testSpannedInterface_Spannable()
327 assertEquals(-1, s.getSpanEnd(SPAN)); in testSpannedInterface_String()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java289 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetLettersWatcher()
299 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testSetLettersWatcher()
324 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetDigitsWatcher()
328 assertEquals(mDialerFilter.getDigits().length(), span.getSpanEnd(mockTextWatcher)); in testSetDigitsWatcher()
343 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetFilterWatcher()
353 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testSetFilterWatcher()
369 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testRemoveFilterWatcher()
379 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testRemoveFilterWatcher()
387 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testRemoveFilterWatcher()
DMultiAutoCompleteTextView_CommaTokenizerTest.java133 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
DTextViewStyleShortcutTest.java133 actualList.add(new Range(spanned.getSpanStart(span), spanned.getSpanEnd(span))); in assertBoldRegion()
151 actualList.add(new Range(spanned.getSpanStart(span), spanned.getSpanEnd(span))); in assertItalicRegion()
168 actualRanges[i] = new Range(spanned.getSpanStart(span), spanned.getSpanEnd(span)); in assertUnderlineRegion()
DTextViewTest.java5982 assertEquals(3, editable.getSpanEnd(underlineSpans[0])); in testSetExtractedText()
5988 assertEquals(3, editable.getSpanEnd(urlSpans[0])); in testSetExtractedText()
6649 assertEquals(indexMap[source.getSpanEnd(span)], result.getSpanEnd(span)); in testAllCaps_SpansArePreserved()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java141 assertEquals(0, spannable.getSpanEnd(span)); in testOnTakeFocus()
186 mSpannable.getSpanEnd(mClickable0)); in testOnKeyDown()
195 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
214 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
215 mSpannable.getSpanEnd(mClickable1)); in testOnKeyDown()
224 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
225 mSpannable.getSpanEnd(mClickable1)); in testOnKeyDown()
576 spannable.getSpanEnd(clickableSpan)); in assertSelectClickableLeftToRight()
581 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.java114 assertEquals("123".length(), filtered.getSpanEnd(what)); in testFilter1()
193 assertEquals("5123".length(), filtered.getSpanEnd(what)); in testFilter2()
276 assertEquals("51.23".length(), filtered.getSpanEnd(what)); in testFilter3()
362 assertEquals("-51.23".length(), filtered.getSpanEnd(what)); in testFilter4()
476 assertEquals("-\u06F5\u06F1\u066B\u06F2\u06F3".length(), filtered.getSpanEnd(what)); in testFilter4_internationalized()
DNumberKeyListenerTest.java83 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.java138 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); in testChooseHeight()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodSubtypeTest.java150 assertThat(subtypeNameSpannable.getSpanEnd(spans[0])).isEqualTo(5); in testSubtypeNameOverrideParcel()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java1038 str.length() - " end".length(), spannable.getSpanEnd(spans[0])); in verifyAddLinksSucceeds()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt47888 method public int getSpanEnd(Object);
47985 method public int getSpanEnd(Object);
48012 method public int getSpanEnd(Object);
48033 method public int getSpanEnd(Object);
48060 method public int getSpanEnd(Object);