Searched refs:permissionLevel (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationPermissions.java | 62 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()
|
D | LocationManagerService.java | 780 int permissionLevel = LocationPermissions.getPermissionLevel(mContext, identity.getUid(), in getCurrentLocation() local 783 if (permissionLevel == PERMISSION_NONE) { in getCurrentLocation() 786 identity.getUid(), permissionLevel, PERMISSION_COARSE); in getCurrentLocation() local 788 permissionLevel = PERMISSION_FINE; in getCurrentLocation() 792 LocationPermissions.enforceLocationPermission(identity.getUid(), permissionLevel, in getCurrentLocation() local 805 return manager.getCurrentLocation(request, identity, permissionLevel, consumer); in getCurrentLocation() 820 int permissionLevel = LocationPermissions.getPermissionLevel(mContext, identity.getUid(), in registerLocationListener() local 823 if (permissionLevel == PERMISSION_NONE) { in registerLocationListener() 826 identity.getUid(), permissionLevel, PERMISSION_COARSE); in registerLocationListener() local 828 permissionLevel = PERMISSION_FINE; in registerLocationListener() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | LocationPermissionsHelper.java | 95 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()
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | LocationProviderManager.java | 397 LocationTransport transport, @PermissionLevel int permissionLevel) { in Registration() argument 401 Preconditions.checkArgument(permissionLevel > PERMISSION_NONE); in Registration() 406 mPermissionLevel = permissionLevel; in Registration() 800 @PermissionLevel int permissionLevel) { in LocationRegistration() argument 801 super(request, identity, executor, transport, permissionLevel); in LocationRegistration() 1077 LocationListenerTransport transport, @PermissionLevel int permissionLevel) { 1080 permissionLevel); 1157 @PermissionLevel int permissionLevel) { 1158 super(request, identity, DIRECT_EXECUTOR, transport, permissionLevel); 1219 CallerIdentity identity, LocationTransport transport, int permissionLevel) { [all …]
|