/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SavedNetworkEvaluatorTest.java | 170 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in ignoreNetworksIfUseExternalScores() local 176 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in ignoreNetworksIfUseExternalScores() 197 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in ignoreEphemeralNetworks() local 203 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in ignoreEphemeralNetworks() 226 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in setCandidateScanResultsForAllSavedNetworks() local 232 mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in setCandidateScanResultsForAllSavedNetworks() 237 eq(scanDetails.get(0).getScanResult()), in setCandidateScanResultsForAllSavedNetworks() 241 eq(scanDetails.get(1).getScanResult()), in setCandidateScanResultsForAllSavedNetworks() 245 eq(scanDetails.get(2).getScanResult()), in setCandidateScanResultsForAllSavedNetworks() 265 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in chooseStrongerRssi2GNetwork() local [all …]
|
D | ScoredNetworkEvaluatorTest.java | 289 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails( in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() local 292 scanDetails, scores, meteredHints); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 294 ScanResult scanResult = scanDetails.get(1).getScanResult(); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 296 .setupEphemeralNetwork(mWifiConfigManager, 1, scanDetails.get(1), meteredHints[1]); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 307 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails, in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 334 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails( in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() local 337 scanDetails, scores, meteredHints); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() 343 ScanResult scanResult = scanDetails.get(1).getScanResult(); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() 345 .setupEphemeralNetwork(mWifiConfigManager, 1, scanDetails.get(1), meteredHints[1]); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() 348 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails, in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() [all …]
|
D | NetworkSuggestionEvaluatorTest.java | 94 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForNoMatch() local 99 linkScanDetailsWithNetworkSuggestions(scanDetails, suggestions); in testSelectNetworkSuggestionForNoMatch() 103 Arrays.asList(scanDetails), null, null, true, false, in testSelectNetworkSuggestionForNoMatch() 132 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForOneMatch() local 137 linkScanDetailsWithNetworkSuggestions(scanDetails, suggestions); in testSelectNetworkSuggestionForOneMatch() 143 Arrays.asList(scanDetails), null, null, true, false, in testSelectNetworkSuggestionForOneMatch() 177 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForMultipleMatch() local 182 linkScanDetailsWithNetworkSuggestions(scanDetails, suggestions); in testSelectNetworkSuggestionForMultipleMatch() 189 Arrays.asList(scanDetails), null, null, true, false, in testSelectNetworkSuggestionForMultipleMatch() 224 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() local [all …]
|
D | WifiNetworkSelectorTest.java | 146 public void update(List<ScanDetail> scanDetails) {} in update() argument 163 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 170 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks() 176 ScanDetail scanDetailToReturn = scanDetails.get(mNetworkIndexToReturn); in evaluateNetworks() 281 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in emptyScanResults() local 283 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in emptyScanResults() 311 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in verifyMinimumRssiThreshold() local 313 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyMinimumRssiThreshold() 342 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in verifyMinimumTimeGapWhenConnected() local 344 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyMinimumTimeGapWhenConnected() [all …]
|
D | CarrierNetworkEvaluatorTest.java | 220 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testSelectOneFromMultiple() local 222 configureNewSsid(CARRIER1_NET_ID, scanDetails.get(0), true, false); in testSelectOneFromMultiple() 223 configureNewSsid(CARRIER2_NET_ID, scanDetails.get(1), true, false); in testSelectOneFromMultiple() 224 configureNewSsid(CARRIER_SAVED_NET_ID, scanDetails.get(2), false, true); in testSelectOneFromMultiple() 225 configureNewSsid(CARRIER_SAVED_EPH_NET_ID, scanDetails.get(3), true, false); in testSelectOneFromMultiple() 226 configureNewSsid(NON_CARRIER_NET_ID, scanDetails.get(4), false, true); in testSelectOneFromMultiple() 228 WifiConfiguration selected = mDut.evaluateNetworks(scanDetails, null, null, false, false, in testSelectOneFromMultiple() 281 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testSelectFromNoneAvailable() local 283 configureNewSsid(NON_CARRIER_NET_ID, scanDetails.get(0), false, true); in testSelectFromNoneAvailable() 285 WifiConfiguration selected = mDut.evaluateNetworks(scanDetails, null, null, false, false, in testSelectFromNoneAvailable() [all …]
|
D | WifiNetworkSelectorTestUtil.java | 56 ScanDetailsAndWifiConfigs(List<ScanDetail> scanDetails, WifiConfiguration[] configs) { in ScanDetailsAndWifiConfigs() argument 57 mScanDetails = scanDetails; in ScanDetailsAndWifiConfigs() 87 List<ScanDetail> scanDetails = buildScanDetails(ssids, bssids, freqs, caps, levels, clock); in setupScanDetailsAndConfigStore() local 89 checkConsistencyOfScanDetailsAndWifiConfigs(scanDetails, savedConfigs); in setupScanDetailsAndConfigStore() 91 scanResultLinkConfiguration(wifiConfigManager, savedConfigs, scanDetails); in setupScanDetailsAndConfigStore() 93 return new ScanDetailsAndWifiConfigs(scanDetails, savedConfigs); in setupScanDetailsAndConfigStore() 97 List<ScanDetail> scanDetails, in checkConsistencyOfScanDetailsAndWifiConfigs() argument 99 assertEquals(scanDetails.size(), savedConfigs.length); in checkConsistencyOfScanDetailsAndWifiConfigs() 101 ScanResult scanResult = scanDetails.get(i).getScanResult(); in checkConsistencyOfScanDetailsAndWifiConfigs() 304 WifiConfiguration[] configs, List<ScanDetail> scanDetails) { in scanResultLinkConfiguration() argument [all …]
|
D | ScanResults.java | 43 private ScanResults(ArrayList<ScanDetail> scanDetails, ScanData scanData, in ScanResults() argument 45 mScanDetails.addAll(scanDetails); in ScanResults() 55 ArrayList<ScanDetail> scanDetails = new ArrayList<>(); in merge() local 59 scanDetails.addAll(other.getScanDetailArrayList()); in merge() 65 return new ScanResults(scanDetails, new ScanData(id, 0, 0, bandScanned, scanDataResults in merge()
|
D | WifiConnectivityManagerTest.java | 2033 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo, 2036 capturedScanDetails.addAll(scanDetails); 2089 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo, 2092 capturedScanDetails.addAll(scanDetails);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 171 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithNoMatch() local 176 scanDetails, null, null, false, false, mOnConnectableListener)); in evaluateScansWithNoMatch() 193 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {scanDetail}); in evaulateScansWithNoInterworkingAP() local 195 scanDetails, null, null, false, false, mOnConnectableListener)); in evaulateScansWithNoInterworkingAP() 209 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithNetworkMatchingHomeProvider() local 224 assertNotNull(mEvaluator.evaluateNetworks(scanDetails, null, null, false, in evaluateScansWithNetworkMatchingHomeProvider() 252 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithNetworkMatchingRoamingProvider() local 267 assertNotNull(mEvaluator.evaluateNetworks(scanDetails, null, null, false, in evaluateScansWithNetworkMatchingRoamingProvider() 295 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork() local 312 assertNotNull(mEvaluator.evaluateNetworks(scanDetails, null, null, false, in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork() [all …]
|
D | PasspointManagerTest.java | 1734 List<ScanDetail> scanDetails = new ArrayList<>(); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch() local 1735 scanDetails.add(generateScanDetail(TEST_SSID, TEST_BSSID_STRING, TEST_HESSID, in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch() 1757 passpointManager.findEapMethodFromNAIRealmMatchedWithCarrier(scanDetails)); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch() 1778 List<ScanDetail> scanDetails = new ArrayList<>(); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch() local 1779 scanDetails.add(generateScanDetail(TEST_SSID, TEST_BSSID_STRING, 0, 0, false)); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch() 1787 passpointManager.findEapMethodFromNAIRealmMatchedWithCarrier(scanDetails)); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkSelector.java | 173 void update(List<ScanDetail> scanDetails); in update() argument 193 WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 221 private boolean isCurrentNetworkSufficient(WifiInfo wifiInfo, List<ScanDetail> scanDetails) { in isCurrentNetworkSufficient() argument 269 if (is5GHzNetworkAvailable(scanDetails)) { in isCurrentNetworkSufficient() 295 private boolean is5GHzNetworkAvailable(List<ScanDetail> scanDetails) { in is5GHzNetworkAvailable() argument 296 for (ScanDetail detail : scanDetails) { in is5GHzNetworkAvailable() 303 private boolean isNetworkSelectionNeeded(List<ScanDetail> scanDetails, WifiInfo wifiInfo, in isNetworkSelectionNeeded() argument 305 if (scanDetails.size() == 0) { in isNetworkSelectionNeeded() 329 if (isCurrentNetworkSufficient(wifiInfo, scanDetails)) { in isNetworkSelectionNeeded() 373 private List<ScanDetail> filterScanResults(List<ScanDetail> scanDetails, in filterScanResults() argument [all …]
|
D | ScoredNetworkEvaluator.java | 86 public void update(List<ScanDetail> scanDetails) { in update() argument 88 updateNetworkScoreCache(scanDetails); in update() 92 private void updateNetworkScoreCache(List<ScanDetail> scanDetails) { in updateNetworkScoreCache() argument 94 for (int i = 0; i < scanDetails.size(); i++) { in updateNetworkScoreCache() 95 ScanResult scanResult = scanDetails.get(i).getScanResult(); in updateNetworkScoreCache() 127 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 137 for (int i = 0; i < scanDetails.size(); i++) { in evaluateNetworks() 138 ScanDetail scanDetail = scanDetails.get(i); in evaluateNetworks()
|
D | NetworkSuggestionEvaluator.java | 73 public void update(List<ScanDetail> scanDetails) { in update() argument 78 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 83 for (int i = 0; i < scanDetails.size(); i++) { in evaluateNetworks() 84 ScanDetail scanDetail = scanDetails.get(i); in evaluateNetworks()
|
D | CarrierNetworkEvaluator.java | 84 public void update(List<ScanDetail> scanDetails) { in update() argument 89 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 98 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks()
|
D | SavedNetworkEvaluator.java | 110 public void update(List<ScanDetail> scanDetails) { } in update() argument 186 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 195 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks()
|
D | WifiConnectivityManager.java | 264 private boolean handleScanResults(List<ScanDetail> scanDetails, String listenerName) { in handleScanResults() argument 278 mNetworkSelector.selectNetwork(scanDetails, buildBssidBlacklist(), mWifiInfo, in handleScanResults() 283 mWifiMetrics.countScanResults(scanDetails); in handleScanResults()
|
D | WifiMetrics.java | 1751 public void countScanResults(List<ScanDetail> scanDetails) { in countScanResults() argument 1752 if (scanDetails == null) { in countScanResults() 1766 for (ScanDetail scanDetail : scanDetails) { in countScanResults() 2169 public void incrementAvailableNetworksHistograms(List<ScanDetail> scanDetails, in incrementAvailableNetworksHistograms() argument 2196 for (ScanDetail scanDetail : scanDetails) { in incrementAvailableNetworksHistograms()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 104 public void update(List<ScanDetail> scanDetails) {} in update() argument 107 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks() argument 113 List<ScanDetail> filteredScanDetails = scanDetails.stream() in evaluateNetworks()
|
D | PasspointManager.java | 459 public int findEapMethodFromNAIRealmMatchedWithCarrier(List<ScanDetail> scanDetails) { in findEapMethodFromNAIRealmMatchedWithCarrier() argument 463 if (scanDetails == null || scanDetails.isEmpty()) { in findEapMethodFromNAIRealmMatchedWithCarrier() 478 for (ScanDetail scanDetail : scanDetails) { in findEapMethodFromNAIRealmMatchedWithCarrier()
|