Home
last modified time | relevance | path

Searched refs:subSequence (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DSpannedStringTest.java64 CharSequence subSequence = spanned.subSequence(0, 2); in testSubSequence() local
65 assertTrue(subSequence instanceof SpannedString); in testSubSequence()
66 assertEquals("he", subSequence.toString()); in testSubSequence()
68 subSequence = spanned.subSequence(0, text.length()); in testSubSequence()
69 assertTrue(subSequence instanceof SpannedString); in testSubSequence()
70 assertEquals(text, subSequence.toString()); in testSubSequence()
73 spanned.subSequence(-1, text.length() + 1); in testSubSequence()
79 spanned.subSequence(2, 0); in testSubSequence()
DSpannableStringTest.java134 CharSequence subSequence = spannable.subSequence(0, 2); in testSubSequence() local
135 assertEquals("he", subSequence.toString()); in testSubSequence()
137 subSequence = spannable.subSequence(0, text.length()); in testSubSequence()
138 assertEquals(text, subSequence.toString()); in testSubSequence()
141 spannable.subSequence(-1, text.length() + 1); in testSubSequence()
147 spannable.subSequence(2, 0); in testSubSequence()
164 Spanned second = (Spanned) first.subSequence(2,4); in testSubsequence_copiesSpans()
213 SpannableString second = new SpannableString(first.subSequence(0, first.length() - 1)); in testCopyGrowable()
DAlteredCharSequenceTest.java132 assertEquals("Th", mAlteredCharSequence.subSequence(0, 2).toString()); in testSubSequence()
135 mAlteredCharSequence.subSequence(0, 100); in testSubSequence()
182 public CharSequence subSequence(int start, int end) { in subSequence() method in AlteredCharSequenceTest.MockSpanned
DStaticLayoutLineBreakingTest.java110 + lineEnd + "]\t" + source.subSequence(lineStart, lineEnd)); in debugLayout()
DSpannableStringBuilderTest.java282 CharSequence text = builder.subSequence(0, 2); in testSubSequence()
287 builder.subSequence(2, 0); in testSubSequence()
DStaticLayoutTest.java601 public CharSequence subSequence(int start, int end) { in subSequence() method in StaticLayoutTest.FakeCharSequence
602 return mStr.subSequence(start, end); in subSequence()
DPrecomputedTextTest.java190 final CharSequence s3 = s.subSequence(0, 3); in testCharSequenceInteface()
DTextUtilsTest.java1078 public CharSequence subSequence(int arg0, int arg1) { in subSequence() method in TextUtilsTest.MockGetChars
1104 public CharSequence subSequence(int arg0, int arg1) { in subSequence() method in TextUtilsTest.MockCharSequence
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java130 CharSequence expected = str.subSequence(strLength - offLength, strLength); in testOpTextMethods()
134 expected = str.subSequence(0, offLength); in testOpTextMethods()
225 assertEquals(expectedString.subSequence(0, expectedSelectionStart).toString(),
231 assertEquals(expectedString.subSequence(expectedSelectionStart,
237 assertEquals(expectedString.subSequence(expectedSelectionEnd,
304 assertEquals(expectedString.subSequence(0, expectedSelectionStart).toString(),
310 assertEquals(expectedString.subSequence(expectedSelectionStart,
316 assertEquals(expectedString.subSequence(expectedSelectionEnd,
/cts/tests/tests/text/src/android/text/method/cts/
DSingleLineTransformationMethodTest.java89 transformed.subSequence(0, transformed.length()); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DMetaKeyKeyListenerTest.java463 public CharSequence subSequence(int start, int end) { in subSequence() method in MetaKeyKeyListenerTest.MockSpannable
DArrowKeyMovementMethodTest.java1483 return text.subSequence(Math.max(0, index - 5), index) + "|" in getCursorSnippet()
1484 + text.subSequence(index, Math.min(text.length() - 1, index + 5)); in getCursorSnippet()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSupportMessageTest.java89 assertStartsWith(ShortMessage.TOO_LONG.subSequence(0, MAX_SHORT_MSG_LENGTH), in testMaximumLengthPrefixIsSaved()