Home
last modified time | relevance | path

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

123

/packages/apps/SampleLocationAttribution/src/com/example/android/locationattribution/
DMainActivity.java92 if (isLocationPermissionGranted(Manifest.permission.ACCESS_FINE_LOCATION)) { in createModifyLocationSettingsButtonClickListener()
118 Manifest.permission.ACCESS_FINE_LOCATION)) { in createModifyLocationSettingsButtonClickListener()
136 new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
155 editor.putBoolean(Manifest.permission.ACCESS_FINE_LOCATION, isFirstTime).apply();
161 MODE_PRIVATE).getBoolean(Manifest.permission.ACCESS_FINE_LOCATION, true);
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt20 import android.Manifest.permission.ACCESS_FINE_LOCATION in <lambda>()
265 Permission(ACCESS_FINE_LOCATION) in <lambda>()
271 verifyNotWhitelisted(TEST_PKG_NAME, ACCESS_FINE_LOCATION) in <lambda>()
381 Permission(ACCESS_FINE_LOCATION, isGranted = true), in <lambda>()
396 Permission(ACCESS_FINE_LOCATION, isGranted = true), in <lambda>()
411 Permission(ACCESS_FINE_LOCATION), in <lambda>()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DWifiRttManager.java19 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
112 @RequiresPermission(allOf = {ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE, ACCESS_WIFI_STATE})
131 @RequiresPermission(allOf = {LOCATION_HARDWARE, ACCESS_FINE_LOCATION, CHANGE_WIFI_STATE,
/packages/apps/Settings/src/com/android/settings/location/
DAppLocationPermissionPreferenceController.java4 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
103 Arrays.asList(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION), 0, in updateState()
111 Arrays.asList(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION), in updateState()
DTopLevelLocationPreferenceController.java4 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
98 Arrays.asList(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION), in updateState()
/packages/services/Telecomm/src/com/android/server/telecom/
DEmergencyCallHelper.java110 Manifest.permission.ACCESS_FINE_LOCATION, userHandle); in grantLocationPermission()
133 Manifest.permission.ACCESS_FINE_LOCATION, userHandle); in revokeLocationPermission()
155 Manifest.permission.ACCESS_FINE_LOCATION, in hasFineLocationPermission()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiDialogActivityTest.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
304 when(mPackageManager.checkPermission(ACCESS_FINE_LOCATION, CALLING_PACKAGE)) in hasPermissionForResult_noPermission_returnFalse()
319 when(mPackageManager.checkPermission(ACCESS_FINE_LOCATION, CALLING_PACKAGE)) in hasPermissionForResult_hasCoarseLocationPermission_returnTrue()
334 when(mPackageManager.checkPermission(ACCESS_FINE_LOCATION, CALLING_PACKAGE)) in hasPermissionForResult_hasFineLocationPermission_returnTrue()
349 when(mPackageManager.checkPermission(ACCESS_FINE_LOCATION, CALLING_PACKAGE)) in hasPermissionForResult_haveBothLocationPermissions_returnTrue()
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java19 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
112 return mContext.checkSelfPermission(ACCESS_FINE_LOCATION) in hasP2pPermission()
146 ACCESS_FINE_LOCATION)) { in request()
167 activity.requestPermissions(new String[]{ACCESS_FINE_LOCATION}, in request()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pManager.java1213 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1257 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1299 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1330 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1447 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1557 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1633 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
1656 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
2033 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
80 Collections.unmodifiableList(Arrays.asList(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION));
99 return hasPermission(context, permission.ACCESS_FINE_LOCATION); in hasLocationPermissions()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt21 import android.Manifest.permission.ACCESS_FINE_LOCATION in <lambda>()
424 fgState.affectedPermissions.contains(ACCESS_FINE_LOCATION)) { in <lambda>()
448 groupState.group.allPermissions[ACCESS_FINE_LOCATION] in <lambda>()
666 group.allPermissions[ACCESS_FINE_LOCATION]?.isGrantedIncludingAppOp in <lambda>()
854 if (groupState.affectedPermissions.contains(ACCESS_FINE_LOCATION)) { in <lambda>()
863 affectedForegroundPermissions.contains(ACCESS_FINE_LOCATION)) in <lambda>()
1131 1 shl PERMISSION_TO_BIT_SHIFT[ACCESS_FINE_LOCATION]!!) { in <lambda>()
DAppPermissionViewModel.kt28 import android.Manifest.permission.ACCESS_FINE_LOCATION in <lambda>()
329 group.permissions.containsKey(ACCESS_FINE_LOCATION) && in <lambda>()
352 val fineLocation = group.permissions[ACCESS_FINE_LOCATION]!! in <lambda>()
508 filterPermissions = listOf(ACCESS_FINE_LOCATION)) in <lambda>()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefsFragment.java95 if (context.checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) in requestPermissions()
101 new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, 1); in requestPermissions()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt21 import android.Manifest.permission.ACCESS_FINE_LOCATION in <lambda>()
607 if (perm.name == ACCESS_FINE_LOCATION) { in <lambda>()
611 val fgPerm = group.permissions[ACCESS_FINE_LOCATION] in <lambda>()
1018 filterPermissions = listOf(ACCESS_FINE_LOCATION)) in <lambda>()
1025 filterPermissions = listOf(ACCESS_FINE_LOCATION)) in <lambda>()
DAdminRestrictedPermissionsUtils.java39 ADMIN_RESTRICTED_SENSORS_PERMISSIONS.add(Manifest.permission.ACCESS_FINE_LOCATION);
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
568 if (currentAttrib.getRenouncedPermissions().contains(ACCESS_FINE_LOCATION) in hasDisavowedLocationForScan()
723 context, ACCESS_FINE_LOCATION, PID_UNKNOWN, in checkCallerHasCoarseOrFineLocation()
757 context, ACCESS_FINE_LOCATION, PID_UNKNOWN, in checkCallerHasFineLocation()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java20 import static android.Manifest.permission.ACCESS_FINE_LOCATION;
370 if (getPackageManager().checkPermission(ACCESS_FINE_LOCATION, callingPackage) in hasPermissionForResult()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DGrantPermissionsViewHandlerImpl.kt20 import android.Manifest.permission.ACCESS_FINE_LOCATION in <lambda>()
449 affectedForegroundPermissions = listOf(ACCESS_FINE_LOCATION, in <lambda>()
453 affectedForegroundPermissions = listOf(ACCESS_FINE_LOCATION) in <lambda>()
/packages/apps/Settings/src/com/android/settings/enterprise/
DAdminGrantedLocationPermissionsPreferenceController.java28 Manifest.permission.ACCESS_FINE_LOCATION}); in AdminGrantedLocationPermissionsPreferenceController()
DApplicationListFragment.java89 Manifest.permission.ACCESS_FINE_LOCATION}); in AdminGrantedPermissionLocation()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DAdminGrantedLocationPermissionsPreferenceController.java35 Manifest.permission.ACCESS_FINE_LOCATION}); in AdminGrantedLocationPermissionsPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DAdminGrantedLocationPermissionsPreferenceControllerTest.java31 Manifest.permission.ACCESS_FINE_LOCATION}); in AdminGrantedLocationPermissionsPreferenceControllerTest()
/packages/modules/Wifi/framework/api/
Dcurrent.txt300 …anifest.permission.LOCAL_MAC_ADDRESS, android.Manifest.permission.ACCESS_FINE_LOCATION}) public St…
349 …method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manife…
363 …method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, an…
418 …anifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public vo…
1043 …method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void addLocalS…
1048 …method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void connect(a…
1049 …method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void createGro…
1050 …method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void createGro…
1051 …method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void discoverP…
1052 …method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public void discoverS…
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java41 public static final String LOCATION = permission.ACCESS_FINE_LOCATION;
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java512 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Emergency()
520 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Emergency()
591 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Crash()
600 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Crash()
613 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Crash()
1514 when(mMockPackageManager.checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, pkg))

123