Searched refs:textBeforeCursor (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputConnection.java | 385 CharSequence textBeforeCursor = getTextBeforeCursor(beforeLength, flags); in getSurroundingText() local 386 if (textBeforeCursor == null) { in getSurroundingText() 398 TextUtils.concat(textBeforeCursor, selectedText, textAfterCursor); in getSurroundingText() 399 return new SurroundingText(surroundingText, textBeforeCursor.length(), in getSurroundingText() 400 textBeforeCursor.length() + selectedText.length(), -1); in getSurroundingText()
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | EditorInfoTest.java | 407 SpannableString textBeforeCursor = in testSpanAfterSurroundingTextRetrieval() local 412 textBeforeCursor.getSpans(/* queryStart= */ 0, sb.length(), Object.class); in testSpanAfterSurroundingTextRetrieval() 414 textBeforeCursor.getSpans(parcelableStart, parcelableEnd, Object.class); in testSpanAfterSurroundingTextRetrieval() 416 textBeforeCursor.getSpans(nonParcelableStart, nonParcelableEnd, Object.class); in testSpanAfterSurroundingTextRetrieval() 430 final CharSequence textBeforeCursor = in assertExpectedTextLength() local 444 assertNull(textBeforeCursor); in assertExpectedTextLength() 446 assertEquals(expectBeforeCursorLength.intValue(), textBeforeCursor.length()); in assertExpectedTextLength()
|