Home
last modified time | relevance | path

Searched refs:editorInfo (Results 1 – 21 of 21) sorted by relevance

/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DCtsBaseInputMethod.java138 public void onStartInput(EditorInfo editorInfo, boolean restarting) { in onStartInput() argument
141 + " editorInfo=" + editorInfo in onStartInput()
144 sendEvent(ON_START_INPUT, editorInfo, restarting); in onStartInput()
146 super.onStartInput(editorInfo, restarting); in onStartInput()
148 if (editorInfo.extras != null) { in onStartInput()
150 editorInfo.extras.getString(EDITOR_INFO_KEY_REPLY_USER_HANDLE_SESSION_ID, null); in onStartInput()
162 public void onStartInputView(EditorInfo editorInfo, boolean restarting) { in onStartInputView() argument
165 + " editorInfo=" + editorInfo in onStartInputView()
168 sendEvent(ON_START_INPUT_VIEW, editorInfo, restarting); in onStartInputView()
170 super.onStartInputView(editorInfo, restarting); in onStartInputView()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DAccessibilityInputMethodTest.java182 final var editorInfo = in testRestartInput()
185 if (!TextUtils.equals(editorInfo.privateImeOptions, marker)) { in testRestartInput()
204 final var editorInfo = in testRestartInput()
207 if (!TextUtils.equals(editorInfo.privateImeOptions, markerForRestartInput)) { in testRestartInput()
225 final var editorInfo = startInputEvent.getArguments().getParcelable("editorInfo", in verifyOnStartInputEventForFallbackInputConnection() local
227 assertThat(editorInfo).isNotNull(); in verifyOnStartInputEventForFallbackInputConnection()
228 assertThat(editorInfo.inputType).isEqualTo(EditorInfo.TYPE_NULL); in verifyOnStartInputEventForFallbackInputConnection()
388 private void assertEditorInfo(@NonNull EditorInfo editorInfo, in assertEditorInfo() argument
390 assertThat(editorInfo).isNotNull(); in assertEditorInfo()
391 assertThat(editorInfo.initialSelStart).isEqualTo(initialSelStart); in assertEditorInfo()
[all …]
DEditTextImeSupportTest.java160 private static void assertInitialSurroundingText(@NonNull EditorInfo editorInfo, in assertInitialSurroundingText() argument
175 editorInfo.getInitialTextBeforeCursor(expectedTextLength, 0)); in assertInitialSurroundingText()
177 editorInfo.getInitialSelectedText(0)); in assertInitialSurroundingText()
179 editorInfo.getInitialTextAfterCursor(expectedTextLength, 0)); in assertInitialSurroundingText()
182 editorInfo.getInitialSurroundingText(expectedTextLength, expectedTextLength, 0); in assertInitialSurroundingText()
298 final EditorInfo editorInfo = startInput.getArguments().getParcelable("editorInfo"); in verifyNavigateFlags() local
299 assertThat(editorInfo).isNotNull(); in verifyNavigateFlags()
300 assertThat(editorInfo.imeOptions & EditorInfo.IME_FLAG_NAVIGATE_NEXT) in verifyNavigateFlags()
302 assertThat(editorInfo.imeOptions & EditorInfo.IME_FLAG_NAVIGATE_PREVIOUS) in verifyNavigateFlags()
312 EditorInfo editorInfo = new EditorInfo(); in testEndBatchEditReturnValue() local
[all …]
DInputMethodStartInputLifecycleTest.java543 final EditorInfo editorInfo = in testInvalidateInputMain() local
545 assertThat(editorInfo).isNotNull(); in testInvalidateInputMain()
546 assertThat(editorInfo.initialSelStart).isEqualTo(initialSelStart); in testInvalidateInputMain()
547 assertThat(editorInfo.initialSelEnd).isEqualTo(initialSelEnd); in testInvalidateInputMain()
548 assertThat(editorInfo.getInitialSelectedText(0).toString()).isEqualTo("3456"); in testInvalidateInputMain()
572 final EditorInfo editorInfo = in testInvalidateInputMain() local
574 assertThat(editorInfo).isNotNull(); in testInvalidateInputMain()
575 assertThat(editorInfo.initialSelStart).isEqualTo(newSelStart); in testInvalidateInputMain()
576 assertThat(editorInfo.initialSelEnd).isEqualTo(newSelEnd); in testInvalidateInputMain()
577 assertThat(editorInfo.getInitialSelectedText(0).toString()).isEqualTo("12"); in testInvalidateInputMain()
DInProcessImeTest.java138 final EditorInfo editorInfo = inProcIme.getCurrentInputEditorInfo(); in testOnUpdateSelectionForInProcessIme()
139 if (editorInfo == null) { in testOnUpdateSelectionForInProcessIme()
142 return TextUtils.equals(editorInfo.privateImeOptions, marker); in testOnUpdateSelectionForInProcessIme()
DEditorInfoTest.java406 private static void assertExpectedTextLength(EditorInfo editorInfo, in assertExpectedTextLength() argument
411 editorInfo.getInitialTextBeforeCursor(REQUEST_LONGEST_AVAILABLE_TEXT, in assertExpectedTextLength()
414 editorInfo.getInitialSelectedText(InputConnection.GET_TEXT_WITH_STYLES); in assertExpectedTextLength()
416 editorInfo.getInitialTextAfterCursor(REQUEST_LONGEST_AVAILABLE_TEXT, in assertExpectedTextLength()
418 final SurroundingText surroundingText = editorInfo.getInitialSurroundingText( in assertExpectedTextLength()
DInputMethodServiceTest.java483 public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
485 super.onCreateInputConnection(editorInfo), false) {
DStylusHandwritingTest.java1568 final EditorInfo editorInfo = event.getArguments().getParcelable("editorInfo"); in startInputInitialEditorToolMatcher() field in StylusHandwritingTest
1569 return expectedToolType == editorInfo.getInitialToolType(); in startInputInitialEditorToolMatcher()
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DMainActivity.java119 public InputConnection onCreateInputConnection(EditorInfo editorInfo) { in onCreate()
120 final InputConnection original = super.onCreateInputConnection(editorInfo); in onCreate()
121 if (editorInfo.extras == null) { in onCreate()
122 editorInfo.extras = new Bundle(); in onCreate()
124 editorInfo.extras.putString( in onCreate()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityInputConnectionTest.java113 sStubImeAccessibilityService.setOnStartInputCallback(((editorInfo, restarting) -> { in setUp() argument
114 if (editorInfo != null && TextUtils.equals(markerValue, editorInfo.privateImeOptions)) { in setUp()
126 public InputConnection onCreateInputConnection(EditorInfo editorInfo) { in setUp()
127 final InputConnection ic = super.onCreateInputConnection(editorInfo); in setUp()
DAccessibilityImeTest.java157 final EditorInfo editorInfo = in testDefaultImplementation()
159 return editorInfo != null ? editorInfo.privateImeOptions : null; in testDefaultImplementation()
195 sStubImeAccessibilityService.setOnStartInputCallback((editorInfo, restarting) -> { in testOnUpdateSelectionForInProcessA11yIme() argument
196 if (TextUtils.equals(editorInfo.privateImeOptions, marker)) { in testOnUpdateSelectionForInProcessA11yIme()
DStubImeAccessibilityService.java45 void onStartInput(EditorInfo editorInfo, boolean restarting); in onStartInput() argument
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java173 final EditorInfo editorInfo = event.getArguments().getParcelable("editorInfo"); in editorMatcher() field in ImeEventStreamTestUtils
174 return TextUtils.equals(marker, editorInfo.privateImeOptions); in editorMatcher()
214 final EditorInfo editorInfo = event.getArguments().getParcelable("editorInfo");
216 return (TextUtils.equals(marker, editorInfo.privateImeOptions)
233 final EditorInfo editorInfo = event.getArguments().getParcelable("editorInfo");
234 return fieldId == editorInfo.fieldId;
DMockIme.java1113 public void onStartInput(EditorInfo editorInfo, boolean restarting) {
1114 getTracer().onStartInput(editorInfo, restarting,
1115 () -> super.onStartInput(editorInfo, restarting));
1119 public void onStartInputView(EditorInfo editorInfo, boolean restarting) {
1120 getTracer().onStartInputView(editorInfo, restarting,
1121 () -> super.onStartInputView(editorInfo, restarting));
1536 void onStartInput(EditorInfo editorInfo, boolean restarting, @NonNull Runnable runnable) {
1538 arguments.putParcelable("editorInfo", editorInfo);
1549 void onStartInputView(EditorInfo editorInfo, boolean restarting,
1552 arguments.putParcelable("editorInfo", editorInfo);
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java154 EditorInfo editorInfo = new EditorInfo(); in testTextView_onCreateInputConnection_noCustomReceiver() local
155 InputConnection ic = mTextView.onCreateInputConnection(editorInfo); in testTextView_onCreateInputConnection_noCustomReceiver()
157 assertThat(editorInfo.contentMimeTypes).isNull(); in testTextView_onCreateInputConnection_noCustomReceiver()
170 EditorInfo editorInfo = new EditorInfo(); in testTextView_onCreateInputConnection_customReceiver() local
171 InputConnection ic = mTextView.onCreateInputConnection(editorInfo); in testTextView_onCreateInputConnection_customReceiver()
173 assertThat(editorInfo.contentMimeTypes).isEqualTo(receiverMimeTypes); in testTextView_onCreateInputConnection_customReceiver()
188 EditorInfo editorInfo = new EditorInfo(); in testTextView_onCreateInputConnection_customReceiver_oldTargetSdk() local
189 InputConnection ic = mTextView.onCreateInputConnection(editorInfo); in testTextView_onCreateInputConnection_customReceiver_oldTargetSdk()
191 assertThat(editorInfo.contentMimeTypes).isEqualTo(receiverMimeTypes); in testTextView_onCreateInputConnection_customReceiver_oldTargetSdk()
852 EditorInfo editorInfo = new EditorInfo(); in triggerImeCommitContent() local
[all …]
DTextViewHandwritingGestureTest.java167 EditorInfo editorInfo = new EditorInfo(); in onCreateInputConnection_reportsSupportedGestures() local
168 mEditText.onCreateInputConnection(editorInfo); in onCreateInputConnection_reportsSupportedGestures()
171 editorInfo.getSupportedHandwritingGestures(); in onCreateInputConnection_reportsSupportedGestures()
186 EditorInfo editorInfo = new EditorInfo(); in onCreateInputConnection_reportsSupportedGesturePreviews() local
187 mEditText.onCreateInputConnection(editorInfo); in onCreateInputConnection_reportsSupportedGesturePreviews()
190 editorInfo.getSupportedHandwritingGesturePreviews(); in onCreateInputConnection_reportsSupportedGesturePreviews()
DEditTextTest.java735 EditorInfo editorInfo = new EditorInfo(); in testInputTypeForConversionSuggestions() local
736 editText.onCreateInputConnection(editorInfo); in testInputTypeForConversionSuggestions()
740 editorInfo.inputType); in testInputTypeForConversionSuggestions()
DTextViewTest.java5768 EditorInfo editorInfo = new EditorInfo(); in isStylusHandwritingEnabled_default_returnsTrue() local
5769 mTextView.onCreateInputConnection(editorInfo); in isStylusHandwritingEnabled_default_returnsTrue()
5770 assertTrue(editorInfo.isStylusHandwritingEnabled()); in isStylusHandwritingEnabled_default_returnsTrue()
5787 EditorInfo editorInfo = new EditorInfo(); in isStylusHandwritingEnabled_autoHandwritingDisabled_returnsFalse() local
5788 mTextView.onCreateInputConnection(editorInfo); in isStylusHandwritingEnabled_autoHandwritingDisabled_returnsFalse()
5789 assertFalse(editorInfo.isStylusHandwritingEnabled()); in isStylusHandwritingEnabled_autoHandwritingDisabled_returnsFalse()
5867 final EditorInfo editorInfo = new EditorInfo(); in testAccessImeHintLocales() local
5868 textView.onCreateInputConnection(editorInfo); in testAccessImeHintLocales()
5869 assertNull(editorInfo.hintLocales); in testAccessImeHintLocales()
5876 final EditorInfo editorInfo = new EditorInfo(); in testAccessImeHintLocales() local
[all …]
/cts/tests/inputmethod/mocka11yime/client/src/com/android/cts/mocka11yime/
DMockA11yImeEventStreamUtils.java148 final EditorInfo editorInfo = event.getArguments().getParcelable("editorInfo", in editorMatcherForA11yIme() field in MockA11yImeEventStreamUtils
150 return TextUtils.equals(marker, editorInfo.privateImeOptions); in editorMatcherForA11yIme()
/cts/tests/inputmethod/mocka11yime/service/src/com/android/cts/mocka11yime/
DMockA11yIme.java162 public void onStartInput(EditorInfo editorInfo, boolean restarting) { in onStartInput() argument
163 getTracer().onStartInput(editorInfo, restarting, in onStartInput()
164 () -> super.onStartInput(editorInfo, restarting)); in onStartInput()
449 void onStartInput(EditorInfo editorInfo, boolean restarting, @NonNull Runnable runnable) { in onStartInput() argument
451 arguments.putParcelable("editorInfo", editorInfo); in onStartInput()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DMultiDisplayImeTests.java207 final EditorInfo editorInfo = event.getArguments().getParcelable("editorInfo"); in testImeApiForBug118341760()
208 return TextUtils.equals(editorInfo.packageName, mContext.getPackageName()) in testImeApiForBug118341760()
209 && TextUtils.equals(editorInfo.privateImeOptions, privateImeOption); in testImeApiForBug118341760()