Home
last modified time | relevance | path

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

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DBackgroundPermissionsTest.java72 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 …]
DPermissionControllerTest.java92 private static final UiAutomation sUiAutomation = field in PermissionControllerTest
102 sUiAutomation.grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in resetAppState()
103 sUiAutomation.grantRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in resetAppState()
242 sUiAutomation.revokeRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in revokePermissionsDoNotAlreadyRevokedPermission()
389 sUiAutomation.adoptShellPermissionIdentity(); in getAppPermissionsForApp()
396 sUiAutomation.dropShellPermissionIdentity(); in getAppPermissionsForApp()
408 sUiAutomation.grantRuntimePermission(APP2, CUSTOM_PERMISSION); in getAppPermissionsForCustomApp()
415 sUiAutomation.adoptShellPermissionIdentity(); in getAppPermissionsForCustomApp()
422 sUiAutomation.dropShellPermissionIdentity(); in getAppPermissionsForCustomApp()
449 sUiAutomation.grantRuntimePermission(APP2, CUSTOM_PERMISSION); in revokePermissionCustom()
DBaseNotificationListenerCheckTest.java102 private static final UiAutomation sUiAutomation = InstrumentationRegistry.getInstrumentation() field in BaseNotificationListenerCheckTest
228 sUiAutomation, in runNotificationListenerCheck()
236 sUiAutomation in runNotificationListenerCheck()
279 PermissionUtils.resetPermissionControllerJob(sUiAutomation, PERMISSION_CONTROLLER_PKG, in resetPermissionController()
DLocationAccessCheckTest.java137 private static final UiAutomation sUiAutomation = InstrumentationRegistry.getInstrumentation() field in LocationAccessCheckTest
361 PermissionUtils.scheduleJob(sUiAutomation, PERMISSION_CONTROLLER_PKG, in runLocationCheck()
370 sUiAutomation, in runLocationCheck()
378 sUiAutomation in runLocationCheck()
400 sUiAutomation.grantRuntimePermission(TEST_APP_PKG, permission); in grantPermissionToTestApp()
544 PermissionUtils.resetPermissionControllerJob(sUiAutomation, PERMISSION_CONTROLLER_PKG, in resetPermissionController()
DSplitPermissionTest.java102 private static final UiAutomation sUiAutomation = field in SplitPermissionTest
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DGetApplicationInfoTest.java55 private static final UiAutomation sUiAutomation = field in GetApplicationInfoTest
66 sUiAutomation.adoptShellPermissionIdentity(MANAGE_HEALTH_DATA); in testEmptyApplicationInfo()
90 sUiAutomation.dropShellPermissionIdentity(); in testEmptyApplicationInfo()
120 sUiAutomation.adoptShellPermissionIdentity(MANAGE_HEALTH_DATA); in testGetApplicationInfo()
140 sUiAutomation.dropShellPermissionIdentity(); in testGetApplicationInfo()
DHealthPermissionCategoryPriorityTests.java58 private static final UiAutomation sUiAutomation = field in HealthPermissionCategoryPriorityTests
101 sUiAutomation.adoptShellPermissionIdentity(MANAGE_HEALTH_DATA); in testUpdatePriority_withNewApps_updatesCorrectly()
126 sUiAutomation.dropShellPermissionIdentity(); in testUpdatePriority_withNewApps_updatesCorrectly()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DTreeTraverserTest.java42 private static UiAutomation sUiAutomation; field in TreeTraverserTest
61 sUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in oneTimeSetup()
64 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in oneTimeSetup()
67 sUiAutomation.setServiceInfo(serviceInfo); in oneTimeSetup()
72 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in oneTimeTearDown()
74 sUiAutomation.setServiceInfo(serviceInfo); in oneTimeTearDown()
81 AccessibilityNodeInfo root = sUiAutomation.getRootInActiveWindow(); in setUp()
DRotaryServiceTest.java86 private static UiAutomation sUiAutomation; field in RotaryServiceTest
103 sUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation( in setUpClass()
107 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in setUpClass()
110 sUiAutomation.setServiceInfo(serviceInfo); in setUpClass()
115 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in tearDownClass()
117 sUiAutomation.setServiceInfo(serviceInfo); in tearDownClass()
2305 mWindowRoot = sUiAutomation.getRootInActiveWindow(); in initActivity()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java78 private static final UiAutomation sUiAutomation = field in PermissionUtils
206 sUiAutomation.grantRuntimePermission(packageName, permission); in grantPermission()
242 sUiAutomation.revokeRuntimePermission(packageName, permission); in revokePermission()