Home
last modified time | relevance | path

Searched refs:appOps (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java392 public static boolean checkCallerHasCoarseLocation(Context context, AppOpsManager appOps, in checkCallerHasCoarseLocation() argument
403 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasCoarseLocation()
418 public static boolean checkCallerHasCoarseOrFineLocation(Context context, AppOpsManager appOps, in checkCallerHasCoarseOrFineLocation() argument
428 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasCoarseOrFineLocation()
437 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasCoarseOrFineLocation()
451 public static boolean checkCallerHasFineLocation(Context context, AppOpsManager appOps, in checkCallerHasFineLocation() argument
461 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasFineLocation()
498 private static boolean isAppOppAllowed(AppOpsManager appOps, String op, String callingPackage, in isAppOppAllowed() argument
500 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage) in isAppOppAllowed()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DRoles.java348 List<AppOp> appOps = null; in parseRole() local
379 if (appOps != null) { in parseRole()
384 appOps = parseAppOps(parser); in parseRole()
406 if (appOps == null) { in parseRole()
407 appOps = Collections.emptyList(); in parseRole()
414 showNone, systemOnly, requiredComponents, permissions, appOps, preferredActivities); in parseRole()
675 List<AppOp> appOps = new ArrayList<>(); in parseAppOps() local
715 appOps.add(appOp); in parseAppOps()
722 return appOps; in parseAppOps()
959 List<AppOp> appOps = role.getAppOps(); in validateParseResult() local
[all …]
DRole.java167 @NonNull List<String> permissions, @NonNull List<AppOp> appOps, in Role() argument
182 mAppOps = appOps; in Role()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java96 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in setEnterPipStateForPackage() local
98 appOps.setMode(OP_PICTURE_IN_PICTURE, uid, packageName, newMode); in setEnterPipStateForPackage()
106 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in getEnterPipStateForPackage() local
107 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED; in getEnterPipStateForPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java96 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in setEnterPipStateForPackage() local
98 appOps.setMode(OP_PICTURE_IN_PICTURE, uid, packageName, newMode); in setEnterPipStateForPackage()
106 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in getEnterPipStateForPackage() local
107 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED; in getEnterPipStateForPackage()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java89 AppOpsManager appOps = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE); in isChangeWifiStateGranted() local
90 int modeChangeWifiState = appOps.checkOpNoThrow(AppOpsManager.OP_CHANGE_WIFI_STATE, in isChangeWifiStateGranted()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DSmsDatabaseHandler.java189 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in canWriteToDatabase() local
190 int mode = appOps.checkOpNoThrow(AppOpsManager.OP_WRITE_SMS, android.os.Process.myUid(), in canWriteToDatabase()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java809 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in insert() local
810 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in insert()
1145 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in checkFileUriDestination() local
1146 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in checkFileUriDestination()
1192 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in checkDownloadedFilePath() local
1193 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in checkDownloadedFilePath()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java1209 AppOpsManager appOps = mContext.getSystemService(AppOpsManager.class); in enforceCallerIsSystemOrRequestingPackage() local
1210 if (appOps == null) { in enforceCallerIsSystemOrRequestingPackage()
1214 appOps.checkPackage(callingUid, requestingPackage); in enforceCallerIsSystemOrRequestingPackage()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java627 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class);
628 if (appOps.noteOp(AppOpsManager.OP_WRITE_SMS,