Home
last modified time | relevance | path

Searched refs:getSpanStart (Results 1 – 22 of 22) 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.java77 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in verifySingleTagOnWhileString()
458 assertEquals(expectedStart, spanned.getSpanStart(spans[0])); in testMarkupFromHtml()
482 assertEquals(0, spanned.getSpanStart(spans[0])); in testTextAlignCssFromHtml()
486 assertEquals(6, spanned.getSpanStart(spans[1])); in testTextAlignCssFromHtml()
490 assertEquals(12, spanned.getSpanStart(spans[2])); in testTextAlignCssFromHtml()
DInputFilter_AllCapsTest.java132 assertEquals(0, spannedResult.getSpanStart(span)); in testFilter_greekWithSpans()
DAlteredCharSequenceTest.java163 public int getSpanStart(Object tag) { in getSpanStart() method in AlteredCharSequenceTest.MockSpanned
DTextUtilsTest.java302 assertEquals(0, strResult.getSpanStart(urlSpan)); in testConcat()
304 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
333 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_NullParameters()
354 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_twoParagraphSpans()
375 assertEquals(0, result.getSpanStart(spans[0])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
378 assertEquals(string1.length(), result.getSpanStart(spans[1])); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
405 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom()
408 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom()
420 assertEquals(0, dest2.getSpanStart(urlSpan)); in testCopySpansFrom()
442 assertEquals(0, dest4.getSpanStart(spans[0])); in testCopySpansFrom()
[all …]
DSpannableStringBuilderSpanTest.java150 int start = spannable.getSpanStart(span); in verifySpanPositions()
264 int start = originalSpannable.getSpanStart(span); in verifyReplacementSpanPositions()
DPrecomputedTextTest.java274 assertEquals(SPAN_START, s.getSpanStart(SPAN)); in testSpannedInterface_Spanned()
292 assertEquals(SPAN_START, s.getSpanStart(span)); in testSpannedInterface_Spannable()
326 assertEquals(-1, s.getSpanStart(SPAN)); in testSpannedInterface_String()
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java288 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher()
298 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher()
323 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher()
327 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher()
342 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher()
352 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetFilterWatcher()
368 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
378 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
386 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testRemoveFilterWatcher()
DMultiAutoCompleteTextView_CommaTokenizerTest.java132 assertEquals(0, actual.getSpanStart(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()
DTextViewReceiveContentTest.java222 int spanStart = mTextView.getEditableText().getSpanStart(underlineSpan); in testDefaultReceiver_onReceive_styledText()
250 int spanStart = mTextView.getEditableText().getSpanStart(underlineSpan); in testDefaultReceiver_onReceive_styledText_convertToPlainText()
DTextViewTest.java5981 assertEquals(1, editable.getSpanStart(underlineSpans[0])); in testSetExtractedText()
5987 assertEquals(2, editable.getSpanStart(urlSpans[0])); in testSetExtractedText()
6648 assertEquals(indexMap[source.getSpanStart(span)], result.getSpanStart(span)); in testAllCaps_SpansArePreserved()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java140 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus()
185 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
196 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown()
575 assertSelection(spannable, spannable.getSpanStart(clickableSpan), in assertSelectClickableLeftToRight()
582 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.java113 assertEquals(0, filtered.getSpanStart(what)); in testFilter1()
192 assertEquals(0, filtered.getSpanStart(what)); in testFilter2()
275 assertEquals(0, filtered.getSpanStart(what)); in testFilter3()
361 assertEquals(0, filtered.getSpanStart(what)); in testFilter4()
475 assertEquals(0, filtered.getSpanStart(what)); in testFilter4_internationalized()
DNumberKeyListenerTest.java82 assertEquals(0, filtered.getSpanStart(what)); in testFilter()
DMetaKeyKeyListenerTest.java439 public int getSpanStart(Object tag) { in getSpanStart() method in MetaKeyKeyListenerTest.MockSpannable
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodSubtypeTest.java149 assertThat(subtypeNameSpannable.getSpanStart(spans[0])).isEqualTo(3); in testSubtypeNameOverrideParcel()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java1036 "start ".length(), spannable.getSpanStart(spans[0])); in verifyAddLinksSucceeds()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt47890 method public int getSpanStart(Object);
47987 method public int getSpanStart(Object);
48014 method public int getSpanStart(Object);
48035 method public int getSpanStart(Object);
48062 method public int getSpanStart(Object);