Home
last modified time | relevance | path

Searched refs:ACCESS_FINE_LOCATION (Results 1 – 23 of 23) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/
DUsePermissionTest29.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
74 assertDenied(ACCESS_FINE_LOCATION);
80 String[] permissions = {ACCESS_FINE_LOCATION};
86 assertGranted(ACCESS_FINE_LOCATION);
97 assertDenied(ACCESS_FINE_LOCATION);
103 String[] permissions = {ACCESS_FINE_LOCATION, ACCESS_BACKGROUND_LOCATION};
109 assertGranted(ACCESS_FINE_LOCATION);
116 String[] permissions = {ACCESS_FINE_LOCATION};
122 assertGranted(ACCESS_FINE_LOCATION);
138 assertGranted(ACCESS_FINE_LOCATION);
[all …]
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
96 grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in testGrantDeniedRuntimePermission()
103 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission()
120 assertEquals(MODE_ALLOWED, getAppOp(APP22, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission22()
133 setFlag(APP, ACCESS_FINE_LOCATION, FLAG_PERMISSION_USER_SET); in testNoTriStateRuntimePermission()
144 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission()
146 assertEquals(MODE_IGNORED, getAppOp(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission()
154 setAppOp(APP22, ACCESS_FINE_LOCATION, MODE_IGNORED); in testNoTriStateRuntimePermission22()
160 eventually(() -> assertEquals(MODE_IGNORED, getAppOp(APP22, ACCESS_FINE_LOCATION))); in testNoTriStateRuntimePermission22()
167 grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in testGrantForegroundRuntimePermission()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp28/src/com/android/cts/usepermission/
DUsePermissionTest28.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
42 assertEquals(PERMISSION_DENIED, context.checkSelfPermission(ACCESS_FINE_LOCATION)); in testLocationPermissionWasSplit()
45 String[] permissions = {ACCESS_FINE_LOCATION}; in testLocationPermissionWasSplit()
63 assertEquals(PERMISSION_GRANTED, context.checkSelfPermission(ACCESS_FINE_LOCATION)); in testLocationPermissionWasSplit()
/cts/tests/tests/permission/src/android/permission/cts/
DBackgroundPermissionsTest.java21 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
189 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfOnlyFineLocPermIsGranted()
206 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineAndBgLocPermIsGranted()
223 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineAndCoarseLocPermIsGranted()
241 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_FINE_LOCATION); in appOpIsSetIfFineCoarseAndBgLocPermIsGranted()
DPermissionControllerTest.java21 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
89 sUiAutomation.grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in resetAppState()
91 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_ALLOWED); in resetAppState()
188 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_FOREGROUND); in doNotRevokeAlreadyRevokedPermission()
199 Map<String, List<String>> request = buildRequest(APP, ACCESS_FINE_LOCATION); in dryRunRevokeForegroundPermission()
205 assertThat(result.get(APP)).containsExactly(ACCESS_FINE_LOCATION, in dryRunRevokeForegroundPermission()
238 Map<String, List<String>> request = buildRequest(APP, ACCESS_FINE_LOCATION); in revokePolicyViolationFromWrongPackage()
261 Collections.singletonList(ACCESS_FINE_LOCATION)); in nullPkg()
DSplitPermissionsSystemTest.java21 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
88 case ACCESS_FINE_LOCATION: in validateAndroidSystem()
DLocationAccessCheckTest.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
564 grantPermissionToTestApp(ACCESS_FINE_LOCATION); in notificationIsShownAgainAfterClear()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java73 cellLocationAccess, Manifest.permission.ACCESS_FINE_LOCATION); in testCellLocationFinePermission()
94 Manifest.permission.ACCESS_FINE_LOCATION); in testServiceStateLocationSanitization()
121 Manifest.permission.ACCESS_FINE_LOCATION); in testServiceStateListeningWithoutPermissions()
141 Manifest.permission.ACCESS_FINE_LOCATION); in testRegistryPermissionsForCellLocation()
160 Manifest.permission.ACCESS_FINE_LOCATION); in testRegistryPermissionsForCellInfo()
195 }, Manifest.permission.ACCESS_FINE_LOCATION); in testSdk28CellLocation()
DTelephonyManagerTest.java328 uiAutomation.grantRuntimePermission(packageName, permission.ACCESS_FINE_LOCATION); in grantLocationPermissions()
/cts/tests/tests/location/
DREADME.txt1 Location CTS tests that require "android.permission.ACCESS_FINE_LOCATION".
/cts/tests/tests/location2/
DREADME.txt2 "android.permission.ACCESS_FINE_LOCATION". Note you must enable "Allow mock locations"
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DNetworkScanApiTest.java19 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
125 context.getPackageName(), ACCESS_FINE_LOCATION); in setUp() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java379 Boolean locationEnabled = (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == in onResume()
623 if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == in onClick()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/
DUsePermissionTest22.java109 .checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)); in testAllPermissionsGrantedByDefault()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java511 Manifest.permission.ACCESS_FINE_LOCATION); in testNoResidualPermissionsOnUninstall_part1()
660 Manifest.permission.ACCESS_FINE_LOCATION, in assertAllPermissionsGrantState()
DBasePermissionsTest.java156 Manifest.permission.ACCESS_FINE_LOCATION, in initPermissionToLabelMap()
223 Manifest.permission.ACCESS_FINE_LOCATION, in initPermissionToLabelMap()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeScanTest.java91 "android.bluetooth.cts", android.Manifest.permission.ACCESS_FINE_LOCATION); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DEnterprisePrivacyTestListActivity.java167 Manifest.permission.ACCESS_FINE_LOCATION)); in addTestsToAdapter()
DByodHelperActivity.java585 android.Manifest.permission.ACCESS_FINE_LOCATION, in grantLocationPermissionToSelf()
DCommandReceiverActivity.java585 Manifest.permission.ACCESS_FINE_LOCATION, in clearAllPoliciesAndRestrictions()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt76 permissionToOpStr[permission.ACCESS_FINE_LOCATION] =
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java985 if (isPermissionGranted(PKG, Manifest.permission.ACCESS_FINE_LOCATION)) { in assertRestrictedPermissionWhitelisted()
/cts/tools/release-parser/tests/resources/
DShell.apk.pb.txt17 uses_permissions: "android.permission.ACCESS_FINE_LOCATION"