Home
last modified time | relevance | path

Searched refs:beforeCursor (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputConnection.java167 final CharSequence beforeCursor = getTextBeforeCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE, in checkConsistencyForDebug() local
171 if (null == et || null == beforeCursor) return; in checkConsistencyForDebug()
172 final int actualLength = Math.min(beforeCursor.length(), internal.length()); in checkConsistencyForDebug()
176 final String reference = (beforeCursor.length() <= actualLength) ? beforeCursor.toString() in checkConsistencyForDebug()
177 : beforeCursor.subSequence(beforeCursor.length() - actualLength, in checkConsistencyForDebug()
178 beforeCursor.length()).toString(); in checkConsistencyForDebug()
/aosp12/frameworks/base/core/java/android/view/inputmethod/
H A DEditorInfo.java693 final CharSequence beforeCursor = subText.subSequence(newBeforeCursorHead, in trimLongSurroundingText() local
698 newInitialSurroundingText = TextUtils.concat(beforeCursor, afterCursor); in trimLongSurroundingText()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DEditorInfoTest.java208 final CharSequence beforeCursor = testText.subSequence( in setOverSizeInitialText_cursorAtMiddle_dividesProportionately() local
216 new SurroundingText(TextUtils.concat(beforeCursor, selectedText, afterCursor), in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()