Home
last modified time | relevance | path

Searched refs:scanResults (Results 1 – 22 of 22) sorted by relevance

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DScanResultUpdaterTest.java121 List<ScanResult> scanResults = sru.getScanResults(); in testConstructor_maxScanAge_filtersOldScans() local
123 assertThat(scanResults).containsExactly(scan1, scan2); in testConstructor_maxScanAge_filtersOldScans()
141 List<ScanResult> scanResults = sru.getScanResults(11_000); in testGetScanResults_overridesConstructorMaxScanAge() local
142 assertThat(scanResults).containsExactly(scan1); in testGetScanResults_overridesConstructorMaxScanAge()
145 scanResults = sru.getScanResults(); in testGetScanResults_overridesConstructorMaxScanAge()
146 assertThat(scanResults).containsExactly(scan1, scan2); in testGetScanResults_overridesConstructorMaxScanAge()
DStandardNetworkDetailsTrackerTest.java340 ScanResult[] scanResults = new ScanResult[]{ in testScanner_wifiScannerResultReceived_scanResultsUpdated() local
345 when(scanData.getResults()).thenReturn(scanResults); in testScanner_wifiScannerResultReceived_scanResultsUpdated()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiPickerTracker.java740 protected void updateContextualWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updateContextualWifiEntryScans() argument
752 private void updateStandardWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updateStandardWifiEntryScans() argument
753 checkNotNull(scanResults, "Scan Result list should not be null!"); in updateStandardWifiEntryScans()
756 final Map<ScanResultKey, List<ScanResult>> scanResultsByKey = scanResults.stream() in updateStandardWifiEntryScans()
793 private void updateSuggestedWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updateSuggestedWifiEntryScans() argument
794 checkNotNull(scanResults, "Scan Result list should not be null!"); in updateSuggestedWifiEntryScans()
798 mWifiManager.getWifiConfigForMatchedNetworkSuggestionsSharedWithUser(scanResults) in updateSuggestedWifiEntryScans()
804 final Map<ScanResultKey, List<ScanResult>> scanResultsByKey = scanResults.stream() in updateSuggestedWifiEntryScans()
838 private void updatePasspointWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updatePasspointWifiEntryScans() argument
839 checkNotNull(scanResults, "Scan Result list should not be null!"); in updatePasspointWifiEntryScans()
[all …]
DPasspointNetworkDetailsTracker.java185 private void updatePasspointWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updatePasspointWifiEntryScans() argument
186 checkNotNull(scanResults, "Scan Result list should not be null!"); in updatePasspointWifiEntryScans()
189 mWifiManager.getAllMatchingWifiConfigs(scanResults); in updatePasspointWifiEntryScans()
210 private void updateOsuWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updateOsuWifiEntryScans() argument
211 checkNotNull(scanResults, "Scan Result list should not be null!"); in updateOsuWifiEntryScans()
214 mWifiManager.getMatchingOsuProviders(scanResults); in updateOsuWifiEntryScans()
DOsuWifiEntry.java157 synchronized void updateScanResultInfo(@Nullable List<ScanResult> scanResults) in updateScanResultInfo() argument
159 if (scanResults == null) scanResults = new ArrayList<>(); in updateScanResultInfo()
162 mCurrentScanResults.addAll(scanResults); in updateScanResultInfo()
164 final ScanResult bestScanResult = getBestScanResultByLevel(scanResults); in updateScanResultInfo()
DStandardWifiEntry.java156 @Nullable List<ScanResult> scanResults, in StandardWifiEntry() argument
164 if (scanResults != null && !scanResults.isEmpty()) { in StandardWifiEntry()
165 updateScanResultInfo(scanResults); in StandardWifiEntry()
662 synchronized void updateScanResultInfo(@Nullable List<ScanResult> scanResults) in updateScanResultInfo() argument
664 if (scanResults == null) scanResults = new ArrayList<>(); in updateScanResultInfo()
667 for (ScanResult scan : scanResults) { in updateScanResultInfo()
677 for (ScanResult scan : scanResults) { in updateScanResultInfo()
893 final List<ScanResult> scanResults = mTargetScanResults.stream() in getScanResultDescription() local
899 final int scanResultCount = scanResults.size(); in getScanResultDescription()
907 final int maxLavel = scanResults.stream() in getScanResultDescription()
[all …]
DSavedNetworkTracker.java381 private void updateStandardWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updateStandardWifiEntryScans() argument
382 checkNotNull(scanResults, "Scan Result list should not be null!"); in updateStandardWifiEntryScans()
385 final Map<ScanResultKey, List<ScanResult>> scanResultsByKey = scanResults.stream() in updateStandardWifiEntryScans()
396 private void updatePasspointWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updatePasspointWifiEntryScans() argument
397 checkNotNull(scanResults, "Scan Result list should not be null!"); in updatePasspointWifiEntryScans()
401 mWifiManager.getAllMatchingWifiConfigs(scanResults); in updatePasspointWifiEntryScans()
DKnownNetworkEntry.java81 @Nullable List<WifiConfiguration> configs, @Nullable List<ScanResult> scanResults, in KnownNetworkEntry() argument
85 super(injector, callbackHandler, key, configs, scanResults, wifiManager, in KnownNetworkEntry()
DBaseWifiTracker.java703 List<ScanResult> scanResults = new ArrayList<>();
706 scanResults.addAll(List.of(scanData.getResults()));
711 mScanResultUpdater.update(scanResults);
DUtils.java88 public static ScanResult getBestScanResultByLevel(@NonNull List<ScanResult> scanResults) { in getBestScanResultByLevel() argument
89 if (scanResults.isEmpty()) return null; in getBestScanResultByLevel()
91 return Collections.max(scanResults, comparingInt(scanResult -> scanResult.level)); in getBestScanResultByLevel()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java88 ArrayList<ScanResult> scanResults = buildScanResultCache(); in testVerboseSummaryString_showsScanResultSpeedLabel() local
90 scanResults.toArray(new Parcelable[0])); in testVerboseSummaryString_showsScanResultSpeedLabel()
99 String summary = WifiUtils.verboseScanResultSummary(ap, scanResults.get(0), null, 0); in testVerboseSummaryString_showsScanResultSpeedLabel()
239 ArrayList<ScanResult> scanResults = new ArrayList<>(); in buildScanResultCache() local
242 scanResults.add(scanResult); in buildScanResultCache()
244 return scanResults; in buildScanResultCache()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/
DWifiInteractor.kt109 ) { currentNetwork, scanResults -> in currentNetwork() method
112 if (scanResults.isEmpty()) { in currentNetwork()
117 anyNonMatchingNetworkExists(currentNetwork, scanResults) in currentNetwork()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DApexManagerTest.java218 List<ApexManager.ScanResult> scanResults = scanApexInfos(apexInfo); in testGetApexSystemServices() local
219 mApexManager.notifyScanResult(scanResults); in testGetApexSystemServices()
343 List<ApexManager.ScanResult> scanResults = scanApexInfos(apexInfo); in testReportErrorWithApkInApex() local
344 mApexManager.notifyScanResult(scanResults); in testReportErrorWithApkInApex()
372 List<ApexManager.ScanResult> scanResults = scanApexInfos(apexInfo); in testRegisterApkInApexDoesNotRegisterSimilarPrefix() local
373 mApexManager.notifyScanResult(scanResults); in testRegisterApkInApexDoesNotRegisterSimilarPrefix()
458 List<ApexManager.ScanResult> scanResults = scanApexInfos(apexInfo); in testGetActivePackageNameForApexModuleName() local
459 mApexManager.notifyScanResult(scanResults); in testGetActivePackageNameForApexModuleName()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java729 List<ScanResult> scanResults, in getCachedOrCreate() argument
732 AccessPoint.getKey(mContext, scanResults.get(0))); in getCachedOrCreate()
734 accessPoint = new AccessPoint(mContext, scanResults); in getCachedOrCreate()
736 accessPoint.setScanResults(scanResults); in getCachedOrCreate()
758 List<ScanResult> scanResults, in getCachedOrCreateOsu() argument
762 accessPoint = new AccessPoint(mContext, provider, scanResults); in getCachedOrCreateOsu()
764 accessPoint.setScanResults(scanResults); in getCachedOrCreateOsu()
1111 private List<ScanResult> filterScanResultsByCapabilities(List<ScanResult> scanResults) { in filterScanResultsByCapabilities() argument
1112 if (scanResults == null) { in filterScanResultsByCapabilities()
1125 for (ScanResult scanResult : scanResults) { in filterScanResultsByCapabilities()
DTestAccessPointBuilder.java236 public TestAccessPointBuilder setScanResults(ArrayList<ScanResult> scanResults) { in setScanResults() argument
237 mScanResults = scanResults; in setScanResults()
DAccessPoint.java320 Parcelable[] scanResults = savedState.getParcelableArray(KEY_SCANRESULTS); in AccessPoint() local
322 for (Parcelable result : scanResults) { in AccessPoint()
1439 void setScanResults(Collection<ScanResult> scanResults) { in setScanResults() argument
1440 if (CollectionUtils.isEmpty(scanResults)) { in setScanResults()
1448 for (ScanResult result : scanResults) { in setScanResults()
1461 mScanResults.addAll(scanResults); in setScanResults()
/frameworks/base/services/core/java/com/android/server/pm/
DApexManager.java147 abstract void notifyScanResult(List<ScanResult> scanResults); in notifyScanResult() argument
471 void notifyScanResult(List<ScanResult> scanResults) { in notifyScanResult() argument
473 notifyScanResultLocked(scanResults); in notifyScanResult()
478 private void notifyScanResultLocked(List<ScanResult> scanResults) { in notifyScanResultLocked() argument
481 for (ScanResult scanResult : scanResults) { in notifyScanResultLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImplTest.kt1205 val scanResults = in wifiScanResults_containsSsidList() constant
1213 whenever(wifiManager.scanResults).thenReturn(scanResults) in wifiScanResults_containsSsidList()
1233 var scanResults = in wifiScanResults_updates() variable
1241 whenever(wifiManager.scanResults).thenReturn(scanResults) in wifiScanResults_updates()
1245 scanResults = listOf() in wifiScanResults_updates()
1246 whenever(wifiManager.scanResults).thenReturn(scanResults) in wifiScanResults_updates()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DCompanionDeviceDiscoveryService.java474 final List<android.net.wifi.ScanResult> scanResults = mWifiManager.getScanResults(); in onReceive() local
476 for (int i = 0; i < scanResults.size(); i++) { in onReceive()
477 final android.net.wifi.ScanResult scanResult = scanResults.get(i); in onReceive()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java577 ArrayList<ScanResult> scanResults = new ArrayList<>();
580 scanResults.add(scanResult);
582 return scanResults;
1031 ArrayList<ScanResult> scanResults = new ArrayList<>(); in testSpeedLabelFallbackScoreIgnoresNullCurves() local
1034 scanResults.add(scanResultUnconnected); in testSpeedLabelFallbackScoreIgnoresNullCurves()
1038 scanResults.add(scanResultConnected); in testSpeedLabelFallbackScoreIgnoresNullCurves()
1045 .setScanResults(scanResults) in testSpeedLabelFallbackScoreIgnoresNullCurves()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java666 List<ScanResult> scanResults = resultsSupplier.get(); in ScanResultsScoreCacheFilter() local
667 final int size = scanResults.size(); in ScanResultsScoreCacheFilter()
670 ScanResult scanResult = scanResults.get(i); in ScanResultsScoreCacheFilter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImpl.kt338 trySend(wifiManager.scanResults.toModel()) in <lambda>()