/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | AppSettingsTest.java | 42 @Mock private AppOpsManager mAppOps; field in AppSettingsTest 47 when(mContext.getSystemService(eq(Context.APP_OPS_SERVICE))).thenReturn(mAppOps); in setUp() 60 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 66 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 71 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 76 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | Role.java | 154 private final List<AppOp> mAppOps; field in Role 182 mAppOps = appOps; in Role() 248 return mAppOps; in getAppOps() 559 int appOpsSize = mAppOps.size(); in grant() 561 AppOp appOp = mAppOps.get(i); in grant() 606 List<AppOp> appOpsToRevoke = new ArrayList<>(mAppOps); in revoke() 724 + ", mAppOps=" + mAppOps in toString() 746 && mAppOps.equals(that.mAppOps) in equals() 753 mRequiredComponents, mPermissions, mAppOps, mPreferredActivities); in hashCode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 102 AppOpsManager mAppOps; field in DeviceAdminAdd 137 mAppOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE); in onCreate() 506 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 507 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 516 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 517 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPause()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 103 AppOpsManager mAppOps; field in DeviceAdminAdd 138 mAppOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE); in onCreate() 557 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 558 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 567 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 568 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPause()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsState.java | 48 final AppOpsManager mAppOps; field in AppOpsState 55 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in AppOpsState() 496 return mAppOps; in getAppOpsManager() 551 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState() 553 pkgs = mAppOps.getPackagesForOps(tpl.ops); in buildState()
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 48 final AppOpsManager mAppOps; field in AppOpsState 55 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in AppOpsState() 496 return mAppOps; in getAppOpsManager() 551 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState() 553 pkgs = mAppOps.getPackagesForOps(tpl.ops); in buildState()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | AppPermissionGroup.java | 79 private final AppOpsManager mAppOps; field in AppPermissionGroup 401 mAppOps = appOpsManager; in AppPermissionGroup() 423 mIsNonIsolatedStorage = mAppOps.unsafeCheckOpNoThrow(OPSTR_LEGACY_STORAGE, in AppPermissionGroup() 675 int currentMode = mAppOps.unsafeCheckOpRaw(op, uid, mPackageInfo.packageName); in setAppOpMode() 680 mAppOps.setUidMode(op, uid, mode); in setAppOpMode()
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 276 private AppOpsManager mAppOps; field in PhoneInterfaceManager 1329 mAppOps = (AppOpsManager)app.getSystemService(Context.APP_OPS_SERVICE); in PhoneInterfaceManager() 1416 if (mAppOps.noteOp(AppOpsManager.OP_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber() 2042 if (mAppOps.noteOp(AppOpsManager.OP_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo() 2531 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in requestNumberVerification() 2579 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSettings() 2599 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailPackageName() 2616 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enableVisualVoicemailSmsFilter() 2629 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in disableVisualVoicemailSmsFilter() 2643 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSmsFilterSettings() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 182 private AppOpsManager mAppOps; field in GattService 207 mAppOps = getSystemService(AppOpsManager.class); in start() 1947 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() 1952 this, mAppOps, callingPackage, scanClient.userHandle); in startScan() 1956 this, mAppOps, callingPackage, scanClient.userHandle); in startScan() 1994 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in registerPiAndStartScan() 1999 this, mAppOps, callingPackage, app.mUserHandle); in registerPiAndStartScan() 2002 this, mAppOps, callingPackage, app.mUserHandle); in registerPiAndStartScan()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 199 private AppOpsManager mAppOps; field in AdapterService 399 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 1936 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startDiscovery() 1944 if (!Utils.checkCallerHasFineLocation(this, mAppOps, callingPackage, callingUser)) { in startDiscovery() 1949 if (!Utils.checkCallerHasCoarseLocation(this, mAppOps, callingPackage, callingUser)) { in startDiscovery()
|