Home
last modified time | relevance | path

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

123

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLayoutTests.java95 getInstrumentation().runOnMainSync(() -> in testLayoutAfterRemovingFocus()
107 getInstrumentation().runOnMainSync(() -> { in doTestLayoutAfterRemovingFocus()
118 getInstrumentation().runOnMainSync(() -> in doTestLayoutAfterRemovingFocus()
126 getInstrumentation().runOnMainSync(() -> in doTestLayoutAfterRemovingFocus()
141 getInstrumentation().runOnMainSync(() -> { in testAddingImmersiveWindow()
174 getInstrumentation().runOnMainSync(() -> { in testChangingFocusableFlag()
197 getInstrumentation().runOnMainSync(() -> { in testChangingFocusableFlag()
DLocationInWindowTests.java114 runOnMainSync(() -> { in runTest() method
152 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync()
157 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in LocationInWindowTests
158 getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
DActivityViewTest.java170 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.GONE)); in testAppStoppedWithVisibilityGone()
183 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.INVISIBLE)); in testAppStoppedWithVisibilityInvisible()
196 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.INVISIBLE)); in testAppStopAndStartWithVisibilityChange()
203 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.VISIBLE)); in testAppStopAndStartWithVisibilityChange()
256 mInstrumentation.runOnMainSync(() -> { in testInputMethod()
DAlertWindowsAppOpsTests.java101 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
117 getInstrumentation().runOnMainSync(activity::hideSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
135 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
DCloseOnOutsideTests.java72 instrumentation.runOnMainSync(() -> assertFalse(mTestActivity.getActivity().isFinishing())); in touchAndAssert()
76 instrumentation.runOnMainSync( in touchAndAssert()
DDisplayCutoutTests.java249 runOnMainSync(() -> activity.getDecorView().getDisplay().getRealSize(displaySize)); in assertOnlyShortEdgeHasInsets()
269 runOnMainSync(() -> activity.getDecorView().getDisplay().getRealSize(displaySize)); in assertOnlyShortEdgeHasBounds()
348 runOnMainSync(() -> result[0] = f.get());
353 private void runOnMainSync(Runnable runnable) {
354 getInstrumentation().runOnMainSync(runnable);
DLocationOnScreenTests.java139 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync()
144 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in LocationOnScreenTests
145 getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
DWindowFocusTests.java221 getInstrumentation().runOnMainSync(activity::addChildWindow); in testDelayLosingFocus()
240 getInstrumentation().runOnMainSync(primaryActivity::requestPointerCapture); in testPointerCapture()
255 getInstrumentation().runOnMainSync(secondaryActivity::requestPointerCapture); in testPointerCapture()
334 getInstrumentation().runOnMainSync(() -> { in testTapNonFocusableWindow()
DWindowInsetsPolicyTest.java203 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync()
208 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in WindowInsetsPolicyTest
209 getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java20 import static android.view.inputmethod.cts.util.TestUtils.runOnMainSync;
248 instrumentation.runOnMainSync(() -> editText.requestFocus()); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
260 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
275 instrumentation.runOnMainSync(() -> popupWindow.showAsDropDown(editText)); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
286 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
292 instrumentation.runOnMainSync(() -> { in testFocusableWindowDoesNotInvalidateExistingInputConnection()
316 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
319 instrumentation.runOnMainSync(() -> popupWindow.dismiss()); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
330 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
352 instrumentation.runOnMainSync(() -> editText.requestFocus()); in testRestartInputWhileOtherProcessHasWindowFocus()
[all …]
DKeyboardVisibilityControlTest.java20 import static android.view.inputmethod.cts.util.TestUtils.runOnMainSync;
218 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
224 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DTestUtils.java40 public static void runOnMainSync(@NonNull Runnable task) { in runOnMainSync() method in TestUtils
41 InstrumentationRegistry.getInstrumentation().runOnMainSync(task); in runOnMainSync()
56 instrumentation.runOnMainSync(() -> result.set(supplier.get())); in getOnMainSync()
79 instrumentation.runOnMainSync(() -> { in waitOnMainUntil()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java114 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
133 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
139 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
144 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
157 () -> sInstrumentation.runOnMainSync(() -> mActivity.enterPictureInPictureMode()), in putWindowInPictureInPicture_generatesEventAndReportsProperty()
217 sInstrumentation.runOnMainSync( in moveFocusToAnotherWindow_generatesEventsAndMovesActiveAndFocus()
272 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
305 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in showTopWindowAndWaitForItToShowUp()
320 sInstrumentation.runOnMainSync(() -> { in layoutParmsForWindowOnTop()
340 sInstrumentation.runOnMainSync(() -> { in layoutParmsForTestWindow()
DAccessibilityPaneTest.java75 sInstrumentation.runOnMainSync(() -> { in setUp()
92 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
129 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility()
134 return () -> sInstrumentation.runOnMainSync( in setPaneViewParentVisibility()
DAccessibilityViewTreeReportingTest.java152 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.firstLinearLayout) in testDrawingOrderInImportantParentFollowsXmlOrder()
184 sInstrumentation.runOnMainSync(() -> {
201 sInstrumentation.runOnMainSync(() -> {
233 sInstrumentation.runOnMainSync(
264 sInstrumentation.runOnMainSync(() -> {
277 sInstrumentation.runOnMainSync(() -> {
DAccessibilityEndToEndTest.java548 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFaked()
568 sInstrumentation.runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget()
581 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget()
612 sInstrumentation.runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget()
622 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget()
659 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> in testViewHeadingReportedToAccessibility()
715 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testTraversalBeforeReportedToAccessibility()
737 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testTraversalAfterReportedToAccessibility()
750 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> mActivity in testLabelForReportedToAccessibility()
780 () -> sInstrumentation.runOnMainSync(() -> { in testA11yActionTriggerMotionEventActionOutside()
/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()
DToolbarActionBarTest.java37 getInstrumentation().runOnMainSync( in setUp()
65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu()
69 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu()
DActivityKeyboardShortcutsTest.java62 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testRequestShowKeyboardShortcuts()
66 getInstrumentation().runOnMainSync(() -> mActivity.requestShowKeyboardShortcuts()); in testRequestShowKeyboardShortcuts()
70 getInstrumentation().runOnMainSync(() -> mActivity.dismissKeyboardShortcutsHelper()); in testRequestShowKeyboardShortcuts()
DFragmentReceiveResultTest.java104 getInstrumentation().runOnMainSync(new Runnable() { in attachTestFragment()
120 getInstrumentation().runOnMainSync(new Runnable() { in startActivityForResult()
135 getInstrumentation().runOnMainSync(new Runnable() { in startIntentSenderForResult()
/cts/tests/tests/media/src/android/media/cts/
DRemoteVirtualDisplayService.java128 runOnMainSync(new Runnable() { in createVirtualDisplay()
144 runOnMainSync(new Runnable() { in createPresentation()
161 runOnMainSync(new Runnable() { in doRendering()
196 private void runOnMainSync(Runnable runner) { in runOnMainSync() method in RemoteVirtualDisplayService
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java71 instrumentation.runOnMainSync(() -> { in enableAutoCapSettings()
88 instrumentation.runOnMainSync(() -> { in resetAutoCapSettings()
104 mInstrumentation.runOnMainSync(() -> mTextView.setKeyListener(keyListener)); in setKeyListenerSync()
/cts/tests/tests/view/src/android/view/cts/
DMenuItemTest.java84 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
93 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint()
100 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaTest.java73 instrumentation.runOnMainSync(() -> { in runPlayTest()
78 instrumentation.runOnMainSync(() -> { in runPlayTest()
/cts/tests/tests/toast/src/android/widget/toast/cts/
DBaseToastTest.java57 mInstrumentation.runOnMainSync( in showToastsViaToastApis()
75 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()

123