/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/vpn2/ |
D | AppSettingsTest.java | 44 @Mock private AppOpsManager mAppOps; field in AppSettingsTest 49 when(mContext.getSystemService(eq(Context.APP_OPS_SERVICE))).thenReturn(mAppOps); in setUp() 62 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 68 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 73 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment() 78 when(mAppOps.getOpsForPackage(eq(mockApp.uid), eq(mockApp.packageName), in testAppOpsRequiredToOpenFragment()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | DeviceAdminAddHeaderPreferenceController.java | 40 private AppOpsManager mAppOps; field in DeviceAdminAddHeaderPreferenceController 48 mAppOps = context.getSystemService(AppOpsManager.class); in DeviceAdminAddHeaderPreferenceController() 74 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResumeInternal() 75 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResumeInternal() 91 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPauseInternal() 92 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPauseInternal()
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/ |
D | Role.java | 223 private final List<AppOp> mAppOps; field in Role 270 mAppOps = appOps; in Role() 365 return mAppOps; in getAppOps() 816 int appOpsSize = mAppOps.size(); in grantAsUser() 818 AppOp appOp = mAppOps.get(i); in grantAsUser() 883 List<AppOp> appOpsToRevoke = new ArrayList<>(mAppOps); in revokeAsUser() 887 appOpsToRevoke.removeAll(role.mAppOps); in revokeAsUser() 1107 + ", mAppOps=" + mAppOps in toString()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsAccessTest.java | 56 @Mock private AppOpsManager mAppOps; field in NetworkStatsAccessTest 66 when(mContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOps); in setUp() 179 when(mAppOps.noteOp(AppOpsManager.OPSTR_GET_USAGE_STATS, TEST_UID, TEST_PKG, in setHasAppOpsPermission()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/ |
D | DeviceAdminAdd.java | 87 AppOpsManager mAppOps; field in DeviceAdminAdd 118 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 332 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 333 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 341 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 342 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPause()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | RestrictedPreferenceHelper.java | 53 private final AppOpsManager mAppOps; field in RestrictedPreferenceHelper 58 mAppOps = context.getSystemService(AppOpsManager.class); in RestrictedPreferenceHelper() 185 final int mode = mAppOps.noteOpNoThrow( in setRestrictedPreferenceEnabled()
|
D | AccessibilityDetailsSettingsFragment.java | 56 private AppOpsManager mAppOps; field in AccessibilityDetailsSettingsFragment 67 mAppOps = getActivity().getSystemService(AppOpsManager.class); in onCreate()
|
/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/Telephony/tests/src/com/android/phone/ |
D | PhoneInterfaceManagerTest.java | 99 private AppOpsManager mAppOps; field in PhoneInterfaceManagerTest 129 mPhoneInterfaceManager.setAppOpsManager(mAppOps); in setUp() 438 verify(mAppOps).noteOpNoThrow(eq(AppOpsManager.OPSTR_ENABLE_MOBILE_DATA_BY_USER), anyInt(), in notifyEnableDataWithAppOps_enableByUser_doNoteOp() 446 verify(mAppOps, never()).noteOpNoThrow(eq(AppOpsManager.OPSTR_ENABLE_MOBILE_DATA_BY_USER), in notifyEnableDataWithAppOps_enableByCarrier_doNotNoteOp()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 124 AppOpsManager mAppOps; field in DeviceAdminAdd 160 mAppOps = getSystemService(AppOpsManager.class); in onCreate() 592 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); in onResume() 593 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); in onResume() 602 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); in onPause() 603 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken); in onPause()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 83 private final AppOpsManager mAppOps; field in WifiPermissionsUtil 99 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiPermissionsUtil() 726 mAppOps.checkPackage(uid, pkgName); in checkPackage() 757 return mAppOps.noteOpNoThrow(op, uid, pkgName, featureId, message) in noteAppOpAllowed() 762 return mAppOps.unsafeCheckOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 68 private final AppOpsManager mAppOps; field in WifiAwareClientState 94 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiAwareClientState()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ScanRequestProxy.java | 96 private final AppOpsManager mAppOps; field in ScanRequestProxy 243 mAppOps = appOpsManager; in ScanRequestProxy() 467 mAppOps.checkPackage(callingUid, packageName); in getPackageImportance()
|
D | WifiNetworkSuggestionsManager.java | 164 private final AppOpsManager mAppOps; field in WifiNetworkSuggestionsManager 497 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged() 503 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged() 593 mAppOps.setMode(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, uid, packageName, in handleUserDisallowAction() 672 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiNetworkSuggestionsManager() 840 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange() 1301 mAppOps.stopWatchingMode(appOpsChangedListener); in stopTrackingAppOpsChange() 2641 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, uid, packageName) in getNetworkSuggestionUserApprovalStatus()
|
D | WifiServiceImpl.java | 281 private final AppOpsManager mAppOps; field in WifiServiceImpl 533 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiServiceImpl() 1156 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceChangePermission() 1163 return mAppOps.noteOp( in enforceChangePermission() 6316 mAppOps.checkPackage(callingUid, callingPackageName); 6419 mAppOps.checkPackage(callingUid, packageName);
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | AppPermissionGroup.java | 106 private final AppOpsManager mAppOps; field in AppPermissionGroup 475 mAppOps = appOpsManager; in AppPermissionGroup() 501 && mAppOps.unsafeCheckOpNoThrow(OPSTR_LEGACY_STORAGE, in AppPermissionGroup() 819 int currentMode = mAppOps.unsafeCheckOpRaw(op, uid, mPackageInfo.packageName); 824 mAppOps.setUidMode(op, uid, mode);
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointManager.java | 134 private final AppOpsManager mAppOps; field in PasspointManager 265 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged() 270 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged() 352 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange() 363 mAppOps.stopWatchingMode(appOpsChangedListener); in stopTrackingAppOpsChange() 397 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in PasspointManager()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/ |
D | TransitionalScanHelper.java | 143 private AppOpsManager mAppOps; field in TransitionalScanHelper 195 mAppOps = mContext.getSystemService(AppOpsManager.class); in start() 1145 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() 1228 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in registerPiAndStartScan()
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 441 private AppOpsManager mAppOps; field in PhoneInterfaceManager 2479 mAppOps = (AppOpsManager)app.getSystemService(Context.APP_OPS_SERVICE); in PhoneInterfaceManager() 2633 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber() 3499 if (mAppOps.noteOp(AppOpsManager.OPSTR_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo() 3728 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getMeidForSlot() 4172 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in requestNumberVerification() 4232 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailSettings() 4257 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getVisualVoicemailPackageName() 4278 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enableVisualVoicemailSmsFilter() 4294 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in disableVisualVoicemailSmsFilter() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 85 @Mock private AppOpsManager mAppOps; field in ScanRequestProxyTest 156 new ScanRequestProxy(mContext, mAppOps, mActivityManager, mWifiInjector, in setUp()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 293 private AppOpsManager mAppOps; field in AdapterService 631 mAppOps = getNonNullSystemService(AppOpsManager.class); in onCreate() 647 mAppOps = getNonNullSystemService(AppOpsManager.class); in init() 4725 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startDiscovery()
|