Home
last modified time | relevance | path

Searched refs:ACCESS_BACKGROUND_LOCATION (Results 1 – 19 of 19) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/
DUsePermissionTest29.java19 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/
DSplitPermissionTest.java19 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 …]
DPermissionFlagsTest.java19 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 …]
DPermissionControllerTest.java19 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 …]
DBackgroundPermissionsTest.java19 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()
DSplitPermissionsSystemTest.java19 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()
DLocationAccessCheckTest.java19 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/
DUsePermissionTest28.java19 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/
DPermissionTest.java19 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/
DAndroid.bp33 // 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/
DPermissionUtils.java19 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/
DTelephonyLocationTests.java75 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()
DTelephonyManagerTest.java329 uiAutomation.grantRuntimePermission(packageName, permission.ACCESS_BACKGROUND_LOCATION); in grantLocationPermissions()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/
DAndroid.bp31 // For ACCESS_BACKGROUND_LOCATION
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/
DAndroid.bp32 // For ACCESS_BACKGROUND_LOCATION
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DNetworkScanApiTest.java18 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/
DUsePermissionTest22.java133 .checkSelfPermission(Manifest.permission.ACCESS_BACKGROUND_LOCATION)); in testAllPermissionsGrantedByDefault()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java515 Manifest.permission.ACCESS_BACKGROUND_LOCATION); in testNoResidualPermissionsOnUninstall_part1()
667 Manifest.permission.ACCESS_BACKGROUND_LOCATION in assertAllPermissionsGrantState()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java980 if (permission.equals(Manifest.permission.ACCESS_BACKGROUND_LOCATION)) { in assertRestrictedPermissionWhitelisted()