Home
last modified time | relevance | path

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

123

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java81 spannable.setSpan(null, 1, 4, SpannableString.SPAN_POINT_POINT); in testSetSpan()
87 spannable.setSpan(underlineSpan, 0, 2, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); in testSetSpan()
94 spannable.setSpan(null, 4, 1, SpannableString.SPAN_POINT_POINT); in testSetSpan()
100 spannable.setSpan(underlineSpan, -1, text.length() + 1, in testSetSpan()
114 spannable.setSpan(underlineSpan, 0, 2, 2); in testRemoveSpan()
162 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH); in testSubsequence_copiesSpans()
163 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubsequence_copiesSpans()
164 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY); in testSubsequence_copiesSpans()
188 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copiesAllSpans()
189 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copiesAllSpans()
[all …]
DSpannableStringBuilderTest.java101 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testGetSpanFlags()
102 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testGetSpanFlags()
103 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testGetSpanFlags()
114 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
115 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
116 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
117 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
130 builder.setSpan(mUnderlineSpan, 4, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testSetSpan()
137 builder.setSpan(mUnderlineSpan, -1, 100, Spanned.SPAN_POINT_POINT); in testSetSpan()
143 builder.setSpan(null, 1, 4, Spanned.SPAN_POINT_POINT); in testSetSpan()
[all …]
DTextShaperTest.java93 text.setSpan(new AbsoluteSizeSpan(240), 0, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in shapeText_multiStyle()
94 text.setSpan(new TypefaceSpan("serif"), 7, 13, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in shapeText_multiStyle()
187 text.setSpan(new AbsoluteSizeSpan(32), 3, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyMultiStyle()
188 text.setSpan(new ForegroundColorSpan(Color.RED), 5, 10, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyMultiStyle()
189 text.setSpan(new TypefaceSpan("serif"), 6, 14, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyMultiStyle()
219 text.setSpan(new AbsoluteSizeSpan(32), 3, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyBidiMultiStyle()
220 text.setSpan(new ForegroundColorSpan(Color.RED), 5, 10, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyBidiMultiStyle()
221 text.setSpan(new TypefaceSpan("serif"), 6, 14, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyBidiMultiStyle()
233 text.setSpan(new AbsoluteSizeSpan(32), 3, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyBidi2MultiStyle()
234 text.setSpan(new ForegroundColorSpan(Color.RED), 5, 10, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDrawConsistencyBidi2MultiStyle()
[all …]
DHtmlTest.java310 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER), in testParagraphStyles()
318 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_OPPOSITE), in testParagraphStyles()
327 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_NORMAL), in testParagraphStyles()
338 s.setSpan(new BulletSpan(), 0, 8, Spanned.SPAN_PARAGRAPH); in testBulletSpan()
339 s.setSpan(new BulletSpan(), 8, 16, Spanned.SPAN_PARAGRAPH); in testBulletSpan()
355 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
361 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
387 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
393 s.setSpan(new StyleSpan(Typeface.ITALIC), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
399 s.setSpan(new TypefaceSpan("monospace"), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
[all …]
DSpannedTest.java76 text.setSpan(new QuoteSpan(), 0, 4, flags); in testNextSpanTransition()
77 text.setSpan(new LocaleSpan((Locale) null), 2, 7, flags); in testNextSpanTransition()
78 text.setSpan(new UnderlineSpan(), 5, text.length(), flags); in testNextSpanTransition()
DLayoutClusterCountTest.kt183 ss.setSpan(BackgroundColorSpan(Color.BLUE), 1, 3, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testClusterCount_MultiStyle()
186 ss.setSpan(LocaleSpan(Locale.JAPANESE), 4, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testClusterCount_MultiStyle()
189 ss.setSpan(RelativeSizeSpan(1.5f), 2, 10, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testClusterCount_MultiStyle()
DPrecomputedTextTest.java83 ssb.setSpan(SPAN, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in ssb.setSpan()
289 s.setSpan(span, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testSpannedInterface_Spannable()
308 s.setSpan(SPAN, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testSpannedInterface_Spannable_setSpan_MetricsAffectingSpan()
401 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, in testGetWidth_multiStyle()
403 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, in testGetWidth_multiStyle()
428 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, in testGetWidth_multiStyle2()
430 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, in testGetWidth_multiStyle2()
432 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, in testGetWidth_multiStyle2()
562 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, in testGetBounds_multiStyle()
564 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, in testGetBounds_multiStyle()
[all …]
DStaticLayoutLineBreakingTest.java223 result.setSpan(getMetricAffectingSpan(), sSpanStarts[i], sSpanEnds[i], in spanify()
353 ssb.setSpan(metricAffectingSpan, spanStart, spanEnd, in testWithOneSpan()
379 ssb.setSpan(metricAffectingSpan1, spanStart1, spanEnd1, in testWithTwoSpans()
384 ssb.setSpan(metricAffectingSpan2, spanStart2, spanEnd2, in testWithTwoSpans()
DSpannableStringBuilderSpanTest.java388 spannable.setSpan(mSpans[count], start, end, flag); in initSpans()
397 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans()
566 newText.setSpan(new QuoteSpan(), 0, 1, Spannable.SPAN_PARAGRAPH); in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString()
582 newText.setSpan(new QuoteSpan(), 0, 1, Spannable.SPAN_PARAGRAPH); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineAfter()
597 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
DStaticLayoutLineBreakingNoBreakSpanTest.kt79 setSpan(LineBreakConfigSpan.createNoBreakSpan(), 0, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE) in testLineBreakPreventLineBreak()
DTextUtilsTest.java289 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat()
291 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat()
327 piece.setSpan(span, 0, piece.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testConcat_NullParameters()
346 string1.setSpan(span1, 0, string1.length(), Spanned.SPAN_PARAGRAPH); in testConcat_twoParagraphSpans()
347 string2.setSpan(span2, 0, string2.length(), Spanned.SPAN_PARAGRAPH); in testConcat_twoParagraphSpans()
367 string1.setSpan(span1, 0, string1.length(), Spanned.SPAN_PARAGRAPH); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
368 string2.setSpan(span2, 0, string2.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
391 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom()
393 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
413 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testCopySpansFrom()
[all …]
DLayoutDrawOrderTest.java172 ss.setSpan(span, 4, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
202 ss.setSpan(span, 4, 8, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background()
DStaticLayoutTest.java1243 text.setSpan(new StyleSpan(Typeface.BOLD),
1278 spannable.setSpan(new Object(), 0, text.length(), SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE);
1560 ssb.setSpan(firstStyleSpan, 0, 13, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1561 ssb.setSpan(firstReplacement, 0, 13, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1562 ssb.setSpan(secondStyleSpan, 13, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1563 ssb.setSpan(secondReplacement, 13, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1587 spanStr0.setSpan(new LineHeightSpan.Standard(expectedHeight0), 0, spanStr0.length(),
1602 spanStr1.setSpan(new LineHeightSpan.Standard(expectedHeight1), 0, spanStr1.length(),
1620 spanStr.setSpan(new LineHeightSpan.Standard(25), 0, spanStr.length(),
1623 spanStr.setSpan(new LineHeightSpan.Standard(expectedHeight), 0, spanStr.length(),
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DMetaKeyKeyListenerTest.java58 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
59 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); in testPressKey()
64 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
65 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); in testPressKey()
70 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); in testPressKey()
71 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT); in testPressKey()
84 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); in testReleaseKey()
85 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); in testReleaseKey()
90 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); in testReleaseKey()
91 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); in testReleaseKey()
[all …]
DSingleLineTransformationMethodTest.java89 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DEditorState.java172 spannable.setSpan(new MockReplacementSpan(), replacementSpanStart, replacementSpanEnd, in setByString()
/cts/tests/tests/text/src/android/text/style/cts/
DUnderlineSpanTest.java121 text.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth()
129 text.setSpan(new UnderlineSpan(), 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth()
137 text.setSpan(new UnderlineSpan(), 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth()
145 text.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth()
146 text.setSpan(new UnderlineSpan(), 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth()
164 text.setSpan(new SafeUnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth_safeSubclass()
184 text.setSpan(new NoUnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth_noUnderlineSubclass()
209 text.setSpan(new ElegantUnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testAffectsWidth_ElegantSubclass()
DLineBreakConfigSpanTest.kt103 setSpan( in testLineBreakConfigSpan()
150 setSpan( in testLineBreakConfigSpan_override()
156 setSpan( in testLineBreakConfigSpan_override()
196 setSpan( in testLineBreakConfigSpan_partialOverride()
202 setSpan( in testLineBreakConfigSpan_partialOverride()
245 setSpan( in testLineBreakConfigSpan_partialOverride2()
251 setSpan( in testLineBreakConfigSpan_partialOverride2()
296 setSpan( in testLineBreakConfigSpan_partialOverride3()
302 setSpan( in testLineBreakConfigSpan_partialOverride3()
348 setSpan( in testLineBreakConfigSpan_MetricAffectingSpanMixture()
[all …]
DStrikethroughSpanTest.java113 text.setSpan(new StrikethroughSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesntAffectWidth()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractedTextTest.java58 text.setSpan(EXPECTED_TEXT_ANNOTATION, 0, text.length(), in getExpectedText()
66 text.setSpan(EXPECTED_HINT_ANNOTATION, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getExpectedHint()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/controls/
DControlsPanelTestUtils.java36 spannable.setSpan( in addImage()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewStyleShortcutTest.java558 et.getText().setSpan( in testBoldItalicSelectBoldIntersectedRegion()
586 et.getText().setSpan( in testBoldItalicSelectBoldCoveredRegion()
614 et.getText().setSpan( in testBoldItalicSelectBoldSubRegion()
637 et.getText().setSpan( in testBoldItalicSelectItalicIntersectedRegion()
665 et.getText().setSpan( in testBoldItalicSelectItalicCoveredRegion()
693 et.getText().setSpan( in testBoldItalicSelectItalicSubRegion()
DMultiAutoCompleteTextView_CommaTokenizerTest.java127 spannableString.setSpan(what, 0, spannableString.length(), in testTerminateToken()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20944/test-app/src/android/security/cts/CVE_2023_20944_test/
DPocActivity.java105 spannableString.setSpan(new TtsSpan("", wrapperBundle), 0, 0, 0); in createLabelInjectingOptions()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextLinksTest.java155 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyReplace()
177 spannableString.setSpan(urlSpan, START, END, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testTextLinks_applyStrategyIgnore()

123