/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 392 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/ |
D | Roles.java | 348 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 …]
|
D | Role.java | 167 @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/ |
D | PictureInPictureDetails.java | 96 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/ |
D | PictureInPictureDetails.java | 96 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/ |
D | ConfirmConnectToWifiNetworkActivity.java | 89 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/ |
D | SmsDatabaseHandler.java | 189 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/ |
D | DownloadProvider.java | 809 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/ |
D | CarrierConfigLoader.java | 1209 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/ |
D | BlockedNumberProvider.java | 627 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); 628 if (appOps.noteOp(AppOpsManager.OP_WRITE_SMS,
|