Home
last modified time | relevance | path

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

/packages/services/Telephony/src/com/android/phone/
DServiceStateProvider.java414 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/
DLocationPermissionChecker.java142 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/
DWifiPermissionsUtilTest.java770 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/
DWifiAwareServiceImpl.java844 mWifiPermissionsUtil.enforceLocationPermission(callingPackage, callingFeatureId, uid); in enforceNearbyOrLocationPermission()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java167 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/
DWifiAwareServiceImplTest.java652 verify(mWifiPermissionsUtil, never()).enforceLocationPermission(any(), any(), anyInt()); in testSubscribePostT()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1184 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/
DWifiServiceImplTest.java3591 .when(mWifiPermissionsUtil).enforceLocationPermission(eq(TEST_PACKAGE_NAME), in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationPermission()
8813 .enforceLocationPermission(anyString(), anyString(), anyInt()); in testRegisterSuggestionNetworkCallbackWithMissingFinePermission()