Home
last modified time | relevance | path

Searched refs:scanDetail (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetailCache.java60 void put(ScanDetail scanDetail) { in put() argument
66 mMap.put(scanDetail.getBSSIDString(), scanDetail); in put() local
76 ScanDetail scanDetail = getScanDetail(bssid); in getScanResult() local
77 return scanDetail == null ? null : scanDetail.getScanResult(); in getScanResult()
178 for (ScanDetail scanDetail : list) { in toString()
179 ScanResult result = scanDetail.getScanResult(); in toString()
180 long milli = now_ms - scanDetail.getSeen(); in toString()
186 if (now_ms > scanDetail.getSeen() && scanDetail.getSeen() > 0) { in toString()
DWifiCandidates.java125 public final ScanDetail scanDetail; field in WifiCandidates.CandidateImpl
137 ScanDetail scanDetail, in CandidateImpl() argument
146 this.scanDetail = scanDetail; in CandidateImpl()
168 return scanDetail; in getScanDetail()
219 return scanDetail.getScanResult().level; in getScanRssi()
224 return scanDetail.getScanResult().frequency; in getFrequency()
347 public boolean add(ScanDetail scanDetail, in add() argument
353 if (scanDetail == null) return failure(); in add()
354 ScanResult scanResult = scanDetail.getScanResult(); in add()
381 scanDetail, config, evaluatorId, evaluatorScore, perBssid, in add()
[all …]
DWifiNetworkSelector.java209 void onConnectable(ScanDetail scanDetail, WifiConfiguration config, int score); in onConnectable() argument
382 for (ScanDetail scanDetail : scanDetails) { in filterScanResults()
383 ScanResult scanResult = scanDetail.getScanResult(); in filterScanResults()
410 validScanDetails.add(scanDetail); in filterScanResults()
461 for (ScanDetail scanDetail : mFilteredNetworks) { in getFilteredScanDetailsForOpenUnsavedNetworks()
462 ScanResult scanResult = scanDetail.getScanResult(); in getFilteredScanDetailsForOpenUnsavedNetworks()
475 if (mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail) != null) { in getFilteredScanDetailsForOpenUnsavedNetworks()
479 openUnsavedNetworks.add(scanDetail); in getFilteredScanDetailsForOpenUnsavedNetworks()
496 for (ScanDetail scanDetail : mFilteredNetworks) { in getFilteredScanDetailsForCarrierUnsavedNetworks()
497 ScanResult scanResult = scanDetail.getScanResult(); in getFilteredScanDetailsForCarrierUnsavedNetworks()
[all …]
DScoredNetworkEvaluator.java138 ScanDetail scanDetail = scanDetails.get(i); in evaluateNetworks() local
139 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
147 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail); in evaluateNetworks()
157 scoreTracker.trackUntrustedCandidate(scanDetail); in evaluateNetworks()
184 onConnectableListener.onConnectable(scanDetail, configuredNetwork, 0); in evaluateNetworks()
225 void trackUntrustedCandidate(ScanDetail scanDetail) { in trackUntrustedCandidate() argument
226 ScanResult scanResult = scanDetail.getScanResult(); in trackUntrustedCandidate()
231 mScanDetailCandidate = scanDetail; in trackUntrustedCandidate()
DCarrierNetworkEvaluator.java98 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks()
99 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
167 mWifiConfigManager.updateScanDetailForNetwork(result.getNetworkId(), scanDetail); in evaluateNetworks() local
170 onConnectableListener.onConnectable(scanDetail, config, 0); in evaluateNetworks()
DSavedNetworkEvaluator.java195 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks()
196 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
202 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail); in evaluateNetworks()
260 onConnectableListener.onConnectable(scanDetail, in evaluateNetworks()
DNetworkSuggestionEvaluator.java84 ScanDetail scanDetail = scanDetails.get(i); in evaluateNetworks() local
85 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
94 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in evaluateNetworks()
117 matchMetaInfo.putAll(matchingNetworkSuggestions, wCmConfiguredNetwork, scanDetail); in evaluateNetworks()
DWifiConfigManager.java2261 WifiConfiguration config, ScanDetail scanDetail) { in saveToScanDetailCacheForNetwork() argument
2262 ScanResult scanResult = scanDetail.getScanResult(); in saveToScanDetailCacheForNetwork()
2278 scanDetailCache.put(scanDetail); in saveToScanDetailCacheForNetwork()
2292 public WifiConfiguration getConfiguredNetworkForScanDetail(ScanDetail scanDetail) { in getConfiguredNetworkForScanDetail() argument
2293 ScanResult scanResult = scanDetail.getScanResult(); in getConfiguredNetworkForScanDetail()
2322 public WifiConfiguration getConfiguredNetworkForScanDetailAndCache(ScanDetail scanDetail) { in getConfiguredNetworkForScanDetailAndCache() argument
2323 WifiConfiguration network = getConfiguredNetworkForScanDetail(scanDetail); in getConfiguredNetworkForScanDetailAndCache()
2327 saveToScanDetailCacheForNetwork(network, scanDetail); in getConfiguredNetworkForScanDetailAndCache()
2333 if (scanDetail.getNetworkDetail() != null in getConfiguredNetworkForScanDetailAndCache()
2334 && scanDetail.getNetworkDetail().getDtimInterval() > 0) { in getConfiguredNetworkForScanDetailAndCache()
[all …]
DWifiLastResortWatchdog.java217 final ScanDetail scanDetail = pair.first; in updateAvailableNetworks() local
219 ScanResult scanResult = scanDetail.getScanResult(); in updateAvailableNetworks()
222 String ssid = "\"" + scanDetail.getSSID() + "\""; in updateAvailableNetworks()
224 Log.v(TAG, " " + bssid + ": " + scanDetail.getSSID()); in updateAvailableNetworks()
DWificondControl.java606 ScanDetail scanDetail = new ScanDetail(networkDetail, wifiSsid, bssid, flags, in getScanResults() local
608 ScanResult scanResult = scanDetail.getScanResult(); in getScanResults()
611 if (ScanResultUtil.isScanResultForEapNetwork(scanDetail.getScanResult()) in getScanResults()
631 results.add(scanDetail); in getScanResults()
DAvailableNetworkNotifier.java320 for (ScanDetail scanDetail : networks) { in recommendNetwork()
321 ScanResult scanResult = scanDetail.getScanResult(); in recommendNetwork()
DWifiMetrics.java1129 public void setConnectionScanDetail(ScanDetail scanDetail) { in setConnectionScanDetail() argument
1131 if (mCurrentConnectionEvent != null && scanDetail != null) { in setConnectionScanDetail()
1132 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in setConnectionScanDetail()
1133 ScanResult scanResult = scanDetail.getScanResult(); in setConnectionScanDetail()
1766 for (ScanDetail scanDetail : scanDetails) { in countScanResults()
1767 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in countScanResults()
1768 ScanResult scanResult = scanDetail.getScanResult(); in countScanResults()
2196 for (ScanDetail scanDetail : scanDetails) { in incrementAvailableNetworksHistograms()
2197 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in incrementAvailableNetworksHistograms()
2198 ScanResult scanResult = scanDetail.getScanResult(); in incrementAvailableNetworksHistograms()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionEvaluatorTest.java104 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForNoMatch()
105 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForNoMatch()
144 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForOneMatch()
145 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForOneMatch()
190 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForMultipleMatch()
191 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForMultipleMatch()
237 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
238 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
287 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
288 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
[all …]
DScanResultMatchInfoTest.java96 ScanDetail scanDetail = createScanDetailForWpa2Wpa3TransitionModeNetwork(wifiConfiguration, in testEqualityRulesForTransitionMode() local
100 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testEqualityRulesForTransitionMode()
129 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration, in testEqualityRulesForPsk() local
133 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testEqualityRulesForPsk()
163 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration, in testEqualityRulesForSae() local
167 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testEqualityRulesForSae()
198 ScanDetail scanDetail = createScanDetailForWpa2Wpa3TransitionModeNetwork( in testHashForTransitionMode() local
202 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testHashForTransitionMode()
DWifiNetworkSelectorTestUtil.java141 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromByteArray(ssid), in buildScanDetails() local
143 scanDetailList.add(scanDetail); in buildScanDetails()
311 ScanDetail scanDetail = scanDetails.get(i); in scanResultLinkConfiguration() local
312 when(wifiConfigManager.getConfiguredNetworkForScanDetailAndCache(eq(scanDetail))) in scanResultLinkConfiguration()
317 ScanDetail scanDetail = scanDetails.get(i); in scanResultLinkConfiguration() local
318 when(wifiConfigManager.getConfiguredNetworkForScanDetailAndCache(eq(scanDetail))) in scanResultLinkConfiguration()
344 ScanDetail scanDetail = scanDetails.get(i); in configureScoreCache() local
345 ScanResult scanResult = scanDetail.getScanResult(); in configureScoreCache()
380 int networkId, ScanDetail scanDetail, boolean meteredHint) { in setupEphemeralNetwork() argument
385 ScanResultUtil.createNetworkFromScanResult(scanDetail.getScanResult()); in setupEphemeralNetwork()
[all …]
DCarrierNetworkEvaluatorTest.java94 public void addConfig(ScanDetail scanDetail, WifiConfiguration config) { in addConfig() argument
95 mConfig.put(scanDetail.toKeyString(), config); in addConfig()
100 ScanDetail scanDetail = invocation.getArgument(0); in answer() local
101 return mConfig.get(scanDetail.toKeyString()); in answer()
132 private WifiConfiguration configureNewSsid(int networkId, ScanDetail scanDetail, in configureNewSsid() argument
135 scanDetail.getScanResult()); in configureNewSsid()
137 assertEquals(ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()), in configureNewSsid()
142 mGetConfiguredNetworkForScanDetailsAnswer.addConfig(scanDetail, newConfig); in configureNewSsid()
DWifiNetworkSuggestionsManagerTest.java509 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatchForCarrierProvisioningApp() local
512 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatchForCarrierProvisioningApp()
537 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatch() local
540 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatch()
580 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion1.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch() local
583 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
598 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch() local
599 wifiConfiguration.BSSID = scanDetail.getBSSIDString(); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch()
614 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch()
628 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidMultipleMatch() local
[all …]
DConcreteCandidate.java77 public ConcreteCandidate setScanDetail(ScanDetail scanDetail) { in setScanDetail() argument
78 mScanDetail = scanDetail; in setScanDetail()
DWifiLastResortWatchdogTest.java99 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in createFilteredQnsCandidates() local
110 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates()
123 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in createFilteredQnsCandidates() local
135 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates()
1610 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in testUpdateNetworkWithNullConfig() local
1618 candidates.add(Pair.create(scanDetail, config)); in testUpdateNetworkWithNullConfig()
1623 candidates.add(Pair.create(scanDetail, null)); in testUpdateNetworkWithNullConfig()
1646 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in testUpdateNetworkWithHasEverConnectedTrue() local
1655 candidates.add(Pair.create(scanDetail, configHasEverConnectedFalse)); in testUpdateNetworkWithHasEverConnectedTrue()
1674 candidates.add(Pair.create(scanDetail, configHasEverConnectedTrue)); in testUpdateNetworkWithHasEverConnectedTrue()
[all …]
DWifiConfigManagerTest.java1641 ScanDetail scanDetail = createScanDetailForNetwork(testNetwork); in testUpdateScanDetailForNetwork() local
1642 ScanResult scanResult = scanDetail.getScanResult(); in testUpdateScanDetailForNetwork()
1644 mWifiConfigManager.updateScanDetailForNetwork(result.getNetworkId(), scanDetail); in testUpdateScanDetailForNetwork() local
1673 ScanDetail scanDetail = in testScanDetailCacheTrimForNetwork() local
1677 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail)); in testScanDetailCacheTrimForNetwork()
1687 ScanDetail scanDetail = in testScanDetailCacheTrimForNetwork() local
1690 assertNotNull(mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail)); in testScanDetailCacheTrimForNetwork()
5274 ScanDetail scanDetail = createScanDetailForNetwork(network); in verifyAddSingleNetworkAndMatchScanDetailToNetworkAndCache() local
5275 ScanResult scanResult = scanDetail.getScanResult(); in verifyAddSingleNetworkAndMatchScanDetailToNetworkAndCache()
5278 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail); in verifyAddSingleNetworkAndMatchScanDetailToNetworkAndCache()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java64 ScanDetail scanDetail) { in PasspointNetworkCandidate() argument
67 mScanDetail = scanDetail; in PasspointNetworkCandidate()
131 for (ScanDetail scanDetail : filteredScanDetails) { in evaluateNetworks()
132 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
144 bestProvider.first, bestProvider.second, scanDetail)); in evaluateNetworks()
271 ScanDetail scanDetail = candidate.mScanDetail; in findBestNetwork() local
275 ScanResultUtil.createQuotedSSID(scanDetail.getSSID())); in findBestNetwork()
277 scanDetail, mPasspointManager.getANQPElements(scanDetail.getScanResult()), in findBestNetwork()
DPasspointNetworkScore.java147 public static int calculateScore(boolean isHomeProvider, ScanDetail scanDetail, in calculateScore() argument
149 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in calculateScore()
185 score += RSSI_SCORE.lookupScore(scanDetail.getScanResult().level, isActiveNetwork); in calculateScore()
DPasspointManager.java478 for (ScanDetail scanDetail : scanDetails) { in findEapMethodFromNAIRealmMatchedWithCarrier()
479 if (!scanDetail.getNetworkDetail().isInterworking()) { in findEapMethodFromNAIRealmMatchedWithCarrier()
486 ScanResult scanResult = scanDetail.getScanResult(); in findEapMethodFromNAIRealmMatchedWithCarrier()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkScoreTest.java327 ScanDetail scanDetail = mock(ScanDetail.class); in generateScanDetail() local
328 when(scanDetail.getScanResult()).thenReturn(scanResult); in generateScanDetail()
329 when(scanDetail.getNetworkDetail()).thenReturn(networkDetail); in generateScanDetail()
331 return scanDetail; in generateScanDetail()
342 ScanDetail scanDetail = generateScanDetail(data.rssiLevel, data.internetAccess, in calculateScore() local
345 data.isHomeProvider, scanDetail, data.anqpElements, data.isActiveNetwork)); in calculateScore()
363 ScanDetail scanDetail = generateScanDetail(data.rssiLevel, data.internetAccess, in calculatorScoreWithUnSupportedNetworkType() local
367 data.isHomeProvider, scanDetail, data.anqpElements, data.isActiveNetwork)); in calculatorScoreWithUnSupportedNetworkType()
DPasspointNetworkEvaluatorTest.java136 ScanDetail scanDetail = mock(ScanDetail.class); in generateScanDetail() local
140 when(scanDetail.getSSID()).thenReturn(ssid); in generateScanDetail()
141 when(scanDetail.getBSSIDString()).thenReturn(bssid); in generateScanDetail()
142 when(scanDetail.getScanResult()).thenReturn(scanResult); in generateScanDetail()
143 when(scanDetail.getNetworkDetail()).thenReturn(networkDetail); in generateScanDetail()
144 return scanDetail; in generateScanDetail()
190 ScanDetail scanDetail = mock(ScanDetail.class); in evaulateScansWithNoInterworkingAP() local
191 when(scanDetail.getNetworkDetail()).thenReturn(networkDetail); in evaulateScansWithNoInterworkingAP()
193 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {scanDetail}); in evaulateScansWithNoInterworkingAP()

12