Home
last modified time | relevance | path

Searched refs:getScanResults (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DScanResultUpdaterTest.java64 assertThat(sru.getScanResults()).containsExactly(oldResult); in testGetScanResults_mergeSameBssid()
68 assertThat(sru.getScanResults()).containsExactly(newResult); in testGetScanResults_mergeSameBssid()
72 assertThat(sru.getScanResults()).containsExactly(newResult); in testGetScanResults_mergeSameBssid()
90 assertThat(sru.getScanResults(maxScanAge)).containsExactly(newResult); in testGetScanResults_filtersOldScans()
101 sru.getScanResults(20_000); in testGetScanResults_invalidMaxScanAgeMillis_throwsException()
121 List<ScanResult> scanResults = sru.getScanResults(); in testConstructor_maxScanAge_filtersOldScans()
141 List<ScanResult> scanResults = sru.getScanResults(11_000); in testGetScanResults_overridesConstructorMaxScanAge()
145 scanResults = sru.getScanResults(); in testGetScanResults_overridesConstructorMaxScanAge()
DStandardNetworkDetailsTrackerTest.java108 when(mMockWifiManager.getScanResults()).thenReturn(new ArrayList<>()); in setUp()
140 when(mMockWifiManager.getScanResults()).thenReturn(Collections.singletonList(other)); in testHandleOnStart_scanResultUpdaterUpdateCorrectly()
145 final long invalidCount = tracker.mScanResultUpdater.getScanResults().stream().filter( in testHandleOnStart_scanResultUpdaterUpdateCorrectly()
171 when(mMockWifiManager.getScanResults()).thenReturn(Collections.singletonList(scan)); in testScanResultsAvailableAction_updates_getLevel()
180 when(mMockWifiManager.getScanResults()).thenReturn(Collections.emptyList()); in testScanResultsAvailableAction_updates_getLevel()
238 when(mMockWifiManager.getScanResults()).thenReturn(Collections.singletonList(scan)); in testWifiStateChanged_disabled_clearsLevel()
268 when(mMockWifiManager.getScanResults()).thenReturn(Collections.singletonList(scan)); in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting()
DWifiPickerTrackerTest.java144 when(mMockWifiManager.getScanResults()).thenReturn(new ArrayList<>()); in setUp()
275 when(mMockWifiManager.getScanResults()).thenReturn(new ArrayList<>()); in testGetWifiEntries_noScans_emptyList()
300 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
329 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
366 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetWifiEntries_wifiNetworkEntries_useOldEntriesOnFailedScan()
401 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetWifiEntries_differentSsidSameBssid_returnsDifferentEntries()
434 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetWifiEntries_configuredNetworksChanged_unsavedToSaved()
470 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetWifiEntries_configuredNetworksChanged_savedToUnsaved()
520 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetConnectedEntry_connectToNetwork_returnsConnectedEntry()
551 when(mMockWifiManager.getScanResults()).thenReturn(Arrays.asList( in testGetConnectedEntry_disconnectFromNetwork_returnsNull()
[all …]
DNetworkDetailsTrackerTest.java89 when(mMockWifiManager.getScanResults()).thenReturn(new ArrayList<>()); in setUp()
DSavedNetworkTrackerTest.java107 when(mMockWifiManager.getScanResults()).thenReturn(new ArrayList<>()); in setUp()
307 when(mMockWifiManager.getScanResults()).thenReturn(Collections.singletonList( in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
415 when(mMockWifiManager.getScanResults()).thenReturn(scanList); in testGetSavedNetworks_mismatchedScans_returnsCorrectEntries()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DScanResultUpdater.java80 public List<ScanResult> getScanResults() { in getScanResults() method in ScanResultUpdater
81 return getScanResults(mMaxScanAgeMillis); in getScanResults()
89 public List<ScanResult> getScanResults(long maxScanAgeMillis) throws IllegalArgumentException { in getScanResults() method in ScanResultUpdater
DStandardNetworkDetailsTracker.java158 mChosenEntry.updateScanResultInfo(mScanResultUpdater.getScanResults(scanAgeWindow)); in conditionallyUpdateScanResults()
176 mScanResultUpdater.update(mWifiManager.getScanResults().stream() in cacheNewScanResults()
DSavedNetworkTracker.java260 mScanResultUpdater.update(mWifiManager.getScanResults()); in conditionallyUpdateScanResults()
266 updateStandardWifiEntryScans(mScanResultUpdater.getScanResults(scanAgeWindow)); in conditionallyUpdateScanResults()
267 updatePasspointWifiEntryScans(mScanResultUpdater.getScanResults(scanAgeWindow)); in conditionallyUpdateScanResults()
DPasspointNetworkDetailsTracker.java240 List<ScanResult> currentScans = mScanResultUpdater.getScanResults(scanAgeWindow); in conditionallyUpdateScanResults()
260 mScanResultUpdater.update(mWifiManager.getScanResults()); in cacheNewScanResults()
DWifiPickerTracker.java208 mScanResultUpdater.update(mWifiManager.getScanResults()); in handleOnStart()
259 final List<ScanResult> scanResults = mScanResultUpdater.getScanResults(); in processConfiguredNetworksChanged()
663 mScanResultUpdater.update(mWifiManager.getScanResults()); in conditionallyUpdateScanResults()
670 List<ScanResult> scanResults = mScanResultUpdater.getScanResults(scanAgeWindow); in conditionallyUpdateScanResults()
DOsuWifiEntry.java268 mWifiManager.getAllMatchingWifiConfigs(mWifiManager.getScanResults())) { in onProvisioningComplete()
DBaseWifiTracker.java122 mNetworkScoreManager.requestScores(mWifiManager.getScanResults().stream()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java568 List<ScanResult> netList = mWifiManager.getScanResults(); in connectToWifiWithConfiguration()
609 if ((mWifiManager.getScanResults() == null) || in connectToWifiWithConfiguration()
610 (mWifiManager.getScanResults().size() <= 0)) { in connectToWifiWithConfiguration()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java183 when(mockWifiManager.getScanResults()) in setUp()
683 when(mockWifiManager.getScanResults()) in scoresShouldBeRequestedForNewScanResultOnly()
739 when(mockWifiManager.getScanResults()).thenReturn(results); in trackPasspointApWithPasspointDisabled()
803 when(mockWifiManager.getScanResults()).thenReturn(new ArrayList<>()); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
991 when(mockWifiManager.getScanResults()).thenReturn(Arrays.asList( in onStart_updateScanResults_evictOldScanResult()
1009 when(mockWifiManager.getScanResults()).thenReturn(Arrays.asList( in failedScan_increasesEvictionTimeout()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/
Dsimulate_wifi.py156 for scan in getScanResults():
801 def getScanResults() -> str: function
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java101 doReturn(set).when(mAccessPoint).getScanResults(); in testGetVisibilityStatus_nullResultDoesNotCrash()
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java261 for (ScanResult scanResult : wifiManager.getScanResults()) { in dump()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java144 for (ScanResult result : accessPoint.getScanResults()) { in getVisibilityStatus()
DAccessPoint.java915 public Set<ScanResult> getScanResults() { in getScanResults() method in AccessPoint
1990 wifiManager.getAllMatchingWifiConfigs(wifiManager.getScanResults())) { in onProvisioningComplete()
DWifiTracker.java543 List<ScanResult> newScanResults = mWifiManager.getScanResults(); in fetchScansAndConfigsAndUpdateAccessPoints()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java117 mLastScanResult = mWifiManager.getScanResults(); in onReceive()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java391 List<ScanResult> wifiScanResults = wifiManager.getScanResults(); in onReceive()
/frameworks/base/wifi/java/src/android/net/wifi/nl80211/
DWifiNl80211Manager.java936 @NonNull public List<NativeScanResult> getScanResults(@NonNull String ifaceName, in getScanResults() method in WifiNl80211Manager
946 results = Arrays.asList(scannerImpl.getScanResults()); in getScanResults()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DCompanionDeviceDiscoveryService.java453 List<android.net.wifi.ScanResult> scanResults = mWifiManager.getScanResults(); in onReceive()
/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/
DWifiNl80211ManagerTest.java503 mWificondControl.getScanResults(TEST_INTERFACE_NAME, in testGetScanResultsErrorWhenNoClientInterfaceConfigured()

12