Home
last modified time | relevance | path

Searched refs:appOpsMgr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/provider/
DSettings.java21288 AppOpsManager appOpsMgr = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in isCallingPackageAllowedToPerformAppOpsProtectedOperation() local
21291 mode = appOpsMgr.noteOpNoThrow(appOpsOpCode, uid, callingPackage, callingAttributionTag, in isCallingPackageAllowedToPerformAppOpsProtectedOperation()
21294 mode = appOpsMgr.checkOpNoThrow(appOpsOpCode, uid, callingPackage); in isCallingPackageAllowedToPerformAppOpsProtectedOperation()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java20544 final AppOpsManager appOpsMgr = mInjector.getAppOpsManager();
20550 int currentMode = appOpsMgr.unsafeCheckOpNoThrow(appOp, uid, packageName);
20554 appOpsMgr.setMode(appOp, uid, packageName, newMode);
20563 setBgUsageAppOp(appOpsMgr, appInfo);
20580 static void setBgUsageAppOp(AppOpsManager appOpsMgr, ApplicationInfo appInfo) {
20581 appOpsMgr.setMode(OP_RUN_ANY_IN_BACKGROUND, appInfo.uid, appInfo.packageName, MODE_ALLOWED);
20583 appOpsMgr.setMode(OP_RUN_IN_BACKGROUND, appInfo.uid, appInfo.packageName, MODE_ALLOWED);