Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCharSequencesTest.java41 String l = toString(forAsciiBytes(bytes, 0, 3).subSequence(2, 3)); in testCharSequences()
44 String empty = toString(forAsciiBytes(bytes, 0, 3).subSequence(3, 3)); in testCharSequences()
/frameworks/base/telephony/java/android/telephony/
DJapanesePhoneNumberFormatter.java166 && text.subSequence(0, 3).toString().equals("+81")) { in format()
172 CharSequence saved = text.subSequence(0, length); in format()
/frameworks/base/core/java/android/text/method/
DReplacementTransformationMethod.java136 public CharSequence subSequence(int start, int end) { in subSequence() method in ReplacementTransformationMethod.ReplacementCharSequence
179 public CharSequence subSequence(int start, int end) { in subSequence() method in ReplacementTransformationMethod.SpannedReplacementCharSequence
180 return new SpannedString(this).subSequence(start, end); in subSequence()
DInsertModeTransformationMethod.java275 public CharSequence subSequence(int start, int end) { in subSequence() method in InsertModeTransformationMethod.TransformedText
295 mOriginal.subSequence(seg1Start, seg1End), in subSequence()
296 mPlaceholder.subSequence(seg2Start, seg2End), in subSequence()
297 mOriginal.subSequence(seg3Start, seg3End)); in subSequence()
302 return String.valueOf(mOriginal.subSequence(0, mEnd)) in toString()
304 + mOriginal.subSequence(mEnd, mOriginal.length()); in toString()
DPasswordTransformationMethod.java179 public CharSequence subSequence(int start, int end) { in subSequence() method in PasswordTransformationMethod.PasswordCharSequence
187 return subSequence(0, length()).toString(); in toString()
/frameworks/base/core/java/android/text/
DInputFilter.java129 public CharSequence subSequence(int start, int end) { in subSequence() method in InputFilter.AllCaps.CharSequenceWrapper
137 return mSource.subSequence(mStart, mEnd).toString(); in toString()
190 return source.subSequence(start, keep); in filter()
DAlteredCharSequence.java102 public CharSequence subSequence(int start, int end) { in subSequence() method in AlteredCharSequence
103 return AlteredCharSequence.make(mSource.subSequence(start, end), in subSequence()
DSpannedString.java52 public CharSequence subSequence(int start, int end) { in subSequence() method in SpannedString
DSpannableString.java67 public final CharSequence subSequence(int start, int end) { in subSequence() method in SpannableString
DPrecomputedText.java814 public CharSequence subSequence(int start, int end) { in subSequence() method in PrecomputedText
815 return PrecomputedText.create(mText.subSequence(start, end), mParams); in subSequence()
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java42 public CharSequence subSequence(int start, int end) { in forAsciiBytes() method in CharSequences
75 public CharSequence subSequence(int newStart, int newEnd) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ui/
DMobileContextProvider.kt124 demoMcc = mccmnc.subSequence(0, 3).toString().toInt() in <lambda>()
125 demoMnc = mccmnc.subSequence(3, mccmnc.length).toString().toInt() in <lambda>()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedStringNoCopyTest.java145 public CharSequence subSequence(int start, int end) { in subSequence() method in SpannedStringNoCopyTest.CustomSpanned
146 return mText.subSequence(start, end); in subSequence()
DSpannableStringNoCopyTest.java155 public CharSequence subSequence(int start, int end) { in subSequence() method in SpannableStringNoCopyTest.CustomSpannable
156 return mText.subSequence(start, end); in subSequence()
/frameworks/base/core/java/android/widget/
DMultiAutoCompleteTextView.java153 CharSequence sub = e.subSequence(start, end); in performValidation()
173 getFilter().filter(text.subSequence(start, end), this); in performFiltering()
DSpellChecker.java460 + editable.subSequence(start, end) + ", reason: " + reason); in removeErrorSuggestionSpan()
612 mSentenceIterator.setText(sequence.subSequence(mStartOffset, mEndOffset).toString()); in setCharSequence()
756 + editable.subSequence(spellCheckStart, spellCheckEnd)); in parse()
895 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", "
904 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", "
DNumberPicker.java2242 filtered = source.subSequence(start, end); in filter()
2245 String result = String.valueOf(dest.subSequence(0, dstart)) + filtered in filter()
2246 + dest.subSequence(dend, dest.length()); in filter()
2266 CharSequence filtered = String.valueOf(source.subSequence(start, end)); in filter()
2270 String result = String.valueOf(dest.subSequence(0, dstart)) + filtered in filter()
2271 + dest.subSequence(dend, dest.length()); in filter()
2277 return val.subSequence(dstart, val.length()); in filter()
/frameworks/base/core/java/android/view/inputmethod/
DEditorInfo.java896 final CharSequence beforeCursor = subText.subSequence(newBeforeCursorHead, in trimLongSurroundingText()
898 final CharSequence afterCursor = subText.subSequence(selEnd, in trimLongSurroundingText()
904 .subSequence(newBeforeCursorHead, newBeforeCursorHead + newTextLength); in trimLongSurroundingText()
941 ? mInitialSurroundingText.getText().subSequence(selStart - n, selStart) in getInitialTextBeforeCursor()
982 ? mInitialSurroundingText.getText().subSequence(selStart, selEnd) in getInitialSelectedText()
1010 ? mInitialSurroundingText.getText().subSequence(selEnd, selEnd + n) in getInitialTextAfterCursor()
1069 ? mInitialSurroundingText.getText().subSequence(offset, after) in getInitialSurroundingText()
DBaseInputConnection.java569 return content.subSequence(a - length, a); in getTextBeforeCursor()
595 return content.subSequence(a, b); in getSelectedText()
627 return content.subSequence(b, end); in getTextAfterCursor()
671 surroundingText = content.subSequence(startPos, endPos); in getSurroundingText()
/frameworks/base/core/tests/benchmarks/src/android/text/
DSpannableStringInternalCopyBenchmark.java57 spanned.subSequence(1, spanned.length()-1); in timeSubsequence()
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DEditorInfoTest.java245 final CharSequence beforeCursor = testText.subSequence( in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
247 final CharSequence afterCursor = testText.subSequence(editorInfo.initialSelEnd, in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
249 final CharSequence selectedText = testText.subSequence(editorInfo.initialSelStart, in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
273 final CharSequence before = testText.subSequence( in setOverSizeInitialText_overSizeSelection_dropsSelection()
276 final CharSequence after = testText.subSequence(editorInfo.initialSelEnd, in setOverSizeInitialText_overSizeSelection_dropsSelection()
DBaseInputConnectionTest.java608 text.subSequence(0, 3), text.subSequence(3, 6), text.subSequence(6, 9)); in testGetText_withStyle()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java174 .subSequence(selectionStart, selectionEnd)
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java710 : beforeText.subSequence(0, beforeText.length()); in setBeforeText()
732 : contentDescription.subSequence(0, contentDescription.length()); in setContentDescription()
/frameworks/base/core/tests/coretests/src/android/text/method/
DInsertModeTransformationMethodTest.java147 assertCharSequence(transformedText.subSequence(start, end), in transformedText_subSequence()
148 expected.subSequence(start, end)); in transformedText_subSequence()
166 assertCharSequence(transformedText.subSequence(start, end), in transformedText_subSequence_singleLine()
167 expected.subSequence(start, end)); in transformedText_subSequence_singleLine()

123