Home
last modified time | relevance | path

Searched refs:isLocationModeEnabled (Results 1 – 16 of 16) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java249 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults()
294 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner()
340 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect()
438 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java151 if (!isLocationModeEnabled()) { in checkLocationPermissionInternal()
208 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in LocationPermissionChecker
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiControllerTest.java120 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
205 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testDoesNotEnterScanModeWhenLocationModeDisabled()
232 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testEnterScanModeWhenLocationModeEnabled()
250 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testEnterScanModeWhenLocationModeEnabled()
266 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testExitScanModeWhenLocationModeDisabled()
283 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testExitScanModeWhenLocationModeDisabled()
DWifiServiceImplTest.java1537 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in registerLOHSRequestFull()
1586 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationEnabled()
1595 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfRequestorNotForegroundApp()
1608 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfInCryptDebounce()
1644 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenAlreadyTethering()
1658 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenTetheringDisallowed()
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java298 if (!isLocationModeEnabled(context, UserHandle.getUserId(uid))) { in checkSystemLocationAccess()
307 private static boolean isLocationModeEnabled(@NonNull Context context, @UserIdInt int userId) { in isLocationModeEnabled() method in LocationAccessPolicy
/frameworks/base/services/core/java/com/android/server/
DNetworkScorerAppManager.java216 return isLocationModeEnabled() in canAccessLocation()
223 private boolean isLocationModeEnabled() { in isLocationModeEnabled() method in NetworkScorerAppManager
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiController.java141 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start()
185 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in checkScanOnlyModeAvailable()
DWifiServiceImpl.java1450 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java310 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in start()
403 && mWifiPermissionsUtil.isLocationModeEnabled(); in isAvailable()
1098 && mWifiPermissionsUtil.isLocationModeEnabled(); in onRangingResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java210 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
1354 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(false); in runDisableRttFlow()
1382 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in runDisableRttFlow()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java167 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
3532 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
3533 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
DWifiAwareDataPathStateManagerTest.java166 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java210 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
211 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java435 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start()
699 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java857 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt68309 Landroid/telephony/LocationAccessPolicy;->isLocationModeEnabled(Landroid/content/Context;I)Z