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()
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()
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()
DWifiConfigManager.java2222 WifiConfiguration config, ScanDetail scanDetail) { in saveToScanDetailCacheForNetwork() argument
2223 ScanResult scanResult = scanDetail.getScanResult(); in saveToScanDetailCacheForNetwork()
2239 scanDetailCache.put(scanDetail); in saveToScanDetailCacheForNetwork()
2253 public WifiConfiguration getConfiguredNetworkForScanDetail(ScanDetail scanDetail) { in getConfiguredNetworkForScanDetail() argument
2254 ScanResult scanResult = scanDetail.getScanResult(); in getConfiguredNetworkForScanDetail()
2283 public WifiConfiguration getConfiguredNetworkForScanDetailAndCache(ScanDetail scanDetail) { in getConfiguredNetworkForScanDetailAndCache() argument
2284 WifiConfiguration network = getConfiguredNetworkForScanDetail(scanDetail); in getConfiguredNetworkForScanDetailAndCache()
2288 saveToScanDetailCacheForNetwork(network, scanDetail); in getConfiguredNetworkForScanDetailAndCache()
2294 if (scanDetail.getNetworkDetail() != null in getConfiguredNetworkForScanDetailAndCache()
2295 && scanDetail.getNetworkDetail().getDtimInterval() > 0) { in getConfiguredNetworkForScanDetailAndCache()
[all …]
DWifiLastResortWatchdog.java138 final ScanDetail scanDetail = pair.first; in updateAvailableNetworks() local
140 ScanResult scanResult = scanDetail.getScanResult(); in updateAvailableNetworks()
143 String ssid = "\"" + scanDetail.getSSID() + "\""; in updateAvailableNetworks()
145 Log.v(TAG, " " + bssid + ": " + scanDetail.getSSID()); in updateAvailableNetworks()
DWificondControl.java609 ScanDetail scanDetail = new ScanDetail(networkDetail, wifiSsid, bssid, flags, in getScanResults() local
611 ScanResult scanResult = scanDetail.getScanResult(); in getScanResults()
614 if (ScanResultUtil.isScanResultForEapNetwork(scanDetail.getScanResult()) in getScanResults()
634 results.add(scanDetail); in getScanResults()
DAvailableNetworkNotifier.java320 for (ScanDetail scanDetail : networks) { in recommendNetwork()
321 ScanResult scanResult = scanDetail.getScanResult(); in recommendNetwork()
DWifiMetrics.java1077 public void setConnectionScanDetail(ScanDetail scanDetail) { in setConnectionScanDetail() argument
1079 if (mCurrentConnectionEvent != null && scanDetail != null) { in setConnectionScanDetail()
1080 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in setConnectionScanDetail()
1081 ScanResult scanResult = scanDetail.getScanResult(); in setConnectionScanDetail()
1661 for (ScanDetail scanDetail : scanDetails) { in countScanResults()
1662 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in countScanResults()
1663 ScanResult scanResult = scanDetail.getScanResult(); in countScanResults()
2091 for (ScanDetail scanDetail : scanDetails) { in incrementAvailableNetworksHistograms()
2092 NetworkDetail networkDetail = scanDetail.getNetworkDetail(); in incrementAvailableNetworksHistograms()
2093 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 …]
DWifiNetworkSuggestionsManagerTest.java500 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatchForCarrierProvisioningApp() local
503 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatchForCarrierProvisioningApp()
528 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatch() local
531 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatch()
571 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion1.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch() local
574 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
589 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch() local
590 wifiConfiguration.BSSID = scanDetail.getBSSIDString(); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch()
605 mWifiNetworkSuggestionsManager.getNetworkSuggestionsForScanDetail(scanDetail); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch()
619 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidMultipleMatch() local
[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()
DConcreteCandidate.java77 public ConcreteCandidate setScanDetail(ScanDetail scanDetail) { in setScanDetail() argument
78 mScanDetail = scanDetail; in setScanDetail()
DWifiLastResortWatchdogTest.java84 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in createFilteredQnsCandidates() local
95 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates()
108 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in createFilteredQnsCandidates() local
120 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates()
1595 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in testUpdateNetworkWithNullConfig() local
1603 candidates.add(Pair.create(scanDetail, config)); in testUpdateNetworkWithNullConfig()
1608 candidates.add(Pair.create(scanDetail, null)); in testUpdateNetworkWithNullConfig()
1631 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in testUpdateNetworkWithHasEverConnectedTrue() local
1640 candidates.add(Pair.create(scanDetail, configHasEverConnectedFalse)); in testUpdateNetworkWithHasEverConnectedTrue()
1659 candidates.add(Pair.create(scanDetail, configHasEverConnectedTrue)); in testUpdateNetworkWithHasEverConnectedTrue()
[all …]
DWifiConfigManagerTest.java1626 ScanDetail scanDetail = createScanDetailForNetwork(testNetwork); in testUpdateScanDetailForNetwork() local
1627 ScanResult scanResult = scanDetail.getScanResult(); in testUpdateScanDetailForNetwork()
1629 mWifiConfigManager.updateScanDetailForNetwork(result.getNetworkId(), scanDetail); in testUpdateScanDetailForNetwork() local
1658 ScanDetail scanDetail = in testScanDetailCacheTrimForNetwork() local
1662 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail)); in testScanDetailCacheTrimForNetwork()
1672 ScanDetail scanDetail = in testScanDetailCacheTrimForNetwork() local
1675 assertNotNull(mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail)); in testScanDetailCacheTrimForNetwork()
5221 ScanDetail scanDetail = createScanDetailForNetwork(network); in verifyAddSingleNetworkAndMatchScanDetailToNetworkAndCache() local
5222 ScanResult scanResult = scanDetail.getScanResult(); in verifyAddSingleNetworkAndMatchScanDetailToNetworkAndCache()
5225 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()
275 ScanDetail scanDetail = candidate.mScanDetail; in findBestNetwork() local
279 ScanResultUtil.createQuotedSSID(scanDetail.getSSID())); in findBestNetwork()
281 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.java434 for (ScanDetail scanDetail : scanDetails) { in findEapMethodFromNAIRealmMatchedWithCarrier()
435 if (!scanDetail.getNetworkDetail().isInterworking()) { in findEapMethodFromNAIRealmMatchedWithCarrier()
442 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