Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DSpannedStringTest.java65 CharSequence subSequence = spanned.subSequence(0, 2); in testSubSequence() local
66 assertTrue(subSequence instanceof SpannedString); in testSubSequence()
67 assertEquals("he", subSequence.toString()); in testSubSequence()
69 subSequence = spanned.subSequence(0, text.length()); in testSubSequence()
70 assertTrue(subSequence instanceof SpannedString); in testSubSequence()
71 assertEquals(text, subSequence.toString()); in testSubSequence()
74 spanned.subSequence(-1, text.length() + 1); in testSubSequence()
80 spanned.subSequence(2, 0); in testSubSequence()
DSpannableStringTest.java136 CharSequence subSequence = spannable.subSequence(0, 2); in testSubSequence() local
137 assertEquals("he", subSequence.toString()); in testSubSequence()
139 subSequence = spannable.subSequence(0, text.length()); in testSubSequence()
140 assertEquals(text, subSequence.toString()); in testSubSequence()
143 spannable.subSequence(-1, text.length() + 1); in testSubSequence()
149 spannable.subSequence(2, 0); in testSubSequence()
166 Spanned second = (Spanned) first.subSequence(2,4); in testSubsequence_copiesSpans()
215 SpannableString second = new SpannableString(first.subSequence(0, first.length() - 1)); in testCopyGrowable()
DAlteredCharSequenceTest.java133 assertEquals("Th", mAlteredCharSequence.subSequence(0, 2).toString()); in testSubSequence()
136 mAlteredCharSequence.subSequence(0, 100); in testSubSequence()
183 public CharSequence subSequence(int start, int end) { in subSequence() method in AlteredCharSequenceTest.MockSpanned
DStaticLayoutLineBreakingTest.java112 + lineEnd + "]\t" + source.subSequence(lineStart, lineEnd)); in debugLayout()
DSpannableStringBuilderTest.java284 CharSequence text = builder.subSequence(0, 2); in testSubSequence()
289 builder.subSequence(2, 0); in testSubSequence()
DStaticLayoutTest.java604 public CharSequence subSequence(int start, int end) { in subSequence() method in StaticLayoutTest.FakeCharSequence
605 return mStr.subSequence(start, end); in subSequence()
DPrecomputedTextTest.java208 final CharSequence s3 = s.subSequence(0, 3); in testCharSequenceInteface()
DTextUtilsTest.java1079 public CharSequence subSequence(int arg0, int arg1) { in subSequence() method in TextUtilsTest.MockGetChars
1105 public CharSequence subSequence(int arg0, int arg1) { in subSequence() method in TextUtilsTest.MockCharSequence
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java134 CharSequence expected = str.subSequence(strLength - offLength, strLength); in testOpTextMethods()
138 expected = str.subSequence(0, offLength); in testOpTextMethods()
250 assertEquals(expectedString.subSequence(0, expectedSelectionStart).toString(),
256 assertEquals(expectedString.subSequence(expectedSelectionStart,
262 assertEquals(expectedString.subSequence(expectedSelectionEnd,
331 assertEquals(expectedString.subSequence(0, expectedSelectionStart).toString(),
337 assertEquals(expectedString.subSequence(expectedSelectionStart,
343 assertEquals(expectedString.subSequence(expectedSelectionEnd,
DEditTextImeSupportTest.java161 expectedText.subSequence(0, expectedSelectionStart); in assertInitialSurroundingText()
163 expectedText.subSequence(expectedSelectionStart, expectedSelectionEnd); in assertInitialSurroundingText()
165 expectedText.subSequence(expectedSelectionEnd, expectedText.length()); in assertInitialSurroundingText()
DExtractedTextTest.java55 "01234567890abcdef".subSequence(EXPECTED_SELECTION_START, EXPECTED_SELECTION_END)); in getExpectedText()
DEditorInfoTest.java242 final CharSequence beforeCursor = testText.subSequence(offset, in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
244 final CharSequence afterCursor = testText.subSequence(info.initialSelEnd, in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java127 public CharSequence subSequence(int start, int end) { in subSequence() method in RegexUtils.TimeoutCharSequence
128 return new TimeoutCharSequence(chars.subSequence(start, end), in subSequence()
/cts/tests/tests/text/src/android/text/method/cts/
DSingleLineTransformationMethodTest.java90 transformed.subSequence(0, transformed.length()); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DMetaKeyKeyListenerTest.java464 public CharSequence subSequence(int start, int end) { in subSequence() method in MetaKeyKeyListenerTest.MockSpannable
DArrowKeyMovementMethodTest.java1484 return text.subSequence(Math.max(0, index - 5), index) + "|" in getCursorSnippet()
1485 + 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()