/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/vpn2/ |
D | AppSettingsTest.java | 43 @Mock private AppOpsManager mAppOps; field in AppSettingsTest 48 when(mContext.getSystemService(eq(Context.APP_OPS_SERVICE))).thenReturn(mAppOps); in setUp() 61 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 67 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 72 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 77 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | Role.java | 209 private final List<AppOp> mAppOps; field in Role 249 mAppOps = appOps; in Role() 343 return mAppOps; in getAppOps() 784 int appOpsSize = mAppOps.size(); in grant() 786 AppOp appOp = mAppOps.get(i); in grant() 844 List<AppOp> appOpsToRevoke = new ArrayList<>(mAppOps); in revoke() 848 appOpsToRevoke.removeAll(role.mAppOps); in revoke() 976 + ", mAppOps=" + mAppOps in toString()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | VpnTest.java | 194 @Mock private AppOpsManager mAppOps; field in VpnTest 226 mockService(AppOpsManager.class, Context.APP_OPS_SERVICE, mAppOps); in setUp() 246 when(mAppOps.noteOpNoThrow(anyString(), anyInt(), anyString(), any(), any())) in setUp() 623 when(mAppOps.noteOpNoThrow(opStr, Process.myUid(), TEST_VPN_PKG, in createVpnAndSetupUidChecks() 641 verify(mAppOps).noteOpNoThrow(checkedOpStr, Process.myUid(), TEST_VPN_PKG, in checkProvisionVpnProfile() 757 verify(mAppOps) in testStartVpnProfile() 776 verify(mAppOps).noteOpNoThrow(AppOpsManager.OPSTR_ACTIVATE_VPN, Process.myUid(), in testStartVpnProfileVpnServicePreconsented() 791 verify(mAppOps) in testStartVpnProfileNotConsented() 798 verify(mAppOps).noteOpNoThrow(AppOpsManager.OPSTR_ACTIVATE_VPN, Process.myUid(), in testStartVpnProfileNotConsented() 818 verify(mAppOps) in testStartVpnProfileMissingProfile() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 58 private final AppOpsManager mAppOps; field in WifiPermissionsUtil 72 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiPermissionsUtil() 407 mAppOps.checkPackage(uid, pkgName); in checkPackage() 449 return mAppOps.noteOp(op, uid, pkgName, featureId, message) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed() 453 return mAppOps.unsafeCheckOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed() 568 final int mode = mAppOps.noteOp(AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW, callingUid, in checkSystemAlertWindowPermission()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 68 private AppOpsManager mAppOps; field in WifiAwareServiceImpl 82 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiAwareServiceImpl() 200 mAppOps.checkPackage(uid, callingPackage); in connect() 316 mAppOps.checkPackage(uid, callingPackage); in publish() 366 mAppOps.checkPackage(uid, callingPackage); in subscribe()
|
D | WifiAwareClientState.java | 66 private final AppOpsManager mAppOps; field in WifiAwareClientState 87 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiAwareClientState()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/ |
D | DeviceAdminAdd.java | 86 AppOpsManager mAppOps; field in DeviceAdminAdd 118 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 331 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 332 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 340 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 341 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPause()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 54 @Mock private AppOpsManager mAppOps; field in NetworkStatsAccessTest 68 when(mContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOps); in setUp() 180 when(mAppOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, TEST_UID, TEST_PKG)) in setHasAppOpsPermission()
|
/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/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 109 AppOpsManager mAppOps; field in DeviceAdminAdd 146 mAppOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE); in onCreate() 575 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 576 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 585 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 586 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPause()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ScanRequestProxy.java | 91 private final AppOpsManager mAppOps; field in ScanRequestProxy 208 mAppOps = appOpsManager; in ScanRequestProxy() 404 mAppOps.checkPackage(callingUid, packageName); in getPackageImportance()
|
D | WifiNetworkSuggestionsManager.java | 150 private final AppOpsManager mAppOps; field in WifiNetworkSuggestionsManager 477 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged() 483 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged() 576 mAppOps.setMode(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, uid, packageName, in handleUserDisallowAction() 655 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiNetworkSuggestionsManager() 821 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange() 1230 mAppOps.stopWatchingMode(appOpsChangedListener); in stopTrackingAppOpsChange() 2432 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, uid, packageName) in getNetworkSuggestionUserApprovalStatus()
|
D | WifiServiceImpl.java | 195 private final AppOpsManager mAppOps; field in WifiServiceImpl 334 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiServiceImpl() 815 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceChangePermission() 822 return mAppOps.noteOp( in enforceChangePermission() 4527 mAppOps.checkPackage(callingUid, callingPackageName); 4623 mAppOps.checkPackage(callingUid, packageName);
|
/packages/modules/Permission/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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointManager.java | 131 private final AppOpsManager mAppOps; field in PasspointManager 256 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged() 261 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged() 336 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange() 347 mAppOps.stopWatchingMode(appOpsChangedListener); in stopTrackingAppOpsChange() 377 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in PasspointManager()
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 359 private AppOpsManager mAppOps; field in PhoneInterfaceManager 2170 mAppOps = (AppOpsManager)app.getSystemService(Context.APP_OPS_SERVICE); in PhoneInterfaceManager() 2283 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber() 2956 if (mAppOps.noteOp(AppOpsManager.OPSTR_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo() 3501 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in requestNumberVerification() 3552 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSettings() 3574 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailPackageName() 3592 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enableVisualVoicemailSmsFilter() 3605 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in disableVisualVoicemailSmsFilter() 3619 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSmsFilterSettings() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 84 @Mock private AppOpsManager mAppOps; field in ScanRequestProxyTest 158 new ScanRequestProxy(mContext, mAppOps, mActivityManager, mWifiInjector, in setUp()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 214 private AppOpsManager mAppOps; field in GattService 266 mAppOps = getSystemService(AppOpsManager.class); in start() 2273 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() 2346 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in registerPiAndStartScan()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 274 private AppOpsManager mAppOps; field in AdapterService 526 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 2578 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startDiscovery()
|