Home
last modified time | relevance | path

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

12

/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DTestUtils.java39 public static void runOnMainSync(@NonNull Runnable task) { in runOnMainSync() method in TestUtils
40 InstrumentationRegistry.getInstrumentation().runOnMainSync(task); in runOnMainSync()
55 instrumentation.runOnMainSync(() -> result.set(supplier.get())); in getOnMainSync()
78 instrumentation.runOnMainSync(() -> { in waitOnMainUntil()
/cts/tests/app/src/android/app/cts/
DToolbarActionBarTest.java37 getInstrumentation().runOnMainSync( in setUp()
65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu()
69 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu()
DFragmentTransactionTest.java55 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithValidFragment()
72 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPrivateFragment()
96 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPackagePrivateFragment()
120 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithAnonymousFragment()
144 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithNonStaticFragment()
DActivityKeyboardShortcutsTest.java59 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testRequestShowKeyboardShortcuts()
63 getInstrumentation().runOnMainSync(() -> mActivity.requestShowKeyboardShortcuts()); in testRequestShowKeyboardShortcuts()
67 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()
DActionBarTest.java119 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu()
122 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java20 import static android.view.inputmethod.cts.util.TestUtils.runOnMainSync;
246 instrumentation.runOnMainSync(() -> editText.requestFocus()); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
258 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
273 instrumentation.runOnMainSync(() -> popupWindow.showAsDropDown(editText)); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
284 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
290 instrumentation.runOnMainSync(() -> { in testFocusableWindowDoesNotInvalidateExistingInputConnection()
314 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
317 instrumentation.runOnMainSync(() -> popupWindow.dismiss()); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
328 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
350 instrumentation.runOnMainSync(() -> editText.requestFocus()); in testRestartInputWhileOtherProcessHasWindowFocus()
[all …]
DKeyboardVisibilityControlTest.java20 import static android.view.inputmethod.cts.util.TestUtils.runOnMainSync;
217 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
223 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java112 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
131 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
137 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
142 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
155 () -> sInstrumentation.runOnMainSync(() -> mActivity.enterPictureInPictureMode()), in putWindowInPictureInPicture_generatesEventAndReportsProperty()
215 sInstrumentation.runOnMainSync( in moveFocusToAnotherWindow_generatesEventsAndMovesActiveAndFocus()
270 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
303 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in showTopWindowAndWaitForItToShowUp()
318 sInstrumentation.runOnMainSync(() -> { in layoutParmsForWindowOnTop()
338 sInstrumentation.runOnMainSync(() -> { in layoutParmsForTestWindow()
DAccessibilityPaneTest.java74 sInstrumentation.runOnMainSync(() -> { in setUp()
91 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
128 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility()
133 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.java474 getInstrumentation().runOnMainSync(() -> in testPackageNameCannotBeFaked()
493 getInstrumentation().runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget()
506 getInstrumentation().runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget()
537 getInstrumentation().runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget()
547 getInstrumentation().runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget()
585 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync(() -> in testViewHeadingReportedToAccessibility()
644 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync( in testTraversalBeforeReportedToAccessibility()
667 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync( in testTraversalAfterReportedToAccessibility()
681 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync(() -> getActivity() in testLabelForReportedToAccessibility()
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java70 instrumentation.runOnMainSync(() -> { in enableAutoCapSettings()
87 instrumentation.runOnMainSync(() -> { in resetAutoCapSettings()
103 mInstrumentation.runOnMainSync(() -> mTextView.setKeyListener(keyListener)); in setKeyListenerSync()
/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/view/src/android/view/cts/
DMenuItemTest.java83 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
92 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint()
99 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/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsAppOpsTests.java100 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testSystemAlertWindowAppOpsInitiallyAllowed()
117 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testSystemAlertWindowAppOpsInitiallyAllowed()
136 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testSystemAlertWindowAppOpsInitiallyAllowed()
DLocationInWindowTests.java116 runOnMainSync(() -> { in runTest() method
154 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync()
159 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in LocationInWindowTests
160 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
DLocationOnScreenTests.java138 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync()
143 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in LocationOnScreenTests
144 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
DDisplayCutoutTests.java198 runOnMainSync(() -> activity.getDecorView().getDisplay().getRealSize(displaySize)); in assertOnlyShortEdgeHasInsets()
275 runOnMainSync(() -> result[0] = f.get());
280 private void runOnMainSync(Runnable runnable) {
281 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable);
/cts/tests/tests/toast/src/android/widget/toast/cts/
DBaseToastTest.java55 mInstrumentation.runOnMainSync( in showToastsViaToastApis()
73 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java56 instrumentation.runOnMainSync(() -> { in launchActivityAndWaitForItToBeOnscreen()
82 instrumentation.runOnMainSync(() -> titleBuilder.append(activity.getTitle())); in getActivityTitle()
DRunOnMainUtils.java35 instrumentation.runOnMainSync(() -> { in getOnMain()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DIsolatedServiceTest.java66 mInstrumentation.runOnMainSync(new Runnable() { in runServiceTest()
/cts/tests/tests/widget/src/android/widget/cts/
DNumberPickerTest.java276 mInstrumentation.runOnMainSync(() -> { in testAccessValue()
284 mInstrumentation.runOnMainSync(() -> { in testAccessValue()
290 mInstrumentation.runOnMainSync(() -> mNumberPicker.setValue(20)), in testAccessValue()
295 mInstrumentation.runOnMainSync(() -> { in testAccessValue()

12