Lines Matching refs:LocationPermissionResult
46 public enum LocationPermissionResult { enum in LocationAccessPolicy
186 private static LocationPermissionResult appOpsModeToPermissionResult(int appOpsMode) { in appOpsModeToPermissionResult()
189 return LocationPermissionResult.ALLOWED; in appOpsModeToPermissionResult()
191 return LocationPermissionResult.DENIED_HARD; in appOpsModeToPermissionResult()
193 return LocationPermissionResult.DENIED_SOFT; in appOpsModeToPermissionResult()
208 private static LocationPermissionResult checkAppLocationPermissionHelper(Context context, in checkAppLocationPermissionHelper()
225 return LocationPermissionResult.ALLOWED; in checkAppLocationPermissionHelper()
256 return LocationPermissionResult.DENIED_HARD; in checkAppLocationPermissionHelper()
261 public static LocationPermissionResult checkLocationPermission( in checkLocationPermission()
270 return LocationPermissionResult.ALLOWED; in checkLocationPermission()
276 return LocationPermissionResult.DENIED_SOFT; in checkLocationPermission()
281 LocationPermissionResult resultForFine = checkAppLocationPermissionHelper( in checkLocationPermission()
289 LocationPermissionResult resultForCoarse = checkAppLocationPermissionHelper( in checkLocationPermission()
298 return LocationPermissionResult.ALLOWED; in checkLocationPermission()