Home
last modified time | relevance | path

Searched refs:ScanResultMatchInfo (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java43 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
44 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
48 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
49 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
63 assertEquals(ScanResultMatchInfo.fromScanResult(scan1.getScanResult()), in testDifferentBssidScanResultsMatch()
64 ScanResultMatchInfo.fromScanResult(scan2.getScanResult())); in testDifferentBssidScanResultsMatch()
82 assertTrue(ScanResultMatchInfo.fromScanResult(scanOpen1.getScanResult()) in testDifferentNetworkScanResultsDontMatch()
83 != ScanResultMatchInfo.fromScanResult(scanOpen2.getScanResult())); in testDifferentNetworkScanResultsDontMatch()
84 assertTrue(ScanResultMatchInfo.fromScanResult(scanOpen1.getScanResult()) in testDifferentNetworkScanResultsDontMatch()
85 != ScanResultMatchInfo.fromScanResult(scanPsk.getScanResult())); in testDifferentNetworkScanResultsDontMatch()
[all …]
DWakeupLockTest.java51 private ScanResultMatchInfo mNetwork1;
52 private ScanResultMatchInfo mNetwork2;
64 mNetwork1 = new ScanResultMatchInfo(); in setUp()
68 mNetwork2 = new ScanResultMatchInfo(); in setUp()
81 private void updateEnoughTimesToEvictWithAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithAsserts()
94 private void updateEnoughTimesToEvictWithoutAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithoutAsserts()
106 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByScans()
129 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByTimeout()
142 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in addToLockSavesToStore()
197 List<ScanResultMatchInfo> lockedNetworks = Collections.singletonList(mNetwork1); in updateWithLockedNetworkShouldResetRequiredNumberOfScans()
[all …]
DWakeupConfigStoreDataTest.java58 @Mock private WakeupConfigStoreData.DataSource<Set<ScanResultMatchInfo>> mNetworkDataSource;
103 Set<ScanResultMatchInfo> networks = Collections.emptySet(); in deserializeSerializedData_emptySet()
127 ScanResultMatchInfo network1 = new ScanResultMatchInfo(); in deserializeSerializedData()
131 ScanResultMatchInfo network2 = new ScanResultMatchInfo(); in deserializeSerializedData()
135 ScanResultMatchInfo network3 = new ScanResultMatchInfo(); in deserializeSerializedData()
139 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData()
DWakeupControllerTest.java348 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithSavedScanResults()
349 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults()
386 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithNetworkSuggestions()
387 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions()
429 Set<ScanResultMatchInfo> expectedMatchInfos = new HashSet<ScanResultMatchInfo>() {{ in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
430 add(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
431 add(ScanResultMatchInfo.fromScanResult(suggestionScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
467 Set<ScanResultMatchInfo> expectedMatchInfos = in startFiltersOutDfsScanResults()
468 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults()
500 ScanResultMatchInfo expectedMatchInfo = ScanResultMatchInfo.fromScanResult(mTestScanResult); in onResultsUpdatesWakeupLockForSavedNetworks()
[all …]
DWakeupEvaluatorTest.java68 private Set<ScanResultMatchInfo> getSavedNetworks() { in getSavedNetworks()
69 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in getSavedNetworks()
70 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
73 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
DWifiCandidatesTest.java134 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence()
135 ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence()
136 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2); in testKeyEquivalence()
DWifiNetworkSelectorTestUtil.java104 ScanResultMatchInfo.fromScanResult(scanResult), in checkConsistencyOfScanDetailsAndWifiConfigs()
105 ScanResultMatchInfo.fromWifiConfiguration(config)); in checkConsistencyOfScanDetailsAndWifiConfigs()
DCarrierNetworkEvaluatorTest.java137 assertEquals(ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()), in configureNewSsid()
138 ScanResultMatchInfo.fromWifiConfiguration(newConfig)); in configureNewSsid()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupLock.java47 private final Map<ScanResultMatchInfo, Integer> mLockedNetworks = new ArrayMap<>();
70 public void setLock(Collection<ScanResultMatchInfo> scanResultList) { in setLock()
76 for (ScanResultMatchInfo scanResultMatchInfo : scanResultList) { in setLock()
148 private void addToLock(Collection<ScanResultMatchInfo> networkList) { in addToLock()
155 for (ScanResultMatchInfo network : networkList) { in addToLock()
179 private void removeFromLock(Collection<ScanResultMatchInfo> networkList) { in removeFromLock()
185 Iterator<Map.Entry<ScanResultMatchInfo, Integer>> it = in removeFromLock()
188 Map.Entry<ScanResultMatchInfo, Integer> entry = it.next(); in removeFromLock()
230 public void update(Collection<ScanResultMatchInfo> networkList) { in update()
256 public WakeupConfigStoreData.DataSource<Set<ScanResultMatchInfo>> getDataSource() { in getDataSource()
[all …]
DScanResultMatchInfo.java28 public class ScanResultMatchInfo { class
71 public static ScanResultMatchInfo fromWifiConfiguration(WifiConfiguration config) { in fromWifiConfiguration()
72 ScanResultMatchInfo info = new ScanResultMatchInfo(); in fromWifiConfiguration()
104 public static ScanResultMatchInfo fromScanResult(ScanResult scanResult) { in fromScanResult()
105 ScanResultMatchInfo info = new ScanResultMatchInfo(); in fromScanResult()
130 } else if (!(otherObj instanceof ScanResultMatchInfo)) { in equals()
133 ScanResultMatchInfo other = (ScanResultMatchInfo) otherObj; in equals()
DWakeupController.java127 private ScanResultMatchInfo mLastDisconnectInfo;
194 public void setLastDisconnectInfo(ScanResultMatchInfo scanResultMatchInfo) { in setLastDisconnectInfo()
247 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in start()
318 private Set<ScanResultMatchInfo> getGoodSavedNetworksAndSuggestions() { in getGoodSavedNetworksAndSuggestions()
322 Set<ScanResultMatchInfo> goodNetworks = new HashSet<>(savedNetworks.size()); in getGoodSavedNetworksAndSuggestions()
330 goodNetworks.add(ScanResultMatchInfo.fromWifiConfiguration(config)); in getGoodSavedNetworksAndSuggestions()
338 ScanResultMatchInfo.fromWifiConfiguration(suggestion.wifiConfiguration)); in getGoodSavedNetworksAndSuggestions()
378 Set<ScanResultMatchInfo> goodNetworks = getGoodSavedNetworksAndSuggestions(); in handleScanResults()
379 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in handleScanResults()
398 private static Set<ScanResultMatchInfo> toMatchInfos(Collection<ScanResult> scanResults) { in toMatchInfos()
[all …]
DWakeupConfigStoreData.java52 private final DataSource<Set<ScanResultMatchInfo>> mNetworkDataSource;
84 DataSource<Set<ScanResultMatchInfo>> networkDataSource) { in WakeupConfigStoreData()
104 for (ScanResultMatchInfo scanResultMatchInfo : mNetworkDataSource.getData()) { in serializeData()
136 private void writeNetwork(XmlSerializer out, ScanResultMatchInfo scanResultMatchInfo) in writeNetwork()
160 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in deserializeData()
226 private ScanResultMatchInfo parseNetwork(XmlPullParser in, int outerTagDepth) in parseNetwork()
228 ScanResultMatchInfo scanResultMatchInfo = new ScanResultMatchInfo(); in parseNetwork()
DConfigurationMap.java33 private final Map<ScanResultMatchInfo, WifiConfiguration>
51 ScanResultMatchInfo.fromWifiConfiguration(config), config); in put()
64 Iterator<Map.Entry<ScanResultMatchInfo, WifiConfiguration>> scanResultMatchInfoEntries = in remove()
126 ScanResultMatchInfo.fromScanResult(scanResult)); in getByScanResultForCurrentUser()
DWifiCandidates.java296 public final ScanResultMatchInfo matchInfo; // Contains the SSID and security type
300 public Key(ScanResultMatchInfo matchInfo, in Key()
362 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(config); in add()
363 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanResult); in add()
DWakeupEvaluator.java47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork()
54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
DWifiNetworkSuggestionsManager.java229 private final Map<ScanResultMatchInfo, Set<ExtendedWifiNetworkSuggestion>>
240 private final Map<Pair<ScanResultMatchInfo, MacAddress>, Set<ExtendedWifiNetworkSuggestion>>
442 ScanResultMatchInfo scanResultMatchInfo = in addToScanResultMatchInfoMap()
443 ScanResultMatchInfo.fromWifiConfiguration( in addToScanResultMatchInfoMap()
447 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in addToScanResultMatchInfoMap()
474 ScanResultMatchInfo scanResultMatchInfo = in removeFromScanResultMatchInfoMap()
475 ScanResultMatchInfo.fromWifiConfiguration( in removeFromScanResultMatchInfoMap()
479 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in removeFromScanResultMatchInfoMap()
909 @NonNull ScanResultMatchInfo scanResultMatchInfo, @Nullable MacAddress bssid) { in getNetworkSuggestionsForScanResultMatchInfo()
942 ScanResultMatchInfo scanResultMatchInfo = in getNetworkSuggestionsForScanDetail()
[all …]
DWifiNetworkFactory.java1105 if (ScanResultMatchInfo.getNetworkType(wns.wifiConfiguration) in doesScanResultMatchWifiNetworkSpecifier()
1106 != ScanResultMatchInfo.getNetworkType(scanResult)) { in doesScanResultMatchWifiNetworkSpecifier()
1240 ScanResultMatchInfo.fromScanResult(scanResult), in findBestBssidFromActiveMatchedScanResultsForNetwork()
1241 ScanResultMatchInfo.fromWifiConfiguration(network))) in findBestBssidFromActiveMatchedScanResultsForNetwork()
1263 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults()
1291 ScanResultMatchInfo fromWifiConfiguration = in addNetworkToUserApprovedAccessPointMap()
1292 ScanResultMatchInfo.fromWifiConfiguration(network); in addNetworkToUserApprovedAccessPointMap()
1294 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in addNetworkToUserApprovedAccessPointMap()
DWifiMetrics.java2180 Set<ScanResultMatchInfo> ssids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
2182 Set<ScanResultMatchInfo> openSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
2184 Set<ScanResultMatchInfo> savedSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
2205 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(scanResult); in incrementAvailableNetworksHistograms()
DClientModeImpl.java2992 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromWifiConfiguration(wifiConfig); in handleNetworkDisconnect()