Home
last modified time | relevance | path

Searched refs:ScanDetail (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetailCache.java40 private final HashMap<String, ScanDetail> mMap;
60 void put(ScanDetail scanDetail) { in put()
76 ScanDetail scanDetail = getScanDetail(bssid); in getScanResult()
86 public ScanDetail getScanDetail(@NonNull String bssid) { in getScanDetail()
106 Collection<ScanDetail> values() { in values()
119 ArrayList<ScanDetail> list = new ArrayList<ScanDetail>(mMap.values()); in trim()
124 ScanDetail a = (ScanDetail) o1; in trim()
125 ScanDetail b = (ScanDetail) o2; in trim()
138 ScanDetail result = list.get(i); in trim()
144 private ArrayList<ScanDetail> sort() { in sort()
[all …]
DWifiNetworkSelector.java109 private final List<Pair<ScanDetail, WifiConfiguration>> mConnectableNetworks =
111 private List<ScanDetail> mFilteredNetworks = new ArrayList<>();
173 void update(List<ScanDetail> scanDetails); in update()
193 WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks()
209 void onConnectable(ScanDetail scanDetail, WifiConfiguration config, int score); in onConnectable()
221 private boolean isCurrentNetworkSufficient(WifiInfo wifiInfo, List<ScanDetail> scanDetails) { in isCurrentNetworkSufficient()
295 private boolean is5GHzNetworkAvailable(List<ScanDetail> scanDetails) { in is5GHzNetworkAvailable()
296 for (ScanDetail detail : scanDetails) { in is5GHzNetworkAvailable()
303 private boolean isNetworkSelectionNeeded(List<ScanDetail> scanDetails, WifiInfo wifiInfo, in isNetworkSelectionNeeded()
373 private List<ScanDetail> filterScanResults(List<ScanDetail> scanDetails, in filterScanResults()
[all …]
DNetworkSuggestionEvaluator.java73 public void update(List<ScanDetail> scanDetails) { in update()
78 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks()
84 ScanDetail scanDetail = scanDetails.get(i); in evaluateNetworks()
171 public final ScanDetail matchingScanDetail;
176 @NonNull ScanDetail matchingScanDetail) { in PerNetworkSuggestionMatchMetaInfo()
191 ScanDetail matchingScanDetail) { in put()
232 ScanDetail matchingScanDetail) { in putAll()
DWifiCandidates.java58 @Nullable ScanDetail getScanDetail(); in getScanDetail()
125 public final ScanDetail scanDetail;
137 ScanDetail scanDetail, in CandidateImpl()
167 public ScanDetail getScanDetail() { in getScanDetail()
347 public boolean add(ScanDetail scanDetail, in add()
389 public boolean add(ScanDetail scanDetail, in add()
DScanDetail.java37 public class ScanDetail { class
42 public ScanDetail(NetworkDetail networkDetail, WifiSsid wifiSsid, String bssid, in ScanDetail() method in ScanDetail
64 public ScanDetail(WifiSsid wifiSsid, String bssid, String caps, int level, int frequency, in ScanDetail() method in ScanDetail
76 public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail) { in ScanDetail() method in ScanDetail
DScoredNetworkEvaluator.java86 public void update(List<ScanDetail> scanDetails) { in update()
92 private void updateNetworkScoreCache(List<ScanDetail> scanDetails) { in updateNetworkScoreCache()
127 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks()
138 ScanDetail scanDetail = scanDetails.get(i); in evaluateNetworks()
202 private ScanDetail mScanDetailCandidate;
225 void trackUntrustedCandidate(ScanDetail scanDetail) { in trackUntrustedCandidate()
DCarrierNetworkEvaluator.java84 public void update(List<ScanDetail> scanDetails) { in update()
89 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks()
98 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java49 import com.android.server.wifi.ScanDetail;
131 private static ScanDetail generateScanDetail(String ssid, String bssid) { in generateScanDetail()
136 ScanDetail scanDetail = mock(ScanDetail.class); in generateScanDetail()
171 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithNoMatch()
190 ScanDetail scanDetail = mock(ScanDetail.class); in evaulateScansWithNoInterworkingAP()
193 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {scanDetail}); in evaulateScansWithNoInterworkingAP()
209 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithNetworkMatchingHomeProvider()
241 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider()
252 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] { in evaluateScansWithNetworkMatchingRoamingProvider()
284 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingRoamingProvider()
[all …]
DPasspointNetworkScoreTest.java27 import com.android.server.wifi.ScanDetail;
315 private static ScanDetail generateScanDetail(int rssiLevel, boolean internetAccess, in generateScanDetail()
327 ScanDetail scanDetail = mock(ScanDetail.class); in generateScanDetail()
342 ScanDetail scanDetail = generateScanDetail(data.rssiLevel, data.internetAccess, in calculateScore()
363 ScanDetail scanDetail = generateScanDetail(data.rssiLevel, data.internetAccess, in calculatorScoreWithUnSupportedNetworkType()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionEvaluatorTest.java94 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForNoMatch()
101 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForNoMatch()
104 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForNoMatch()
132 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForOneMatch()
141 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForOneMatch()
144 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForOneMatch()
177 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForMultipleMatch()
187 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForMultipleMatch()
190 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForMultipleMatch()
224 ScanDetail[] scanDetails = in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
[all …]
DScanResults.java38 private final ArrayList<ScanDetail> mScanDetails = new ArrayList<>();
43 private ScanResults(ArrayList<ScanDetail> scanDetails, ScanData scanData, in ScanResults()
55 ArrayList<ScanDetail> scanDetails = new ArrayList<>(); in merge()
100 private static ScanDetail[] generateNativeResults(boolean needIE, int seed, int... freqs) { in generateNativeResults()
101 ScanDetail[] results = new ScanDetail[freqs.length]; in generateNativeResults()
119 ScanDetail detail = new ScanDetail(nd, WifiSsid.createFromAsciiEncoded(ssid), in generateNativeResults()
132 public static ScanDetail[] generateNativeResults(int seed, int... freqs) { in generateNativeResults()
145 ScanDetail... nativeResults) { in create()
155 ScanDetail... nativeResults) { in createOverflowing()
159 private ScanResults(int id, int bandScanned, int maxResults, ScanDetail... nativeResults) { in ScanResults()
[all …]
DScanResultMatchInfoTest.java42 ScanDetail scan = createScanDetailForNetwork(conf, "AA:AA:AA:AA:AA:AA"); in testScanResultMatchesWifiConfiguration()
60 ScanDetail scan1 = createScanDetailForNetwork(conf, "AA:AA:AA:AA:AA:AA"); in testDifferentBssidScanResultsMatch()
61 ScanDetail scan2 = createScanDetailForNetwork(conf, "BB:BB:BB:BB:BB:BB"); in testDifferentBssidScanResultsMatch()
79 ScanDetail scanOpen1 = createScanDetailForNetwork(open1, "AA:AA:AA:AA:AA:AA"); in testDifferentNetworkScanResultsDontMatch()
80 ScanDetail scanOpen2 = createScanDetailForNetwork(open2, "BB:BB:BB:BB:BB:BB"); in testDifferentNetworkScanResultsDontMatch()
81 ScanDetail scanPsk = createScanDetailForNetwork(psk, "CC:CC:CC:CC:CC:CC"); in testDifferentNetworkScanResultsDontMatch()
96 ScanDetail scanDetail = createScanDetailForWpa2Wpa3TransitionModeNetwork(wifiConfiguration, in testEqualityRulesForTransitionMode()
129 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration, in testEqualityRulesForPsk()
163 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration, in testEqualityRulesForSae()
198 ScanDetail scanDetail = createScanDetailForWpa2Wpa3TransitionModeNetwork( in testHashForTransitionMode()
[all …]
DWifiNetworkSelectorTestUtil.java53 List<ScanDetail> mScanDetails;
56 ScanDetailsAndWifiConfigs(List<ScanDetail> scanDetails, WifiConfiguration[] configs) { in ScanDetailsAndWifiConfigs()
61 List<ScanDetail> getScanDetails() { in getScanDetails()
87 List<ScanDetail> scanDetails = buildScanDetails(ssids, bssids, freqs, caps, levels, clock); in setupScanDetailsAndConfigStore()
97 List<ScanDetail> scanDetails, in checkConsistencyOfScanDetailsAndWifiConfigs()
134 public static List<ScanDetail> buildScanDetails(String[] ssids, String[] bssids, int[] freqs, in buildScanDetails()
136 List<ScanDetail> scanDetailList = new ArrayList<ScanDetail>(); in buildScanDetails()
141 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromByteArray(ssid), in buildScanDetails()
304 WifiConfiguration[] configs, List<ScanDetail> scanDetails) { in scanResultLinkConfiguration()
311 ScanDetail scanDetail = scanDetails.get(i); in scanResultLinkConfiguration()
[all …]
DWifiNetworkSelectorTest.java146 public void update(List<ScanDetail> scanDetails) {} in update()
163 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks()
170 for (ScanDetail scanDetail : scanDetails) { in evaluateNetworks()
176 ScanDetail scanDetailToReturn = scanDetails.get(mNetworkIndexToReturn); in evaluateNetworks()
281 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in emptyScanResults()
311 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in verifyMinimumRssiThreshold()
342 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in verifyMinimumTimeGapWhenConnected()
381 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in verifyNoMinimumTimeGapWhenDisconnected()
423 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in openNetworkIsNotSufficient()
471 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in lowRssi5GNetworkIsNotSufficient()
[all …]
DWifiLastResortWatchdogTest.java92 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates()
95 List<Pair<ScanDetail, WifiConfiguration>> candidates = new ArrayList<>(); in createFilteredQnsCandidates()
99 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in createFilteredQnsCandidates()
115 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates()
118 List<Pair<ScanDetail, WifiConfiguration>> candidates = in createFilteredQnsCandidates()
119 new ArrayList<Pair<ScanDetail, WifiConfiguration>>(); in createFilteredQnsCandidates()
123 ScanDetail scanDetail = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssid), in createFilteredQnsCandidates()
160 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids, in testAvailableNetworkBuffering_ageCullingWorks()
200 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids, in testAvailableNetworkBuffering_emptyBufferWithEmptyScanResults()
229 List<Pair<ScanDetail, WifiConfiguration>> candidates; in testAvailableNetworkBuffering_addNewNetworksOverTime()
[all …]
DScoredNetworkEvaluatorTest.java155 mScoredNetworkEvaluator.update(new ArrayList<ScanDetail>()); in testUpdate_emptyScanList()
198 List<ScanDetail> scoredScanDetails = scanDetailsAndConfigs.getScanDetails().subList(0, 1); in testUpdate_oneScored_oneUnscored()
289 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails( in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
299 when(mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(any(ScanDetail.class))) in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
334 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails( in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
340 when(mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(any(ScanDetail.class))) in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
377 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails( in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
383 when(mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(any(ScanDetail.class))) in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
419 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails( in testEvaluateNetworks_noEphemeralNetworkWhenUntrustedNetworksNotAllowed()
425 when(mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(any(ScanDetail.class))) in testEvaluateNetworks_noEphemeralNetworkWhenUntrustedNetworksNotAllowed()
[all …]
DCarrierNetworkEvaluatorTest.java86 private ArgumentCaptor<ScanDetail> mScanDetailCaptor = ArgumentCaptor.forClass(
87 ScanDetail.class);
94 public void addConfig(ScanDetail scanDetail, WifiConfiguration config) { in addConfig()
100 ScanDetail scanDetail = invocation.getArgument(0); in answer()
132 private WifiConfiguration configureNewSsid(int networkId, ScanDetail scanDetail, in configureNewSsid()
220 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testSelectOneFromMultiple()
281 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testSelectFromNoneAvailable()
310 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testNoCarrierCert()
343 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testAvailableButPreviouslyUserDeleted()
369 List<ScanDetail> scanDetails = WifiNetworkSelectorTestUtil.buildScanDetails(ssids, bssids, in testAvailableButBlacklisted()
[all …]
DSavedNetworkEvaluatorTest.java170 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in ignoreNetworksIfUseExternalScores()
197 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in ignoreEphemeralNetworks()
226 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in setCandidateScanResultsForAllSavedNetworks()
265 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in chooseStrongerRssi2GNetwork()
293 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in chooseStrongerRssi5GNetwork()
320 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in chooseSecureNetworkOverOpenNetwork()
347 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in choose5GNetworkOver2GNetwork()
376 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in stickToCurrentNetwork()
409 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in stickToCurrentBSSID()
449 List<ScanDetail> scanDetails = scanDetailsAndConfigs.getScanDetails(); in currentBssidAwardForAllBssidsWithinTheSameNetworkWhenFirmwareRoamingSupported()
[all …]
DConcreteCandidate.java25 private ScanDetail mScanDetail;
77 public ConcreteCandidate setScanDetail(ScanDetail scanDetail) { in setScanDetail()
83 public ScanDetail getScanDetail() { in getScanDetail()
DCarrierNetworkNotifierTest.java94 private List<ScanDetail> mCarrierNetworks;
116 mCarrierNetworks.add(new ScanDetail(mDummyNetwork, null /* networkDetail */)); in setUp()
314 mCarrierNetworks.add(new ScanDetail(newNetwork, null /* networkDetail */)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
400 List<ScanDetail> scanResults = mCarrierNetworks; in userDismissedNotification_shouldBlacklistNetwork()
426 List<ScanDetail> scanResults = mCarrierNetworks; in userConnectedNotification_shouldBlacklistNetwork()
735 private List<ScanDetail> createCarrierScanResults(String... ssids) { in createCarrierScanResults()
736 List<ScanDetail> scanResults = new ArrayList<>(); in createCarrierScanResults()
741 scanResults.add(new ScanDetail(scanResult, null /* networkDetail */)); in createCarrierScanResults()
749 List<ScanDetail> scanResults = createCarrierScanResults(TEST_SSID_1); in onlyNetworkIsRecommended()
760 List<ScanDetail> scanResults = createCarrierScanResults(TEST_SSID_1, TEST_SSID_2); in networkWithHighestRssiIsRecommended()
[all …]
DOpenNetworkNotifierTest.java94 private List<ScanDetail> mOpenNetworks;
115 mOpenNetworks.add(new ScanDetail(mDummyNetwork, null /* networkDetail */)); in setUp()
313 mOpenNetworks.add(new ScanDetail(newNetwork, null /* networkDetail */)); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
397 List<ScanDetail> scanResults = mOpenNetworks; in userDismissedNotification_shouldBlacklistNetwork()
423 List<ScanDetail> scanResults = mOpenNetworks; in userConnectedNotification_shouldBlacklistNetwork()
729 private List<ScanDetail> createOpenScanResults(String... ssids) { in createOpenScanResults()
730 List<ScanDetail> scanResults = new ArrayList<>(); in createOpenScanResults()
735 scanResults.add(new ScanDetail(scanResult, null /* networkDetail */)); in createOpenScanResults()
743 List<ScanDetail> scanResults = createOpenScanResults(TEST_SSID_1); in onlyNetworkIsRecommended()
754 List<ScanDetail> scanResults = createOpenScanResults(TEST_SSID_1, TEST_SSID_2); in networkWithHighestRssiIsRecommended()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java34 import com.android.server.wifi.ScanDetail;
64 ScanDetail scanDetail) { in PasspointNetworkCandidate()
71 ScanDetail mScanDetail;
104 public void update(List<ScanDetail> scanDetails) {} in update()
107 public WifiConfiguration evaluateNetworks(List<ScanDetail> scanDetails, in evaluateNetworks()
113 List<ScanDetail> filteredScanDetails = scanDetails.stream() in evaluateNetworks()
131 for (ScanDetail scanDetail : filteredScanDetails) { in evaluateNetworks()
184 private void createEphemeralProfileForMatchingAp(List<ScanDetail> filteredScanDetails) { in createEphemeralProfileForMatchingAp()
271 ScanDetail scanDetail = candidate.mScanDetail; in findBestNetwork()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java28 import com.android.server.wifi.ScanDetail;
52 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResult()
69 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResultWithAnqpLines()
83 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResultWithoutWifiSsid()
202 private static void validateScanDetail(ScanResult input, ScanDetail output) { in validateScanDetail()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java24 import com.android.server.wifi.ScanDetail;
43 public static ScanDetail toScanDetail(ScanResult scanResult) { in toScanDetail()
46 return new ScanDetail(scanResult, networkDetail); in toScanDetail()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DBaseWifiScannerImplTest.java40 import com.android.server.wifi.ScanDetail;
420 ArrayList<ScanDetail> rawResults = new ArrayList<>(Arrays.asList( in singleScanWhereSupplicantReturnsSomeOldResults()
421 new ScanDetail(WifiSsid.createFromAsciiEncoded("TEST AP 1"), in singleScanWhereSupplicantReturnsSomeOldResults()
424 new ScanDetail(WifiSsid.createFromAsciiEncoded("TEST AP 2"), in singleScanWhereSupplicantReturnsSomeOldResults()
427 new ScanDetail(WifiSsid.createFromAsciiEncoded("TEST AP 3"), in singleScanWhereSupplicantReturnsSomeOldResults()
430 new ScanDetail(WifiSsid.createFromAsciiEncoded("TEST AP 4"), in singleScanWhereSupplicantReturnsSomeOldResults()
435 for (ScanDetail detail : rawResults) { in singleScanWhereSupplicantReturnsSomeOldResults()

12