/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 312 public static boolean checkCallerHasCoarseLocation(Context context, AppOpsManager appOps, in checkCallerHasCoarseLocation() argument 323 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasCoarseLocation() 337 public static boolean checkCallerHasCoarseOrFineLocation(Context context, AppOpsManager appOps, in checkCallerHasCoarseOrFineLocation() argument 347 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasCoarseOrFineLocation() 355 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasCoarseOrFineLocation() 368 public static boolean checkCallerHasFineLocation(Context context, AppOpsManager appOps, in checkCallerHasFineLocation() argument 378 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasFineLocation() 438 private static boolean isAppOppAllowed(AppOpsManager appOps, int op, String callingPackage) { in isAppOppAllowed() argument 439 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/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/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/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 | 188 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in canWriteToDatabase() local 189 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 | 783 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in insert() local 784 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in insert() 1137 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in checkFileUriDestination() local 1138 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in checkFileUriDestination() 1184 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in checkDownloadedFilePath() local 1185 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in checkDownloadedFilePath()
|
/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,
|