Searched refs:appOps (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Settings/src/com/android/settings/applications/ |
D | PictureInPictureDetails.java | 106 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in setEnterPipStateForPackage() local 108 appOps.setMode(OP_PICTURE_IN_PICTURE, uid, packageName, newMode); in setEnterPipStateForPackage() 116 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in getEnterPipStateForPackage() local 117 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED; in getEnterPipStateForPackage()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 296 public static boolean checkCallerHasLocationPermission(Context context, AppOpsManager appOps, in checkCallerHasLocationPermission() argument 300 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasLocationPermission() 306 && isAppOppAllowed(appOps, AppOpsManager.OP_COARSE_LOCATION, callingPackage)) { in checkCallerHasLocationPermission() 362 private static boolean isAppOppAllowed(AppOpsManager appOps, int op, String callingPackage) { in isAppOppAllowed() argument 363 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage) in isAppOppAllowed()
|
/packages/services/Telephony/src/com/android/phone/ |
D | OutgoingCallBroadcaster.java | 387 AppOpsManager appOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE); in processIntent() local 399 if (appOps.noteOpNoThrow(AppOpsManager.OP_CALL_PHONE, launchedFromUid, launchedFromPackage) in processIntent()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberProvider.java | 494 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in checkForPrivilegedApplications() local 495 if (appOps.noteOp(AppOpsManager.OP_WRITE_SMS, in checkForPrivilegedApplications()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 606 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in insert() local 607 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in insert() 801 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); in checkFileUriDestination() local 802 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, in checkFileUriDestination()
|