Searched refs:enforceLocationPermission (Results 1 – 8 of 8) sorted by relevance
/packages/services/Telephony/src/com/android/phone/ |
D | ServiceStateProvider.java | 414 final boolean enforceLocationPermission = in query() 423 if (enforceLocationPermission && targetingAtLeastS && !canReadPrivilegedPhoneState) { in query() 430 if (!enforceLocationPermission) { in query()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | LocationPermissionChecker.java | 142 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid, in enforceLocationPermission() method in LocationPermissionChecker
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 770 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceCoarseLocationPermissionLegacyApp() 794 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceFineLocationPermissionNewQApp() 820 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceFailureFineLocationPermissionNewQApp() 1115 codeUnderTest.enforceLocationPermission(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid); in testEnforceLocationPermissionExpectSecurityException()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 844 mWifiPermissionsUtil.enforceLocationPermission(callingPackage, callingFeatureId, uid); in enforceNearbyOrLocationPermission()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 167 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() method in WifiPermissionsUtil
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 652 verify(mWifiPermissionsUtil, never()).enforceLocationPermission(any(), any(), anyInt()); in testSubscribePostT()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 1184 private void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() method in WifiServiceImpl 1185 mWifiPermissionsUtil.enforceLocationPermission(pkgName, featureId, uid); in enforceLocationPermission() 2750 enforceLocationPermission(packageName, featureId, uid); in startLocalOnlyHotspot() 7006 enforceLocationPermission(packageName, featureId, uid);
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 3591 .when(mWifiPermissionsUtil).enforceLocationPermission(eq(TEST_PACKAGE_NAME), in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationPermission() 8813 .enforceLocationPermission(anyString(), anyString(), anyInt()); in testRegisterSuggestionNetworkCallbackWithMissingFinePermission()
|