Home
last modified time | relevance | path

Searched refs:enforceLocationPermission (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java193 enforceLocationPermission(callingPackage, getMockableCallingUid()); in connect()
301 enforceLocationPermission(callingPackage, getMockableCallingUid()); in publish()
351 enforceLocationPermission(callingPackage, getMockableCallingUid()); in subscribe()
472 private void enforceLocationPermission(String callingPackage, int uid) { in enforceLocationPermission() method in WifiAwareServiceImpl
473 mWifiPermissionsUtil.enforceLocationPermission(callingPackage, uid); in enforceLocationPermission()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java726 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, mUid); in testEnforceCoarseLocationPermissionLegacyApp()
749 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, mUid); in testEnforceFineLocationPermissionNewQApp()
773 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, mUid); in testEnforceFailureFineLocationPermissionNewQApp()
876 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, mUid); in testEnforceLocationPermissionExpectSecurityException()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java117 public void enforceLocationPermission(String pkgName, int uid) { in enforceLocationPermission() method in WifiPermissionsUtil
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java846 private void enforceLocationPermission(String pkgName, int uid) { in enforceLocationPermission() method in WifiServiceImpl
847 mWifiPermissionsUtil.enforceLocationPermission(pkgName, uid); in enforceLocationPermission()
1403 enforceLocationPermission(packageName, uid); in startLocalOnlyHotspot()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java1436 .when(mWifiPermissionsUtil).enforceLocationPermission(eq(TEST_PACKAGE_NAME), in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationPermission()