/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | LayoutTests.java | 95 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()
|
D | LocationInWindowTests.java | 114 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()
|
D | ActivityViewTest.java | 170 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()
|
D | AlertWindowsAppOpsTests.java | 101 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed() 117 getInstrumentation().runOnMainSync(activity::hideSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed() 135 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
|
D | CloseOnOutsideTests.java | 72 instrumentation.runOnMainSync(() -> assertFalse(mTestActivity.getActivity().isFinishing())); in touchAndAssert() 76 instrumentation.runOnMainSync( in touchAndAssert()
|
D | DisplayCutoutTests.java | 249 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);
|
D | LocationOnScreenTests.java | 139 runOnMainSync(() -> result[0] = f.get()); in getOnMainSync() 144 private void runOnMainSync(Runnable runnable) { in runOnMainSync() method in LocationOnScreenTests 145 getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
|
D | WindowFocusTests.java | 221 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()
|
D | WindowInsetsPolicyTest.java | 203 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/ |
D | FocusHandlingTest.java | 20 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 …]
|
D | KeyboardVisibilityControlTest.java | 20 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/ |
D | TestUtils.java | 40 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/ |
D | AccessibilityWindowReportingTest.java | 114 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()
|
D | AccessibilityPaneTest.java | 75 sInstrumentation.runOnMainSync(() -> { in setUp() 92 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 129 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility() 134 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 | 548 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/ |
D | FragmentTransactionTest.java | 56 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()
|
D | ToolbarActionBarTest.java | 37 getInstrumentation().runOnMainSync( in setUp() 65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu() 69 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu()
|
D | ActivityKeyboardShortcutsTest.java | 62 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testRequestShowKeyboardShortcuts() 66 getInstrumentation().runOnMainSync(() -> mActivity.requestShowKeyboardShortcuts()); in testRequestShowKeyboardShortcuts() 70 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()
|
/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/text/src/android/text/method/cts/ |
D | KeyListenerTestCase.java | 71 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/ |
D | MenuItemTest.java | 84 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/ |
D | NativeMediaTest.java | 73 instrumentation.runOnMainSync(() -> { in runPlayTest() 78 instrumentation.runOnMainSync(() -> { in runPlayTest()
|
/cts/tests/tests/toast/src/android/widget/toast/cts/ |
D | BaseToastTest.java | 57 mInstrumentation.runOnMainSync( in showToastsViaToastApis() 75 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()
|