Home
last modified time | relevance | path

Searched refs:InputConnection (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityInputConnectionTest.java43 import android.view.inputmethod.InputConnection;
87 private AtomicReference<InputConnection> mLastInputConnectionSpy = new AtomicReference<>();
126 public InputConnection onCreateInputConnection(EditorInfo editorInfo) { in setUp()
127 final InputConnection ic = super.onCreateInputConnection(editorInfo); in setUp()
130 final InputConnection spy = Mockito.spy(new NoOpInputConnection()); in setUp()
153 private InputConnection resetAndGetLastInputConnectionSpy() { in resetAndGetLastInputConnectionSpy()
154 final InputConnection spy = mLastInputConnectionSpy.get(); in resetAndGetLastInputConnectionSpy()
162 final InputConnection spy = resetAndGetLastInputConnectionSpy(); in testCommitText()
172 final InputConnection spy = resetAndGetLastInputConnectionSpy(); in testSetSelection()
181 final InputConnection spy = resetAndGetLastInputConnectionSpy(); in testGetSurroundingText()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputBindingTest.java30 import android.view.inputmethod.InputConnection;
54 InputConnection conn = mock(InputConnection.class); in testInputBinding()
78 InputConnection conn = mock(InputConnection.class); in testInputBindingConstructor()
91 InputConnection conn = mock(InputConnection.class); in testInputBindingCopyConstructor()
DInputConnectionDefaultMethodTest.java19 import static android.view.inputmethod.InputConnection.HANDWRITING_GESTURE_RESULT_UNSUPPORTED;
38 import android.view.inputmethod.InputConnection;
60 @Mock private InputConnection mMockInputConnection;
80 mTestInputConnection.getSurroundingText(3, 2, InputConnection.GET_TEXT_WITH_STYLES); in getSurroundingText_mockInputConnection()
100 testInputConnection.getSurroundingText(3, 2, InputConnection.GET_TEXT_WITH_STYLES); in getSurroundingText_baseInputConnection()
148 InputConnection.CURSOR_UPDATE_FILTER_EDITOR_BOUNDS, in requestCursorUpdates()
149 InputConnection.CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS, in requestCursorUpdates()
150 InputConnection.CURSOR_UPDATE_FILTER_INSERTION_MARKER, in requestCursorUpdates()
151 InputConnection.CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS in requestCursorUpdates()
158 InputConnection.CURSOR_UPDATE_IMMEDIATE, filter)) in requestCursorUpdates()
[all …]
DInputConnectionEndToEndTest.java20 import static android.view.inputmethod.InputConnection.HANDWRITING_GESTURE_RESULT_SUCCESS;
68 import android.view.inputmethod.InputConnection;
386 Function<InputConnection, InputConnection> inputConnectionWrapperProvider, in testInputConnection() argument
402 Function<InputConnection, InputConnection> inputConnectionWrapperProvider, in testInputConnection() argument
419 Function<InputConnection, InputConnection> inputConnectionWrapperProvider, in testA11yInputConnection() argument
439 Function<InputConnection, InputConnection> inputConnectionWrapperProvider, in testA11yInputConnection() argument
494 Function<InputConnection, InputConnection> inputConnectionWrapperProvider, in testInputConnection() argument
517 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testInputConnection()
519 final InputConnection ic = super.onCreateInputConnection(outAttrs); in testInputConnection()
557 Function<InputConnection, InputConnection> inputConnectionWrapperProvider, in testInputConnection() argument
[all …]
DInputConnectionWrapperTest.java45 import android.view.inputmethod.InputConnection;
66 InputConnection inputConnection = mock(InputConnection.class); in testInputConnectionWrapper()
158 wrapper.requestCursorUpdates(InputConnection.CURSOR_UPDATE_IMMEDIATE); in testInputConnectionWrapper()
160 .requestCursorUpdates(InputConnection.CURSOR_UPDATE_IMMEDIATE); in testInputConnectionWrapper()
183 final InputConnection ic = mock(InputConnection.class); in testTakeSnapshot()
194 InputConnection inputConnection = mock(InputConnection.class); in testInvalidGetTextBeforeOrAfterCursorRequest()
DEditorInfoTest.java43 import android.view.inputmethod.InputConnection;
389 InputConnection.GET_TEXT_WITH_STYLES))); in testInitialSurroundingSubText_keepsOriginalCursorPosition()
391 info.getInitialSelectedText(InputConnection.GET_TEXT_WITH_STYLES))); in testInitialSurroundingSubText_keepsOriginalCursorPosition()
394 InputConnection.GET_TEXT_WITH_STYLES))); in testInitialSurroundingSubText_keepsOriginalCursorPosition()
398 InputConnection.GET_TEXT_WITH_STYLES); in testInitialSurroundingSubText_keepsOriginalCursorPosition()
412 InputConnection.GET_TEXT_WITH_STYLES); in assertExpectedTextLength()
414 editorInfo.getInitialSelectedText(InputConnection.GET_TEXT_WITH_STYLES); in assertExpectedTextLength()
417 InputConnection.GET_TEXT_WITH_STYLES); in assertExpectedTextLength()
421 InputConnection.GET_TEXT_WITH_STYLES); in assertExpectedTextLength()
473 InputConnection.GET_TEXT_WITH_STYLES)); in concatInitialSurroundingText()
[all …]
DExtractedTextRequestTest.java25 import android.view.inputmethod.InputConnection;
41 private static final int EXPECTED_FLAGS = InputConnection.GET_TEXT_WITH_STYLES;
DInputConnectionLifecycleTest.java35 import android.view.inputmethod.InputConnection;
125 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCloseConnectionWithRestartInput()
204 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCloseConnectionWithLosingViewFocus()
281 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCloseConnectionWithLosingWindowFocus()
DInputConnectionHandlerTest.java47 import android.view.inputmethod.InputConnection;
190 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCommitText()
257 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCloseConnectionWithRestartInput()
336 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCloseConnectionWithLosingViewFocus()
412 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testCloseConnectionWithLosingWindowFocus()
498 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testReportFullscreenMode()
603 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testInputConnectionSideEffect()
763 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testExceptionFromGetSurroundingText()
DInputMethodServiceTest.java77 import android.view.inputmethod.InputConnection;
483 public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
555 public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
556 final InputConnection original = super.onCreateInputConnection(outAttrs);
560 if ((cursorUpdateMode & InputConnection.CURSOR_UPDATE_IMMEDIATE)
590 imeSession.callRequestCursorUpdates(InputConnection.CURSOR_UPDATE_IMMEDIATE),
616 InputConnection.CURSOR_UPDATE_IMMEDIATE
617 | InputConnection.CURSOR_UPDATE_FILTER_EDITOR_BOUNDS
618 | InputConnection.CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS
619 | InputConnection.CURSOR_UPDATE_FILTER_INSERTION_MARKER
[all …]
DInProcessImeTest.java34 import android.view.inputmethod.InputConnection;
118 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in testOnUpdateSelectionForInProcessIme()
/cts/tests/inputmethod/legacyimeclienttestlib/src/com/android/cts/inputmethod/
DLegacyImeClientTestUtils.java24 import android.view.inputmethod.InputConnection;
39 private static final class MinimallyImplementedNoOpInputConnection implements InputConnection {
190 public static InputConnection createMinimallyImplementedNoOpInputConnection() { in createMinimallyImplementedNoOpInputConnection()
/cts/tests/tests/text/src/android/text/method/cts/
DEditTextNoIme.java22 import android.view.inputmethod.InputConnection;
48 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in onCreateInputConnection()
DTextViewNoIme.java22 import android.view.inputmethod.InputConnection;
48 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in onCreateInputConnection()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewNoIme.java23 import android.view.inputmethod.InputConnection;
54 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in onCreateInputConnection()
DTextViewHandwritingGestureTest.java57 import android.view.inputmethod.InputConnection;
111 private int mResult = InputConnection.HANDWRITING_GESTURE_RESULT_UNKNOWN;
987 assertThat(mResult).isEqualTo(InputConnection.HANDWRITING_GESTURE_RESULT_SUCCESS); in performRemoveSpaceGesture_multipleWhitespace()
1821 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performSelectGesture()
1831 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in previewSelectGesture()
1844 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performSelectRangeGesture()
1857 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in previewSelectRangeGesture()
1872 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performDeleteGesture()
1882 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in previewDeleteGesture()
1895 InputConnection inputConnection = mEditText.onCreateInputConnection(new EditorInfo()); in performDeleteRangeGesture()
[all …]
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DReplyReceivingInputConnection.java25 import android.view.inputmethod.InputConnection;
50 ReplyReceivingInputConnection(InputConnection target, String sessionKey, in ReplyReceivingInputConnection()
DMainActivity.java35 import android.view.inputmethod.InputConnection;
119 public InputConnection onCreateInputConnection(EditorInfo editorInfo) { in onCreate()
120 final InputConnection original = super.onCreateInputConnection(editorInfo); in onCreate()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestWebView.java27 import android.view.inputmethod.InputConnection;
59 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { in onCreateInputConnection()
60 final InputConnection original = super.onCreateInputConnection(outAttrs); in onCreateInputConnection()
DNoOpInputConnection.java26 import android.view.inputmethod.InputConnection;
33 public class NoOpInputConnection implements InputConnection {
DHandlerInputConnection.java26 import android.view.inputmethod.InputConnection;
38 public class HandlerInputConnection implements InputConnection {
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DInputConnectionSplitter.java26 import android.view.inputmethod.InputConnection;
39 private final InputConnection mForNotify;
41 public InputConnectionSplitter(InputConnection target, InputConnection forNotify) { in InputConnectionSplitter()
DNoOpInputConnection.java26 import android.view.inputmethod.InputConnection;
34 public class NoOpInputConnection implements InputConnection {
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DCtsBaseInputMethod.java43 import android.view.inputmethod.InputConnection;
236 private void executeOnInputConnection(Consumer<InputConnection> consumer) { in executeOnInputConnection()
237 final InputConnection ic = getCurrentInputConnection(); in executeOnInputConnection()
/cts/tests/inputmethod/legacyimeclienttestlib/
DAndroid.bp24 // Note that several new APIs were added into InputConnection in API 9.

12