Home
last modified time | relevance | path

Searched refs:waitOnMainUntil (Results 1 – 11 of 11) sorted by relevance

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DSpellCheckerTest.kt37 import android.view.inputmethod.cts.util.TestUtils.waitOnMainUntil in <lambda>()
135 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
139 waitOnMainUntil({ in <lambda>()
145 waitOnMainUntil({ isCursorInside(editText, 1, 4) }, TIMEOUT) in <lambda>()
151 waitOnMainUntil({ "$uniqueSuggestion " == editText.text.toString() }, TIMEOUT) in <lambda>()
153 waitOnMainUntil({ in <lambda>()
177 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
181 waitOnMainUntil({ in <lambda>()
187 waitOnMainUntil({ isCursorInside(editText, 1, 4) }, TIMEOUT) in <lambda>()
207 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
[all …]
DInputMethodPickerTest.java26 import static android.view.inputmethod.cts.util.TestUtils.waitOnMainUntil;
99 waitOnMainUntil(() -> isInputMethodPickerShown(mImManager), TIMEOUT, in testInputMethodPicker_hidesUntrustedOverlays()
122 waitOnMainUntil(() -> isInputMethodPickerShown(mImManager), TIMEOUT, in testShowInputMethodPicker_noDismissWhenOverlayPopup()
158 waitOnMainUntil(() -> isInputMethodPickerShown(im), TIMEOUT, in testShowImePickerOnExternalDisplay()
168 waitOnMainUntil(() -> !isInputMethodPickerShown(mImManager), TIMEOUT, in closeSystemDialogsAndWait()
DFocusHandlingTest.java31 import static android.view.inputmethod.cts.util.TestUtils.waitOnMainUntil;
266 waitOnMainUntil(() -> !keyEvents.isEmpty(), EXPECT_TIMEOUT); in testSwitchingBetweenEquivalentNonEditableViews()
367 TestUtils.waitOnMainUntil(() -> layoutRef.get().hasWindowFocus(), TIMEOUT); in testDelayedAddEditorStartsInput()
500 TestUtils.waitOnMainUntil( in testFocusableWindowDoesNotInvalidateExistingInputConnection()
521 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
526 TestUtils.waitOnMainUntil( in testFocusableWindowDoesNotInvalidateExistingInputConnection()
548 TestUtils.waitOnMainUntil( in testFocusableWindowDoesNotInvalidateExistingInputConnection()
556 TestUtils.waitOnMainUntil(editText::hasWindowFocus, TIMEOUT); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
561 TestUtils.waitOnMainUntil( in testFocusableWindowDoesNotInvalidateExistingInputConnection()
656 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testRestartInputWhileOtherProcessHasWindowFocus()
[all …]
DInputMethodManagerTest.java24 import static android.view.inputmethod.cts.util.TestUtils.waitOnMainUntil;
171 waitOnMainUntil(() -> mImManager.hasActiveInputConnection(focusedEditText), TIMEOUT); in testIsActive()
275 waitOnMainUntil(() -> !isInputMethodPickerShown(mImManager), TIMEOUT, in testShowInputMethodPicker()
280 waitOnMainUntil(() -> isInputMethodPickerShown(mImManager), TIMEOUT, in testShowInputMethodPicker()
303 waitOnMainUntil(() -> !isInputMethodPickerShown(mImManager), TIMEOUT, in testShowInputMethodPicker()
DImeInsetsVisibilityTest.java132 TestUtils.waitOnMainUntil( in testImeVisibilityWhenImeFocusableChildPopup()
181 TestUtils.waitOnMainUntil( in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
230 TestUtils.waitOnMainUntil( in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
297 TestUtils.waitOnMainUntil(() -> isInputMethodPickerShown(imm) && editText.isLaidOut(), in testEditTextPositionAndPersistWhenAboveImeWindowShown()
309 TestUtils.waitOnMainUntil(() -> !isInputMethodPickerShown(imm), TIMEOUT, in testEditTextPositionAndPersistWhenAboveImeWindowShown()
383 TestUtils.waitOnMainUntil(() -> isInsetsVisible(panelView.getRootWindowInsets(), in testEditorWontCoveredByImeWhenInputWindowBehindPanel()
385 TestUtils.waitOnMainUntil( in testEditorWontCoveredByImeWhenInputWindowBehindPanel()
DInputMethodStartInputLifecycleTest.java155 TestUtils.waitOnMainUntil(() -> screenStateCallbackRef.get() == SCREEN_STATE_OFF in testInputConnectionStateWhenScreenStateChanges()
169 TestUtils.waitOnMainUntil(() -> !TextUtils.equals(editText.getText(), "Hi!"), TIMEOUT, in testInputConnectionStateWhenScreenStateChanges()
175 TestUtils.waitOnMainUntil(() -> screenStateCallbackRef.get() == SCREEN_STATE_ON in testInputConnectionStateWhenScreenStateChanges()
187 TestUtils.waitOnMainUntil(() -> TextUtils.equals(editText.getText(), "Hello!"), TIMEOUT, in testInputConnectionStateWhenScreenStateChanges()
228 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
231 TestUtils.waitOnMainUntil(() -> editText.hasWindowFocus(), TIMEOUT); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
DInputMethodServiceTest.java31 import static android.view.inputmethod.cts.util.TestUtils.waitOnMainUntil;
294 waitOnMainUntil(() -> testActivity.getOnBackPressedCallCount() > 0,
743 TestUtils.waitOnMainUntil(
774 TestUtils.waitOnMainUntil(() -> secondActivity.getOnBackPressedCallCount() > 0,
791 TestUtils.waitOnMainUntil(
1461 waitOnMainUntil(()->
1468 waitOnMainUntil(()-> expectedText.equals(inputTextField.getText()), mTimeout);
DKeyboardVisibilityControlTest.java415 TestUtils.waitOnMainUntil(editorRef.get()::hasWindowFocus, TIMEOUT); in testHideImeAfterBackPressed_ScreenOffOn()
776 TestUtils.waitOnMainUntil(() -> dialogRef.get().isShowing() in testImeVisibilityWhenDismissingDialogWithImeFocused()
809 TestUtils.waitOnMainUntil(testActivity::hasWindowFocus, TIMEOUT); in testImeVisibilityWhenDismissingDialogWithImeFocused()
885 TestUtils.waitOnMainUntil(() -> dialogRef.get().isShowing() in runImeDoesntReshowAfterKeyguardTest()
900 TestUtils.waitOnMainUntil(() -> editTextRef.get().getWindowVisibility() != VISIBLE, in runImeDoesntReshowAfterKeyguardTest()
928 TestUtils.waitOnMainUntil(() -> editTextRef.get().hasWindowFocus() in runImeDoesntReshowAfterKeyguardTest()
1230 TestUtils.waitOnMainUntil( in runImeVisibilityWhenImeTransitionBetweenActivities()
1725 TestUtils.waitOnMainUntil(() -> { in testIMEVisibleInSplitScreenWithWindowInsetsApi()
DStylusHandwritingTest.java1190 TestUtils.waitOnMainUntil(unfocusedEditText::hasFocus, in testHandwriting_fingerTouchIsIgnored()
1219 TestUtils.waitOnMainUntil(() -> !unfocusedEditText.hasFocus(), in testHandwriting_fingerTouchIsIgnored()
1738 TestUtils.waitOnMainUntil(() -> delegate.getText().toString().equals("abc"),
1802 TestUtils.waitOnMainUntil(() -> delegate.getText().toString().equals("abc"),
2692 TestUtils.waitOnMainUntil(() -> splitPrimaryActivity.hasWindowFocus(), TIMEOUT);
2712 TestUtils.waitOnMainUntil(() -> splitSecondaryActivity.hasWindowFocus(), TIMEOUT);
2713 TestUtils.waitOnMainUntil(() -> !splitPrimaryActivity.hasWindowFocus(), TIMEOUT_1_S);
2769 TestUtils.waitOnMainUntil(() -> splitPrimaryActivity.hasWindowFocus(), TIMEOUT);
2799 TestUtils.waitOnMainUntil(() -> splitPrimaryActivity.hasWindowFocus(), TIMEOUT_1_S);
2810 TestUtils.waitOnMainUntil(() -> splitPrimaryActivity.hasWindowFocus(), TIMEOUT_1_S);
[all …]
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java136 public static void waitOnMainUntil( in waitOnMainUntil() method in TestUtils
168 public static void waitOnMainUntil(@NonNull BooleanSupplier condition, long timeout) in waitOnMainUntil() method in TestUtils
170 waitOnMainUntil(condition, timeout, ""); in waitOnMainUntil()
DWindowFocusHandleService.java169 TestUtils.waitOnMainUntil(() -> mPopupTextView != null, in getPopupTextView()