Home
last modified time | relevance | path

Searched refs:expectedSelectionEnd (Results 1 – 2 of 2) sorted by relevance

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java237 final int expectedSelectionEnd = Selection.getSelectionEnd(expectedString); in verifyDeleteSurroundingTextMain() local
238 verifyTextAndSelection(ic, expectedString, expectedSelectionStart, expectedSelectionEnd); in verifyDeleteSurroundingTextMain()
299 final int expectedSelectionEnd = Selection.getSelectionEnd(expectedString); in verifyDeleteSurroundingTextInCodePointsMain() local
300 verifyTextAndSelection(ic, expectedString, expectedSelectionStart, expectedSelectionEnd); in verifyDeleteSurroundingTextInCodePointsMain()
672 final int expectedSelectionEnd = Selection.getSelectionEnd(expectedString); in verifyReplaceText() local
673 verifyTextAndSelection(ic, expectedString, expectedSelectionStart, expectedSelectionEnd); in verifyReplaceText()
680 final int expectedSelectionEnd) { in verifyTextAndSelection() argument
688 if (expectedSelectionStart == expectedSelectionEnd) { in verifyTextAndSelection()
693 .subSequence(expectedSelectionStart, expectedSelectionEnd) in verifyTextAndSelection()
697 if (expectedSelectionEnd == expectedString.length()) { in verifyTextAndSelection()
[all …]
DEditTextImeSupportTest.java161 @NonNull String expectedText, int expectedSelectionStart, int expectedSelectionEnd) { in assertInitialSurroundingText() argument
164 assertNotEquals("expectedText must has a selection", -1, expectedSelectionEnd); in assertInitialSurroundingText()
169 expectedText.subSequence(expectedSelectionStart, expectedSelectionEnd); in assertInitialSurroundingText()
171 expectedText.subSequence(expectedSelectionEnd, expectedText.length()); in assertInitialSurroundingText()
186 assertEquals(expectedSelectionEnd, initialSurroundingText.getSelectionEnd()); in assertInitialSurroundingText()