Home
last modified time | relevance | path

Searched refs:ScanResultMatchInfo (Results 1 – 23 of 23) 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()
54 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
55 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
60 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
61 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
75 assertEquals(ScanResultMatchInfo.fromScanResult(scan1.getScanResult()), in testDifferentBssidScanResultsMatch()
76 ScanResultMatchInfo.fromScanResult(scan2.getScanResult())); in testDifferentBssidScanResultsMatch()
[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.java367 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithSavedScanResults()
368 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults()
405 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithNetworkSuggestions()
406 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions()
448 Set<ScanResultMatchInfo> expectedMatchInfos = new HashSet<ScanResultMatchInfo>() {{ in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
449 add(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
450 add(ScanResultMatchInfo.fromScanResult(suggestionScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
486 Set<ScanResultMatchInfo> expectedMatchInfos = in startFiltersOutDfsScanResults()
487 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults()
519 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.java154 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence()
155 ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence()
156 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2); in testKeyEquivalence()
DWifiNetworkSuggestionsManagerTest.java3476 ScanResultMatchInfo mockMatchInfo = mock(ScanResultMatchInfo.class); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
3477 ScanResultMatchInfo nonPasspointMi = new ScanResultMatchInfo(); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
3480 .mockStatic(ScanResultMatchInfo.class).startMocking(); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
3483 () -> ScanResultMatchInfo.fromWifiConfiguration( in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
3486 () -> ScanResultMatchInfo.fromScanResult(nonPasspointScanResult)); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
3488 () -> ScanResultMatchInfo.fromScanResult(passpointScanResult)); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
3516 ScanResultMatchInfo.class).startMocking(); in getMatchingScanResultsTestWithMatchNothing()
3517 ScanResultMatchInfo mockMatchInfo = mock(ScanResultMatchInfo.class); in getMatchingScanResultsTestWithMatchNothing()
3518 ScanResultMatchInfo miFromConfig = new ScanResultMatchInfo(); in getMatchingScanResultsTestWithMatchNothing()
3521 when(ScanResultMatchInfo.fromWifiConfiguration(any(WifiConfiguration.class))) in getMatchingScanResultsTestWithMatchNothing()
[all …]
DWifiNetworkSelectorTestUtil.java175 ScanResultMatchInfo.fromScanResult(scanResult), in checkConsistencyOfScanDetailsAndWifiConfigs()
176 ScanResultMatchInfo.fromWifiConfiguration(config)); in checkConsistencyOfScanDetailsAndWifiConfigs()
DWifiConnectivityManagerTest.java360 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in mockWifiNetworkSelector()
871 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailure()
932 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailureCacheTimeout()
/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.java29 public class ScanResultMatchInfo { class
80 public static ScanResultMatchInfo fromWifiConfiguration(WifiConfiguration config) { in fromWifiConfiguration()
81 ScanResultMatchInfo info = new ScanResultMatchInfo(); in fromWifiConfiguration()
117 public static ScanResultMatchInfo fromScanResult(ScanResult scanResult) { in fromScanResult()
118 ScanResultMatchInfo info = new ScanResultMatchInfo(); in fromScanResult()
143 public boolean networkTypeEquals(@NonNull ScanResultMatchInfo other, in networkTypeEquals()
186 } else if (!(otherObj instanceof ScanResultMatchInfo)) { in matchForNetworkSelection()
189 ScanResultMatchInfo other = (ScanResultMatchInfo) otherObj; in matchForNetworkSelection()
DWakeupController.java123 private ScanResultMatchInfo mLastDisconnectInfo;
205 public void setLastDisconnectInfo(ScanResultMatchInfo scanResultMatchInfo) { in setLastDisconnectInfo()
263 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in start()
334 private Set<ScanResultMatchInfo> getGoodSavedNetworksAndSuggestions() { in getGoodSavedNetworksAndSuggestions()
338 Set<ScanResultMatchInfo> goodNetworks = new HashSet<>(savedNetworks.size()); in getGoodSavedNetworksAndSuggestions()
346 goodNetworks.add(ScanResultMatchInfo.fromWifiConfiguration(config)); in getGoodSavedNetworksAndSuggestions()
354 ScanResultMatchInfo.fromWifiConfiguration(suggestion.wifiConfiguration)); in getGoodSavedNetworksAndSuggestions()
394 Set<ScanResultMatchInfo> goodNetworks = getGoodSavedNetworksAndSuggestions(); in handleScanResults()
395 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in handleScanResults()
414 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()
227 private ScanResultMatchInfo parseNetwork(XmlPullParser in, int outerTagDepth) in parseNetwork()
229 ScanResultMatchInfo scanResultMatchInfo = new ScanResultMatchInfo(); in parseNetwork()
DConfigurationMap.java35 private final Map<ScanResultMatchInfo, WifiConfiguration>
67 ScanResultMatchInfo.fromWifiConfiguration(config), config); in put()
81 Iterator<Map.Entry<ScanResultMatchInfo, WifiConfiguration>> scanResultMatchInfoEntries = in remove()
143 ScanResultMatchInfo.fromScanResult(scanResult)); in getByScanResultForCurrentUser()
DWakeupEvaluator.java47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork()
54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
DWifiCandidates.java397 public final ScanResultMatchInfo matchInfo; // Contains the SSID and security type
401 public Key(ScanResultMatchInfo matchInfo, in Key()
473 return new Key(ScanResultMatchInfo.fromScanResult(scanResult), bssid, config.networkId); in keyFromScanDetailAndConfig()
534 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromScanResult(scanResult); in validConfigAndScanDetail()
536 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromWifiConfiguration(config); in validConfigAndScanDetail()
DWifiNetworkFactory.java800 ScanResultMatchInfo.fromWifiConfiguration(networkToConnect)); in handleConnectToNetworkUserSelectionInternal()
1136 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in doesScanResultMatchWifiNetworkSpecifier()
1137 ScanResultMatchInfo fromWifiConfiguration = in doesScanResultMatchWifiNetworkSpecifier()
1138 ScanResultMatchInfo.fromWifiConfiguration(wns.wifiConfiguration); in doesScanResultMatchWifiNetworkSpecifier()
1264 @NonNull ScanResultMatchInfo scanResultMatchInfo) { in findBestBssidFromActiveMatchedScanResultsForNetwork()
1270 ScanResultMatchInfo.fromScanResult(scanResult), in findBestBssidFromActiveMatchedScanResultsForNetwork()
1355 ScanResultMatchInfo fromWifiConfiguration = in addNetworkToUserApprovedAccessPointMap()
1356 ScanResultMatchInfo.fromWifiConfiguration(network); in addNetworkToUserApprovedAccessPointMap()
1358 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in addNetworkToUserApprovedAccessPointMap()
1401 ScanResultMatchInfo.fromWifiConfiguration( in triggerConnectIfUserApprovedMatchFound()
DWifiNetworkSuggestionsManager.java343 private final Map<ScanResultMatchInfo, Set<ExtendedWifiNetworkSuggestion>>
354 private final Map<Pair<ScanResultMatchInfo, MacAddress>, Set<ExtendedWifiNetworkSuggestion>>
637 ScanResultMatchInfo scanResultMatchInfo = in addToScanResultMatchInfoMap()
638 ScanResultMatchInfo.fromWifiConfiguration( in addToScanResultMatchInfoMap()
642 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in addToScanResultMatchInfoMap()
668 ScanResultMatchInfo scanResultMatchInfo = in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard()
669 ScanResultMatchInfo.fromWifiConfiguration( in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard()
673 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard()
1438 @NonNull ScanResultMatchInfo scanResultMatchInfo, @Nullable MacAddress bssid) { in getNetworkSuggestionsForScanResultMatchInfo()
1513 ScanResultMatchInfo scanResultMatchInfo = in getNetworkSuggestionsForScanDetail()
[all …]
DClientModeImpl.java2744 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromWifiConfiguration(wifiConfig); in handleNetworkDisconnect()
6384 ScanResultMatchInfo scanResultMatchInfo = ScanResultMatchInfo in updateWifiConfigOnStartConnection()
6397 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(config); in updateWifiConfigOnStartConnection()
6425 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanResult); in updateWifiConfigOnStartConnection()
DWifiMetrics.java2874 Set<ScanResultMatchInfo> ssids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
2876 Set<ScanResultMatchInfo> openSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
2878 Set<ScanResultMatchInfo> savedSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
2901 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(scanResult); in incrementAvailableNetworksHistograms()
DWifiNetworkSelector.java791 ScanResultMatchInfo.fromWifiConfiguration(currentNetwork), in getCandidatesFromScan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DLruConnectionTracker.java23 import com.android.server.wifi.ScanResultMatchInfo;
31 private final LruList<ScanResultMatchInfo> mList;
49 mList.add(ScanResultMatchInfo.fromWifiConfiguration(config)); in addNetwork()
56 mList.remove(ScanResultMatchInfo.fromWifiConfiguration(config)); in removeNetwork()
65 int index = mList.indexOf(ScanResultMatchInfo.fromWifiConfiguration(config)); in getAgeIndexOfNetwork()
/frameworks/opt/net/wifi/tests/wifitests/
DAndroid.bp261 "com.android.server.wifi.ScanResultMatchInfo",
262 "com.android.server.wifi.ScanResultMatchInfo$*",
263 "com.android.server.wifi.ScanResultMatchInfo.**",