Home
last modified time | relevance | path

Searched refs:ssids (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java91 public static ScanDetailsAndWifiConfigs setupScanDetailsAndConfigStore(String[] ssids, in setupScanDetailsAndConfigStore() argument
94 List<ScanDetail> scanDetails = buildScanDetails(ssids, bssids, freqs, caps, levels, clock); in setupScanDetailsAndConfigStore()
96 WifiConfiguration[] savedConfigs = generateWifiConfigurations(ssids, securities); in setupScanDetailsAndConfigStore()
103 public static ScanDetailsAndWifiConfigs setupScanDetailsAndConfigStore(String[] ssids, in setupScanDetailsAndConfigStore() argument
112 List<ScanDetail> scanDetails = buildScanDetailsWithNetworkDetails(ssids, bssids, freqs, in setupScanDetailsAndConfigStore()
115 WifiConfiguration[] savedConfigs = generateWifiConfigurations(ssids, securities); in setupScanDetailsAndConfigStore()
135 String[] ssids, in setupScanDetailsAndConfigForEapSimNetwork() argument
138 assertNotNull(ssids); in setupScanDetailsAndConfigForEapSimNetwork()
139 String[] caps = new String[ssids.length]; in setupScanDetailsAndConfigForEapSimNetwork()
140 for (int i = 0; i < ssids.length; i++) { in setupScanDetailsAndConfigForEapSimNetwork()
[all …]
DWifiLastResortWatchdogTest.java114 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates() argument
119 for (int index = 0; index < ssids.length; index++) { in createFilteredQnsCandidates()
120 String ssid = ssids[index].replaceAll("^\"+", "").replaceAll("\"+$", ""); in createFilteredQnsCandidates()
137 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates() argument
143 for (int index = 0; index < ssids.length; index++) { in createFilteredQnsCandidates()
144 String ssid = ssids[index].replaceAll("^\"+", "").replaceAll("\"+$", ""); in createFilteredQnsCandidates()
510 String[] ssids = {"\"test1\"", "\"test2\"", "\"test1\"", "\"test4\""}; in testFailureCounting_countFailuresForAnyBssid() local
515 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(ssids, in testFailureCounting_countFailuresForAnyBssid()
520 for (int i = 0; i < ssids.length; i++) { in testFailureCounting_countFailuresForAnyBssid()
528 ssids[0], WifiLastResortWatchdog.BSSID_ANY, in testFailureCounting_countFailuresForAnyBssid()
[all …]
DScoredNetworkNominatorTest.java145 String[] ssids = {"\"test1\""}; in testUpdate_recommendationsDisabled() local
154 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled()
169 String[] ssids = {"\"test1\""}; in testUpdate_emptyScanList() local
178 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList()
187 String[] ssids = {"\"test1\"", "\"test2\""}; in testUpdate_allNetworksUnscored() local
196 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored()
214 String[] ssids = {"\"test1\"", "\"test2\""}; in testUpdate_oneScored_oneUnscored() local
223 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored()
259 String[] ssids = {"\"test1\"", "\"test2\""}; in testUpdate_externalScorerNotPermittedToSeeScanResults() local
271 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResults()
[all …]
DWifiNetworkSelectorTest.java362 String[] ssids = new String[0]; in emptyScanResults() local
370 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in emptyScanResults()
395 String[] ssids = {"\"test1\"", "\"test2\""}; in verifyMinimumRssiThreshold() local
403 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in verifyMinimumRssiThreshold()
428 String[] ssids = {"\"test1\"", "\"test2\""}; in verifyMinimumTimeGapWhenConnected() local
437 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in verifyMinimumTimeGapWhenConnected()
476 String[] ssids = {"\"test1\"", "\"test2\""}; in verifyNoMinimumTimeGapWhenDisconnected() local
485 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in verifyNoMinimumTimeGapWhenDisconnected()
525 String[] ssids = {"\"test1\""}; in lowRssi5GNetworkIsNotSufficient() local
533 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in lowRssi5GNetworkIsNotSufficient()
[all …]
DSavedNetworkNominatorTest.java121 String[] ssids = {"\"test1\"", "\"test2\""}; in ignoreNetworksIfUseExternalScores() local
129 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in ignoreNetworksIfUseExternalScores()
148 String[] ssids = {"\"test1\""}; in ignoreNetworkIfSimIsAbsentForEapSimNetwork() local
154 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigForEapSimNetwork(ssids, bssids, in ignoreNetworkIfSimIsAbsentForEapSimNetwork()
174 String[] ssids = {"\"test1\"", "\"test2\""}; in ignoreEphemeralNetworks() local
182 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in ignoreEphemeralNetworks()
202 String[] ssids = {"\"test1\"", "\"test2\""}; in ignoreNetworksIfAutojoinNotAllowed() local
210 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in ignoreNetworksIfAutojoinNotAllowed()
234 String[] ssids = {"\"test1\"", "\"test2\""}; in returnNoCandidateIfNoNetworksAllowAutojoin() local
242 WifiNetworkSelectorTestUtil.setupScanDetailsAndConfigStore(ssids, bssids, in returnNoCandidateIfNoNetworksAllowAutojoin()
[all …]
DNetworkSuggestionNominatorTest.java1629 private static ScanDetail[] buildScanDetails(String[] ssids, String[] bssids, int[] freqs, in buildScanDetails() argument
1631 if (ssids == null || ssids.length == 0) return new ScanDetail[0]; in buildScanDetails()
1633 ScanDetail[] scanDetails = new ScanDetail[ssids.length]; in buildScanDetails()
1635 for (int index = 0; index < ssids.length; index++) { in buildScanDetails()
1636 scanDetails[index] = new ScanDetail(WifiSsid.createFromAsciiEncoded(ssids[index]), in buildScanDetails()
1646 private static WifiConfiguration[] buildWifiConfigurations(String[] ssids, int[] securities) { in buildWifiConfigurations() argument
1647 if (ssids == null || ssids.length == 0) return new WifiConfiguration[0]; in buildWifiConfigurations()
1649 WifiConfiguration[] configs = new WifiConfiguration[ssids.length]; in buildWifiConfigurations()
1650 for (int index = 0; index < ssids.length; index++) { in buildWifiConfigurations()
1651 configs[index] = generateWifiConfig(-1, 0, ssids[index], false, true, null, in buildWifiConfigurations()
[all …]
DOpenNetworkNotifierTest.java739 private List<ScanDetail> createOpenScanResults(String... ssids) { in createOpenScanResults() argument
741 for (String ssid : ssids) { in createOpenScanResults()
DWifiNetworkFactoryTest.java3647 private void setupScanDataSameSsidWithDiffBssid(int scanResultType, int nums, String[] ssids) { in setupScanDataSameSsidWithDiffBssid() argument
3649 int[] freq = new int[nums * ssids.length]; in setupScanDataSameSsidWithDiffBssid()
3656 assertEquals(nums * ssids.length, scanResults.length); in setupScanDataSameSsidWithDiffBssid()
3658 for (int i = 0; i < ssids.length; i++) { in setupScanDataSameSsidWithDiffBssid()
3660 scanResults[j].SSID = ssids[i]; in setupScanDataSameSsidWithDiffBssid()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBlocklistMonitor.java592 private int getNumBlockedBssidsForSsids(@NonNull Set<String> ssids) { in getNumBlockedBssidsForSsids() argument
593 if (ssids.isEmpty()) { in getNumBlockedBssidsForSsids()
597 .filter(entry -> entry.isInBlocklist && ssids.contains(entry.ssid)) in getNumBlockedBssidsForSsids()
608 public Set<String> updateAndGetBssidBlocklistForSsids(@NonNull Set<String> ssids) { in updateAndGetBssidBlocklistForSsids() argument
609 int numBefore = getNumBlockedBssidsForSsids(ssids); in updateAndGetBssidBlocklistForSsids()
611 if (getNumBlockedBssidsForSsids(ssids) != numBefore) { in updateAndGetBssidBlocklistForSsids()
612 updateFirmwareRoamingConfiguration(ssids); in updateAndGetBssidBlocklistForSsids()
701 public void updateFirmwareRoamingConfiguration(@NonNull Set<String> ssids) { in updateFirmwareRoamingConfiguration() argument
706 .filter(entry -> ssids.contains(entry.ssid)) in updateFirmwareRoamingConfiguration()
725 for (String ssid : ssids) { in updateFirmwareRoamingConfiguration()
DWifiMetrics.java3412 Set<ScanResultMatchInfo> ssids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() local
3486 ssids.add(matchInfo); in incrementAvailableNetworksHistograms()
3515 incrementTotalScanSsids(mTotalSsidsInScanHistogram, ssids.size()); in incrementAvailableNetworksHistograms()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DNetworkPolicyTestUtils.java261 final List<String> ssids = new ArrayList<>(); in getWifiConfiguration() local
266 ssids.add(config.SSID); in getWifiConfiguration()
269 + ", all=" + Arrays.toString(ssids.toArray())); in getWifiConfiguration()
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto281 // Histogram counting instances of scans with N many ScanResults with unique ssids
287 // Histogram counting instances of scans with N many unique open ssids
293 // Histogram counting instances of scans with N many unique ssids for saved networks