Home
last modified time | relevance | path

Searched refs:expectEvent (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DKeyboardVisibilityControlTest.java44 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
259 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testBasicShowHideSoftInput()
270 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); in testBasicShowHideSoftInput()
271 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testBasicShowHideSoftInput()
280 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); in testBasicShowHideSoftInput()
281 expectEvent(stream, onFinishInputViewMatcher(false), TIMEOUT); in testBasicShowHideSoftInput()
339 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in verifyHideImeBackPressed()
350 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); in verifyHideImeBackPressed()
351 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in verifyHideImeBackPressed()
360 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); in verifyHideImeBackPressed()
[all …]
DImeSwitchingTest.java25 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
84 expectEvent(stream2, editorMatcher("onStartInput", marker), TIMEOUT); in testSwitchingIme()
88 expectEvent(stream2, eventMatcher("onDestroy"), TIMEOUT); in testSwitchingIme()
90 expectEvent(stream1, eventMatcher("onCreate"), TIMEOUT); in testSwitchingIme()
91 expectEvent(stream1, editorMatcher("onStartInput", marker), TIMEOUT); in testSwitchingIme()
133 expectEvent(stream2, editorMatcher("onStartInput", marker), TIMEOUT); in testImeRemainsVisibleAfterSwitchingIme()
138 expectEvent(stream2, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeRemainsVisibleAfterSwitchingIme()
146 expectEvent(stream1, eventMatcher("onCreate"), TIMEOUT); in testImeRemainsVisibleAfterSwitchingIme()
147 expectEvent(stream1, editorMatcher("onStartInput", marker), TIMEOUT); in testImeRemainsVisibleAfterSwitchingIme()
148 expectEvent(stream1, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeRemainsVisibleAfterSwitchingIme()
DFocusHandlingTest.java41 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
184 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testOnStartInputCalledOnceIme()
206 expectEvent(stream, startInputWithFallbackInputConnectionMatcher(), EXPECT_TIMEOUT); in testSwitchingBetweenEquivalentNonEditableViews()
240 expectEvent(stream, startInputWithFallbackInputConnectionMatcher(), EXPECT_TIMEOUT); in testSwitchingBetweenEquivalentNonEditableViews()
246 expectEvent(stream, startInputWithFallbackInputConnectionMatcher(), EXPECT_TIMEOUT); in testSwitchingBetweenEquivalentNonEditableViews()
254 expectEvent(stream, startInputWithFallbackInputConnectionMatcher(), EXPECT_TIMEOUT); in testSwitchingBetweenEquivalentNonEditableViews()
260 expectEvent(stream, showSoftInputMatcher(0), EXPECT_TIMEOUT); in testSwitchingBetweenEquivalentNonEditableViews()
317 expectEvent(stream, showSoftInputMatcher(0), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
379 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testDelayedAddEditorStartsInput()
402 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testEditorStartsInput()
[all …]
DStylusHandwritingTest.java32 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
332 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testHandwritingDoesNotStartWhenNoStylusDown()
363 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testHandwritingStartAndFinish()
384 expectEvent( in testHandwritingStartAndFinish()
388 expectEvent( in testHandwritingStartAndFinish()
401 expectEvent( in testHandwritingStartAndFinish()
423 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testStylusHoverInitInkWindow()
445 expectEvent( in testStylusHoverInitInkWindow()
512 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testHandwritingStylusEvents()
533 expectEvent( in testHandwritingStylusEvents()
[all …]
DInputMethodServiceTest.java38 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
214 expectEvent(stream, editorMatcher("onStartInputView", mMarker), TIMEOUT);
232 expectEvent(stream, eventMatcher("onStartInput"), TIMEOUT);
256 expectEvent(stream, eventMatcher("onStartInput"), TIMEOUT);
280 expectEvent(stream, editorMatcher("onStartInputView", mMarker), TIMEOUT);
290 expectEvent(stream, backKeyDownMatcher(true), CHECK_EXIT_EVENT_ONLY, TIMEOUT);
332 expectEvent(stream, editorMatcher("onStartInputView", mMarker), TIMEOUT);
337 expectEvent(stream, eventMatcher("hideSoftInput"), TIMEOUT);
338 expectEvent(stream, eventMatcher("onFinishInputView"), TIMEOUT);
362 expectEvent(stream, eventMatcher("showSoftInput"), TIMEOUT);
[all …]
DInputMethodServiceStrictModeTest.java25 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
127 expectEvent(stream, eventMatcher("onStartInput"), TIMEOUT); in verifyIms()
163 expectEvent(stream, eventMatcher("onStartInput"), TIMEOUT); in testIncorrectContextUseOnImsDerivedDisplayContext()
171 expectEvent(stream, eventMatcher("onStrictModeViolated"), in testIncorrectContextUseOnImsDerivedDisplayContext()
180 expectEvent(stream, eventMatcher("onStrictModeViolated"), in testIncorrectContextUseOnImsDerivedDisplayContext()
189 expectEvent(stream, eventMatcher("onStrictModeViolated"), in testIncorrectContextUseOnImsDerivedDisplayContext()
DEditTextImeSupportTest.java23 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
123 final ImeEvent firstOnStartInput = expectEvent(stream, in testSetTextTriggersRestartInput()
143 final ImeEvent secondOnStartInput = expectEvent(stream, in testSetTextTriggersRestartInput()
296 final ImeEvent startInput = expectEvent(stream, in verifyNavigateFlags()
349 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testHideSoftInputWhenDisabled()
354 expectEvent(stream, showSoftInputMatcher(0), TIMEOUT); in testHideSoftInputWhenDisabled()
357 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); in testHideSoftInputWhenDisabled()
387 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testHideSoftInputByActionDone()
392 expectEvent(stream, showSoftInputMatcher(0), TIMEOUT); in testHideSoftInputByActionDone()
396 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); in testHideSoftInputByActionDone()
[all …]
DImeInsetsVisibilityTest.java31 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
115 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup()
116 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup()
117 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup()
163 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
164 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
165 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
212 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
213 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
214 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
[all …]
DInputMethodSubtypeEndToEndTest.java22 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
163 expectEvent(stream, eventMatcher("onCreate"), TIMEOUT); in testNoOnCurrentInputMethodSubtypeChangedForColdStartup()
166 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testNoOnCurrentInputMethodSubtypeChangedForColdStartup()
190 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testSubtypeSwitchingInTheSameIme()
197 …final ImeEvent result = expectEvent(stream, eventMatcher("onCurrentInputMethodSubtypeChanged"), TI… in testSubtypeSwitchingInTheSameIme()
224 expectEvent(stream, eventMatcher("onCreate"), TIMEOUT); in testSetExplicitlyEnabledInputMethodSubtypes()
307 expectEvent(stream, eventMatcher("onCreate"), TIMEOUT); in testSetAdditionalInputMethodSubtypesForAlreadyEnabledSubtype()
313 expectEvent(stream, onCurrentIMSubtypeChangedMatcher(TEST_SUBTYPE2), TIMEOUT); in testSetAdditionalInputMethodSubtypesForAlreadyEnabledSubtype()
346 expectEvent(stream, eventMatcher("onCreate"), TIMEOUT); in testSetAdditionalInputMethodSubtypeDoesNotRemoveImesInvisibleFromCaller()
DInputMethodStartInputLifecycleTest.java31 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
151 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges()
160 expectEvent(stream, onFinishInputMatcher(), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges()
164 expectEvent(stream, onFinishInputMatcher(), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges()
179 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges()
216 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
260 expectEvent(stream, editorMatcher("onStartInput", markerHidden), TIMEOUT); in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
273 expectEvent(stream.copy(), editorMatcher("onStartInput", markerShown), TIMEOUT); in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
277 expectEvent(stream, editorMatcher("onStartInputView", markerShown), TIMEOUT); in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
357 expectEvent(stream, editorMatcher("onStartInput", marker1), TIMEOUT); in testInvalidateInputBeforeInputMethodSessionBecomesAvailable()
[all …]
DSearchViewTest.java26 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
146 expectEvent(stream, showSoftInputWithRealInputConnectionMatcher(), in testTapThenSetQuery()
153 expectEvent(stream, eventMatcher("hideSoftInput"), TIMEOUT); in testTapThenSetQuery()
177 expectEvent(stream, in testShowImeWithSearchViewFocus()
211 expectEvent(stream, showSoftInputWithRealInputConnectionMatcher(), in testShowImeWhenSearchViewFocusInListView()
DOnScreenPositionTest.java22 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
88 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeIsNotBehindNavBar()
DInputConnectionHandlerTest.java26 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
209 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCommitText()
283 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCloseConnectionWithRestartInput()
365 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCloseConnectionWithLosingViewFocus()
436 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCloseConnectionWithLosingWindowFocus()
517 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testReportFullscreenMode()
531 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testReportFullscreenMode()
621 expectEvent(stream, editorMatcher("onStartInput", editTextMarker), TIMEOUT); in testInputConnectionSideEffect()
782 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testExceptionFromGetSurroundingText()
DExtractViewTest.java22 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
95 expectEvent(stream, editorMatcher("onStartInput", marker), START_INPUT_TIMEOUT); in testOnCreateExtractTextView()
124 expectEvent(stream, editorMatcher("onStartInput", marker), START_INPUT_TIMEOUT); in testOnCreateExtractTextViewWithCustomView()
160 expectEvent(stream, editorMatcher("onStartInput", marker), START_INPUT_TIMEOUT); in testSetExtractView()
DDumpTest.java20 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
74 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in test_dumpDoesNotContainEditorText()
DInputConnectionLifecycleTest.java23 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
150 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCloseConnectionWithRestartInput()
233 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCloseConnectionWithLosingViewFocus()
305 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testCloseConnectionWithLosingWindowFocus()
DAccessibilityInputMethodTest.java28 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
274 expectEvent(imeEventStream, editorMatcher("onStartInput", marker), TIMEOUT); in testNoFallbackInputConnection()
282 expectEvent(imeEventStream, eventMatcher("onFinishInput"), TIMEOUT); in testNoFallbackInputConnection()
288 … final var startInputEvent = expectEvent(imeEventStream, eventMatcher("onStartInput"), TIMEOUT); in testNoFallbackInputConnection()
329 expectEvent(imeEventStream, editorMatcher("onStartInput", marker), TIMEOUT); in testNoFallbackInputConnectionAfterRestartInput()
341 … final var startInputEvent = expectEvent(imeEventStream, eventMatcher("onStartInput"), TIMEOUT); in testNoFallbackInputConnectionAfterRestartInput()
461 expectEvent(imeEventStream, editorMatcher("onStartInput", marker), TIMEOUT); in testInvalidateInputMain()
492 expectEvent(imeEventStream, editorMatcher("onStartInput", marker), TIMEOUT); in testInvalidateInputMain()
DPackageVisibilityTest.java21 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
83 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testTargetPackageIsVisibleFromIme()
DInputConnectionEndToEndTest.java29 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
539 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnection()
602 expectEvent(imeStream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnection()
812 expectEvent(stream, eventMatcher("unbindInput"), TIMEOUT); in testGetTextAfterCursorFailFastAfterUnbindInput()
974 expectEvent(stream, eventMatcher("unbindInput"), TIMEOUT); in testGetTextBeforeCursorFailFastAfterUnbindInput()
1093 expectEvent(stream, eventMatcher("unbindInput"), TIMEOUT); in testGetSelectedTextFailFastAfterUnbindInput()
1158 var event = expectEvent(stream, onRequestTextBoundsInfoResultMatcher(command.getId()), in testRequestTextBoundsInfo()
1175 var event = expectEvent(stream, onRequestTextBoundsInfoResultMatcher(command.getId()), in testRequestTextBoundsInfo_unimplemented()
1394 expectEvent(stream, eventMatcher("unbindInput"), TIMEOUT); in testGetSurroundingTextFailFastAfterUnbindInput()
1845 ImeEvent callbackEvent = expectEvent( in testPerformHandwritingGesture()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DMultiDisplayImeTests.java32 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
129 expectEvent(stream, editorMatcher("onStartInput", in testImeWindowCanSwitchToDifferentDisplays()
142 expectEvent(stream, editorMatcher("onStartInput", in testImeWindowCanSwitchToDifferentDisplays()
172 expectEvent(stream, editorMatcher("onStartInput", in testFallbackImmMaintainsParameters()
203 expectEvent(stream, event -> { in testImeApiForBug118341760()
249 expectEvent(stream, editorMatcher("onStartInput", in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
256 expectEvent(stream, editorMatcher("onStartInput", in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
265 expectEvent(stream, editorMatcher("onStartInput", in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
299 expectEvent(stream, editorMatcher("onStartInput", in testCrossDisplayBasicImeOperations()
379 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testHideImeWhenImeTargetOnEmbeddedVirtualDisplay()
[all …]
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserMockImeTest.java21 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
124 expectEvent(stream1, editorMatcher("onStartInput", marker1), TIMEOUT); in testProfileSwitching()
132 expectEvent(stream2, editorMatcher("onStartInput", marker2), TIMEOUT); in testProfileSwitching()
133 expectEvent(stream1, event -> "onDestroy".equals(event.getEventName()), in testProfileSwitching()
/cts/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/
DInputMethodManagerTest.kt29 import com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent in <lambda>()
57 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT) in <lambda>()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java108 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent() method in ImeEventStreamTestUtils
110 return expectEvent(stream, condition, EventFilterMode.CHECK_ENTER_EVENT_ONLY, timeout); in expectEvent()
129 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent() method in ImeEventStreamTestUtils
280 return expectEvent(stream, predicate, EventFilterMode.CHECK_EXIT_EVENT_ONLY, timeout);
348 expectEvent(stream, withDescription("bindInput(pid=" + targetProcessPid + ")",
370 expectEvent(stream, condition, timeout);
/cts/tests/framework/base/windowmanager/src/android/server/wm/keyguard/
DKeyguardLockedTests.java40 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
368 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), in testShowWhenLockedAttrImeActivityAndShowSoftInput()
390 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), in testShowWhenLockedImeActivityAndShowSoftInput()
428 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), in testImeShowsAfterLockScreenOnEditorTap()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayClientTests.java30 import static com.android.cts.mockime.ImeEventStreamTestUtils.expectEvent;
189 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), TIMEOUT); in assertImeShownAndMatchesDisplayId()

12