Searched refs:surroundingText (Results 1 – 4 of 4) sorted by relevance
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | TextSnapshotTest.java | 43 verify(surroundingText("[]", 0), -1, -1, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 46 verify(surroundingText("0[]]", 0), -1, -1, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 48 verify(surroundingText("012[345]6789", 0), -1, -1, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 49 verify(surroundingText("012[345]6789", 1), -1, -1, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 50 verify(surroundingText("012[345]6789", 2), -1, -1, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 52 verify(surroundingText("012[345]6789", 0), -1, -1, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 53 verify(surroundingText("012[345]6789", 0), 3, 6, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 54 verify(surroundingText("012[345]6789", 2), 3, 6, InputType.TYPE_TEXT_FLAG_CAP_WORDS); in testConstruction() 64 new TextSnapshot(surroundingText("012[345]6789", 0), -2, -2, in testInvalidComposeRegion() 70 new TextSnapshot(surroundingText("012[345]6789", 0), 0, -2, in testInvalidComposeRegion2() [all …]
|
D | InputConnectionDefaultMethodTest.java | 79 SurroundingText surroundingText = in getSurroundingText_mockInputConnection() local 82 assertThat(surroundingText.getText().toString()).isEqualTo("atestbc"); in getSurroundingText_mockInputConnection() 83 assertThat(surroundingText.getSelectionStart()).isEqualTo(1); in getSurroundingText_mockInputConnection() 84 assertThat(surroundingText.getSelectionEnd()).isEqualTo(5); in getSurroundingText_mockInputConnection() 86 assertThat(surroundingText.getOffset()).isEqualTo(-1); in getSurroundingText_mockInputConnection() 99 SurroundingText surroundingText = in getSurroundingText_baseInputConnection() local 102 assertThat(surroundingText.getText().toString()).isEqualTo("12345678"); in getSurroundingText_baseInputConnection() 103 assertThat(surroundingText.getSelectionStart()).isEqualTo(3); in getSurroundingText_baseInputConnection() 104 assertThat(surroundingText.getSelectionEnd()).isEqualTo(6); in getSurroundingText_baseInputConnection() 106 assertThat(surroundingText.getOffset()).isEqualTo(-1); in getSurroundingText_baseInputConnection()
|
D | EditorInfoTest.java | 350 final CharSequence surroundingText = TextUtils.concat(beforeCursor, afterCursor); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid() local 352 new SurroundingText(surroundingText, info.initialSelStart, info.initialSelStart, 0); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid() 395 SurroundingText surroundingText = info.getInitialSurroundingText( in testInitialSurroundingSubText_keepsOriginalCursorPosition() local 399 assertNotNull(surroundingText); in testInitialSurroundingSubText_keepsOriginalCursorPosition() 400 assertTrue(TextUtils.equals(expectedSurroundingText.getText(), surroundingText.getText())); in testInitialSurroundingSubText_keepsOriginalCursorPosition() 402 surroundingText.getSelectionStart()); in testInitialSurroundingSubText_keepsOriginalCursorPosition() 403 assertEquals(expectedSurroundingText.getSelectionEnd(), surroundingText.getSelectionEnd()); in testInitialSurroundingSubText_keepsOriginalCursorPosition() 418 final SurroundingText surroundingText = editorInfo.getInitialSurroundingText( in assertExpectedTextLength() local 442 assertNull(surroundingText); in assertExpectedTextLength() 445 expectSurroundingText.getText(), surroundingText.getText())); in assertExpectedTextLength() [all …]
|
D | BaseInputConnectionTest.java | 619 final SurroundingText surroundingText = snapshot.getSurroundingText(); in verifyTextSnapshot() local 620 assertThat(surroundingText).isNotNull(); in verifyTextSnapshot() 627 surroundingText in verifyTextSnapshot() 632 assertThat(surroundingText.getSelectionStart()) in verifyTextSnapshot() 634 assertThat(surroundingText.getSelectionStart()) in verifyTextSnapshot() 636 assertThat(surroundingText.getSelectionEnd()) in verifyTextSnapshot() 638 assertThat(surroundingText.getOffset()).isEqualTo(expectedSurroundingText.getOffset()); in verifyTextSnapshot()
|