Home
last modified time | relevance | path

Searched refs:imeSession (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodSubtypeEndToEndTest.java124 try (MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testGetCurrentInputMethodSubtypeNull() argument
138 try (MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testGetCurrentInputMethodSubtype() argument
155 try (MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testNoOnCurrentInputMethodSubtypeChangedForColdStartup() argument
158 final ImeEventStream stream = imeSession.openEventStream(); in testNoOnCurrentInputMethodSubtypeChangedForColdStartup()
182 try (MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testSubtypeSwitchingInTheSameIme() argument
186 final ImeEventStream stream = imeSession.openEventStream(); in testSubtypeSwitchingInTheSameIme()
195 expectCommand(stream, imeSession.callSwitchInputMethod( in testSubtypeSwitchingInTheSameIme()
196 imeSession.getImeId(), IMPLICITLY_ENABLED_TEST_SUBTYPE2), TIMEOUT); in testSubtypeSwitchingInTheSameIme()
215 try (MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testSetExplicitlyEnabledInputMethodSubtypes() argument
219 final ImeEventStream stream = imeSession.openEventStream(); in testSetExplicitlyEnabledInputMethodSubtypes()
[all …]
DStylusHandwritingTest.java200 try (MockImeSession imeSession = MockImeSession.create( in testHandwritingInfo() argument
204 InputMethodInfo info = imeSession.getInputMethodInfo(); in testHandwritingInfo()
217 try (MockImeSession imeSession = MockImeSession.create( in testIsStylusHandwritingAvailable_prefDisabled() argument
221 imeSession.openEventStream(); in testIsStylusHandwritingAvailable_prefDisabled()
240 try (MockImeSession imeSession = MockImeSession.create( in testIsStylusHandwritingAvailable() argument
244 imeSession.openEventStream(); in testIsStylusHandwritingAvailable()
256 try (MockImeSession imeSession = MockImeSession.create( in testIsConnectionlessStylusHandwritingAvailable_prefDisabled() argument
260 imeSession.openEventStream(); in testIsConnectionlessStylusHandwritingAvailable_prefDisabled()
281 try (MockImeSession imeSession = MockImeSession.create( in testIsConnectionlessStylusHandwritingAvailable() argument
285 imeSession.openEventStream(); in testIsConnectionlessStylusHandwritingAvailable()
[all …]
DInputMethodServiceTest.java207 try (MockImeSession imeSession = MockImeSession.create(
211 final ImeEventStream stream = imeSession.openEventStream();
216 final ImeCommand command = imeSession.verifyLayoutInflaterContext();
227 try (MockImeSession imeSession = MockImeSession.create(
231 final ImeEventStream stream = imeSession.openEventStream();
234 final ImeCommand cmd = imeSession.callSwitchInputMethod(OTHER_IME_ID);
251 try (MockImeSession imeSession = MockImeSession.create(
255 final ImeEventStream stream = imeSession.openEventStream();
258 final ImeCommand cmd = imeSession.callSwitchInputMethod(OTHER_IME_ID, null);
273 try (MockImeSession imeSession = MockImeSession.create(
[all …]
DInputConnectionHandlerTest.java152 MockImeSession imeSession = MockImeSession.create( in testCommitText()
173 final ImeEventStream stream = imeSession.openEventStream(); in testCommitText()
186 return imeSession.isActive(); in testCommitText()
191 if (imeSession.isActive()) { in testCommitText()
211 final ImeCommand command = imeSession.callCommitText("", 1); in testCommitText()
230 MockImeSession imeSession = MockImeSession.create( in testCloseConnectionWithRestartInput()
238 final ImeEventStream stream = imeSession.openEventStream(); in testCloseConnectionWithRestartInput()
253 return imeSession.isActive(); in testCloseConnectionWithRestartInput()
258 if (!imeSession.isActive()) { in testCloseConnectionWithRestartInput()
309 MockImeSession imeSession = MockImeSession.create( in testCloseConnectionWithLosingViewFocus()
[all …]
DInputMethodServiceStrictModeTest.java120 try (MockImeSession imeSession = MockImeSession.create( in verifyIms() argument
124 final ImeEventStream stream = imeSession.openEventStream(); in verifyIms()
132 expectCommand(forkedStream, imeSession.callVerifyGetWindowManager(), TIMEOUT); in verifyIms()
136 imeSession.callVerifyGetViewConfiguration(), TIMEOUT); in verifyIms()
139 expectCommand(forkedStream, imeSession.callVerifyGetGestureDetector(), TIMEOUT); in verifyIms()
156 try (MockImeSession imeSession = MockImeSession.create( in testIncorrectContextUseOnImsDerivedDisplayContext() argument
160 final ImeEventStream stream = imeSession.openEventStream(); in testIncorrectContextUseOnImsDerivedDisplayContext()
168 expectCommand(forkedStream, imeSession.callVerifyGetWindowManagerOnDisplayContext(), in testIncorrectContextUseOnImsDerivedDisplayContext()
177 expectCommand(forkedStream, imeSession.callVerifyGetViewConfigurationOnDisplayContext(), in testIncorrectContextUseOnImsDerivedDisplayContext()
186 expectCommand(forkedStream, imeSession.callVerifyGetGestureDetectorOnDisplayContext(), in testIncorrectContextUseOnImsDerivedDisplayContext()
DInputMethodStatsTest.java215 false /* fromUser */, (imeSession, activity) -> { in testClientShowImeRequestFinished()
236 false /* fromUser */, (imeSession, activity) -> { in testClientHideImeRequestFinished()
254 false /* fromUser */, (imeSession, activity) -> { in testServerShowImeRequestFinished()
269 false /* fromUser */, (imeSession, activity) -> { in testServerHideImeRequestFinished()
270 imeSession.hideSoftInputFromServerForTest(); in testServerHideImeRequestFinished()
285 false /* fromUser */, (imeSession, activity) -> { in testImeShowImeRequestFinished()
286 imeSession.callRequestShowSelf(0 /* flags */); in testImeShowImeRequestFinished()
301 false /* fromUser */, (imeSession, activity) -> { in testImeHideImeRequestFinished()
302 imeSession.callRequestHideSelf(0 /* flags */); in testImeHideImeRequestFinished()
316 true /* fromUser */, (imeSession, activity) -> { in testFromUser_withImm_showImeRequestFinished()
[all …]
DInputConnectionLifecycleTest.java96 try (MockImeSession imeSession = MockImeSession.create( in testCloseConnectionWithRestartInput() argument
106 final ImeEventStream stream = imeSession.openEventStream(); in testCloseConnectionWithRestartInput()
121 return imeSession.isActive(); in testCloseConnectionWithRestartInput()
126 if (!imeSession.isActive()) { in testCloseConnectionWithRestartInput()
175 try (MockImeSession imeSession = MockImeSession.create( in testCloseConnectionWithLosingViewFocus() argument
185 final ImeEventStream stream = imeSession.openEventStream(); in testCloseConnectionWithLosingViewFocus()
200 return imeSession.isActive(); in testCloseConnectionWithLosingViewFocus()
205 if (!imeSession.isActive()) { in testCloseConnectionWithLosingViewFocus()
254 try (MockImeSession imeSession = MockImeSession.create( in testCloseConnectionWithLosingWindowFocus() argument
264 final ImeEventStream stream = imeSession.openEventStream(); in testCloseConnectionWithLosingWindowFocus()
[all …]
DExtractViewTest.java87 try (MockImeSession imeSession = MockImeSession.create( in testOnCreateExtractTextView() argument
93 final ImeEventStream stream = imeSession.openEventStream(); in testOnCreateExtractTextView()
106 imeSession.callCommitText(text, 1 /* newCursorPosition */); in testOnCreateExtractTextView()
116 try (MockImeSession imeSession = MockImeSession.create( in testOnCreateExtractTextViewWithCustomView() argument
122 final ImeEventStream stream = imeSession.openEventStream(); in testOnCreateExtractTextViewWithCustomView()
142 imeSession.callCommitText(text, 1 /* newCursorPosition */); in testOnCreateExtractTextViewWithCustomView()
152 try (MockImeSession imeSession = MockImeSession.create( in testSetExtractView() argument
158 final ImeEventStream stream = imeSession.openEventStream(); in testSetExtractView()
169 imeSession.callSetExtractView(label); in testSetExtractView()
180 imeSession.callCommitText(text, 1 /* newCursorPosition */); in testSetExtractView()
DFocusHandlingTest.java169 try (MockImeSession imeSession = createTestImeSession()) { in testOnStartInputCalledOnceIme() argument
170 final ImeEventStream stream = imeSession.openEventStream(); in testOnStartInputCalledOnceIme()
200 try (MockImeSession imeSession = createTestImeSession()) { in testSwitchingBetweenEquivalentNonEditableViews() argument
201 final ImeEventStream stream = imeSession.openEventStream(); in testSwitchingBetweenEquivalentNonEditableViews()
263 final ImeCommand commitText = imeSession.callCommitText(testInput, 0); in testSwitchingBetweenEquivalentNonEditableViews()
284 try (MockImeSession imeSession = createTestImeSession()) { in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() argument
285 final ImeEventStream stream = imeSession.openEventStream(); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
325 try (MockImeSession imeSession = createTestImeSession()) { in testNoEditorNoStartInput() argument
326 final ImeEventStream stream = imeSession.openEventStream(); in testNoEditorNoStartInput()
354 try (MockImeSession imeSession = createTestImeSession()) { in testDelayedAddEditorStartsInput() argument
[all …]
DKeyboardVisibilityControlTest.java250 try (MockImeSession imeSession = MockImeSession.create( in testBasicShowHideSoftInput() argument
254 final ImeEventStream stream = imeSession.openEventStream(); in testBasicShowHideSoftInput()
311 try (MockImeSession imeSession = MockImeSession.create( in verifyHideImeBackPressed() argument
317 final ImeEventStream stream = imeSession.openEventStream(); in verifyHideImeBackPressed()
443 try (MockImeSession imeSession = MockImeSession.create( in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView() argument
447 final ImeEventStream stream = imeSession.openEventStream(); in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
478 try (MockImeSession imeSession = MockImeSession.create( in testToggleSoftInput() argument
482 final ImeEventStream stream = imeSession.openEventStream(); in testToggleSoftInput()
514 try (MockImeSession imeSession = MockImeSession.create( in testShowHideKeyboardOnWebView() argument
518 final ImeEventStream stream = imeSession.openEventStream(); in testShowHideKeyboardOnWebView()
[all …]
DInputMethodStartInputLifecycleTest.java120 try (MockImeSession imeSession = MockImeSession.create( in testInputConnectionStateWhenScreenStateChanges() argument
122 final ImeEventStream stream = imeSession.openEventStream(); in testInputConnectionStateWhenScreenStateChanges()
158 if (imeSession.isFinishInputNoFallbackConnectionEnabled()) { in testInputConnectionStateWhenScreenStateChanges()
167 final ImeCommand commit = imeSession.callCommitText("Hi!", 1); in testInputConnectionStateWhenScreenStateChanges()
180 if (imeSession.isFinishInputNoFallbackConnectionEnabled()) { in testInputConnectionStateWhenScreenStateChanges()
185 final ImeCommand commit1 = imeSession.callCommitText("Hello!", 1); in testInputConnectionStateWhenScreenStateChanges()
203 try (MockImeSession imeSession = MockImeSession.create( in testNoStartNewInputWhileOtherProcessHasWindowFocus() argument
207 final ImeEventStream stream = imeSession.openEventStream(); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
252 try (MockImeSession imeSession = MockImeSession.create( in testShowingImeDuringSessionChange_doesntShowOnPreviousSession() argument
256 final ImeEventStream stream = imeSession.openEventStream(); in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
[all …]
DEditTextImeSupportTest.java108 try (MockImeSession imeSession = MockImeSession.create( in testSetTextTriggersRestartInput() argument
112 final ImeEventStream stream = imeSession.openEventStream(); in testSetTextTriggersRestartInput()
211 try (MockImeSession imeSession = MockImeSession.create( in testNavigateFlags() argument
215 final ImeEventStream stream = imeSession.openEventStream(); in testNavigateFlags()
329 try (MockImeSession imeSession = MockImeSession.create( in testHideSoftInputWhenDisabled() argument
333 final ImeEventStream stream = imeSession.openEventStream(); in testHideSoftInputWhenDisabled()
367 try (MockImeSession imeSession = MockImeSession.create( in testHideSoftInputByActionDone() argument
371 final ImeEventStream stream = imeSession.openEventStream(); in testHideSoftInputByActionDone()
394 expectCommand(stream, imeSession.callPerformEditorAction(EditorInfo.IME_ACTION_DONE), in testHideSoftInputByActionDone()
408 try (MockImeSession imeSession = MockImeSession.create( in testDisableImeAfterFocusChange() argument
[all …]
DSearchViewTest.java130 try (MockImeSession imeSession = MockImeSession.create( in testTapThenSetQuery() argument
134 final ImeEventStream stream = imeSession.openEventStream(); in testTapThenSetQuery()
161 try (MockImeSession imeSession = MockImeSession.create( in testShowImeWithSearchViewFocus() argument
165 final ImeEventStream stream = imeSession.openEventStream(); in testShowImeWithSearchViewFocus()
195 try (MockImeSession imeSession = MockImeSession.create( in testShowImeWhenSearchViewFocusInListView() argument
199 final ImeEventStream stream = imeSession.openEventStream(); in testShowImeWhenSearchViewFocusInListView()
DPackageVisibilityTest.java74 try (MockImeSession imeSession = MockImeSession.create( in testTargetPackageIsVisibleFromIme() argument
78 final ImeEventStream stream = imeSession.openEventStream(); in testTargetPackageIsVisibleFromIme()
85 final ImeCommand command = imeSession.callGetApplicationInfo( in testTargetPackageIsVisibleFromIme()
DAccessibilityInputMethodTest.java87 void run(@NonNull UiAutomation uiAutomation, @NonNull MockImeSession imeSession, in run() argument
97 try (var imeSession = MockImeSession.create(instrumentation.getContext(), uiAutomation, in testA11yIme() argument
101 test.run(uiAutomation, imeSession, a11yImeSession); in testA11yIme()
108 testA11yIme((uiAutomation, imeSession, a11yImeSession) -> { in testLifecycle() argument
153 testA11yIme((uiAutomation, imeSession, a11yImeSession) -> { in testRestartInput() argument
249 testA11yIme((uiAutomation, imeSession, a11yImeSession) -> { in testNoFallbackInputConnection() argument
250 final var imeEventStream = imeSession.openEventStream(); in testNoFallbackInputConnection()
306 testA11yIme((uiAutomation, imeSession, a11yImeSession) -> { in testNoFallbackInputConnectionAfterRestartInput() argument
307 final var imeEventStream = imeSession.openEventStream(); in testNoFallbackInputConnectionAfterRestartInput()
430 testA11yIme((uiAutomation, imeSession, a11yImeSession) -> { in testInvalidateInputMain() argument
[all …]
DImeInsetsVisibilityTest.java97 try (MockImeSession imeSession = MockImeSession.create( in testImeVisibilityWhenImeFocusableChildPopup() argument
101 final ImeEventStream stream = imeSession.openEventStream(); in testImeVisibilityWhenImeFocusableChildPopup()
145 try (MockImeSession imeSession = MockImeSession.create( in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() argument
149 final ImeEventStream stream = imeSession.openEventStream(); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
194 try (MockImeSession imeSession = MockImeSession.create( in testImeVisibilityWhenImeFocusableChildPopupOverlaps() argument
198 final ImeEventStream stream = imeSession.openEventStream(); in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
244 try (MockImeSession imeSession = MockImeSession.create( in testEditTextPositionAndPersistWhenAboveImeWindowShown() argument
248 final ImeEventStream stream = imeSession.openEventStream(); in testEditTextPositionAndPersistWhenAboveImeWindowShown()
322 try (MockImeSession imeSession = MockImeSession.create( in testEditorWontCoveredByImeWhenInputWindowBehindPanel() argument
326 final ImeEventStream stream = imeSession.openEventStream(); in testEditorWontCoveredByImeWhenInputWindowBehindPanel()
DOnScreenPositionTest.java64 try (MockImeSession imeSession = MockImeSession.create( in testImeIsNotBehindNavBar() argument
69 final ImeEventStream stream = imeSession.openEventStream(); in testImeIsNotBehindNavBar()
DDumpTest.java58 try (MockImeSession imeSession = MockImeSession.create( in test_dumpDoesNotContainEditorText() argument
62 final ImeEventStream stream = imeSession.openEventStream(); in test_dumpDoesNotContainEditorText()
DImeInsetsControllerTest.java100 try (MockImeSession imeSession = MockImeSession.create( in testChangeSizeWhileControlling() argument
106 final ImeEventStream stream = imeSession.openEventStream(); in testChangeSizeWhileControlling()
159 expectCommand(stream, imeSession.callSetHeight(newKeyboardHeight), TIMEOUT); in testChangeSizeWhileControlling()
DNavigationBarColorTest.java258 try (MockImeSession imeSession = MockImeSession.create( in getNavigationBarBitmap() argument
260 final ImeEventStream stream = imeSession.openEventStream(); in getNavigationBarBitmap()
DInputConnectionEndToEndTest.java359 void run(@NonNull MockImeSession imeSession, @NonNull ImeEventStream imeStream, in run() argument
422 (imeSession, imeStream, a11ySession, a11yStream) in testA11yInputConnection()
443 (imeSession, imeStream, a11ySession, a11yStream) in testA11yInputConnection()
497 MockImeSession imeSession = MockImeSession.create( in testInputConnection()
501 final ImeEventStream stream = imeSession.openEventStream(); in testInputConnection()
513 return imeSession.isActive(); in testInputConnection()
518 if (imeSession.isActive()) { in testInputConnection()
541 testProcedure.run(imeSession, stream); in testInputConnection()
564 MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testInputConnection()
566 final ImeEventStream imeStream = imeSession.openEventStream(); in testInputConnection()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySoftKeyboardTest.java152 try (TestImeSession imeSession = new TestImeSession(Ime1Constants.IME_ID, true)) { in testSwitchToInputMethod() argument
167 try (TestImeSession imeSession = new TestImeSession(Ime1Constants.IME_ID, false)) { in testSetInputMethodEnabled_differentPackage() argument
190 try (TestImeSession imeSession = new TestImeSession(ImeId, false)) { in testSetInputMethodEnabled_success() argument
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayClientTests.java177 MockImeSession imeSession, int targetDisplayId) throws Exception { in assertImeShownAndMatchesDisplayId() argument
178 final ImeEventStream stream = imeSession.openEventStream(); in assertImeShownAndMatchesDisplayId()
192 final int imeDisplayId = expectCommand(stream, imeSession.callGetDisplayId(), TIMEOUT) in assertImeShownAndMatchesDisplayId()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsControllerTests.java244 final MockImeSession imeSession = MockImeHelper.createManagedMockImeSession(this); in testImeShowAndHide() local
245 final ImeEventStream stream = imeSession.openEventStream(); in testImeShowAndHide()
267 final MockImeSession imeSession = MockImeHelper.createManagedMockImeSession(this); in testImeForceShowingNavigationBar() local
268 final ImeEventStream stream = imeSession.openEventStream(); in testImeForceShowingNavigationBar()
677 try (MockImeSession imeSession = MockImeSession.create(instrumentation.getContext(), in testShowImeOnCreate_doesntCauseImeToReappearWhenDialogIsShown() argument
702 imeSession.logEventStream(); in testShowImeOnCreate_doesntCauseImeToReappearWhenDialogIsShown()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DMultiDisplayImeTests.java364 final MockImeSession imeSession = createManagedMockImeSession(this); in testHideImeWhenImeTargetOnEmbeddedVirtualDisplay() local
377 final ImeEventStream stream = imeSession.openEventStream(); in testHideImeWhenImeTargetOnEmbeddedVirtualDisplay()

12