/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() 587 int appOpsSize = mAppOps.size(); in grant() 589 AppOp appOp = mAppOps.get(i); in grant() 634 List<AppOp> appOpsToRevoke = new ArrayList<>(mAppOps); in revoke() 752 + ", mAppOps=" + mAppOps in toString() 774 && mAppOps.equals(that.mAppOps) in equals() 781 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/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/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/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 | 304 private AppOpsManager mAppOps; field in PhoneInterfaceManager 1646 mAppOps = (AppOpsManager)app.getSystemService(Context.APP_OPS_SERVICE); in PhoneInterfaceManager() 1757 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber() 2407 if (mAppOps.noteOp(AppOpsManager.OPSTR_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo() 2916 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in requestNumberVerification() 2965 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSettings() 2987 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailPackageName() 3005 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enableVisualVoicemailSmsFilter() 3018 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in disableVisualVoicemailSmsFilter() 3032 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSmsFilterSettings() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 183 private AppOpsManager mAppOps; field in GattService 208 mAppOps = getSystemService(AppOpsManager.class); in start() 1952 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() 1955 scanClient.hasLocationPermission = Utils.checkCallerHasFineLocation(this, mAppOps, in startScan() 1959 mAppOps, callingPackage, callingFeatureId, scanClient.userHandle); in startScan() 2009 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in registerPiAndStartScan() 2014 this, mAppOps, callingPackage, callingFeatureId, app.mUserHandle); in registerPiAndStartScan() 2017 this, mAppOps, callingPackage, callingFeatureId, app.mUserHandle); in registerPiAndStartScan()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 225 private AppOpsManager mAppOps; field in AdapterService 446 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 2208 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startDiscovery() 2216 if (!Utils.checkCallerHasFineLocation(this, mAppOps, callingPackage, callingFeatureId, in startDiscovery() 2222 if (!Utils.checkCallerHasCoarseLocation(this, mAppOps, callingPackage, callingFeatureId, in startDiscovery()
|