Home
last modified time | relevance | path

Searched refs:callOnMainSync (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DImeStressTestUtil.java138 public static <V> V callOnMainSync(Callable<V> callable) { in callOnMainSync() method in ImeStressTestUtil
156 boolean result = callOnMainSync(activity::requestFocus); in requestFocusAndVerify()
166 eventually(() -> assertWithMessage(message).that(callOnMainSync(pred)).isTrue(), TIMEOUT); in waitOnMainUntil()
174 .that(callOnMainSync(() -> isImeShown(view))) in waitOnMainUntilImeIsShown()
184 .that(callOnMainSync(() -> isImeShown(view))) in waitOnMainUntilImeIsHidden()
195 .that(callOnMainSync(view::hasWindowFocus)) in waitOnMainUntilWindowGainsFocus()
205 .that(callOnMainSync(view::hasFocus)) in waitOnMainUntilViewGainsFocus()
215 .that(callOnMainSync(() -> isImeShown(view))) in verifyImeIsAlwaysHidden()
226 .that(callOnMainSync(view::hasWindowFocus)) in verifyWindowNeverGainsFocus()
236 .that(callOnMainSync(view::hasFocus)) in verifyViewNeverGainsFocus()
DImeOpenCloseStressTest.java28 import static com.android.inputmethod.stresstest.ImeStressTestUtil.callOnMainSync;
110 callOnMainSync(activity::showImeWithInputMethodManager); in testShowHideWithInputMethodManager_waitingVisibilityChange()
113 callOnMainSync(activity::hideImeWithInputMethodManager); in testShowHideWithInputMethodManager_waitingVisibilityChange()
132 callOnMainSync(activity::showImeWithInputMethodManager); in testShowHideWithInputMethodManager_waitingAnimationEnd()
137 callOnMainSync(activity::hideImeWithInputMethodManager); in testShowHideWithInputMethodManager_waitingAnimationEnd()
161 callOnMainSync(activity::hideImeWithInputMethodManager); in testShowHideWithInputMethodManager_intervalAfterHide()
164 callOnMainSync(activity::showImeWithInputMethodManager); in testShowHideWithInputMethodManager_intervalAfterHide()
243 callOnMainSync(activity::showImeWithInputMethodManager); in testShowWithInputMethodManager_notRequestFocus()
449 callOnMainSync(activity::showImeWithInputMethodManager); in testScreenOffOn()
477 callOnMainSync(activity::showImeWithInputMethodManager); in testRotateScreenWithKeyboardOn()
DDefaultImeVisibilityTest.java25 import static com.android.inputmethod.stresstest.ImeStressTestUtil.callOnMainSync;
110 callOnMainSync(activity::showImeWithInputMethodManager); in showHideDefaultIme()
113 callOnMainSync(activity::hideImeWithInputMethodManager); in showHideDefaultIme()
DAutoShowTest.java23 import static com.android.inputmethod.stresstest.ImeStressTestUtil.callOnMainSync;
203 callOnMainSync(firstActivity::showImeWithInputMethodManager); in autoShow_forwardWithKeyboardOn()
267 callOnMainSync(secondActivity::showImeWithInputMethodManager); in autoShow_backwardWithKeyboardOn()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodBindingControllerTest.java151 InputBindResult result = callOnMainSync(() -> { in testBindCurrentMethodWithMainConnection()
220 private static <V> V callOnMainSync(Callable<V> callable) { in callOnMainSync() method in InputMethodBindingControllerTest