/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityGlobalActionsTest.java | 67 private static UiAutomation sUiAutomation; field in AccessibilityGlobalActionsTest 76 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 77 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 79 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 84 sUiAutomation.destroy(); in postTestTearDown() 91 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in setUp() local 97 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in tearDown() local 103 assertTrue(sUiAutomation.performGlobalAction(AccessibilityService.GLOBAL_ACTION_BACK)); in testPerformGlobalActionBack() 112 assertTrue(sUiAutomation.performGlobalAction(AccessibilityService.GLOBAL_ACTION_HOME)); in testPerformGlobalActionHome() 122 boolean actionWasPerformed = sUiAutomation.performGlobalAction( in testPerformGlobalActionRecents() [all …]
|
D | AccessibilityWindowReportingTest.java | 93 private static UiAutomation sUiAutomation; field in AccessibilityWindowReportingTest 111 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 112 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 114 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 119 sUiAutomation.destroy(); in finalTearDown() 125 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 138 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 146 final AccessibilityWindowInfo window = findWindowByTitle(sUiAutomation, updatedTitle); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 157 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() 163 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 85 private static UiAutomation sUiAutomation; field in AccessibilityFocusAndInputFocusSyncTest 115 sUiAutomation = sInstrumentation.getUiAutomation( in oneTimeSetup() 127 sUiAutomation.destroy(); in postTestTearDown() 132 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in setUp() 135 sUiAutomation.setServiceInfo(info); in setUp() 138 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 149 final AccessibilityNodeInfo expected = sUiAutomation in testFindAccessibilityFocus() 156 sUiAutomation.executeAndWaitForEvent( in testFindAccessibilityFocus() 163 AccessibilityNodeInfo received = sUiAutomation in testFindAccessibilityFocus() 177 AccessibilityNodeInfo focused = sUiAutomation in testInitialStateNoAccessibilityFocus() [all …]
|
D | AccessibilityOverlayTest.java | 55 private static UiAutomation sUiAutomation; field in AccessibilityOverlayTest 72 sUiAutomation = InstrumentationRegistry.getInstrumentation() in oneTimeSetUp() 74 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetUp() 76 sUiAutomation.setServiceInfo(info); in oneTimeSetUp() 81 sUiAutomation.destroy(); in postTestTearDown() 92 sUiAutomation.executeAndWaitForEvent(() -> mService.runOnServiceSync(() -> { in testA11yServiceShowsOverlay_shouldAppear() 113 sUiAutomation.getWindowsOnAllDisplays(); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear() 119 sUiAutomation.executeAndWaitForEvent(() -> mService.runOnServiceSync(() -> { in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear() 142 sUiAutomation.getWindowsOnAllDisplays(); in findOverlayWindow()
|
D | AccessibilityPaneTest.java | 58 private static UiAutomation sUiAutomation; field in AccessibilityPaneTest 77 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 83 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 101 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 119 sUiAutomation.executeAndWaitForEvent(setPaneViewVisibility(View.GONE), in windowLikeViewVisibility_reportAsWindowStateChanges() 122 sUiAutomation.executeAndWaitForEvent(setPaneViewVisibility(View.VISIBLE), in windowLikeViewVisibility_reportAsWindowStateChanges() 125 sUiAutomation.executeAndWaitForEvent(setPaneViewParentVisibility(View.GONE), in windowLikeViewVisibility_reportAsWindowStateChanges() 128 sUiAutomation.executeAndWaitForEvent(setPaneViewParentVisibility(View.VISIBLE), in windowLikeViewVisibility_reportAsWindowStateChanges() 133 return sUiAutomation.getRootInActiveWindow().findAccessibilityNodeInfosByText( in getPaneNode()
|
D | AccessibilityEmbeddedHierarchyTest.java | 67 private static UiAutomation sUiAutomation; field in AccessibilityEmbeddedHierarchyTest 90 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 91 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 93 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 98 sUiAutomation.destroy(); in postTestTearDown() 103 mActivity = launchActivityAndWaitForItToBeOnscreen(sInstrumentation, sUiAutomation, in setUp() 111 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewCanBeFound() 118 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewCanFindItsHostParent() 126 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewHasCorrectBound() 143 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewHasCorrectBoundAfterHostViewMove() [all …]
|
D | AccessibilityEndToEndTest.java | 134 private static UiAutomation sUiAutomation; field in AccessibilityEndToEndTest 152 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 157 sUiAutomation.destroy(); in postTestTearDown() 163 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 186 sUiAutomation.executeAndWaitForEvent( in testTypeViewSelectedAccessibilityEvent() 224 sUiAutomation.executeAndWaitForEvent( in testTypeViewClickedAccessibilityEvent() 262 sUiAutomation.executeAndWaitForEvent( in testTypeViewLongClickedAccessibilityEvent() 302 sUiAutomation.executeAndWaitForEvent( in testTypeViewFocusedAccessibilityEvent() 317 sUiAutomation.executeAndWaitForEvent( in testTypeViewTextChangedAccessibilityEvent() 356 sUiAutomation.executeAndWaitForEvent( in testTypeViewTextChangedAccessibilityEvent() [all …]
|
D | AccessibilityDragAndDropTest.java | 50 private static UiAutomation sUiAutomation; field in AccessibilityDragAndDropTest 72 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 77 sUiAutomation.destroy(); in postTestTearDown() 83 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 157 sUiAutomation.executeAndWaitForEvent( in performActionAndWaitForEvent() 172 return sUiAutomation.getRootInActiveWindow() in getSourceNode() 178 return sUiAutomation.getRootInActiveWindow() in getTargetNode()
|
D | AccessibilityTextTraversalTest.java | 64 private static UiAutomation sUiAutomation; field in AccessibilityTextTraversalTest 82 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 87 sUiAutomation.destroy(); in postTestTearDown() 93 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 110 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 124 AccessibilityEvent firstExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 154 AccessibilityEvent secondExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 184 AccessibilityEvent thirdExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 218 AccessibilityEvent fourthExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 248 AccessibilityEvent fifthExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() [all …]
|
D | AccessibilitySystemActionTest.java | 64 private static UiAutomation sUiAutomation; field in AccessibilitySystemActionTest 86 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup() 87 sUiAutomation.adoptShellPermissionIdentity(MANAGE_ACCESSIBILITY_PERMISSION); in oneTimeSetup() 92 sUiAutomation.dropShellPermissionIdentity(); in finalTearDown() 93 sUiAutomation.destroy(); in finalTearDown()
|
D | AccessibilityViewTreeReportingTest.java | 61 private static UiAutomation sUiAutomation; field in AccessibilityViewTreeReportingTest 79 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 84 sUiAutomation.destroy(); in finalTearDown() 90 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 266 assertEquals(0, sUiAutomation.getRootInActiveWindow().getDrawingOrder()); 303 sUiAutomation.executeAndWaitForEvent( 341 sUiAutomation.executeAndWaitForEvent( 369 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in setGetNonImportantViews() 373 sUiAutomation.setServiceInfo(serviceInfo); in setGetNonImportantViews() 377 return sUiAutomation.getRootInActiveWindow().findAccessibilityNodeInfosByText( in getNodeByText()
|
D | AccessibilityTextActionTest.java | 87 private static UiAutomation sUiAutomation; field in AccessibilityTextActionTest 107 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 113 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 119 sUiAutomation.destroy(); in postTestTearDown() 127 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 156 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditableTextView_shouldExposeAndRespondToSetTextAction() 182 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditText_shouldExposeAndRespondToSetTextAction() 275 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textViewShouldProvideWhenRequested() 293 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() 347 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_withRequestPreparer_shouldHoldOffUntilReady() [all …]
|
D | AccessibilityTakeScreenshotTest.java | 83 private static UiAutomation sUiAutomation; field in AccessibilityTakeScreenshotTest 108 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 113 sUiAutomation.destroy(); in finalTearDown() 170 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() 201 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap() 219 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
|
D | AccessibilityGestureDetectorTest.java | 84 private static UiAutomation sUiAutomation; field in AccessibilityGestureDetectorTest 114 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup() 119 sUiAutomation.destroy(); in finalTearDown() 185 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testRecognizeGesturePathOnVirtualDisplay() 437 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testVerifyGestureTouchEventOnVirtualDisplay()
|
D | AccessibilityGestureDispatchTest.java | 103 private static UiAutomation sUiAutomation; field in AccessibilityGestureDispatchTest 137 sUiAutomation = sInstrumentation.getUiAutomation( in oneTimeSetup() 143 sUiAutomation.destroy(); in postTestTearDown() 156 sUiAutomation, mActivityRule); in setUp() 158 sUiAutomation.syncInputTransactions(); in setUp()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityShortcutTest.java | 69 private static UiAutomation sUiAutomation; field in AccessibilityShortcutTest 103 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup() 108 sUiAutomation.destroy(); in postTestTearDown() 150 sUiAutomation, mSpeakingA11yServiceName); in performAccessibilityShortcut_launchAccessibilityService() 152 sUiAutomation, Arrays.asList(mSpeakingA11yServiceName)); in performAccessibilityShortcut_launchAccessibilityService() 154 runWithShellPermissionIdentity(sUiAutomation, in performAccessibilityShortcut_launchAccessibilityService() 165 sUiAutomation, mShortcutTargetActivityName); in performAccessibilityShortcut_launchShortcutTargetActivity() 167 sUiAutomation, Arrays.asList(mShortcutTargetActivityName)); in performAccessibilityShortcut_launchShortcutTargetActivity() 169 runWithShellPermissionIdentity(sUiAutomation, in performAccessibilityShortcut_launchShortcutTargetActivity() 183 sUiAutomation, mA11yButtonServiceName); in performAccessibilityShortcut_withReqA11yButtonService_a11yButtonCallback() [all …]
|
D | AccessibilityEventTest.java | 76 private static UiAutomation sUiAutomation; field in AccessibilityEventTest 97 sUiAutomation = sInstrumentation.getUiAutomation(); in setUp() 110 sUiAutomation.waitForIdle(IDLE_TIMEOUT_MS, DEFAULT_TIMEOUT_MS); in setUp() 129 sUiAutomation.executeAndWaitForEvent( in testScrollEvent() 135 sUiAutomation.executeAndWaitForEvent( in testScrollEventBurstCombined() 148 sUiAutomation.executeAndWaitForEvent( in testScrollEventsDeliveredInCorrectInterval() 188 sUiAutomation.executeAndWaitForEvent( in testScrollEventsClearedOnDetach() 201 sUiAutomation.executeAndWaitForEvent( in testScrollEventsClearedOnDetach() 215 sUiAutomation.executeAndWaitForEvent( in testScrollEventsCaptureTotalDelta() 231 sUiAutomation.executeAndWaitForEvent( in testScrollEventsClearDeltaAfterSending() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | BackgroundPermissionsTest.java | 72 private static final UiAutomation sUiAutomation = field in BackgroundPermissionsTest 161 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfOnlyCoarseLocPermIsGranted() 177 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted() 178 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted() 194 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfOnlyFineLocPermIsGranted() 211 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineAndBgLocPermIsGranted() 212 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfFineAndBgLocPermIsGranted() 228 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineAndCoarseLocPermIsGranted() 229 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfFineAndCoarseLocPermIsGranted() 246 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineCoarseAndBgLocPermIsGranted() [all …]
|
D | PermissionControllerTest.java | 90 private static final UiAutomation sUiAutomation = field in PermissionControllerTest 100 sUiAutomation.grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in resetAppState() 101 sUiAutomation.grantRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in resetAppState() 240 sUiAutomation.revokeRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in revokePermissionsDoNotAlreadyRevokedPermission() 385 sUiAutomation.adoptShellPermissionIdentity(); in getAppPermissionsForApp() 392 sUiAutomation.dropShellPermissionIdentity(); in getAppPermissionsForApp() 404 sUiAutomation.grantRuntimePermission(APP2, CUSTOM_PERMISSION); in getAppPermissionsForCustomApp() 411 sUiAutomation.adoptShellPermissionIdentity(); in getAppPermissionsForCustomApp() 418 sUiAutomation.dropShellPermissionIdentity(); in getAppPermissionsForCustomApp() 445 sUiAutomation.grantRuntimePermission(APP2, CUSTOM_PERMISSION); in revokePermissionCustom()
|
D | LocationAccessCheckTest.java | 133 private static final UiAutomation sUiAutomation = InstrumentationRegistry.getInstrumentation() field in LocationAccessCheckTest 254 return ProtoUtils.getProto(sUiAutomation, JobSchedulerServiceDumpProto.class, in getJobSchedulerDump() 379 sUiAutomation.grantRuntimePermission(TEST_APP_PKG, permission); in grantPermissionToTestApp()
|
D | SplitPermissionTest.java | 96 private static final UiAutomation sUiAutomation = field in SplitPermissionTest
|
/cts/tests/accessibilityservice/testsdk29/src/android/accessibilityservice/cts/ |
D | AccessibilityButtonSdk29Test.java | 57 private static UiAutomation sUiAutomation; field in AccessibilityButtonSdk29Test 79 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup() 84 sUiAutomation.destroy(); in postTestTearDown() 115 runWithShellPermissionIdentity(sUiAutomation, () -> { in getA11yBtn_withLegacyReqA11yBtnService_succeeds()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 69 private static final UiAutomation sUiAutomation = field in PermissionUtils 196 sUiAutomation.grantRuntimePermission(packageName, permission); in grantPermission() 232 sUiAutomation.revokeRuntimePermission(packageName, permission); in revokePermission()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | UiDumpUtils.java | 134 private static UiAutomation sUiAutomation = sInstrumentation.getUiAutomation(); field in UiDumpUtils 563 + mkStr(sb -> dumpNodes(sUiAutomation.getRootInActiveWindow(), sb)), cause);
|