/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 39 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/ |
D | ToolbarActionBarTest.java | 37 getInstrumentation().runOnMainSync( in setUp() 65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu() 69 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu()
|
D | FragmentTransactionTest.java | 55 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()
|
D | ActivityKeyboardShortcutsTest.java | 59 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testRequestShowKeyboardShortcuts() 63 getInstrumentation().runOnMainSync(() -> mActivity.requestShowKeyboardShortcuts()); in testRequestShowKeyboardShortcuts() 67 getInstrumentation().runOnMainSync(() -> mActivity.dismissKeyboardShortcutsHelper()); in testRequestShowKeyboardShortcuts()
|
D | FragmentReceiveResultTest.java | 104 getInstrumentation().runOnMainSync(new Runnable() { in attachTestFragment() 120 getInstrumentation().runOnMainSync(new Runnable() { in startActivityForResult() 135 getInstrumentation().runOnMainSync(new Runnable() { in startIntentSenderForResult()
|
D | ActionBarTest.java | 119 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu() 122 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 20 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 …]
|
D | KeyboardVisibilityControlTest.java | 20 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/ |
D | AccessibilityWindowReportingTest.java | 112 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()
|
D | AccessibilityPaneTest.java | 74 sInstrumentation.runOnMainSync(() -> { in setUp() 91 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 128 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility() 133 return () -> sInstrumentation.runOnMainSync( in setPaneViewParentVisibility()
|
D | AccessibilityViewTreeReportingTest.java | 152 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.firstLinearLayout) in testDrawingOrderInImportantParentFollowsXmlOrder() 184 sInstrumentation.runOnMainSync(() -> { 201 sInstrumentation.runOnMainSync(() -> { 233 sInstrumentation.runOnMainSync( 264 sInstrumentation.runOnMainSync(() -> { 277 sInstrumentation.runOnMainSync(() -> {
|
D | AccessibilityEndToEndTest.java | 474 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/ |
D | KeyListenerTestCase.java | 70 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/ |
D | RemoteVirtualDisplayService.java | 128 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/ |
D | MenuItemTest.java | 83 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/ |
D | NativeMediaTest.java | 73 instrumentation.runOnMainSync(() -> { in runPlayTest() 78 instrumentation.runOnMainSync(() -> { in runPlayTest()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsAppOpsTests.java | 100 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testSystemAlertWindowAppOpsInitiallyAllowed() 117 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testSystemAlertWindowAppOpsInitiallyAllowed() 136 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testSystemAlertWindowAppOpsInitiallyAllowed()
|
D | LocationInWindowTests.java | 116 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()
|
D | LocationOnScreenTests.java | 138 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()
|
D | DisplayCutoutTests.java | 198 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/ |
D | BaseToastTest.java | 55 mInstrumentation.runOnMainSync( in showToastsViaToastApis() 73 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 56 instrumentation.runOnMainSync(() -> { in launchActivityAndWaitForItToBeOnscreen() 82 instrumentation.runOnMainSync(() -> titleBuilder.append(activity.getTitle())); in getActivityTitle()
|
D | RunOnMainUtils.java | 35 instrumentation.runOnMainSync(() -> { in getOnMain()
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
D | IsolatedServiceTest.java | 66 mInstrumentation.runOnMainSync(new Runnable() { in runServiceTest()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | NumberPickerTest.java | 276 mInstrumentation.runOnMainSync(() -> { in testAccessValue() 284 mInstrumentation.runOnMainSync(() -> { in testAccessValue() 290 mInstrumentation.runOnMainSync(() -> mNumberPicker.setValue(20)), in testAccessValue() 295 mInstrumentation.runOnMainSync(() -> { in testAccessValue()
|