Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java268 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults()
333 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner()
380 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect()
470 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java205 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
349 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in enterScanOnlyModeActiveState()
427 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in enterStaDisabledMode()
1259 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testDoesNotEnterScanModeWhenLocationModeDisabled()
1281 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testEnterScanModeWhenLocationModeEnabled()
1298 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testEnterScanModeWhenLocationModeEnabled()
1314 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testExitScanModeWhenLocationModeDisabled()
1333 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testExitScanModeWhenLocationModeDisabled()
2431 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in staDisabled_toggleWifiOff_scanNotAvailable_dontGoToScanMode()
2454 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in staDisabled_toggleWifiOff_scanAvailable_goToScanMode()
[all …]
DWifiServiceImplTest.java2795 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setupLohsPermissions()
2857 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationEnabled()
2867 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfRequestorNotForegroundApp()
2942 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenAlreadyTethering()
2955 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenTetheringDisallowed()
4662 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToNewNetwork_success()
4699 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToNewNetwork_failure()
4718 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToExistingNetwork()
4739 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToSimBasedNetworkWhenSimPresent()
4762 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToSimBasedNetworkWhenSimAbsent()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java292 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in start()
377 && mWifiPermissionsUtil.isLocationModeEnabled(); in isAvailable()
1064 && mWifiPermissionsUtil.isLocationModeEnabled(); in onRangingResults()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java212 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
1327 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(false); in runDisableRttFlow()
1355 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in runDisableRttFlow()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1287 assertFalse(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
1292 assertTrue(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java1506 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start()
1746 return (mWifiPermissionsUtil.isLocationModeEnabled() in shouldEnableScanOnlyMode()
DWifiServiceImpl.java2027 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
4871 if (config != null && config.SSID != null && mWifiPermissionsUtil.isLocationModeEnabled()) {
5346 if (!mWifiPermissionsUtil.isLocationModeEnabled()) {
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java933 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine()
3171 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in exit()
3289 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in sendBroadcastMultiplePermissions()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java169 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
4045 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
4046 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
DWifiAwareDataPathStateManagerTest.java171 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java475 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start()
844 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java254 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
255 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()