/cts/tests/tests/text/src/android/text/method/cts/ |
D | MetaKeyKeyListenerTest.java | 41 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 …]
|
D | DigitsKeyListenerTest.java | 74 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter1() 152 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter2() 234 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter3() 319 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter4()
|
D | NumberKeyListenerTest.java | 67 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter()
|
D | LinkMovementMethodTest.java | 462 mSpannable.setSpan(clickableSpan, start, end, Spanned.SPAN_MARK_MARK); in markClickable()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderTest.java | 90 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testGetSpanFlags() 91 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testGetSpanFlags() 92 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testGetSpanFlags() 102 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() 103 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() 104 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() 105 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() 117 builder.setSpan(mUnderlineSpan, 4, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testSetSpan() 124 builder.setSpan(mUnderlineSpan, -1, 100, Spanned.SPAN_POINT_POINT); in testSetSpan() 130 builder.setSpan(null, 1, 4, Spanned.SPAN_POINT_POINT); in testSetSpan() [all …]
|
D | HtmlTest.java | 134 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 139 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 160 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 165 s.setSpan(new StyleSpan(Typeface.ITALIC), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 170 s.setSpan(new TypefaceSpan("monospace"), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 175 s.setSpan(new SuperscriptSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 180 s.setSpan(new SubscriptSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 185 s.setSpan(new UnderlineSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 190 s.setSpan(new StrikethroughSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 195 s.setSpan(new URLSpan("http://www.google.com"), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
|
D | SpannableStringTest.java | 55 spannable.setSpan(null, 1, 4, SpannableString.SPAN_POINT_POINT); in testSetSpan() 61 spannable.setSpan(underlineSpan, 0, 2, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); in testSetSpan() 68 spannable.setSpan(null, 4, 1, SpannableString.SPAN_POINT_POINT); in testSetSpan() 74 spannable.setSpan(underlineSpan, -1, text.length() + 1, in testSetSpan() 87 spannable.setSpan(underlineSpan, 0, 2, 2); in testRemoveSpan()
|
D | StaticLayoutLineBreakingTest.java | 228 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()
|
D | TextUtilsTest.java | 151 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat() 153 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat() 190 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom() 192 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom() 212 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testCopySpansFrom() 536 spanString.setSpan(new URLSpan(url), 0, spanString.length(), in testEquals() 547 urlSpanString.setSpan(urlSpan, 0, urlSpanString.length(), in testEquals() 550 bgColorSpanString.setSpan(bgColorSpan, 0, bgColorSpanString.length(), in testEquals() 939 text.setSpan(mockReplacementSpan, POS_FIRST_D800 - 1, text.length() - 1, in testGetOffsetAfter() 1000 text.setSpan(mockReplacementSpan, 0, POS_FIRST_DC00 + 1, in testGetOffsetBefore() [all …]
|
D | SpannableStringBuilderSpanTest.java | 369 spannable.setSpan(mSpans[count], start, end, flag); in initSpans() 378 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans()
|
D | LayoutTest.java | 48 mSpannedText.setSpan(new StrikethroughSpan(), 0, 1, Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in setUp()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 126 spannableString.setSpan(what, 0, spannableString.length(), in testTerminateToken()
|
D | TextViewTest.java | 1741 spannable.setSpan(new URLSpan("http://example.com"), 0, spannable.length(), 0); in testCutAndPaste_withAndWithoutStyle() 2917 spannable.setSpan(new URLSpan(url), 0, url.length(), 0); in testGetUrls() 2923 spannable.setSpan(new URLSpan(email), 0, email.length(), 0); in testGetUrls() 2932 spannable.setSpan(new Object(), 0, 9, 0); in testGetUrls()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | GpsTestActivity.java | 146 spanText.setSpan(new ForegroundColorSpan(color), start, end, 0); in log()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 61 mSpannable.setSpan(new ForegroundColorSpan(0x123456), 0, 3, 0); in setUp()
|