Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DImeAwareEditText.java70 final InputMethodManager imm = in showSoftInputIfNecessary() local
72 imm.showSoftInput(this, 0); in showSoftInputIfNecessary()
78 final InputMethodManager imm = getContext().getSystemService(InputMethodManager.class); in scheduleShowSoftInput() local
79 if (imm.hasActiveInputConnection(this)) { in scheduleShowSoftInput()
84 imm.showSoftInput(this, 0); in scheduleShowSoftInput()
DCtsKeyEventUtil.java199 InputMethodManager imm = targetView.getContext().getSystemService(InputMethodManager.class); in sendKey() local
200 imm.dispatchKeyEventFromInputMethod(imm.isActive() ? null : targetView, newEvent); in sendKey()
/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/src/android/view/inputmethod/cts/
DInputMethodStartInputLifecycleTest.java93 final InputMethodManager imm = context.getSystemService(InputMethodManager.class); in testInputConnectionStateWhenScreenStateChanges() local
141 assertFalse(TestUtils.getOnMainSync(() -> imm.isActive(editText))); in testInputConnectionStateWhenScreenStateChanges()
142 assertFalse(TestUtils.getOnMainSync(() -> imm.isAcceptingText())); in testInputConnectionStateWhenScreenStateChanges()
165 () -> imm.isActive(editText) && imm.isAcceptingText())); in testInputConnectionStateWhenScreenStateChanges()
221 final InputMethodManager imm = editText.getContext().getSystemService( in testNoStartNewInputWhileOtherProcessHasWindowFocus() local
223 assertTrue(TestUtils.getOnMainSync(() -> imm.isActive(editText))); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
224 assertTrue(TestUtils.getOnMainSync(() -> imm.isAcceptingText())); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
DKeyboardVisibilityControlTest.java185 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation()
202 getOnMainSync(() -> imm.isActive(editText)));
206 getOnMainSync(() -> imm.showSoftInput(editText, 0)));
216 getOnMainSync(() -> imm.hideSoftInputFromWindow(editText.getWindowToken(), 0)));
228 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation()
247 getOnMainSync(() -> imm.isActive(nonFocusedEditText)));
249 getOnMainSync(() -> imm.showSoftInput(nonFocusedEditText, 0)));
253 getOnMainSync(() -> imm.hideSoftInputFromWindow(
262 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation()
279 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
[all …]
DImeInsetsVisibilityTest.java249 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation().getContext() in testEditTextPositionAndPersistWhenAboveImeWindowShown() local
306 imm.showInputMethodPicker(); in testEditTextPositionAndPersistWhenAboveImeWindowShown()
307 TestUtils.waitOnMainUntil(() -> imm.isInputMethodPickerShown() && editText.isLaidOut(), in testEditTextPositionAndPersistWhenAboveImeWindowShown()
319 TestUtils.waitOnMainUntil(() -> !imm.isInputMethodPickerShown(), TIMEOUT, in testEditTextPositionAndPersistWhenAboveImeWindowShown()
DBaseInputConnectionTest.java180 final InputMethodManager imm = InstrumentationRegistry.getInstrumentation() in testReportFullscreenMode() local
184 assertFalse(imm.isFullscreenMode()); in testReportFullscreenMode()
188 assertFalse(imm.isFullscreenMode()); in testReportFullscreenMode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayClientTests.java204 final InputMethodManager imm = newDisplayContext.getSystemService(InputMethodManager.class); in testInputMethodManagerDisplayId() local
206 assertEquals("IMM#getDisplayId() must match.", newDisplay.mId, imm.getDisplayId()); in testInputMethodManagerDisplayId()
DMultiDisplaySystemDecorationTests.java467 final InputMethodManager imm = activity.getSystemService(InputMethodManager.class); in testImeApiForBug118341760() local
469 imm.isActive(activity.getEditText())); in testImeApiForBug118341760()
816 final InputMethodManager imm = getSystemService(InputMethodManager.class); in showSoftInput() local
817 imm.showSoftInput(mEditText, 0); in showSoftInput()
/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()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodServiceDeviceTest.java420 final InputMethodManager imm = context.getSystemService(InputMethodManager.class); in showInputMethodPicker() local
422 pollingCheck(() -> imm.isInputMethodPickerShown(), TIMEOUT, in showInputMethodPicker()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3930 final InputMethodManager imm = (InputMethodManager) mActivity.getSystemService( in testSetScrollContainer() local
3944 imm.showSoftInput(mockView, 0); in testSetScrollContainer()
3951 () -> imm.hideSoftInputFromInputMethod(mockView.getWindowToken(), 0)); in testSetScrollContainer()
4373 final InputMethodManager imm = (InputMethodManager) mActivity.getSystemService( in testInputConnection() local
4388 mActivityRule.runOnUiThread(() -> imm.showSoftInput(editText, 0)); in testInputConnection()
4396 assertTrue(imm.isActive(editText)); in testInputConnection()
4398 imm.isActive(view); in testInputConnection()