/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/ |
D | UsePermissionTest29.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 75 assertDenied(ACCESS_BACKGROUND_LOCATION); 87 assertDenied(ACCESS_BACKGROUND_LOCATION); 92 String[] permissions = {ACCESS_BACKGROUND_LOCATION}; 98 assertDenied(ACCESS_BACKGROUND_LOCATION); 103 String[] permissions = {ACCESS_FINE_LOCATION, ACCESS_BACKGROUND_LOCATION}; 110 assertGranted(ACCESS_BACKGROUND_LOCATION); 123 assertDenied(ACCESS_BACKGROUND_LOCATION); 126 permissions = new String[]{ACCESS_BACKGROUND_LOCATION}; 139 assertGranted(ACCESS_BACKGROUND_LOCATION); [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | SplitPermissionTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 150 assertNotRequestsPermission(ACCESS_BACKGROUND_LOCATION); in permissionsDoNotSplitWithHighTargetSDK() 175 assertRequestsPermission(ACCESS_BACKGROUND_LOCATION); in permissionsSplitWithLowTargetSDK() 220 assertPermissionRevoked(ACCESS_BACKGROUND_LOCATION); in nonInheritedStateLowTargetSDK() 243 assertPermissionGranted(ACCESS_BACKGROUND_LOCATION); in backgroundLocationPermissionDefaultGrantPreM() 257 assertPermissionGranted(ACCESS_BACKGROUND_LOCATION); in inheritGrantedPermissionState() 273 assertPermissionGranted(ACCESS_BACKGROUND_LOCATION); in inheritGrantedPermissionStateSharedUidApp() 307 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION) & FLAG_PERMISSION_USER_SET); in inheritFlags() 337 assertPermissionRevoked(ACCESS_BACKGROUND_LOCATION); in inheritRevokedPermissionState() 373 grantPermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in grantNewSplitPermissionState() [all …]
|
D | PermissionFlagsTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 75 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION)); in implicitPermission() 150 int defaultState = getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION); in clearImplicitPermission() 151 setPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION, in clearImplicitPermission() 158 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION))); in clearImplicitPermission() 203 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION)); in reinstall() 213 setPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION, in reinstallDoesNotOverrideChanges() 224 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION)); in reinstallDoesNotOverrideChanges() 235 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION) in preMPermsAreMarkedRevokeOnUpgrade() 249 assertFalse(isGranted(APP_PKG, ACCESS_BACKGROUND_LOCATION)); in revokeOnUpgrade() [all …]
|
D | PermissionControllerTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 90 sUiAutomation.grantRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in resetAppState() 164 Map<String, List<String>> request = buildRequest(APP, ACCESS_BACKGROUND_LOCATION); in dryRunRevokeSinglePermission() 170 assertThat(result.get(APP)).containsExactly(ACCESS_BACKGROUND_LOCATION); in dryRunRevokeSinglePermission() 175 Map<String, List<String>> request = buildRequest(APP, ACCESS_BACKGROUND_LOCATION); in revokeSinglePermission() 179 assertThat(sContext.getPackageManager().checkPermission(ACCESS_BACKGROUND_LOCATION, in revokeSinglePermission() 187 sUiAutomation.revokeRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in doNotRevokeAlreadyRevokedPermission() 191 Map<String, List<String>> request = buildRequest(APP, ACCESS_BACKGROUND_LOCATION); in doNotRevokeAlreadyRevokedPermission() 206 ACCESS_BACKGROUND_LOCATION, ACCESS_COARSE_LOCATION); in dryRunRevokeForegroundPermission() 246 Map<String, List<String>> request = buildRequest(APP, ACCESS_BACKGROUND_LOCATION); in useExecutorForCallback() [all …]
|
D | BackgroundPermissionsTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 173 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted() 207 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfFineAndBgLocPermIsGranted() 243 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfFineCoarseAndBgLocPermIsGranted()
|
D | SplitPermissionsSystemTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 93 assertSplit(split, ACCESS_BACKGROUND_LOCATION, Build.VERSION_CODES.Q); in validateAndroidSystem() 106 assertSplit(split, ACCESS_BACKGROUND_LOCATION, Build.VERSION_CODES.Q); in validateAndroidSystem()
|
D | LocationAccessCheckTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 565 grantPermissionToTestApp(ACCESS_BACKGROUND_LOCATION); in notificationIsShownAgainAfterClear()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp28/src/com/android/cts/usepermission/ |
D | UsePermissionTest28.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 43 assertEquals(PERMISSION_DENIED, context.checkSelfPermission(ACCESS_BACKGROUND_LOCATION)); in testLocationPermissionWasSplit() 64 assertEquals(PERMISSION_GRANTED, context.checkSelfPermission(ACCESS_BACKGROUND_LOCATION)); in testLocationPermissionWasSplit()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 134 setFlag(APP, ACCESS_BACKGROUND_LOCATION, FLAG_PERMISSION_USER_SET); in testNoTriStateRuntimePermission() 145 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testNoTriStateRuntimePermission() 172 setFlag(APP, ACCESS_BACKGROUND_LOCATION, FLAG_PERMISSION_USER_SET); in testGrantForegroundRuntimePermission() 180 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundRuntimePermission() 203 grantRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in testGrantForegroundAndBackgroundRuntimePermission() 211 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission()
|
/cts/hostsidetests/appsecurity/test-apps/ |
D | Android.bp | 33 // For ACCESS_BACKGROUND_LOCATION 96 // For ACCESS_BACKGROUND_LOCATION 129 // For ACCESS_BACKGROUND_LOCATION 155 // For ACCESS_BACKGROUND_LOCATION 187 // For ACCESS_BACKGROUND_LOCATION
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 19 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 165 if (permission.equals(ACCESS_BACKGROUND_LOCATION)) { in isGranted() 189 if (permission.equals(ACCESS_BACKGROUND_LOCATION)) { in grantPermission() 199 if (isPermissionGranted(packageName, ACCESS_BACKGROUND_LOCATION)) { in grantPermission() 223 if (permission.equals(ACCESS_BACKGROUND_LOCATION)) { in revokePermission()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyLocationTests.java | 75 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testCellLocationFinePermission() 101 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testServiceStateLocationSanitization() 129 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testServiceStateListeningWithoutPermissions() 148 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testRegistryPermissionsForCellLocation() 167 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testRegistryPermissionsForCellInfo()
|
D | TelephonyManagerTest.java | 329 uiAutomation.grantRuntimePermission(packageName, permission.ACCESS_BACKGROUND_LOCATION); in grantLocationPermissions()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/ |
D | Android.bp | 31 // For ACCESS_BACKGROUND_LOCATION
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/ |
D | Android.bp | 32 // For ACCESS_BACKGROUND_LOCATION
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | NetworkScanApiTest.java | 18 import static android.Manifest.permission.ACCESS_BACKGROUND_LOCATION; 127 context.getPackageName(), ACCESS_BACKGROUND_LOCATION); in setUp() local
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/ |
D | UsePermissionTest22.java | 133 .checkSelfPermission(Manifest.permission.ACCESS_BACKGROUND_LOCATION)); in testAllPermissionsGrantedByDefault()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | UsePermissionTest23.java | 515 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testNoResidualPermissionsOnUninstall_part1() 667 Manifest.permission.ACCESS_BACKGROUND_LOCATION in assertAllPermissionsGrantState()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 980 if (permission.equals(Manifest.permission.ACCESS_BACKGROUND_LOCATION)) { in assertRestrictedPermissionWhitelisted()
|