Home
last modified time | relevance | path

Searched refs:getOnMainSync (Results 1 – 19 of 19) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsPolicyTest.java110 WindowInsets insets = getOnMainSync(activity::getDispatchedInsets); in testWindowInsets_dispatched()
120 WindowInsets insets = getOnMainSync(activity::getRootInsets); in testWindowInsets_root()
156 WindowInsets insets = getOnMainSync(activity::getDispatchedInsets); in testForcedConsumedTopInsets()
157 final WindowInsets rootInsets = getOnMainSync(activity::getRootInsets); in testForcedConsumedTopInsets()
163 insets = getOnMainSync(fullscreenActivity::getDispatchedInsets); in testForcedConsumedTopInsets()
171 insets = getOnMainSync(fullscreenWmFlagsActivity::getDispatchedInsets); in testForcedConsumedTopInsets()
200 WindowInsets insets = getOnMainSync(immersiveActivity::getDispatchedInsets); in testImmersiveFullscreenHidesSystemBars()
205 WindowInsets rootInsets = getOnMainSync(immersiveActivity::getRootInsets); in testImmersiveFullscreenHidesSystemBars()
209 View statusBarBgView = getOnMainSync(immersiveActivity::getStatusBarBackgroundView); in testImmersiveFullscreenHidesSystemBars()
214 View navigationBarBgView = getOnMainSync( in testImmersiveFullscreenHidesSystemBars()
[all …]
DDisplayCutoutTests.java378 WindowInsets insets = getOnMainSync(activity::getRootInsets); in runTest()
379 WindowInsets dispatchedInsets = getOnMainSync(activity::getDispatchedInsets); in runTest()
608 safeRect.bottom = getOnMainSync(() -> a.getDecorView().getHeight()) - safeRect.bottom; in getSafeRect()
609 safeRect.right = getOnMainSync(() -> a.getDecorView().getWidth()) - safeRect.right; in getSafeRect()
655 private <R> R getOnMainSync(Supplier<R> f) {
DWindowInsetsControllerTests.java717 PollingCheck.waitFor(TIMEOUT, () -> getOnMainSync(rootView::hasWindowFocus)); in testShowIme_immediatelyAfterDetachAndReattach()
719 View editor = getOnMainSync(rootView::findFocus); in testShowIme_immediatelyAfterDetachAndReattach()
720 ViewGroup parent = (ViewGroup) getOnMainSync(editor::getParent); in testShowIme_immediatelyAfterDetachAndReattach()
735 PollingCheck.waitFor(TIMEOUT_COLD_START_IME, () -> getOnMainSync( in testShowIme_immediatelyAfterDetachAndReattach()
1159 private <R> R getOnMainSync(Supplier<R> f) { in getOnMainSync() method in WindowInsetsControllerTests
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DNavigationBarInfo.java20 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
101 final WindowInsets windowInsets = getOnMainSync(() -> view.getRootWindowInsets()); in getInstance()
105 final Size displaySize = getOnMainSync(() -> { in getInstance()
111 final Rect viewBoundsOnScreen = getOnMainSync(() -> { in getInstance()
175 dialog = getOnMainSync(() -> { in getBottomNavigationBarBitmapForActivity()
DTestUtils.java120 public static <T> T getOnMainSync(@NonNull Supplier<T> supplier) { in getOnMainSync() method in TestUtils
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DImeInsetsVisibilityTest.java27 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
112 assertTrue("showSoftInput must success if the View has IME focus", getOnMainSync( in testImeVisibilityWhenImeFocusableChildPopup()
160 assertTrue("showSoftInput must success if the View has IME focus", getOnMainSync( in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
209 assertTrue("showSoftInput must success if the View has IME focus", getOnMainSync( in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
266 assertTrue("showSoftInput must success if the View has IME focus", getOnMainSync( in testEditTextPositionAndPersistWhenAboveImeWindowShown()
347 final View panelView = TestUtils.getOnMainSync(() -> { in testEditorWontCoveredByImeWhenInputWindowBehindPanel()
402 return TestUtils.getOnMainSync(() -> { in getLocationOnScreenForView()
469 return TestUtils.getOnMainSync(() -> { in createChildBottomPanelWindowOnMain()
486 return TestUtils.getOnMainSync(() -> {
DInputConnectionLifecycleTest.java19 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
104 final int mainThreadId = getOnMainSync(Os::gettid); in testCloseConnectionWithRestartInput()
183 final int mainThreadId = getOnMainSync(Os::gettid); in testCloseConnectionWithLosingViewFocus()
262 final int mainThreadId = getOnMainSync(Os::gettid); in testCloseConnectionWithLosingWindowFocus()
DKeyboardVisibilityControlTest.java35 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
264 getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testBasicShowHideSoftInput()
268 getOnMainSync(() -> imm.showSoftInput(editText, 0))); in testBasicShowHideSoftInput()
278 getOnMainSync(() -> imm.hideSoftInputFromWindow(editText.getWindowToken(), 0))); in testBasicShowHideSoftInput()
344 getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in verifyHideImeBackPressed()
348 getOnMainSync(() -> imm.showSoftInput(editText, 0))); in verifyHideImeBackPressed()
460 getOnMainSync(() -> imm.hasActiveInputConnection(nonFocusedEditText))); in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
462 getOnMainSync(() -> imm.showSoftInput(nonFocusedEditText, 0))); in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
465 getOnMainSync(() -> imm.hideSoftInputFromWindow( in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
589 getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testShowHideKeyboardImmediately()
[all …]
DInputMethodManagerTest.java22 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
172 assertTrue(getOnMainSync(() -> mImManager.isActive(focusedEditText))); in testIsActive()
173 assertFalse(getOnMainSync(() -> mImManager.isActive(nonFocusedEditTextRef.get()))); in testIsActive()
200 getOnMainSync(() -> mImManager.isAcceptingText())); in testIsAcceptingText()
DInProcessImeTest.java19 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
137 () -> getOnMainSync(() -> { in testOnUpdateSelectionForInProcessIme()
DInputMethodPickerTest.java24 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
127 assertTrue(getOnMainSync(() -> isInputMethodPickerShown(mImManager))); in testShowInputMethodPicker_noDismissWhenOverlayPopup()
DNavigationBarColorTest.java29 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
182 final AlertDialog alertDialog = getOnMainSync(() -> { in showDialogIfNecessary()
199 final AlertDialog alertDialog = getOnMainSync(() -> { in showDialogIfNecessary()
DInputMethodStartInputLifecycleTest.java162 assertFalse(TestUtils.getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testInputConnectionStateWhenScreenStateChanges()
184 assertTrue(TestUtils.getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testInputConnectionStateWhenScreenStateChanges()
219 final IBinder appWindowToken = TestUtils.getOnMainSync( in testNoStartNewInputWhileOtherProcessHasWindowFocus()
242 assertTrue(TestUtils.getOnMainSync(() -> imm.hasActiveInputConnection(editText))); in testNoStartNewInputWhileOtherProcessHasWindowFocus()
DFocusHandlingTest.java29 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
464 assertTrue(TestUtils.getOnMainSync(() -> editTextRef.get().hasFocus() in testSoftInputStateAlwaysVisibleFocusEditorAfterLaunch()
506 TestUtils.getOnMainSync(() -> { in testFocusableWindowDoesNotInvalidateExistingInputConnection()
598 TestUtils.getOnMainSync(() -> { in testNonFocusablePopupWindowDoesNotAffectImeVisibility()
647 final IBinder appWindowToken = TestUtils.getOnMainSync( in testRestartInputWhileOtherProcessHasWindowFocus()
813 assertTrue(TestUtils.getOnMainSync(() -> editText.hasFocus() in testKeyboardStateAfterImeFocusableFlagChanged()
1155 assertTrue(getOnMainSync(() -> imm.get().hasActiveInputConnection(secondEditorRef.get()))); in detachServed_withDifferentNextServed_b211105987()
DInputConnectionHandlerTest.java19 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
520 getOnMainSync(() -> InstrumentationRegistry.getInstrumentation().getContext() in testReportFullscreenMode()
540 getOnMainSync(() -> InstrumentationRegistry.getInstrumentation().getContext() in testReportFullscreenMode()
DInputMethodServiceTest.java29 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync;
287 (long) getOnMainSync(() -> testActivity.getOnBackPressedCallCount()));
507 assertTrue(TestUtils.getOnMainSync(
515 final ArrayList<KeyEvent> keyEvents = TestUtils.getOnMainSync(
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DEnsureBarContrastTest.java100 Bitmap bitmap = getOnMainSync(() -> activity.screenshotBar(bar, mDumper)); in runTestEnsureContrast()
102 if (getOnMainSync(() -> activity.barIsTapThrough(bar))) { in runTestEnsureContrast()
133 Bitmap bitmap = getOnMainSync(() -> activity.screenshotBar(bar, mDumper)); in runTestDontEnsureContrast()
213 private <R> R getOnMainSync(Supplier<R> f) {
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLocationOnScreenTests.java130 PollingCheck.waitFor(() -> getOnMainSync(activity::isEnterAnimationComplete)); in runTest()
132 Point actual = getOnMainSync(activity::getViewLocationOnScreen); in runTest()
142 private <R> R getOnMainSync(Supplier<R> f) { in getOnMainSync() method in LocationOnScreenTests
DLocationInWindowTests.java118 PollingCheck.waitFor(() -> getOnMainSync(activity::isEnterAnimationComplete)); in runTest()
156 private <R> R getOnMainSync(Supplier<R> f) { in getOnMainSync() method in LocationInWindowTests