Home
last modified time | relevance | path

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

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java59 InputConnection inputConnection = mock(InputConnection.class); in testInputConnectionWrapper() local
60 doReturn(true).when(inputConnection).commitContent(any(InputContentInfo.class), in testInputConnectionWrapper()
69 wrapper.setTarget(inputConnection); in testInputConnectionWrapper()
72 verify(inputConnection, times(1)).beginBatchEdit(); in testInputConnectionWrapper()
75 verify(inputConnection, times(1)).clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper()
80 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper()
88 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper()
94 verify(inputConnection, times(1)).commitText(sameCharSequence("Text"), eq(1)); in testInputConnectionWrapper()
97 verify(inputConnection, times(1)).deleteSurroundingText(10, 100); in testInputConnectionWrapper()
100 verify(inputConnection, times(1)).deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java629 final InputConnection inputConnection = in testComposingSpan_eventsForSpanChanges() local
633 inputConnection.setComposingRegion(1, 2); in testComposingSpan_eventsForSpanChanges()
634 inputConnection.setComposingRegion(1, 3); in testComposingSpan_eventsForSpanChanges()
636 inputConnection.finishComposingText(); in testComposingSpan_eventsForSpanChanges()