Home
last modified time | relevance | path

Searched refs:checkPackage (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java216 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in enableInstantCommunicationMode()
252 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in resetPairedDevices()
263 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in removePairedDevice()
277 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in getPairedDevices()
285 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in setOpportunisticModeEnabled()
305 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in isOpportunisticModeEnabled()
318 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in connect()
508 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in publish()
572 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in subscribe()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLocationPermissionChecker.java156 checkPackage(uid, pkgName); in checkLocationPermissionInternal()
260 private void checkPackage(int uid, String pkgName) in checkPackage() method in LocationPermissionChecker
265 mAppOpsManager.checkPackage(uid, pkgName); in checkPackage()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java925 mWifiPermissionsUtil.checkPackage(callingUid, packageName); in startScan()
1156 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceChangePermission()
1277 mWifiPermissionsUtil.checkPackage(callingUid, packageName); in setWifiEnabled()
1703 mWifiPermissionsUtil.checkPackage(callingUid, packageName); in startSoftAp()
1755 mWifiPermissionsUtil.checkPackage(callingUid, packageName); in startTetheredHotspot()
1790 mWifiPermissionsUtil.checkPackage(callingUid, packageName); in startTetheredHotspotRequest()
2740 mWifiPermissionsUtil.checkPackage(uid, packageName); in startLocalOnlyHotspot()
3005 mWifiPermissionsUtil.checkPackage(uid, packageName); in setWifiApConfiguration()
3036 mWifiPermissionsUtil.checkPackage(uid, packageName); in setSoftApConfiguration()
3065 mWifiPermissionsUtil.checkPackage(callingUid, packageName); in setScanAlwaysAvailable()
[all …]
DScanRequestProxy.java467 mAppOps.checkPackage(callingUid, packageName); in getPackageImportance()
DWifiNetworkFactory.java741 mAppOpsManager.checkPackage( in isRequestWithWifiNetworkSpecifierValid()
DWifiNetworkSuggestionsManager.java497 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java259 private static void checkPackage(AppOpsManager appOpsManager, String packageName) { in checkPackage() method in BtPermissionUtils
267 appOpsManager.checkPackage(callingUid, packageName); in checkPackage()
330 checkPackage(appOpsManager, source.getPackageName()); in checkBluetoothPermissions()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java221 checkPackage(uid, packageName); in enforceNearbyDevicesPermission()
569 checkPackage(uid, pkgName); in enforceCanAccessScanResults()
644 checkPackage(uid, pkgName); in enforceCanAccessScanResultsForWifiScanner()
687 checkPackage(uid, pkgName); in checkCanAccessWifiDirect()
722 public void checkPackage(int uid, String pkgName) throws SecurityException { in checkPackage() method in WifiPermissionsUtil
726 mAppOps.checkPackage(uid, pkgName); in checkPackage()
/packages/modules/Bluetooth/service/tests/src/com/android/server/bluetooth/
DBluetoothServiceBinderTest.java181 verify(mAppOpsManager).checkPackage(anyInt(), eq(TAG)); in enableNoAutoConnect()
408 verify(mAppOpsManager).checkPackage(anyInt(), eq(TAG)); in checkHardDenied()
421 verify(mAppOpsManager).checkPackage(anyInt(), eq(TAG)); in checkGranted()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java302 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testGetDefaultOutgoingPhoneAccount()
326 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testGroupIdIsClearedWhenPermissionIsMissing()
349 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testGroupIdIsNotCleared()
377 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager()
410 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testGetDefaultOutgoingPhoneAccountFailure()
1163 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testAddNewIncomingCall()
1186 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testAddNewIncomingFlagDisabledNoEarlyBinding()
1204 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testAddNewIncomingCallEarlyBindingForNoCallFilterCalls()
1222 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testAddNewIncomingCallEarlyBindingNotEnableForNonWatchDevices()
1241 doNothing().when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testAddNewIncomingCallEarlyBindingNotEnableForPhoneAccountHasCallFilters()
[all …]
DComponentContextFixture.java732 }).when(mAppOpsManager).checkPackage(anyInt(), anyString());
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java2860 .checkPackage(Binder.getCallingUid(), callingPackage); in updateServiceLocationWithPackageName()
3394 .checkPackage(Binder.getCallingUid(), callingPackage); in getCellLocation()
3487 .checkPackage(Binder.getCallingUid(), callingPackage); in getNeighboringCellInfo()
3535 .checkPackage(Binder.getCallingUid(), callingPackage); in getAllCellInfo()
3596 .checkPackage(Binder.getCallingUid(), callingPackage); in requestCellInfoUpdateInternal()
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()
[all …]
DCarrierConfigLoader.java1773 appOps.checkPackage(callingUid, requestingPackage); in enforceCallerIsSystemOrRequestingPackage()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1590 verify(mMockAppOps).checkPackage(uid1, TEST_PACKAGE_NAME); in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck()
1632 verify(mMockAppOps).checkPackage(mUid, TEST_PACKAGE_NAME); in testEnforceNearbyDevicesPermission_LocationCheckDisavowPass()
1671 verify(mMockAppOps).checkPackage(mUid, TEST_PACKAGE_NAME); in testEnforceNearbyDevicesPermission_LocationCheckWithoutDisavowPass()
1708 verify(mMockAppOps).checkPackage(mUid, TEST_PACKAGE_NAME); in testEnforceNearbyDevicesPermission_BypassCheckWithPrivilegedPermission()
1756 .when(mMockAppOps).checkPackage(mUid, TEST_PACKAGE_NAME);
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1630 mAppOpsManager.checkPackage(
1716 mAppOpsManager.checkPackage(
1761 mAppOpsManager.checkPackage(
1816 mAppOpsManager.checkPackage(
3328 mAppOpsManager.checkPackage(
3361 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage);
DConnectionServiceWrapper.java987 mAppOpsManager.checkPackage(Binder.getCallingUid(), in addExistingConnection()
1222 mAppOpsManager.checkPackage(Binder.getCallingUid(), in onPhoneAccountChanged()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java1863 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceFailureWhenChannelUpdateWrongPkgName()
1878 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceFailureWhenCallerPermissionDenied()
1901 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in verifyAddLocalService()
1934 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceFailureWhenNativeCallFailure()
1972 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testConnectWithConfigValidAsGroupFailureWhenChannelUpdateWrongPkgName()
1987 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testConnectWithConfigValidAsGroupFailureWhenPermissionDenied()
2077 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testCreateGroupWithConfigValidAsGroupFailureWhenChannelUpdateWrongPkgName()
2094 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testCreateGroupWithConfigValidAsGroupFailureWhenPermissionDenied()
2190 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testDiscoverPeersFailureWhenChannelUpdateWrongPkgName()
2205 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testDiscoverPeersFailureWhenPermissionDenied()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLocationPermissionCheckerTest.java123 .when(mMockAppOps).checkPackage(mUid, TEST_PKG_NAME); in setupMocks()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DTransitionalScanHelper.java1145 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan()
1228 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in registerPiAndStartScan()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java262 .checkPackage(uid, packageNameUnchecked); in getPackageNameInternal()
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java482 mAppOpsManager.checkPackage(getCallingUid(), packageName); in isRoleHeldAsUser()
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java553 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in startRanging()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java265 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java445 doThrow(new SecurityException()).when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testHandleAcceptNetworkRequestFromWithInvalidWifiNetworkSpecifier()
459 doThrow(new SecurityException()).when(mAppOpsManager).checkPackage(anyInt(), anyString()); in testRejectNetworkRequestWithWifiNetworkSpecifierTofuEnabled()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java2460 mWifiPermissionsUtil.checkPackage(message.sendingUid, pkgName); in processMessageImpl()
5853 mWifiPermissionsUtil.checkPackage(uid, packageName); in checkNearbyDevicesPermission()

12