/cts/tests/tests/text/src/android/text/cts/ |
D | SpannedStringTest.java | 64 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()
|
D | SpannableStringTest.java | 134 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()
|
D | AlteredCharSequenceTest.java | 132 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
|
D | StaticLayoutLineBreakingTest.java | 110 + lineEnd + "]\t" + source.subSequence(lineStart, lineEnd)); in debugLayout()
|
D | SpannableStringBuilderTest.java | 282 CharSequence text = builder.subSequence(0, 2); in testSubSequence() 287 builder.subSequence(2, 0); in testSubSequence()
|
D | StaticLayoutTest.java | 601 public CharSequence subSequence(int start, int end) { in subSequence() method in StaticLayoutTest.FakeCharSequence 602 return mStr.subSequence(start, end); in subSequence()
|
D | PrecomputedTextTest.java | 190 final CharSequence s3 = s.subSequence(0, 3); in testCharSequenceInteface()
|
D | TextUtilsTest.java | 1078 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/ |
D | BaseInputConnectionTest.java | 130 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/ |
D | SingleLineTransformationMethodTest.java | 89 transformed.subSequence(0, transformed.length()); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
|
D | MetaKeyKeyListenerTest.java | 463 public CharSequence subSequence(int start, int end) { in subSequence() method in MetaKeyKeyListenerTest.MockSpannable
|
D | ArrowKeyMovementMethodTest.java | 1483 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/ |
D | SupportMessageTest.java | 89 assertStartsWith(ShortMessage.TOO_LONG.subSequence(0, MAX_SHORT_MSG_LENGTH), in testMaximumLengthPrefixIsSaved()
|