Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/vpn2/
DAppSettingsTest.java44 @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/
DDeviceAdminAddHeaderPreferenceController.java40 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/
DRole.java223 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/
DNetworkStatsAccessTest.java56 @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/
DDeviceAdminAdd.java87 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/
DRestrictedPreferenceHelper.java53 private final AppOpsManager mAppOps; field in RestrictedPreferenceHelper
58 mAppOps = context.getSystemService(AppOpsManager.class); in RestrictedPreferenceHelper()
185 final int mode = mAppOps.noteOpNoThrow( in setRestrictedPreferenceEnabled()
DAccessibilityDetailsSettingsFragment.java56 private AppOpsManager mAppOps; field in AccessibilityDetailsSettingsFragment
67 mAppOps = getActivity().getSystemService(AppOpsManager.class); in onCreate()
/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/Telephony/tests/src/com/android/phone/
DPhoneInterfaceManagerTest.java99 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/
DDeviceAdminAdd.java124 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/
DWifiPermissionsUtil.java83 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/
DWifiAwareClientState.java68 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/
DScanRequestProxy.java96 private final AppOpsManager mAppOps; field in ScanRequestProxy
243 mAppOps = appOpsManager; in ScanRequestProxy()
467 mAppOps.checkPackage(callingUid, packageName); in getPackageImportance()
DWifiNetworkSuggestionsManager.java164 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()
DWifiServiceImpl.java281 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/
DAppPermissionGroup.java106 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/
DPasspointManager.java134 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/
DTransitionalScanHelper.java143 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/
DPhoneInterfaceManager.java441 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/
DScanRequestProxyTest.java85 @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/
DAdapterService.java293 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()