/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodRegistrationTest.java | 112 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()
|
D | ImeInsetsVisibilityTest.java | 95 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 …]
|
D | KeyboardVisibilityControlTest.java | 247 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 …]
|
D | InputMethodStartInputLifecycleTest.java | 115 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()
|
D | SpellCheckerTest.kt | 449 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 …]
|
D | StylusHandwritingTest.java | 302 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 …]
|
D | InProcessImeTest.java | 160 final InputMethodManager imm = in testOnUpdateSelectionForInProcessIme() local 164 imm.updateSelection(testEditor, expectedNewSelStart, expectedNewSelEnd, -1, -1); in testOnUpdateSelectionForInProcessIme()
|
D | FocusHandlingTest.java | 903 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()
|
D | InputConnectionLifecycleTest.java | 155 final InputMethodManager imm = Objects.requireNonNull( in testCloseConnectionWithRestartInput() local 157 imm.restartInput(testEditor); in testCloseConnectionWithRestartInput()
|
D | InputMethodManagerTest.java | 320 final InputMethodManager imm = testActivity.getSystemService(InputMethodManager.class); in testNoStrongServedViewReferenceAfterWindowDetached() 321 PollingCheck.waitFor(() -> imm.hasActiveInputConnection(viewRef[0])); in testNoStrongServedViewReferenceAfterWindowDetached()
|
D | InputMethodSubtypeEndToEndTest.java | 320 final InputMethodManager imm = in getInputMethodListWithQueryAllPackage() local 322 return SystemUtil.runWithShellPermissionIdentity(imm::getInputMethodList, in getInputMethodListWithQueryAllPackage()
|
D | BaseInputConnectionTest.java | 189 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation() in testReportFullscreenMode() local 193 assertFalse(imm.isFullscreenMode()); in testReportFullscreenMode() 197 assertFalse(imm.isFullscreenMode()); in testReportFullscreenMode()
|
D | InputMethodStatsTest.java | 106 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/ |
D | ForceStopTest.java | 176 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()
|
D | InputMethodServiceSwitchingTest.java | 116 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/ |
D | ResizingEditActivity.java | 46 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/ |
D | MultiUserUtils.java | 103 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/ |
D | InputMethodManagerTest.kt | 48 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/ |
D | InputMethodServiceDeviceTest.java | 186 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/ |
D | LoginActivity.java | 170 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()
|
D | MultipleStepsSignInActivity.java | 107 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/ |
D | MultiDisplayImeTests.java | 176 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/ |
D | BackGestureInvokedTest.java | 241 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/ |
D | MultiDisplayClientTests.java | 207 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/ |
D | AccessibilityImeTest.java | 225 final InputMethodManager imm = in testOnUpdateSelectionForInProcessA11yIme() local 229 imm.updateSelection(mEditText, expectedNewSelStart, expectedNewSelEnd, -1, -1); in testOnUpdateSelectionForInProcessA11yIme()
|