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()
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/
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/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/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/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.java276 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/
DGattService.java182 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/
DAdapterService.java199 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()