Home
last modified time | relevance | path

Searched refs:mAppOps (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DAppSettingsTest.java42 @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/
DRole.java154 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/
DDeviceAdminAdd.java102 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/
DDeviceAdminAdd.java103 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/
DAppOpsState.java48 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/
DAppOpsState.java48 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/
DAppPermissionGroup.java79 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/
DPhoneInterfaceManager.java304 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/
DGattService.java183 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/
DAdapterService.java225 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()