Home
last modified time | relevance | path

Searched refs:spanned (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DSpannedStringTest.java35 SpannedString spanned = SpannedString.valueOf(text); in testValueOf() local
36 assertEquals(text, spanned.toString()); in testValueOf()
38 spanned = new SpannedString(text); in testValueOf()
39 assertSame(spanned, SpannedString.valueOf(spanned)); in testValueOf()
50 SpannedString spanned = new SpannedString(text); in testSubSequence() local
52 CharSequence subSequence = spanned.subSequence(0, 2); in testSubSequence()
56 subSequence = spanned.subSequence(0, text.length()); in testSubSequence()
61 spanned.subSequence(-1, text.length() + 1); in testSubSequence()
67 spanned.subSequence(2, 0); in testSubSequence()
DHtmlTest.java51 Spanned spanned = Html.fromHtml(source); in testSingleTagOnWhileString() local
52 assertSingleTagOnWhileString(spanned); in testSingleTagOnWhileString()
53 spanned = Html.fromHtml(source, null, null); in testSingleTagOnWhileString()
54 assertSingleTagOnWhileString(spanned); in testSingleTagOnWhileString()
57 private void assertSingleTagOnWhileString(Spanned spanned) { in assertSingleTagOnWhileString() argument
64 Object[] spans = spanned.getSpans(start, end, Object.class); in assertSingleTagOnWhileString()
66 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in assertSingleTagOnWhileString()
67 assertEquals(expectEnd, spanned.getSpanEnd(spans[0])); in assertSingleTagOnWhileString()
73 Spanned spanned = Html.fromHtml(source); in testBadHtml() local
74 assertBadHtml(spanned); in testBadHtml()
[all …]
DAlteredCharSequenceTest.java108 MockSpanned spanned = new MockSpanned("This is a spanned."); in testMake() local
109 mAlteredCharSequence = AlteredCharSequence.make(spanned, sub, 0, sub.length); in testMake()
DTextUtilsTest.java2041 SpannableString spanned = new SpannableString(source); in testDumpSpans() local
2042 spanned.setSpan(new Object(), 0, source.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDumpSpans()
2043 TextUtils.dumpSpans(spanned, printer, prefix); in testDumpSpans()