Searched refs:enforceLocationPermission (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 193 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/ |
D | WifiPermissionsUtilTest.java | 726 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/ |
D | WifiPermissionsUtil.java | 117 public void enforceLocationPermission(String pkgName, int uid) { in enforceLocationPermission() method in WifiPermissionsUtil
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 846 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/ |
D | WifiServiceImplTest.java | 1436 .when(mWifiPermissionsUtil).enforceLocationPermission(eq(TEST_PACKAGE_NAME), in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationPermission()
|