Home
last modified time | relevance | path

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

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java66 InputConnection inputConnection = mock(InputConnection.class); in testInputConnectionWrapper() local
67 doReturn(true).when(inputConnection).commitContent(any(InputContentInfo.class), in testInputConnectionWrapper()
76 wrapper.setTarget(inputConnection); in testInputConnectionWrapper()
79 verify(inputConnection, times(1)).beginBatchEdit(); in testInputConnectionWrapper()
82 verify(inputConnection, times(1)).clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper()
87 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper()
95 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper()
101 verify(inputConnection, times(1)).commitText(sameCharSequence("Text"), eq(1)); in testInputConnectionWrapper()
104 verify(inputConnection, times(1)).deleteSurroundingText(10, 100); in testInputConnectionWrapper()
107 verify(inputConnection, times(1)).deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewHandwritingGestureTest.java1821 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performSelectGesture() local
1822 inputConnection.performHandwritingGesture(gesture, Runnable::run, mResultConsumer); in performSelectGesture()
1831 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in previewSelectGesture() local
1832 inputConnection.previewHandwritingGesture(gesture, null); in previewSelectGesture()
1844 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performSelectRangeGesture() local
1845 inputConnection.performHandwritingGesture(gesture, Runnable::run, mResultConsumer); in performSelectRangeGesture()
1857 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in previewSelectRangeGesture() local
1858 inputConnection.previewHandwritingGesture(gesture, null); in previewSelectRangeGesture()
1872 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performDeleteGesture() local
1873 inputConnection.performHandwritingGesture(gesture, Runnable::run, mResultConsumer); in performDeleteGesture()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java611 final InputConnection inputConnection = in testComposingSpan_eventsForSpanChanges() local
615 inputConnection.setComposingRegion(1, 2); in testComposingSpan_eventsForSpanChanges()
616 inputConnection.setComposingRegion(1, 3); in testComposingSpan_eventsForSpanChanges()
618 inputConnection.finishComposingText(); in testComposingSpan_eventsForSpanChanges()