/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 248 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults() 293 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner() 339 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect() 437 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiControllerTest.java | 120 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()
|
D | WifiServiceImplTest.java | 1398 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in registerLOHSRequestFull() 1447 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationEnabled() 1456 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfRequestorNotForegroundApp() 1493 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenAlreadyTethering() 1507 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenTetheringDisallowed()
|
/frameworks/base/telephony/java/android/telephony/ |
D | LocationAccessPolicy.java | 283 if (!isLocationModeEnabled(context, UserHandle.getUserId(uid))) { in checkSystemLocationAccess() 292 private static boolean isLocationModeEnabled(@NonNull Context context, @UserIdInt int userId) { in isLocationModeEnabled() method in LocationAccessPolicy
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 216 return isLocationModeEnabled() in canAccessLocation() 223 private boolean isLocationModeEnabled() { in isLocationModeEnabled() method in NetworkScorerAppManager
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiController.java | 141 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start() 185 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in checkScanOnlyModeAvailable()
|
D | WifiServiceImpl.java | 1407 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttServiceImpl.java | 310 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/ |
D | RttServiceImplTest.java | 210 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/ |
D | WifiAwareStateManagerTest.java | 167 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 3532 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument 3533 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
|
D | WifiAwareDataPathStateManagerTest.java | 165 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 210 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/ |
D | WifiAwareStateManager.java | 435 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start() 699 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 838 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine()
|