/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/permissioncontroller/role/model/ |
D | Role.java | 185 private final List<AppOp> mAppOps; field in Role 220 mAppOps = appOps; in Role() 300 return mAppOps; in getAppOps() 702 int appOpsSize = mAppOps.size(); in grant() 704 AppOp appOp = mAppOps.get(i); in grant() 761 List<AppOp> appOpsToRevoke = new ArrayList<>(mAppOps); in revoke() 765 appOpsToRevoke.removeAll(role.mAppOps); in revoke() 889 + ", mAppOps=" + mAppOps in toString()
|
/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() 563 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 564 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 573 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 574 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 | 49 final AppOpsManager mAppOps; field in AppOpsState 56 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in AppOpsState() 497 return mAppOps; in getAppOpsManager() 552 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState() 554 pkgs = mAppOps.getPackagesForOps(tpl.ops); in buildState()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | AppPermissionGroup.java | 95 private final AppOpsManager mAppOps; field in AppPermissionGroup 448 mAppOps = appOpsManager; in AppPermissionGroup() 474 && mAppOps.unsafeCheckOpNoThrow(OPSTR_LEGACY_STORAGE, in AppPermissionGroup() 760 int currentMode = mAppOps.unsafeCheckOpRaw(op, uid, mPackageInfo.packageName); 765 mAppOps.setUidMode(op, uid, mode);
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 306 private AppOpsManager mAppOps; field in PhoneInterfaceManager 1658 mAppOps = (AppOpsManager)app.getSystemService(Context.APP_OPS_SERVICE); in PhoneInterfaceManager() 1773 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber() 2403 if (mAppOps.noteOp(AppOpsManager.OPSTR_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo() 2921 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in requestNumberVerification() 2970 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSettings() 2992 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailPackageName() 3010 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enableVisualVoicemailSmsFilter() 3023 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in disableVisualVoicemailSmsFilter() 3037 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSmsFilterSettings() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 187 private AppOpsManager mAppOps; field in GattService 219 mAppOps = getSystemService(AppOpsManager.class); in start() 2050 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() 2055 scanClient.hasLocationPermission = Utils.checkCallerHasFineLocation(this, mAppOps, in startScan() 2059 mAppOps, callingPackage, callingFeatureId, scanClient.userHandle); in startScan() 2112 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in registerPiAndStartScan() 2119 this, mAppOps, callingPackage, callingFeatureId, app.mUserHandle); in registerPiAndStartScan() 2122 this, mAppOps, callingPackage, callingFeatureId, app.mUserHandle); in registerPiAndStartScan()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 226 private AppOpsManager mAppOps; field in AdapterService 447 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 2248 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startDiscovery() 2256 if (!Utils.checkCallerHasFineLocation(this, mAppOps, callingPackage, callingFeatureId, in startDiscovery() 2262 if (!Utils.checkCallerHasCoarseLocation(this, mAppOps, callingPackage, callingFeatureId, in startDiscovery()
|