Searched refs:isLocationModeEnabled (Results 1 – 13 of 13) sorted by relevance
268 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults()333 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner()380 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect()470 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
205 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 …]
2795 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 …]
292 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in start()377 && mWifiPermissionsUtil.isLocationModeEnabled(); in isAvailable()1064 && mWifiPermissionsUtil.isLocationModeEnabled(); in onRangingResults()
212 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in setUp()1327 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(false); in runDisableRttFlow()1355 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in runDisableRttFlow()
1287 assertFalse(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()1292 assertTrue(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
1506 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start()1746 return (mWifiPermissionsUtil.isLocationModeEnabled() in shouldEnableScanOnlyMode()
2027 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()4871 if (config != null && config.SSID != null && mWifiPermissionsUtil.isLocationModeEnabled()) {5346 if (!mWifiPermissionsUtil.isLocationModeEnabled()) {
933 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine()3171 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in exit()3289 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in sendBroadcastMultiplePermissions()
169 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()4045 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument4046 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
171 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
475 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start()844 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
254 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument255 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()