/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityGlobalActionsTest.java | 56 private static UiAutomation sUiAutomation; field in AccessibilityGlobalActionsTest 66 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 68 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 70 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 72 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in oneTimeSetup() local 77 sUiAutomation.destroy(); in postTestTearDown() 94 assertTrue(sUiAutomation.performGlobalAction(AccessibilityService.GLOBAL_ACTION_BACK)); in testPerformGlobalActionBack() 100 assertTrue(sUiAutomation.performGlobalAction(AccessibilityService.GLOBAL_ACTION_HOME)); in testPerformGlobalActionHome() 108 sUiAutomation.performGlobalAction( in testPerformGlobalActionRecents() 115 assertTrue(sUiAutomation.performGlobalAction( in testPerformGlobalActionNotifications() [all …]
|
D | AccessibilityWindowReportingTest.java | 103 private static UiAutomation sUiAutomation; field in AccessibilityWindowReportingTest 121 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 122 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 124 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 129 sUiAutomation.destroy(); in finalTearDown() 135 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 149 sUiAutomation.executeAndWaitForEvent( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 157 final AccessibilityWindowInfo window = findWindowByTitle(sUiAutomation, updatedTitle); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 173 WindowCreationUtils.addWindowAndWaitForEvent(sUiAutomation, sInstrumentation, mActivity, in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() 177 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() [all …]
|
D | AccessibilityWindowQueryTest.java | 133 private static UiAutomation sUiAutomation; field in AccessibilityWindowQueryTest 152 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 153 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 156 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 161 sUiAutomation.destroy(); in postTestTearDown() 167 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 181 final AccessibilityNodeInfo addedContent = sUiAutomation in testFindByText() 195 AccessibilityNodeInfo button = sUiAutomation.getRootInActiveWindow() in testFindByContentDescription() 204 verifyNodesInAppWindow(sUiAutomation.getRootInActiveWindow()); in testTraverseWindow() 211 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in testNoWindowsAccessIfFlagNotSet() [all …]
|
D | AccessibilityPaneTest.java | 63 private static UiAutomation sUiAutomation; field in AccessibilityPaneTest 89 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 95 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 113 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 123 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 132 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 143 sUiAutomation.executeAndWaitForEvent(setPaneViewVisibility(View.GONE), in windowLikeViewVisibility_reportAsWindowStateChanges() 146 sUiAutomation.executeAndWaitForEvent(setPaneViewVisibility(View.VISIBLE), in windowLikeViewVisibility_reportAsWindowStateChanges() 149 sUiAutomation.executeAndWaitForEvent(setPaneViewParentVisibility(View.GONE), in windowLikeViewVisibility_reportAsWindowStateChanges() 152 sUiAutomation.executeAndWaitForEvent(setPaneViewParentVisibility(View.VISIBLE), in windowLikeViewVisibility_reportAsWindowStateChanges() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 88 private static UiAutomation sUiAutomation; field in AccessibilityFocusAndInputFocusSyncTest 118 sUiAutomation = sInstrumentation.getUiAutomation( in oneTimeSetup() 130 sUiAutomation.destroy(); in postTestTearDown() 135 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in setUp() 138 sUiAutomation.setServiceInfo(info); in setUp() 141 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 151 final AccessibilityNodeInfo expected = sUiAutomation in testFindAccessibilityFocus() 158 sUiAutomation.executeAndWaitForEvent( in testFindAccessibilityFocus() 165 AccessibilityNodeInfo received = sUiAutomation in testFindAccessibilityFocus() 178 AccessibilityNodeInfo focused = sUiAutomation in testInitialStateNoAccessibilityFocus() [all …]
|
D | AccessibilityOverlayTest.java | 93 private static UiAutomation sUiAutomation; field in AccessibilityOverlayTest 103 DeviceFlagsValueProvider.createCheckFlagsRule(sUiAutomation); 115 sUiAutomation = in oneTimeSetUp() 118 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetUp() 120 sUiAutomation.setServiceInfo(info); in oneTimeSetUp() 125 sUiAutomation.destroy(); in postTestTearDown() 136 sUiAutomation.executeAndWaitForEvent( in testA11yServiceShowsOverlay_shouldAppear() 294 final AccessibilityNodeInfo activityRootNode = sUiAutomation.getRootInActiveWindow(); in doOverlayWindowTest() 331 sUiAutomation.executeAndWaitForEvent( in doOverlayWindowTest() 344 ActivityLaunchUtils.findWindowByTitle(sUiAutomation, overlayTitle); in doOverlayWindowTest() [all …]
|
D | AccessibilityEmbeddedHierarchyTest.java | 73 private static UiAutomation sUiAutomation; field in AccessibilityEmbeddedHierarchyTest 98 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 100 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 104 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 109 sUiAutomation.destroy(); in postTestTearDown() 124 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewCanBeFound() 133 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedView_PerformActionTransfersWindowInputFocus() 155 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewCanFindItsHostParent() 163 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewHasCorrectBound() 184 findEmbeddedAccessibilityNodeInfo(sUiAutomation.getRootInActiveWindow()); in testEmbeddedViewHasCorrectBoundAfterHostViewMove() [all …]
|
D | FullScreenMagnificationControllerTest.java | 72 private static UiAutomation sUiAutomation; field in FullScreenMagnificationControllerTest 94 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 95 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup() 97 sUiAutomation.setServiceInfo(info); in oneTimeSetup() 102 sUiAutomation.destroy(); in postTestTearDown() 116 launchActivityAndWaitForItToBeOnscreen(sInstrumentation, sUiAutomation, mActivityRule); in testActivityTransitions_fullscreenMagnifierMagnifying_zoomOut() 120 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in testActivityTransitions_fullscreenMagnifierMagnifying_zoomOut() local
|
D | AccessibilityDragAndDropTest.java | 55 private static UiAutomation sUiAutomation; field in AccessibilityDragAndDropTest 77 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 82 sUiAutomation.destroy(); in postTestTearDown() 88 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 164 sUiAutomation.executeAndWaitForEvent( in performActionAndWaitForEvent() 179 return sUiAutomation.getRootInActiveWindow() in getSourceNode() 185 return sUiAutomation.getRootInActiveWindow() in getTargetNode()
|
D | AccessibilityTextTraversalTest.java | 69 private static UiAutomation sUiAutomation; field in AccessibilityTextTraversalTest 87 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 92 sUiAutomation.destroy(); in postTestTearDown() 98 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 115 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 129 AccessibilityEvent firstExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 159 AccessibilityEvent secondExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 189 AccessibilityEvent thirdExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 223 AccessibilityEvent fourthExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 253 AccessibilityEvent fifthExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() [all …]
|
D | AccessibilityEndToEndTest.java | 183 private static UiAutomation sUiAutomation; field in AccessibilityEndToEndTest 194 DeviceFlagsValueProvider.createCheckFlagsRule(sUiAutomation); 211 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 216 sUiAutomation.destroy(); in postTestTearDown() 221 sUiAutomation.adoptShellPermissionIdentity(POST_NOTIFICATIONS); in setUp() 223 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 228 sUiAutomation.dropShellPermissionIdentity(); in tearDown() 253 sUiAutomation.executeAndWaitForEvent( in testTypeViewSelectedAccessibilityEvent() 293 sUiAutomation.executeAndWaitForEvent( in testTypeViewClickedAccessibilityEvent() 333 sUiAutomation.executeAndWaitForEvent( in testTypeViewLongClickedAccessibilityEvent() [all …]
|
D | AccessibilityTakeScreenshotTest.java | 99 private static UiAutomation sUiAutomation; field in AccessibilityTakeScreenshotTest 124 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 129 sUiAutomation.destroy(); in finalTearDown() 186 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() 217 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap() 235 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap() 254 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOfWindow_GetScreenshotResult() 258 ActivityLaunchUtils.findWindowByTitle(sUiAutomation, activity.getTitle()); in testTakeScreenshotOfWindow_GetScreenshotResult() 283 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOfWindow_ErrorForSecureWindow() 294 sUiAutomation.executeAndWaitForEvent( in testTakeScreenshotOfWindow_ErrorForSecureWindow() [all …]
|
D | AccessibilityViewTreeReportingTest.java | 67 private static UiAutomation sUiAutomation; field in AccessibilityViewTreeReportingTest 85 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 90 sUiAutomation.destroy(); in finalTearDown() 96 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 272 assertEquals(0, sUiAutomation.getRootInActiveWindow().getDrawingOrder()); 309 sUiAutomation.executeAndWaitForEvent( 347 sUiAutomation.waitForIdle(TIMEOUT_ACCESSIBILITY_STATE_IDLE, TIMEOUT_ASYNC_PROCESSING); 350 sUiAutomation.executeAndWaitForEvent( 378 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in setGetNonImportantViews() 382 sUiAutomation.setServiceInfo(serviceInfo); in setGetNonImportantViews() [all …]
|
D | AccessibilityTextActionTest.java | 95 private static UiAutomation sUiAutomation; field in AccessibilityTextActionTest 115 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 121 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 127 sUiAutomation.destroy(); in postTestTearDown() 135 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 164 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditableTextView_shouldExposeAndRespondToSetTextAction() 190 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditText_shouldExposeAndRespondToSetTextAction() 283 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textViewShouldProvideWhenRequested() 301 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() 356 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_withRequestPreparer_shouldHoldOffUntilReady() [all …]
|
D | AccessibilityCacheTest.java | 64 private static UiAutomation sUiAutomation; field in AccessibilityCacheTest 90 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 95 sUiAutomation.destroy(); in postTestTearDown() 105 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 313 AccessibilityNodeInfo root = sUiAutomation.getRootInActiveWindow(); in testUiAutomation_clearCache_cacheInvalidated() 318 assertTrue(sUiAutomation.clearCache()); in testUiAutomation_clearCache_cacheInvalidated() 322 sUiAutomation.isNodeInCache(node)); in testUiAutomation_clearCache_cacheInvalidated()
|
D | AccessibilitySystemActionTest.java | 70 private static UiAutomation sUiAutomation; field in AccessibilitySystemActionTest 92 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup() 93 sUiAutomation.adoptShellPermissionIdentity(MANAGE_ACCESSIBILITY_PERMISSION); in oneTimeSetup() 98 sUiAutomation.dropShellPermissionIdentity(); in finalTearDown() 99 sUiAutomation.destroy(); in finalTearDown()
|
D | AccessibilityMagnificationTest.java | 125 private static UiAutomation sUiAutomation; field in AccessibilityMagnificationTest 147 DeviceFlagsValueProvider.createCheckFlagsRule(sUiAutomation); 159 sUiAutomation = InstrumentationRegistry.getInstrumentation() in oneTimeSetUp() 161 final AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetUp() 163 sUiAutomation.setServiceInfo(info); in oneTimeSetUp() 168 sUiAutomation.destroy(); in postTestTearDown() 176 ShellCommandBuilder.create(sUiAutomation) in setUp() 202 sUiAutomation.executeAndWaitForEvent(() -> {}, in tearDown() 584 sUiAutomation.executeAndWaitForEvent( in testSetWindowModeConfig_hasMagnificationOverlay() 604 sUiAutomation.executeAndWaitForEvent( in testSetWindowModeConfig_hasAccessibilityOverlay() [all …]
|
D | AccessibilityInputConnectionTest.java | 77 private static UiAutomation sUiAutomation; field in AccessibilityInputConnectionTest 97 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 106 sUiAutomation.destroy(); in postTestTearDown() 120 sInstrumentation, sUiAutomation, mActivityRule); 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 | 82 private static UiAutomation sUiAutomation; field in AccessibilityEventTest 101 sUiAutomation = sInstrumentation.getUiAutomation(); in setUp() 103 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 106 sUiAutomation.executeAndWaitForEvent(() -> { in setUp() 128 sUiAutomation.waitForIdle(IDLE_TIMEOUT_MS, DEFAULT_TIMEOUT_MS); in setUp() 147 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testScrollEvent() 153 sUiAutomation.executeAndWaitForEvent( in testScrollEventBurstCombined() 167 sUiAutomation.executeAndWaitForEvent( in testScrollEventsDeliveredInCorrectInterval() 209 sUiAutomation.executeAndWaitForEvent( in testScrollEventsClearedOnDetach() 223 sUiAutomation.executeAndWaitForEvent( in testScrollEventsClearedOnDetach() [all …]
|
D | AccessibilityEventAndCacheTest.java | 63 private static UiAutomation sUiAutomation; field in AccessibilityEventAndCacheTest 85 sUiAutomation = sInstrumentation.getUiAutomation(); in setUp() 87 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 103 final List<AccessibilityNodeInfo> nodes = sUiAutomation.getRootInActiveWindow() in testSimultaneousChangesUpdatesAllChildNodes() 108 sUiAutomation.executeAndWaitForEvent( in testSimultaneousChangesUpdatesAllChildNodes()
|
D | AccessibilityNodeInfo_CollectionInfoTest.java | 48 private static UiAutomation sUiAutomation; field in AccessibilityNodeInfo_CollectionInfoTest 55 DeviceFlagsValueProvider.createCheckFlagsRule(sUiAutomation);
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileTest.java | 79 private static final UiAutomation sUiAutomation = field in CrossProfileTest 253 sUiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_PERMISSION); in isPackageInstalledForUser() 260 sUiAutomation.dropShellPermissionIdentity(); in isPackageInstalledForUser() 266 sUiAutomation.adoptShellPermissionIdentity( in explicitlySetInteractAcrossProfilesAppOp() 274 sUiAutomation.dropShellPermissionIdentity(); in explicitlySetInteractAcrossProfilesAppOp() 297 sUiAutomation.adoptShellPermissionIdentity( in getCrossProfileAppOp() 305 sUiAutomation.dropShellPermissionIdentity(); in getCrossProfileAppOp()
|
/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/car/src/android/car/cts/ |
D | CarRotaryImeTest.java | 50 private static final UiAutomation sUiAutomation = field in CarRotaryImeTest 163 String dumpsysOutput = SystemUtil.runShellCommand(sUiAutomation, in getStringValueFromDumpsys() 186 sUiAutomation.executeShellCommand("cmd car_service inject-key 280"); in ensureInRotaryMode() 194 sUiAutomation.executeShellCommand("input tap 0 0"); in ensureInTouchMode()
|