Home
last modified time | relevance | path

Searched refs:span (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java133 Object span = mSpanSet.mSpans[count]; in checkSpanPositions() local
136 int start = spannable.getSpanStart(span); in checkSpanPositions()
137 int end = spannable.getSpanEnd(span); in checkSpanPositions()
157 mSpanSet.mRecorder.assertRemoved(span, originalStart, originalEnd); in checkSpanPositions()
230 mSpanSet.mRecorder.assertChanged(span, originalStart, originalEnd, start, end); in checkSpanPositions()
232 mSpanSet.mRecorder.assertUnmodified(span); in checkSpanPositions()
247 Object span = mReplacementSpanSet.mSpans[count]; in checkReplacementSpanPositions() local
250 int start = originalSpannable.getSpanStart(span); in checkReplacementSpanPositions()
251 int end = originalSpannable.getSpanEnd(span); in checkReplacementSpanPositions()
260 mReplacementSpanSet.mRecorder.assertUnmodified(span); in checkReplacementSpanPositions()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DDialerFilterTest.java268 Spannable span = (Spannable) mDialerFilter.getLetters(); in testSetLettersWatcher() local
269 assertEquals(-1, span.getSpanStart(tw)); in testSetLettersWatcher()
270 assertEquals(-1, span.getSpanEnd(tw)); in testSetLettersWatcher()
277 span = (Spannable) mDialerFilter.getLetters(); in testSetLettersWatcher()
278 assertEquals(0, span.getSpanStart(tw)); in testSetLettersWatcher()
279 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); in testSetLettersWatcher()
280 assertEquals("ANDROID", span.toString()); in testSetLettersWatcher()
300 Spannable span = (Spannable) mDialerFilter.getDigits(); in testSetDigitsWatcher() local
301 assertEquals(-1, span.getSpanStart(tw)); in testSetDigitsWatcher()
302 assertEquals(-1, span.getSpanEnd(tw)); in testSetDigitsWatcher()
[all …]
DTableRow_LayoutParamsTest.java62 assertEquals(1, layoutParams.span); in testConstructor()
70 assertEquals(1, layoutParams.span); in testConstructor()
75 assertEquals(1, layoutParams.span); in testConstructor()
79 assertEquals(1, layoutParams.span); in testConstructor()
85 assertEquals(0, layoutParams.span); in testConstructor()
91 assertEquals(0, layoutParams.span); in testConstructor()
102 assertEquals(2, layoutParams.span); in testConstructor()
DTextViewTest.java1344 ImageSpan span = new ImageSpan(drawable); in testSetText_updatesHeightAfterRemovingImageSpan() local
1345 text.setSpan(span, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSetText_updatesHeightAfterRemovingImageSpan()
1360 text.removeSpan(span); in testSetText_updatesHeightAfterRemovingImageSpan()
/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java52 final SuggestionSpan span = new SuggestionSpan(locale, new String[0], in checkGetLocaleObject() local
56 assertEquals(toWellFormedLocale(locale), span.getLocaleObject()); in checkGetLocaleObject()
57 assertEquals(getNonNullLocaleString(locale), span.getLocale()); in checkGetLocaleObject()
59 final SuggestionSpan cloned = cloneViaParcel(span); in checkGetLocaleObject()
60 assertEquals(span, cloned); in checkGetLocaleObject()
DLocaleSpanTest.java30 final LocaleSpan span = new LocaleSpan(locales); in checkGetLocales() local
31 assertEquals(locales.get(0), span.getLocale()); in checkGetLocales()
32 assertEquals(locales, span.getLocales()); in checkGetLocales()
34 final LocaleSpan cloned = cloneViaParcel(span); in checkGetLocales()
DTtsSpanTest.java57 TtsSpan span = new TtsSpan("test.type.three", bundle); in testDescribeContents() local
58 span.describeContents(); in testDescribeContents()
63 TtsSpan span = new TtsSpan("test.type.four", bundle); in testGetSpanTypeId() local
64 span.getSpanTypeId(); in testGetSpanTypeId()
71 TtsSpan span = new TtsSpan("test.type.five", bundle); in testWriteAndReadParcel() local
72 span.writeToParcel(p, 0); in testWriteAndReadParcel()
/cts/tests/tests/text/src/android/text/method/cts/
DDialerKeyListenerTest.java36 SpannableString span = new SpannableString(""); // no meta spans in testLookup() local
41 assertEquals(keyChar, mockDialerKeyListener.lookup(keyEvent, span)); in testLookup()
48 mockDialerKeyListener.lookup(null, span); in testLookup()
DLinkMovementMethodTest.java109 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0]; in testOnTakeFocus() local
110 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus()
111 assertEquals(0, spannable.getSpanEnd(span)); in testOnTakeFocus()
112 assertEquals(Spanned.SPAN_POINT_POINT, spannable.getSpanFlags(span)); in testOnTakeFocus()
/cts/tools/dex-tools/dex/
Dclasses.out.dex107928 public int span