Home
last modified time | relevance | path

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

/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
DEmojiEditTextHelper.java138 public InputConnection onCreateInputConnection(@NonNull final InputConnection inputConnection, in onCreateInputConnection() argument
140 Preconditions.checkNotNull(inputConnection, "inputConnection cannot be null"); in onCreateInputConnection()
141 return mHelper.onCreateInputConnection(inputConnection, outAttrs); in onCreateInputConnection()
150 InputConnection onCreateInputConnection(@NonNull InputConnection inputConnection, in onCreateInputConnection() argument
152 return inputConnection; in onCreateInputConnection()
186 InputConnection onCreateInputConnection(@NonNull final InputConnection inputConnection, in onCreateInputConnection() argument
188 if (inputConnection instanceof EmojiInputConnection) { in onCreateInputConnection()
189 return inputConnection; in onCreateInputConnection()
191 return new EmojiInputConnection(mEditText, inputConnection, outAttrs); in onCreateInputConnection()
DEmojiInputConnection.java46 @NonNull final InputConnection inputConnection, in EmojiInputConnection() argument
48 super(inputConnection, false); in EmojiInputConnection()
DEmojiEditText.java75 final InputConnection inputConnection = super.onCreateInputConnection(outAttrs); in onCreateInputConnection() local
76 return getEmojiEditTextHelper().onCreateInputConnection(inputConnection, outAttrs); in onCreateInputConnection()
/frameworks/support/v13/java/android/support/v13/view/inputmethod/
DInputConnectionCompat.java40 boolean commitContent(@NonNull InputConnection inputConnection, in commitContent() argument
66 public boolean commitContent(@NonNull InputConnection inputConnection, in commitContent() argument
76 return inputConnection.performPrivateCommand(COMMIT_CONTENT_ACTION, params); in commitContent()
137 public boolean commitContent(@NonNull InputConnection inputConnection,
140 return inputConnection.commitContent((InputContentInfo) inputContentInfo.unwrap(),
147 @Nullable InputConnection inputConnection, @NonNull EditorInfo editorInfo,
150 return new InputConnectionWrapper(inputConnection, false /* mutable */) {
184 public static boolean commitContent(@NonNull InputConnection inputConnection,
199 return IMPL.commitContent(inputConnection, inputContentInfo, flags, opts);
267 public static InputConnection createWrapper(@NonNull InputConnection inputConnection,
[all …]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DEmojiKeyboardTest.java74 final InputConnection inputConnection = KeyboardUtil.initTextViewForSimulatedIme( in testAppendWithSoftKeyboard() local
76 KeyboardUtil.setComposingTextInBatch(mInstrumentation, inputConnection, in testAppendWithSoftKeyboard()
90 final InputConnection inputConnection = KeyboardUtil.initTextViewForSimulatedIme( in testBackDeleteWithSoftKeyboard() local
92 KeyboardUtil.setComposingTextInBatch(mInstrumentation, inputConnection, string.toString()); in testBackDeleteWithSoftKeyboard()
101 KeyboardUtil.deleteSurroundingText(mInstrumentation, inputConnection, 1, 0); in testBackDeleteWithSoftKeyboard()
112 final InputConnection inputConnection = KeyboardUtil.initTextViewForSimulatedIme( in testForwardDeleteWithSoftKeyboard() local
114 KeyboardUtil.setComposingTextInBatch(mInstrumentation, inputConnection, string.toString()); in testForwardDeleteWithSoftKeyboard()
123 KeyboardUtil.deleteSurroundingText(mInstrumentation, inputConnection, 0, 1); in testForwardDeleteWithSoftKeyboard()
135 final InputConnection inputConnection = KeyboardUtil.initTextViewForSimulatedIme( in testBackDeleteWithHardwareKeyboard() local
137 KeyboardUtil.setComposingTextInBatch(mInstrumentation, inputConnection, string.toString()); in testBackDeleteWithHardwareKeyboard()
[all …]
DEmojiCompatTest.java672 final InputConnection inputConnection = mock(InputConnection.class); in testHandleDeleteSurroundingText_pre19() local
678 reset(inputConnection); in testHandleDeleteSurroundingText_pre19()
680 verifyNoMoreInteractions(inputConnection); in testHandleDeleteSurroundingText_pre19()
684 EmojiCompat.handleDeleteSurroundingText(inputConnection, editable, 1, 0, false)); in testHandleDeleteSurroundingText_pre19()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/
DKeyboardUtil.java78 final InputConnection inputConnection, final CharSequence text) in setComposingTextInBatch() argument
84 inputConnection.beginBatchEdit(); in setComposingTextInBatch()
85 inputConnection.setComposingText(text, 1); in setComposingTextInBatch()
86 inputConnection.endBatchEdit(); in setComposingTextInBatch()
96 final InputConnection inputConnection, final int before, final int after) in deleteSurroundingText() argument
102 inputConnection.beginBatchEdit(); in deleteSurroundingText()
103 inputConnection.deleteSurroundingText(before, after); in deleteSurroundingText()
104 inputConnection.endBatchEdit(); in deleteSurroundingText()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethod.java132 public void startInput(InputConnection inputConnection, EditorInfo info); in startInput() argument
150 public void restartInput(InputConnection inputConnection, EditorInfo attribute); in restartInput() argument
180 default void dispatchStartInputWithToken(@Nullable InputConnection inputConnection, in dispatchStartInputWithToken() argument
184 restartInput(inputConnection, editorInfo); in dispatchStartInputWithToken()
186 startInput(inputConnection, editorInfo); in dispatchStartInputWithToken()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DEmojiEditTextHelperPre19Test.java63 final InputConnection inputConnection = mEmojiEditTextHelper.onCreateInputConnection(param, in testGetOnCreateInputConnection_returnsSameInputConnection() local
66 assertSame(param, inputConnection); in testGetOnCreateInputConnection_returnsSameInputConnection()
DEmojiEditTextHelperTest.java86 final InputConnection inputConnection = mEmojiEditTextHelper.onCreateInputConnection( in testGetOnCreateInputConnection_returnsEmojiInputConnection() local
89 assertThat(inputConnection, instanceOf(EmojiInputConnection.class)); in testGetOnCreateInputConnection_returnsEmojiInputConnection()
/frameworks/support/emoji/appcompat/src/android/support/text/emoji/widget/
DEmojiAppCompatEditText.java69 InputConnection inputConnection = super.onCreateInputConnection(outAttrs); in onCreateInputConnection() local
70 return getEmojiEditTextHelper().onCreateInputConnection(inputConnection, outAttrs); in onCreateInputConnection()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java344 static boolean handleDeleteSurroundingText(@NonNull final InputConnection inputConnection, in handleDeleteSurroundingText() argument
347 if (editable == null || inputConnection == null) { in handleDeleteSurroundingText()
394 inputConnection.beginBatchEdit(); in handleDeleteSurroundingText()
396 inputConnection.endBatchEdit(); in handleDeleteSurroundingText()
DEmojiCompat.java467 @NonNull final InputConnection inputConnection, @NonNull final Editable editable,
471 return EmojiProcessor.handleDeleteSurroundingText(inputConnection, editable,
/frameworks/base/core/java/android/inputmethodservice/
DAbstractInputMethodService.java247 @NonNull InputConnection inputConnection) { in exposeContent() argument
DInputMethodService.java437 public void dispatchStartInputWithToken(@Nullable InputConnection inputConnection, in dispatchStartInputWithToken() argument
445 super.dispatchStartInputWithToken(inputConnection, editorInfo, restarting, in dispatchStartInputWithToken()
2648 @NonNull InputConnection inputConnection) { in exposeContent() argument
2649 if (inputConnection == null) { in exposeContent()
2652 if (getCurrentInputConnection() != inputConnection) { in exposeContent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java568 final InputConnection inputConnection = super.onCreateInputConnection(outAttrs); in onCreateInputConnection() local
570 if (mShowImeOnInputConnection && inputConnection != null) { in onCreateInputConnection()
586 return inputConnection; in onCreateInputConnection()
/frameworks/base/core/java/com/android/internal/view/
DIInputConnectionWrapper.java89 public IInputConnectionWrapper(Looper mainLooper, @NonNull InputConnection inputConnection) { in IInputConnectionWrapper() argument
90 mInputConnection = inputConnection; in IInputConnectionWrapper()