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