Searched refs:enforceLocationPermission (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 210 enforceLocationPermission(callingPackage, callingFeatureId, getMockableCallingUid()); in connect() 318 enforceLocationPermission(callingPackage, callingFeatureId, getMockableCallingUid()); in publish() 368 enforceLocationPermission(callingPackage, callingFeatureId, getMockableCallingUid()); in subscribe() 492 private void enforceLocationPermission(String callingPackage, String callingFeatureId, in enforceLocationPermission() method in WifiAwareServiceImpl 494 mWifiPermissionsUtil.enforceLocationPermission(callingPackage, callingFeatureId, uid); in enforceLocationPermission()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 719 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceCoarseLocationPermissionLegacyApp() 742 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceFineLocationPermissionNewQApp() 766 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceFailureFineLocationPermissionNewQApp() 1014 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceLocationPermissionExpectSecurityException()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 94 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() method in WifiPermissionsUtil
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 843 private void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() method in WifiServiceImpl 844 mWifiPermissionsUtil.enforceLocationPermission(pkgName, featureId, uid); in enforceLocationPermission() 2023 enforceLocationPermission(packageName, featureId, uid); in startLocalOnlyHotspot() 5072 enforceLocationPermission(packageName, featureId, uid);
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 2844 .when(mWifiPermissionsUtil).enforceLocationPermission(eq(TEST_PACKAGE_NAME), in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationPermission()
|