Searched refs:subText (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/view/inputmethod/ |
D | EditorInfo.java | 608 public void setInitialSurroundingSubText(@NonNull CharSequence subText, int subTextStart) { in setInitialSurroundingSubText() argument 609 Objects.requireNonNull(subText); in setInitialSurroundingSubText() 623 final int subTextLength = subText.length(); in setInitialSurroundingSubText() 631 mInitialSurroundingText = new SurroundingText(subText, subTextSelStart, in setInitialSurroundingSubText() 636 trimLongSurroundingText(subText, subTextSelStart, subTextSelEnd, subTextStart); in setInitialSurroundingSubText() 657 private void trimLongSurroundingText(CharSequence subText, int selStart, int selEnd, in trimLongSurroundingText() argument 666 final int subTextAfterCursorLength = subText.length() - selEnd; in trimLongSurroundingText() 679 if (isCutOnSurrogate(subText, in trimLongSurroundingText() 684 if (isCutOnSurrogate(subText, in trimLongSurroundingText() 693 final CharSequence beforeCursor = subText.subSequence(newBeforeCursorHead, in trimLongSurroundingText() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | EditorInfoTest.java | 257 final CharSequence subText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialSubText_trimmedSubText_dividesByOriginalCursorPosition() local 258 final CharSequence originalText = TextUtils.concat(prefixString, subText); in setInitialSubText_trimmedSubText_dividesByOriginalCursorPosition() 271 editorInfo.setInitialSurroundingSubText(subText, prefixString.length()); in setInitialSubText_trimmedSubText_dividesByOriginalCursorPosition()
|
/frameworks/base/core/api/ |
D | current.txt | 5715 field public static final String EXTRA_SUB_TEXT = "android.subText";
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 4596 field public static final java.lang.String EXTRA_SUB_TEXT = "android.subText";
|