Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodRegistrationTest.java112 final var imm = mContext.getSystemService(InputMethodManager.class); in verifyTestSetup_initiallyDisabledImes_AreFound() local
116 () -> imm.getInputMethodList().stream().filter( in verifyTestSetup_initiallyDisabledImes_AreFound()
129 final var imm = mContext.getSystemService(InputMethodManager.class); in testIgnoreLargeSettingsActivityComponent() local
133 List<InputMethodInfo> imis = imm.getInputMethodList(); in testIgnoreLargeSettingsActivityComponent()
151 final var imm = mContext.getSystemService(InputMethodManager.class); in testLoadIMEsUpToThreshold() local
155 List<InputMethodInfo> imis = imm.getInputMethodList(); in testLoadIMEsUpToThreshold()
178 final var imm = mContext.getSystemService(InputMethodManager.class); in testLoadEnabledIMEsAndMore() local
199 final List<ComponentName> imiIds = imm.getInputMethodList().stream().map( in testLoadEnabledIMEsAndMore()
211 final List<ComponentName> imiIds = imm.getInputMethodList().stream().map( in testLoadEnabledIMEsAndMore()
218 List<InputMethodInfo> imis = imm.getInputMethodList(); in testLoadEnabledIMEsAndMore()
DImeInsetsVisibilityTest.java95 final InputMethodManager imm = getImmOrFail(); in testImeVisibilityWhenImeFocusableChildPopup() local
113 () -> editText.requestFocus() && imm.showSoftInput(editText, 0))); in testImeVisibilityWhenImeFocusableChildPopup()
143 final InputMethodManager imm = getImmOrFail(); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() local
161 () -> editText.requestFocus() && imm.showSoftInput(editText, 0))); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
192 final InputMethodManager imm = getImmOrFail(); in testImeVisibilityWhenImeFocusableChildPopupOverlaps() local
210 () -> editText.requestFocus() && imm.showSoftInput(editText, 0))); in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
242 final InputMethodManager imm = getImmOrFail(); in testEditTextPositionAndPersistWhenAboveImeWindowShown() local
267 () -> editText.requestFocus() && imm.showSoftInput(editText, 0))); in testEditTextPositionAndPersistWhenAboveImeWindowShown()
296 imm.showInputMethodPicker(); in testEditTextPositionAndPersistWhenAboveImeWindowShown()
297 TestUtils.waitOnMainUntil(() -> isInputMethodPickerShown(imm) && editText.isLaidOut(), in testEditTextPositionAndPersistWhenAboveImeWindowShown()
[all …]
DKeyboardVisibilityControlTest.java247 final InputMethodManager imm = mInstrumentation in testBasicShowHideSoftInput() local
264 getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testBasicShowHideSoftInput()
268 getOnMainSync(() -> imm.showSoftInput(editText, 0))); in testBasicShowHideSoftInput()
278 getOnMainSync(() -> imm.hideSoftInputFromWindow(editText.getWindowToken(), 0))); in testBasicShowHideSoftInput()
300 final InputMethodManager imm = context.getSystemService(InputMethodManager.class); in verifyHideImeBackPressed() local
344 getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in verifyHideImeBackPressed()
348 getOnMainSync(() -> imm.showSoftInput(editText, 0))); in verifyHideImeBackPressed()
440 final InputMethodManager imm = mInstrumentation in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView() local
460 getOnMainSync(() -> imm.hasActiveInputConnection(nonFocusedEditText))); in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
462 getOnMainSync(() -> imm.showSoftInput(nonFocusedEditText, 0))); in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
[all …]
DInputMethodStartInputLifecycleTest.java115 final InputMethodManager imm = context.getSystemService(InputMethodManager.class); in testInputConnectionStateWhenScreenStateChanges() local
162 assertFalse(TestUtils.getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testInputConnectionStateWhenScreenStateChanges()
184 assertTrue(TestUtils.getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testInputConnectionStateWhenScreenStateChanges()
240 final InputMethodManager imm = editText.getContext().getSystemService( in testNoStartNewInputWhileOtherProcessHasWindowFocus() local
242 assertTrue(TestUtils.getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
560 final InputMethodManager imm = myEditor.getContext().getSystemService( in testInvalidateInputMain() local
562 imm.invalidateInput(myEditor); in testInvalidateInputMain()
601 final InputMethodManager imm = myEditor.getContext().getSystemService( in testInvalidateInputMain() local
603 imm.updateSelection(myEditor, newSelStart, newSelEnd, -1, -1); in testInvalidateInputMain()
DSpellCheckerTest.kt449 val imm = activity.getSystemService(InputMethodManager::class.java) in <lambda>() constant
451 imm.hasActiveInputConnection(editText) }, TIMEOUT) in <lambda>()
452 assertThat(imm?.isInputMethodSuppressingSpellChecker).isTrue() in <lambda>()
477 val imm = activity.getSystemService(InputMethodManager::class.java) in <lambda>() constant
479 imm.hasActiveInputConnection(editText) }, TIMEOUT) in <lambda>()
480 assertThat(imm?.isInputMethodSuppressingSpellChecker).isFalse() in <lambda>()
500 val imm = activity.getSystemService(InputMethodManager::class.java) in <lambda>() constant
502 imm.hasActiveInputConnection(editText) }, TIMEOUT) in <lambda>()
503 assertThat(imm?.isInputMethodSuppressingSpellChecker).isTrue() in <lambda>()
511 assertThat(imm?.isInputMethodSuppressingSpellChecker).isFalse() in <lambda>()
[all …]
DStylusHandwritingTest.java302 final InputMethodManager imm = mContext.getSystemService(InputMethodManager.class); in testHandwritingNoInitOnDeviceWithNoStylus() local
310 imm.startStylusHandwriting(editText); in testHandwritingNoInitOnDeviceWithNoStylus()
322 final InputMethodManager imm = mContext.getSystemService(InputMethodManager.class); in testHandwritingDoesNotStartWhenNoStylusDown() local
339 imm.startStylusHandwriting(editText); in testHandwritingDoesNotStartWhenNoStylusDown()
353 final InputMethodManager imm = mContext.getSystemService(InputMethodManager.class); in testHandwritingStartAndFinish() local
376 imm.startStylusHandwriting(editText); in testHandwritingStartAndFinish()
501 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation() in testHandwritingStylusEvents() local
530 imm.startStylusHandwriting(editText); in testHandwritingStylusEvents()
1757 final InputMethodManager imm = mContext.getSystemService(InputMethodManager.class);
1774 imm.startConnectionlessStylusHandwritingForDelegation(
[all …]
DInProcessImeTest.java160 final InputMethodManager imm = in testOnUpdateSelectionForInProcessIme() local
164 imm.updateSelection(testEditor, expectedNewSelStart, expectedNewSelEnd, -1, -1); in testOnUpdateSelectionForInProcessIme()
DFocusHandlingTest.java903 final InputMethodManager imm = in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive() local
909 imm.isActive(); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()
1123 final AtomicReference<InputMethodManager> imm = new AtomicReference<>(); in detachServed_withDifferentNextServed_b211105987() local
1134 imm.set(activity.getSystemService(InputMethodManager.class)); in detachServed_withDifferentNextServed_b211105987()
1138 waitOnMainUntil(() -> imm.get().hasActiveInputConnection(firstEditorRef.get()), TIMEOUT); in detachServed_withDifferentNextServed_b211105987()
1155 assertTrue(getOnMainSync(() -> imm.get().hasActiveInputConnection(secondEditorRef.get()))); in detachServed_withDifferentNextServed_b211105987()
1162 final var imm = new AtomicReference<InputMethodManager>(); in testClearCurRootViewWhenDifferentProcessBecomesActive() local
1172 imm.set(activity.getSystemService(InputMethodManager.class)); in testClearCurRootViewWhenDifferentProcessBecomesActive()
1176 waitOnMainUntil(() -> imm.get().hasActiveInputConnection(editorRef.get()), TIMEOUT); in testClearCurRootViewWhenDifferentProcessBecomesActive()
1185 waitOnMainUntil(() -> !imm.get().isCurrentRootView(editorRef.get()), TIMEOUT, in testClearCurRootViewWhenDifferentProcessBecomesActive()
DInputConnectionLifecycleTest.java155 final InputMethodManager imm = Objects.requireNonNull( in testCloseConnectionWithRestartInput() local
157 imm.restartInput(testEditor); in testCloseConnectionWithRestartInput()
DInputMethodManagerTest.java320 final InputMethodManager imm = testActivity.getSystemService(InputMethodManager.class); in testNoStrongServedViewReferenceAfterWindowDetached()
321 PollingCheck.waitFor(() -> imm.hasActiveInputConnection(viewRef[0])); in testNoStrongServedViewReferenceAfterWindowDetached()
DInputMethodSubtypeEndToEndTest.java320 final InputMethodManager imm = in getInputMethodListWithQueryAllPackage() local
322 return SystemUtil.runWithShellPermissionIdentity(imm::getInputMethodList, in getInputMethodListWithQueryAllPackage()
DBaseInputConnectionTest.java189 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation() in testReportFullscreenMode() local
193 assertFalse(imm.isFullscreenMode()); in testReportFullscreenMode()
197 assertFalse(imm.isFullscreenMode()); in testReportFullscreenMode()
DInputMethodStatsTest.java106 final var imm = mInstrumentation.getContext().getSystemService(InputMethodManager.class); in setUp() local
108 imm.finishTrackingPendingImeVisibilityRequests(); in setUp()
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DForceStopTest.java176 final InputMethodManager imm = in assertImeExistsInApiResult() local
180 () -> imm.getInputMethodListAsUser(userId).stream().anyMatch( in assertImeExistsInApiResult()
187 final InputMethodManager imm = in assertImeInCurrentInputMethodInfo() local
191 imm.getCurrentInputMethodInfoAsUser(UserHandle.of(userId)).getId()), in assertImeInCurrentInputMethodInfo()
193 imm.getCurrentInputMethodInfoAsUser(UserHandle.of(userId)).getId(), imeId)), in assertImeInCurrentInputMethodInfo()
199 final InputMethodManager imm = in assertImeNotCurrentInputMethodInfo() local
204 final InputMethodInfo info = imm.getCurrentInputMethodInfoAsUser( in assertImeNotCurrentInputMethodInfo()
215 final InputMethodManager imm = in assertImeEnabledInApiResult() local
220 () -> imm.getEnabledInputMethodListAsUser( in assertImeEnabledInApiResult()
DInputMethodServiceSwitchingTest.java116 final InputMethodManager imm = context.getSystemService(InputMethodManager.class); in getCurrentInputMethodId() local
118 imm.getCurrentInputMethodInfoAsUser(UserHandle.of(userId)), in getCurrentInputMethodId()
139 final InputMethodManager imm = in getInputMethodList() local
142 () -> imm.getInputMethodListAsUser(userId), in getInputMethodList()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DResizingEditActivity.java46 InputMethodManager imm = getSystemService(InputMethodManager.class); in showSoftInputOnExtraInputEditText() local
47 imm.showSoftInput(mExtraInput, InputMethodManager.SHOW_IMPLICIT); in showSoftInputOnExtraInputEditText()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMultiUserUtils.java103 final InputMethodManager imm = Objects.requireNonNull( in getCurrentInputMethodInfoAsUser() local
106 imm.getCurrentInputMethodInfoAsUser(user), in getCurrentInputMethodInfoAsUser()
129 final InputMethodManager imm = Objects.requireNonNull(
132 () -> imm.getInputMethodListAsUser(user.getIdentifier()),
140 final InputMethodManager imm = Objects.requireNonNull(
144 return imm.getEnabledInputMethodListAsUser(user);
/cts/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/
DInputMethodManagerTest.kt48 val imm = context.getSystemService(InputMethodManager::class.java)!! in <lambda>() constant
63 imm.reflectivelyGetInputMethodWindowVisibleHeight() in <lambda>()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodServiceDeviceTest.java186 final InputMethodManager imm = context.getSystemService(InputMethodManager.class); in testSwitchToHandwritingInputMethod() local
188 imm.isStylusHandwritingAvailable()); in testSwitchToHandwritingInputMethod()
209 imm.isStylusHandwritingAvailable()); in testSwitchToHandwritingInputMethod()
219 imm.isStylusHandwritingAvailable()); in testSwitchToHandwritingInputMethod()
395 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation().getContext() in isInputMethodPickerShown() local
401 return imm.isInputMethodPickerShown(); in isInputMethodPickerShown()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DLoginActivity.java170 final InputMethodManager imm = (InputMethodManager) getSystemService( in save() local
172 imm.hideSoftInputFromWindow(mUsernameEditText.getWindowToken(), 0); in save()
406 final InputMethodManager imm = (InputMethodManager) getSystemService( in hideSoftInput() local
408 imm.hideSoftInputFromWindow(mUsernameEditText.getWindowToken(), 0); in hideSoftInput()
DMultipleStepsSignInActivity.java107 final InputMethodManager imm = getSystemService(InputMethodManager.class); in hideSoftInput() local
108 imm.hideSoftInputFromWindow(getWindow().getDecorView().getWindowToken(), 0); in hideSoftInput()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DMultiDisplayImeTests.java176 final var imm = activity.getApplicationContext() in testFallbackImmMaintainsParameters() local
178 imm.showSoftInput(activity.mEditText, 0 /* flags */); in testFallbackImmMaintainsParameters()
213 final InputMethodManager imm = activity.getSystemService(InputMethodManager.class); in testImeApiForBug118341760() local
215 imm.isActive(activity.getEditText())); in testImeApiForBug118341760()
603 final InputMethodManager imm = getSystemService(InputMethodManager.class); in showSoftInput() local
604 imm.showSoftInput(mEditText, 0); in showSoftInput()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DBackGestureInvokedTest.java241 InputMethodManager imm = (InputMethodManager) in onCreate() local
243 imm.showSoftInput(mEditText, InputMethodManager.SHOW_IMPLICIT); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayClientTests.java207 final InputMethodManager imm = newDisplayContext.getSystemService(InputMethodManager.class); in testInputMethodManagerDisplayId() local
209 assertEquals("IMM#getDisplayId() must match.", newDisplay.mId, imm.getDisplayId()); in testInputMethodManagerDisplayId()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityImeTest.java225 final InputMethodManager imm = in testOnUpdateSelectionForInProcessA11yIme() local
229 imm.updateSelection(mEditText, expectedNewSelStart, expectedNewSelEnd, -1, -1); in testOnUpdateSelectionForInProcessA11yIme()

12