Searched refs:spanned (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannedTest.java | 54 for (Spanned spanned : spannedCases) { in testCharAt() 55 assertEquals('\uD83D', spanned.charAt(0)); in testCharAt() 56 assertEquals('\uDE00', spanned.charAt(1)); in testCharAt() 59 spanned.charAt(-1); in testCharAt() 65 spanned.charAt(spanned.length()); in testCharAt() 82 for (Spanned spanned : spannedCases) { in testNextSpanTransition() 84 assertEquals(4, spanned.nextSpanTransition(1, spanned.length(), QuoteSpan.class)); in testNextSpanTransition() 85 assertEquals(spanned.length(), in testNextSpanTransition() 86 spanned.nextSpanTransition(4, spanned.length(), QuoteSpan.class)); in testNextSpanTransition() 87 assertEquals(5, spanned.nextSpanTransition(4, spanned.length(), UnderlineSpan.class)); in testNextSpanTransition() [all …]
|
D | SpannedStringTest.java | 48 SpannedString spanned = SpannedString.valueOf(text); in testValueOf() local 49 assertEquals(text, spanned.toString()); in testValueOf() 51 spanned = new SpannedString(text); in testValueOf() 52 assertSame(spanned, SpannedString.valueOf(spanned)); in testValueOf() 63 SpannedString spanned = new SpannedString(text); in testSubSequence() local 65 CharSequence subSequence = spanned.subSequence(0, 2); in testSubSequence() 69 subSequence = spanned.subSequence(0, text.length()); in testSubSequence() 74 spanned.subSequence(-1, text.length() + 1); in testSubSequence() 80 spanned.subSequence(2, 0); in testSubSequence()
|
D | HtmlTest.java | 58 Spanned spanned = Html.fromHtml(source); in testSingleTagOnWhileString() local 59 verifySingleTagOnWhileString(spanned); in testSingleTagOnWhileString() 60 spanned = Html.fromHtml(source, null, null); in testSingleTagOnWhileString() 61 verifySingleTagOnWhileString(spanned); in testSingleTagOnWhileString() 64 private void verifySingleTagOnWhileString(Spanned spanned) { in verifySingleTagOnWhileString() argument 71 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString() 73 assertEquals(expectStart, spanned.getSpanStart(spans[0])); in verifySingleTagOnWhileString() 74 assertEquals(expectEnd, spanned.getSpanEnd(spans[0])); in verifySingleTagOnWhileString() 81 Spanned spanned = Html.fromHtml(source); in testBadHtml() local 82 verifyBadHtml(spanned); in testBadHtml() [all …]
|
D | AlteredCharSequenceTest.java | 119 MockSpanned spanned = new MockSpanned("This is a spanned."); in testMake() local 120 mAlteredCharSequence = AlteredCharSequence.make(spanned, sub, 0, sub.length); in testMake()
|
D | TextUtilsTest.java | 2250 SpannableString spanned = new SpannableString(source); in testDumpSpans() local 2251 spanned.setSpan(new Object(), 0, source.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDumpSpans() 2252 TextUtils.dumpSpans(spanned, printer, prefix); in testDumpSpans()
|