Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/method/cts/
DMetaKeyKeyListenerTest.java41 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
42 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
47 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
48 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
53 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); in testPressKey()
54 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT); in testPressKey()
66 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); in testReleaseKey()
67 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); in testReleaseKey()
72 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); in testReleaseKey()
73 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); in testReleaseKey()
[all …]
DEditorState.java172 spannable.setSpan(new MockReplacementSpan(), replacementSpanStart, replacementSpanEnd, in setByString()
DDigitsKeyListenerTest.java83 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter1()
161 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter2()
243 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter3()
328 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter4()
DNumberKeyListenerTest.java73 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter()
DLinkMovementMethodTest.java464 mSpannable.setSpan(clickableSpan, start, end, Spanned.SPAN_MARK_MARK); in markClickable()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderTest.java96 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testGetSpanFlags()
97 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testGetSpanFlags()
98 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testGetSpanFlags()
108 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
109 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
110 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
111 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
123 builder.setSpan(mUnderlineSpan, 4, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testSetSpan()
130 builder.setSpan(mUnderlineSpan, -1, 100, Spanned.SPAN_POINT_POINT); in testSetSpan()
136 builder.setSpan(null, 1, 4, Spanned.SPAN_POINT_POINT); in testSetSpan()
[all …]
DSpannableStringTest.java61 spannable.setSpan(null, 1, 4, SpannableString.SPAN_POINT_POINT); in testSetSpan()
67 spannable.setSpan(underlineSpan, 0, 2, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); in testSetSpan()
74 spannable.setSpan(null, 4, 1, SpannableString.SPAN_POINT_POINT); in testSetSpan()
80 spannable.setSpan(underlineSpan, -1, text.length() + 1, in testSetSpan()
93 spannable.setSpan(underlineSpan, 0, 2, 2); in testRemoveSpan()
140 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH); in testSubsequence_copiesSpans()
141 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubsequence_copiesSpans()
142 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY); in testSubsequence_copiesSpans()
167 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copiesAllSpans()
168 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copiesAllSpans()
[all …]
DHtmlTest.java222 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER), in testParagraphStyles()
230 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_OPPOSITE), in testParagraphStyles()
239 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_NORMAL), in testParagraphStyles()
249 s.setSpan(new BulletSpan(), 0, 8, Spanned.SPAN_PARAGRAPH); in testBulletSpan()
250 s.setSpan(new BulletSpan(), 8, 16, Spanned.SPAN_PARAGRAPH); in testBulletSpan()
265 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
271 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
295 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
301 s.setSpan(new StyleSpan(Typeface.ITALIC), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
307 s.setSpan(new TypefaceSpan("monospace"), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
[all …]
DStaticLayoutLineBreakingTest.java228 result.setSpan(getMetricAffectingSpan(), spanStarts[i], spanEnds[i], in spanify()
351 ssb.setSpan(metricAffectingSpan, spanStart, spanEnd, in testWithOneSpan()
376 ssb.setSpan(metricAffectingSpan1, spanStart1, spanEnd1, in testWithTwoSpans()
381 ssb.setSpan(metricAffectingSpan2, spanStart2, spanEnd2, in testWithTwoSpans()
DSpannableStringBuilderSpanTest.java374 spannable.setSpan(mSpans[count], start, end, flag); in initSpans()
383 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans()
557 newText.setSpan(new QuoteSpan(), 0, 1, Spannable.SPAN_PARAGRAPH); in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString()
574 newText.setSpan(new QuoteSpan(), 0, 1, Spannable.SPAN_PARAGRAPH); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineAfter()
DTextUtilsTest.java148 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat()
150 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat()
187 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom()
189 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
209 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testCopySpansFrom()
533 spanString.setSpan(new URLSpan(url), 0, spanString.length(), in testEquals()
544 urlSpanString.setSpan(urlSpan, 0, urlSpanString.length(), in testEquals()
547 bgColorSpanString.setSpan(bgColorSpan, 0, bgColorSpanString.length(), in testEquals()
936 text.setSpan(mockReplacementSpan, POS_FIRST_D800 - 1, text.length() - 1, in testGetOffsetAfter()
997 text.setSpan(mockReplacementSpan, 0, POS_FIRST_DC00 + 1, in testGetOffsetBefore()
[all …]
DLayoutTest.java48 mSpannedText.setSpan(new StrikethroughSpan(), 0, 1, Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in setUp()
DStaticLayoutTest.java1213 text.setSpan(new StyleSpan(Typeface.BOLD),
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextView_CommaTokenizerTest.java126 spannableString.setSpan(what, 0, spannableString.length(), in testTerminateToken()
DTextViewTest.java1345 text.setSpan(span, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSetText_updatesHeightAfterRemovingImageSpan()
1987 spannable.setSpan(new URLSpan("http://example.com"), 0, spannable.length(), 0); in testCutAndPaste_withAndWithoutStyle()
3444 spannable.setSpan(new URLSpan(url), 0, url.length(), 0); in testGetUrls()
3450 spannable.setSpan(new URLSpan(email), 0, email.length(), 0); in testGetUrls()
3459 spannable.setSpan(new Object(), 0, 9, 0); in testGetUrls()
4066 ss.setSpan(new UnderlineSpan(), 0, 2, 0); in testSetExtractedText()
4067 ss.setSpan(new URLSpan("ctstest://TextView/test"), 1, 2, 0); in testSetExtractedText()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DGpsTestActivity.java146 spanText.setSpan(new ForegroundColorSpan(color), start, end, 0); in log()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java61 mSpannable.setSpan(new ForegroundColorSpan(0x123456), 0, 3, 0); in setUp()
/cts/tools/dex-tools/dex/
Dclasses.out.dex76142 public abstract void setSpan(
77275 void setSpan(
77324 public void setSpan(
77450 private void setSpan(
77606 public void setSpan(