Home
last modified time | relevance | path

Searched refs:permissionLevel (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/location/
H A DLocationPermissions.java62 public static String asPermission(@PermissionLevel int permissionLevel) { in asPermission() argument
63 switch (permissionLevel) { in asPermission()
76 public static int asAppOp(@PermissionLevel int permissionLevel) { in asAppOp() argument
77 switch (permissionLevel) { in asAppOp()
112 public static void enforceLocationPermission(int uid, @PermissionLevel int permissionLevel, in enforceLocationPermission() argument
114 if (checkLocationPermission(permissionLevel, requiredPermissionLevel)) { in enforceLocationPermission()
170 public static boolean checkLocationPermission(@PermissionLevel int permissionLevel, in checkLocationPermission() argument
172 return permissionLevel >= requiredPermissionLevel; in checkLocationPermission()
H A DLocationManagerService.java754 int permissionLevel = LocationPermissions.getPermissionLevel(mContext, identity.getUid(), in getCurrentLocation() local
756 LocationPermissions.enforceLocationPermission(identity.getUid(), permissionLevel, in getCurrentLocation() local
768 return manager.getCurrentLocation(request, identity, permissionLevel, consumer); in getCurrentLocation()
783 int permissionLevel = LocationPermissions.getPermissionLevel(mContext, identity.getUid(), in registerLocationListener() local
785 LocationPermissions.enforceLocationPermission(identity.getUid(), permissionLevel, in registerLocationListener() local
800 manager.registerLocationRequest(request, identity, permissionLevel, listener); in registerLocationListener()
808 int permissionLevel = LocationPermissions.getPermissionLevel(mContext, identity.getUid(), in registerLocationPendingIntent() local
810 LocationPermissions.enforceLocationPermission(identity.getUid(), permissionLevel, in registerLocationPendingIntent() local
838 manager.registerLocationRequest(request, identity, permissionLevel, pendingIntent); in registerLocationPendingIntent()
962 LocationPermissions.enforceLocationPermission(identity.getUid(), permissionLevel, in getLastLocation() local
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/
H A DLocationPermissionsHelper.java95 public final boolean hasLocationPermissions(@PermissionLevel int permissionLevel, in hasLocationPermissions() argument
97 if (permissionLevel == PERMISSION_NONE) { in hasLocationPermissions()
101 if (!hasPermission(LocationPermissions.asPermission(permissionLevel), identity)) { in hasLocationPermissions()
105 return mAppOps.checkOpNoThrow(LocationPermissions.asAppOp(permissionLevel), identity); in hasLocationPermissions()
/aosp14/frameworks/base/services/core/java/com/android/server/location/provider/
H A DLocationProviderManager.java392 mPermissionLevel = permissionLevel; in Registration()
1020 permissionLevel);
1164 permissionLevel);
1729 permissionLevel,
1732 permissionLevel);
1882 permissionLevel);
1936 permissionLevel);
1955 permissionLevel);
2680 switch (permissionLevel) {
2693 switch (permissionLevel) {
[all …]