Home
last modified time | relevance | path

Searched refs:sUiAutomation (Results 1 – 14 of 14) sorted by relevance

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java81 private static UiAutomation sUiAutomation; field in AccessibilityWindowReportingTest
92 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
93 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup()
95 sUiAutomation.setServiceInfo(info); in oneTimeSetup()
100 sUiAutomation.destroy(); in finalTearDown()
106 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
114 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
122 final AccessibilityWindowInfo window = findWindowByTitle(sUiAutomation, updatedTitle); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
133 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
139 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
[all …]
DAccessibilityWindowQueryTest.java108 private static UiAutomation sUiAutomation; field in AccessibilityWindowQueryTest
123 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
124 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup()
126 sUiAutomation.setServiceInfo(info); in oneTimeSetup()
131 sUiAutomation.destroy(); in postTestTearDown()
137 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
159 final AccessibilityNodeInfo addedContent = sUiAutomation in testFindByText()
173 AccessibilityNodeInfo button = sUiAutomation.getRootInActiveWindow() in testFindByContentDescription()
182 verifyNodesInAppWindow(sUiAutomation.getRootInActiveWindow()); in testTraverseWindow()
189 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in testNoWindowsAccessIfFlagNotSet()
[all …]
DAccessibilityFocusAndInputFocusSyncTest.java64 private static UiAutomation sUiAutomation; field in AccessibilityFocusAndInputFocusSyncTest
75 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
76 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetup()
79 sUiAutomation.setServiceInfo(info); in oneTimeSetup()
84 sUiAutomation.destroy(); in postTestTearDown()
90 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
101 final AccessibilityNodeInfo expected = sUiAutomation in testFindAccessibilityFocus()
108 sUiAutomation.executeAndWaitForEvent( in testFindAccessibilityFocus()
115 AccessibilityNodeInfo received = sUiAutomation in testFindAccessibilityFocus()
129 AccessibilityNodeInfo focused = sUiAutomation in testInitialStateNoAccessibilityFocus()
[all …]
DAccessibilityPaneTest.java56 private static UiAutomation sUiAutomation; field in AccessibilityPaneTest
68 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
74 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
92 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
110 sUiAutomation.executeAndWaitForEvent(setPaneViewVisibility(View.GONE), in windowLikeViewVisibility_reportAsWindowStateChanges()
113 sUiAutomation.executeAndWaitForEvent(setPaneViewVisibility(View.VISIBLE), in windowLikeViewVisibility_reportAsWindowStateChanges()
116 sUiAutomation.executeAndWaitForEvent(setPaneViewParentVisibility(View.GONE), in windowLikeViewVisibility_reportAsWindowStateChanges()
119 sUiAutomation.executeAndWaitForEvent(setPaneViewParentVisibility(View.VISIBLE), in windowLikeViewVisibility_reportAsWindowStateChanges()
124 return sUiAutomation.getRootInActiveWindow().findAccessibilityNodeInfosByText( in getPaneNode()
DAccessibilityEndToEndTest.java130 private static UiAutomation sUiAutomation; field in AccessibilityEndToEndTest
141 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
146 sUiAutomation.destroy(); in postTestTearDown()
152 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
175 sUiAutomation.executeAndWaitForEvent( in testTypeViewSelectedAccessibilityEvent()
213 sUiAutomation.executeAndWaitForEvent( in testTypeViewClickedAccessibilityEvent()
251 sUiAutomation.executeAndWaitForEvent( in testTypeViewLongClickedAccessibilityEvent()
291 sUiAutomation.executeAndWaitForEvent( in testTypeViewFocusedAccessibilityEvent()
306 sUiAutomation.executeAndWaitForEvent( in testTypeViewTextChangedAccessibilityEvent()
345 sUiAutomation.executeAndWaitForEvent( in testTypeViewTextChangedAccessibilityEvent()
[all …]
DAccessibilityTextTraversalTest.java63 private static UiAutomation sUiAutomation; field in AccessibilityTextTraversalTest
74 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
79 sUiAutomation.destroy(); in postTestTearDown()
85 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
102 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
116 AccessibilityEvent firstExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
146 AccessibilityEvent secondExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
176 AccessibilityEvent thirdExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
210 AccessibilityEvent fourthExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
240 AccessibilityEvent fifthExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
[all …]
DAccessibilityOverlayTest.java49 private static UiAutomation sUiAutomation; field in AccessibilityOverlayTest
55 sUiAutomation = sInstrumentation in oneTimeSetUp()
57 AccessibilityServiceInfo info = sUiAutomation.getServiceInfo(); in oneTimeSetUp()
59 sUiAutomation.setServiceInfo(info); in oneTimeSetUp()
78 sUiAutomation.executeAndWaitForEvent(() -> mService.runOnServiceSync(() -> { in testA11yServiceShowsOverlay_shouldAppear()
93 List<AccessibilityWindowInfo> windows = sUiAutomation.getWindows(); in findOverlayWindow()
DAccessibilityTextActionTest.java76 private static UiAutomation sUiAutomation; field in AccessibilityTextActionTest
90 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
96 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
102 sUiAutomation.destroy(); in postTestTearDown()
110 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction()
139 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditableTextView_shouldExposeAndRespondToSetTextAction()
165 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testEditText_shouldExposeAndRespondToSetTextAction()
239 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textViewShouldProvideWhenRequested()
257 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull()
311 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testTextLocations_withRequestPreparer_shouldHoldOffUntilReady()
[all …]
DAccessibilityViewTreeReportingTest.java60 private static UiAutomation sUiAutomation; field in AccessibilityViewTreeReportingTest
71 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
76 sUiAutomation.destroy(); in finalTearDown()
82 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
258 assertEquals(0, sUiAutomation.getRootInActiveWindow().getDrawingOrder());
295 sUiAutomation.executeAndWaitForEvent(
313 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo();
317 sUiAutomation.setServiceInfo(serviceInfo);
321 return sUiAutomation.getRootInActiveWindow().findAccessibilityNodeInfosByText(
/cts/tests/tests/permission/src/android/permission/cts/
DBackgroundPermissionsTest.java70 private static final UiAutomation sUiAutomation = field in BackgroundPermissionsTest
156 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfOnlyCoarseLocPermIsGranted()
172 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted()
173 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted()
189 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfOnlyFineLocPermIsGranted()
206 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineAndBgLocPermIsGranted()
207 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfFineAndBgLocPermIsGranted()
223 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineAndCoarseLocPermIsGranted()
224 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfFineAndCoarseLocPermIsGranted()
241 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineCoarseAndBgLocPermIsGranted()
[all …]
DPermissionControllerTest.java82 private static final UiAutomation sUiAutomation = field in PermissionControllerTest
89 sUiAutomation.grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in resetAppState()
90 sUiAutomation.grantRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in resetAppState()
187 sUiAutomation.revokeRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in doNotRevokeAlreadyRevokedPermission()
329 sUiAutomation.adoptShellPermissionIdentity(); in runtimePermissionPresentationInfoLocationApp()
336 sUiAutomation.dropShellPermissionIdentity(); in runtimePermissionPresentationInfoLocationApp()
393 sUiAutomation.grantRuntimePermission(APP2, CUSTOM_PERMISSION); in runtimePermissionPresentationInfoCustomApp()
400 sUiAutomation.adoptShellPermissionIdentity(); in runtimePermissionPresentationInfoCustomApp()
407 sUiAutomation.dropShellPermissionIdentity(); in runtimePermissionPresentationInfoCustomApp()
DLocationAccessCheckTest.java118 private static final UiAutomation sUiAutomation = InstrumentationRegistry.getInstrumentation() field in LocationAccessCheckTest
220 … ParcelFileDescriptor pfd = sUiAutomation.executeShellCommand("dumpsys jobscheduler --proto"); in getJobSchedulerDump()
330 sUiAutomation.grantRuntimePermission(TEST_APP_PKG, permission); in grantPermissionToTestApp()
DSplitPermissionTest.java88 private static final UiAutomation sUiAutomation = field in SplitPermissionTest
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java65 private static final UiAutomation sUiAutomation = field in PermissionUtils
187 sUiAutomation.grantRuntimePermission(packageName, permission); in grantPermission()
221 sUiAutomation.revokeRuntimePermission(packageName, permission); in revokePermission()