Home
last modified time | relevance | path

Searched refs:runOnMainSync (Results 1 – 25 of 136) sorted by relevance

123456

/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsControllerTests.java150 getInstrumentation().runOnMainSync(() -> { in testHideInternal()
170 getInstrumentation().runOnMainSync(() -> { in testShowInternal()
174 getInstrumentation().runOnMainSync(() -> { in testShowInternal()
186 getInstrumentation().runOnMainSync(hidingStatusBar); in testTopAppHidesStatusBarInternal()
192 getInstrumentation().runOnMainSync( in testTopAppHidesStatusBarInternal()
250 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().show(ime())); in testImeShowAndHide()
253 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().hide(ime())); in testImeShowAndHide()
276 getInstrumentation().runOnMainSync( in testImeForceShowingNavigationBar()
296 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().show(ime())); in testImeForceShowingNavigationBar()
303 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().hide(ime())); in testImeForceShowingNavigationBar()
[all …]
DWindowInsetsLayoutTests.java69 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsTypes()
79 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsTypesInner()
87 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsTypesInner()
105 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsSides()
117 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsSidesInner()
125 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsSidesInner()
159 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsIgnoringVisibility()
168 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsIgnoringVisibility()
183 getInstrumentation().runOnMainSync(() -> { in testSetFitInsetsIgnoringVisibility()
DWindowInsetsAnimationTests.java83 .runOnMainSync(() -> mRootView.getWindowInsetsController().hide(systemBars())); in testAnimationCallbacksHide()
94 .runOnMainSync(() -> mRootView.getWindowInsetsController().hide(systemBars())); in testAnimationCallbacksShow()
102 .runOnMainSync(() -> mRootView.getWindowInsetsController().show(systemBars())); in testAnimationCallbacksShow()
132 .runOnMainSync(() -> mRootView.getWindowInsetsController().hide(navigationBars())); in testAnimationCallbacks_overlapping()
204 .runOnMainSync( in testAnimationCallbacks_consumedByDecor()
224 .runOnMainSync( in testAnimationCallbacks_childDoesntGetCallback()
264 .runOnMainSync( in testAnimationCallbacks_childInsetting()
293 .runOnMainSync( in testAnimationCallbacks_withLegacyFlags()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLayoutTests.java107 .runOnMainSync( in testLayoutAfterRemovingFocus()
124 .runOnMainSync( in doTestLayoutAfterRemovingFocus()
135 getInstrumentation().runOnMainSync(activity::removeAllWindows); in doTestLayoutAfterRemovingFocus()
146 .runOnMainSync( in doTestLayoutAfterRemovingFocus()
165 .runOnMainSync( in testAddingImmersiveWindow()
205 .runOnMainSync( in testChangingFocusableFlag()
230 .runOnMainSync( in testChangingFocusableFlag()
260 .runOnMainSync( in testSysuiFlagLayoutFullscreen()
282 .runOnMainSync( in testSysuiFlagLayoutHideNavigation()
DBlurTests.java138 getInstrumentation().runOnMainSync(() -> { in testBackgroundBlurSimple()
153 getInstrumentation().runOnMainSync(() -> { in testBlurBehindSimple()
163 getInstrumentation().runOnMainSync(() -> { in testBlurBehindSimple()
178 getInstrumentation().runOnMainSync(() -> { in testNoBackgroundBlurWhenBlurDisabled()
197 getInstrumentation().runOnMainSync(() -> { in testNoBackgroundBlurForNonTranslucentWindow()
212 getInstrumentation().runOnMainSync(() -> { in testNoBlurBehindWhenBlurDisabled()
234 getInstrumentation().runOnMainSync(() -> { in testNoBlurBehindWhenFlagNotSet()
247 getInstrumentation().runOnMainSync(() -> { in testBackgroundBlurActivatesFallbackDynamically()
277 getInstrumentation().runOnMainSync(() -> { in testBlurBehindDisabledDynamically()
287 getInstrumentation().runOnMainSync(() -> { in testBlurBehindDisabledDynamically()
[all …]
DLocationInWindowTests.java120 runOnMainSync(() -> { in runTest() method
158 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync()
163 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in LocationInWindowTests
164 getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityPaneTest.java96 sInstrumentation.runOnMainSync(() -> { in setUp()
113 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
123 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
132 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
162 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility()
167 return () -> sInstrumentation.runOnMainSync( in setPaneViewParentVisibility()
/cts/tests/app/src/android/app/cts/
DFragmentTransactionTest.java56 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithValidFragment()
73 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPrivateFragment()
97 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPackagePrivateFragment()
121 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithAnonymousFragment()
145 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithNonStaticFragment()
DActivityKeyboardShortcutsTest.java60 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testRequestShowKeyboardShortcuts()
64 getInstrumentation().runOnMainSync(() -> mActivity.requestShowKeyboardShortcuts()); in testRequestShowKeyboardShortcuts()
68 getInstrumentation().runOnMainSync(() -> mActivity.dismissKeyboardShortcutsHelper()); in testRequestShowKeyboardShortcuts()
DFragmentReceiveResultTest.java107 getInstrumentation().runOnMainSync(new Runnable() { in attachTestFragment()
123 getInstrumentation().runOnMainSync(new Runnable() { in startActivityForResult()
142 getInstrumentation().runOnMainSync(new Runnable() { in startIntentSenderForResult()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DWindowCreationUtils.java71 instrumentation.runOnMainSync(() -> { in layoutParamsForWindowOnTop()
107 instrumentation.runOnMainSync(() -> { in layoutParamsForTestWindow()
131 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync( in addWindowAndWaitForEvent()
147 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync( in removeWindow()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java147 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testScrollEvent()
154 () -> sInstrumentation.runOnMainSync( in testScrollEventBurstCombined()
169 sInstrumentation.runOnMainSync(() -> { in testScrollEventsDeliveredInCorrectInterval()
175 sInstrumentation.runOnMainSync(() -> { in testScrollEventsDeliveredInCorrectInterval()
180 sInstrumentation.runOnMainSync(() -> { in testScrollEventsDeliveredInCorrectInterval()
210 () -> sInstrumentation.runOnMainSync( in testScrollEventsClearedOnDetach()
224 () -> sInstrumentation.runOnMainSync( in testScrollEventsClearedOnDetach()
239 () -> sInstrumentation.runOnMainSync( in testScrollEventsCaptureTotalDelta()
257 sInstrumentation.runOnMainSync(() -> { in testScrollEventsClearDeltaAfterSending()
263 sInstrumentation.runOnMainSync(() -> { in testScrollEventsClearDeltaAfterSending()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DEmbeddedActivityWindowInfoTests.java88 mInstrumentation.runOnMainSync(() -> { in testGetEmbeddedActivityWindowInfo_nonEmbeddedActivity()
116 mInstrumentation.runOnMainSync(() -> { in testGetEmbeddedActivityWindowInfo_embeddedActivity()
152 mInstrumentation.runOnMainSync(() -> { in testEmbeddedActivityWindowInfoCallback()
164 mInstrumentation.runOnMainSync(() -> { in testEmbeddedActivityWindowInfoCallback()
183 mInstrumentation.runOnMainSync(() -> { in testEmbeddedActivityWindowInfoCallback()
202 mInstrumentation.runOnMainSync(() -> { in testEmbeddedActivityWindowInfoCallback()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DRemoteVirtualDisplayService.java128 runOnMainSync(new Runnable() { in createVirtualDisplay()
144 runOnMainSync(new Runnable() { in createPresentation()
161 runOnMainSync(new Runnable() { in doRendering()
195 private void runOnMainSync(Runnable runner) { in runOnMainSync() method in RemoteVirtualDisplayService
/cts/tests/tests/view/src/android/view/cts/
DMenuItemTest.java95 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
104 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint()
111 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaBrowserServiceTest.java155 getInstrumentation().runOnMainSync(()-> { in setUp()
172 getInstrumentation().runOnMainSync(()-> { in tearDown()
188 getInstrumentation().runOnMainSync(()-> { in testNotifyChildrenChanged()
213 getInstrumentation().runOnMainSync(()-> { in testNotifyChildrenChangedWithPagination()
246 getInstrumentation().runOnMainSync(()-> { in testDelayedNotifyChildrenChanged()
266 getInstrumentation().runOnMainSync(()-> { in testDelayedItem()
283 getInstrumentation().runOnMainSync(()-> { in testGetBrowserInfo()
291 getInstrumentation().runOnMainSync(()-> { in testGetBrowserInfo()
422 .runOnMainSync( in createMediaBrowser()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaTest.java72 instrumentation.runOnMainSync(() -> { in runPlayTest()
77 instrumentation.runOnMainSync(() -> { in runPlayTest()
/cts/tests/tests/widget/src/android/widget/cts/
DEditTextTest.java503 mInstrumentation.runOnMainSync(() -> { in testCursorDrag()
769 mInstrumentation.runOnMainSync(() -> { in testCursorBlinkingOnNewActivity_WithFocus()
783 mInstrumentation.runOnMainSync(() -> { in testSuspendAndResumeBlinkingCursor()
808 mInstrumentation.runOnMainSync(() -> { in testSuspendAndResumeBlinkingCursor()
829 mInstrumentation.runOnMainSync(() -> { in testCursorBlinking_ViewDynamicallyAdded_WithFocus()
850 mInstrumentation.runOnMainSync(() -> { in testCursorNotBlinking_ViewDynamicallyAdded_NoFocus()
867 mInstrumentation.runOnMainSync(() -> { in testCursorSuspendBlinking_ViewDynamicallyRemoved()
873 mInstrumentation.runOnMainSync(() -> { in testCursorSuspendBlinking_ViewDynamicallyRemoved()
891 mInstrumentation.runOnMainSync(() -> { in testCursorBlinking_ViewDynamically_RemovedAdded_NeverHadFocus()
896 mInstrumentation.runOnMainSync(() -> { in testCursorBlinking_ViewDynamically_RemovedAdded_NeverHadFocus()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowPolicyTests.java76 getInstrumentation().runOnMainSync(() -> { in testWindowInsets()
85 getInstrumentation().runOnMainSync(() -> { in assertFillWindowBounds()
181 getInstrumentation().runOnMainSync(() -> { in testOptOutEdgeToEdgeAppBounds()
201 getInstrumentation().runOnMainSync(() -> { in testOptOutEdgeToEdgeDisplayMetrics()
229 getInstrumentation().runOnMainSync(() -> { in testSystemBarColor()
DAlertWindowsAppOpsTests.java112 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
128 getInstrumentation().runOnMainSync(activity::hideSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
146 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DWindowInsetsAnimationImeTests.java126 .runOnMainSync(() -> mRootView.getWindowInsetsController().hide(statusBars())); in testAnimationCallbacks_overlapping_opposite()
127 getInstrumentation().runOnMainSync(() -> mRootView.getWindowInsetsController().show(ime())); in testAnimationCallbacks_overlapping_opposite()
211 getInstrumentation().runOnMainSync(() -> mRootView.getWindowInsetsController().show(ime())); in testShowAndHide()
221 getInstrumentation().runOnMainSync(() -> mRootView.getWindowInsetsController().hide(ime())); in testShowAndHide()
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java83 instrumentation.runOnMainSync(() -> { in enableAutoCapSettings()
100 instrumentation.runOnMainSync(() -> { in resetAutoCapSettings()
116 mInstrumentation.runOnMainSync(() -> mTextView.setKeyListener(keyListener)); in setKeyListenerSync()
/cts/tests/tests/toast/src/android/widget/toast/cts/
DBaseToastTest.java57 mInstrumentation.runOnMainSync( in showToastsViaToastApis()
75 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodPickerTest.java94 getInstrumentation().runOnMainSync(testActivity::showOverlayWindow); in testInputMethodPicker_hidesUntrustedOverlays()
98 getInstrumentation().runOnMainSync(mImManager::showInputMethodPicker); in testInputMethodPicker_hidesUntrustedOverlays()
124 getInstrumentation().runOnMainSync(() -> in testShowInputMethodPicker_noDismissWhenOverlayPopup()
DFocusHandlingTest.java30 import static android.view.inputmethod.cts.util.TestUtils.runOnMainSync;
462 instrumentation.runOnMainSync(editTextRef.get()::requestFocus); in testSoftInputStateAlwaysVisibleFocusEditorAfterLaunch()
490 instrumentation.runOnMainSync(editText::requestFocus); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
502 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
516 }), popupWindow -> runOnMainSync(popupWindow::dismiss)) in testFocusableWindowDoesNotInvalidateExistingInputConnection()
528 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
534 instrumentation.runOnMainSync(() -> { in testFocusableWindowDoesNotInvalidateExistingInputConnection()
550 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
563 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
583 runOnMainSync(editText::requestFocus); in testNonFocusablePopupWindowDoesNotAffectImeVisibility()
[all …]

123456