Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java101 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
102 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
106 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
107 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
111 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
112 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
113 assertTrue(ScanResultMatchInfo.fromWifiConfiguration(conf) in testScanResultMatchesWifiConfiguration()
114 .equals(ScanResultMatchInfo.fromScanResult( in testScanResultMatchesWifiConfiguration()
119 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration()
120 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
[all …]
DWakeupLockTest.java53 private ScanResultMatchInfo mNetwork1;
54 private ScanResultMatchInfo mNetwork2;
66 mNetwork1 = new ScanResultMatchInfo(); in setUp()
72 mNetwork2 = new ScanResultMatchInfo(); in setUp()
87 private void updateEnoughTimesToEvictWithAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithAsserts()
100 private void updateEnoughTimesToEvictWithoutAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithoutAsserts()
112 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByScans()
135 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByTimeout()
148 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in addToLockSavesToStore()
203 List<ScanResultMatchInfo> lockedNetworks = Collections.singletonList(mNetwork1); in updateWithLockedNetworkShouldResetRequiredNumberOfScans()
[all …]
DWakeupConfigStoreDataTest.java60 @Mock private WakeupConfigStoreData.DataSource<Set<ScanResultMatchInfo>> mNetworkDataSource;
105 Set<ScanResultMatchInfo> networks = Collections.emptySet(); in deserializeSerializedData_emptySet()
129 ScanResultMatchInfo network1 = new ScanResultMatchInfo(); in deserializeSerializedData()
135 ScanResultMatchInfo network2 = new ScanResultMatchInfo(); in deserializeSerializedData()
141 ScanResultMatchInfo network3 = new ScanResultMatchInfo(); in deserializeSerializedData()
147 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData()
DWakeupControllerTest.java448 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithSavedScanResults()
449 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults()
488 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithNetworkSuggestions()
489 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions()
533 Set<ScanResultMatchInfo> expectedMatchInfos = Set.of( in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
534 ScanResultMatchInfo.fromScanResult(savedScanResult), in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
535 ScanResultMatchInfo.fromScanResult(suggestionScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
614 Set<ScanResultMatchInfo> expectedMatchInfos = in startFiltersOutDfsScanResults()
615 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults()
648 ScanResultMatchInfo expectedMatchInfo = ScanResultMatchInfo.fromScanResult(mTestScanResult); in onResultsUpdatesWakeupLockForSavedNetworks()
[all …]
DWakeupEvaluatorTest.java85 private Set<ScanResultMatchInfo> getSavedNetworks() { in getSavedNetworks()
86 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in getSavedNetworks()
87 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
90 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
DWifiCandidatesTest.java204 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence()
205 ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence()
206 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2); in testKeyEquivalence()
DCandidateScorerTest.java141 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo in setUp()
143 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo in setUp()
DWifiNetworkSelectorTestUtil.java183 ScanResultMatchInfo.fromScanResult(scanResult), in checkConsistencyOfScanDetailsAndWifiConfigs()
184 ScanResultMatchInfo.fromWifiConfiguration(config)); in checkConsistencyOfScanDetailsAndWifiConfigs()
DWifiNetworkSuggestionsManagerTest.java4032 ScanResultMatchInfo mockMatchInfo = mock(ScanResultMatchInfo.class); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
4033 ScanResultMatchInfo nonPasspointMi = new ScanResultMatchInfo(); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
4036 .mockStatic(ScanResultMatchInfo.class).startMocking(); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
4039 () -> ScanResultMatchInfo.fromWifiConfiguration( in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
4042 () -> ScanResultMatchInfo.fromScanResult(nonPasspointScanResult)); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
4044 () -> ScanResultMatchInfo.fromScanResult(passpointScanResult)); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch()
4072 ScanResultMatchInfo.class).startMocking(); in getMatchingScanResultsTestWithMatchNothing()
4073 ScanResultMatchInfo mockMatchInfo = mock(ScanResultMatchInfo.class); in getMatchingScanResultsTestWithMatchNothing()
4074 ScanResultMatchInfo miFromConfig = new ScanResultMatchInfo(); in getMatchingScanResultsTestWithMatchNothing()
4077 when(ScanResultMatchInfo.fromWifiConfiguration(any(WifiConfiguration.class))) in getMatchingScanResultsTestWithMatchNothing()
[all …]
DWifiConnectivityManagerTest.java569 ScanResultMatchInfo matchInfo = mock(ScanResultMatchInfo.class); in mockWifiNetworkSelector()
1363 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(result); in getTestWifiCandidate()
2283 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailure()
2336 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromWifiConfiguration( in testRetryConnectionEapFailureIgnoreSameNetwork()
2377 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionIgnoreNetworkWithAutojoinDisabled()
2419 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionIgnoreNetworkWithAdminRestriction()
2474 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailureCacheTimeout()
2514 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testNoRetryConnectionOnUserDisconnectedNetwork()
2558 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testNoRetryConnectionOnFailureAfterCacheCleared()
2601 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionIgnoresDisabledNetworks()
/packages/modules/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.java33 public class ScanResultMatchInfo { class
51 public static ScanResultMatchInfo fromWifiConfiguration(WifiConfiguration config) { in fromWifiConfiguration()
52 ScanResultMatchInfo info = new ScanResultMatchInfo(); in fromWifiConfiguration()
61 public static ScanResultMatchInfo fromScanResult(ScanResult scanResult) { in fromScanResult()
62 ScanResultMatchInfo info = new ScanResultMatchInfo(); in fromScanResult()
173 public boolean networkTypeEquals(@NonNull ScanResultMatchInfo other) { in networkTypeEquals()
195 } else if (!(otherObj instanceof ScanResultMatchInfo)) { in equals()
198 ScanResultMatchInfo other = (ScanResultMatchInfo) otherObj; in equals()
212 public SecurityParams matchForNetworkSelection(ScanResultMatchInfo other) { in matchForNetworkSelection()
DWakeupConfigStoreData.java59 private final DataSource<Set<ScanResultMatchInfo>> mNetworkDataSource;
91 DataSource<Set<ScanResultMatchInfo>> networkDataSource) { in WakeupConfigStoreData()
111 for (ScanResultMatchInfo scanResultMatchInfo : mNetworkDataSource.getData()) { in serializeData()
136 XmlSerializer out, ScanResultMatchInfo scanResultMatchInfo) in writeSecurityParamsList()
166 private void writeNetwork(XmlSerializer out, ScanResultMatchInfo scanResultMatchInfo) in writeNetwork()
190 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in deserializeData()
286 XmlPullParser in, int outerTagDepth, ScanResultMatchInfo scanResultMatchInfo) in parseSecurityParamsList()
310 private ScanResultMatchInfo parseNetwork(XmlPullParser in, int outerTagDepth) in parseNetwork()
312 ScanResultMatchInfo scanResultMatchInfo = new ScanResultMatchInfo(); in parseNetwork()
DWakeupController.java139 private ScanResultMatchInfo mLastDisconnectInfo;
250 public void setLastDisconnectInfo(ScanResultMatchInfo scanResultMatchInfo) { in setLastDisconnectInfo()
309 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in start()
383 private Set<ScanResultMatchInfo> getGoodSavedNetworksAndSuggestions() { in getGoodSavedNetworksAndSuggestions()
387 Set<ScanResultMatchInfo> goodNetworks = new HashSet<>(savedNetworks.size()); in getGoodSavedNetworksAndSuggestions()
398 goodNetworks.add(ScanResultMatchInfo.fromWifiConfiguration(config)); in getGoodSavedNetworksAndSuggestions()
406 ScanResultMatchInfo.fromWifiConfiguration(suggestion.wifiConfiguration)); in getGoodSavedNetworksAndSuggestions()
441 Set<ScanResultMatchInfo> goodNetworks = getGoodSavedNetworksAndSuggestions(); in handleScanResults()
442 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in handleScanResults()
461 private static Set<ScanResultMatchInfo> toMatchInfos(Collection<ScanResult> scanResults) { in toMatchInfos()
[all …]
DWifiCandidates.java542 public final ScanResultMatchInfo matchInfo; // Contains the SSID and security type
547 public Key(ScanResultMatchInfo matchInfo, in Key()
557 public Key(ScanResultMatchInfo matchInfo, in Key()
675 SecurityParams params = ScanResultMatchInfo.fromScanResult(scanResult) in keyFromScanDetailAndConfig()
676 .matchForNetworkSelection(ScanResultMatchInfo.fromWifiConfiguration(config)); in keyFromScanDetailAndConfig()
681 + ScanResultMatchInfo.fromScanResult(scanResult) in keyFromScanDetailAndConfig()
683 + ScanResultMatchInfo.fromWifiConfiguration(config)); in keyFromScanDetailAndConfig()
687 return new Key(ScanResultMatchInfo.fromScanResult(scanResult), bssid, config.networkId, in keyFromScanDetailAndConfig()
760 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromScanResult(scanResult); in validConfigAndScanDetail()
762 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromWifiConfiguration(config); in validConfigAndScanDetail()
DConfigurationMap.java39 private final Map<ScanResultMatchInfo, WifiConfiguration>
70 ScanResultMatchInfo.fromWifiConfiguration(config), config); in put()
84 Iterator<Map.Entry<ScanResultMatchInfo, WifiConfiguration>> scanResultMatchInfoEntries = in remove()
146 ScanResultMatchInfo.fromScanResult(scanResult)); in getByScanResultForCurrentUser()
DWakeupEvaluator.java47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork()
54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
DWifiNetworkFactory.java1168 ScanResultMatchInfo.fromWifiConfiguration(networkToConnect)); in handleConnectToNetworkUserSelectionInternal()
1659 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in doesScanResultMatchWifiNetworkSpecifier()
1660 ScanResultMatchInfo fromWifiConfiguration = in doesScanResultMatchWifiNetworkSpecifier()
1661 ScanResultMatchInfo.fromWifiConfiguration(wns.wifiConfiguration); in doesScanResultMatchWifiNetworkSpecifier()
1790 @NonNull ScanResultMatchInfo scanResultMatchInfo) { in findBestBssidFromActiveMatchedScanResultsForNetwork()
1797 ScanResultMatchInfo.fromScanResult(scanResult), in findBestBssidFromActiveMatchedScanResultsForNetwork()
1899 ScanResultMatchInfo fromWifiConfiguration = in addNetworkToUserApprovedAccessPointMap()
1900 ScanResultMatchInfo.fromWifiConfiguration(network); in addNetworkToUserApprovedAccessPointMap()
1902 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in addNetworkToUserApprovedAccessPointMap()
1952 ScanResultMatchInfo.fromWifiConfiguration( in triggerConnectIfUserApprovedMatchFound()
[all …]
DWifiNetworkSuggestionsManager.java420 private final Map<ScanResultMatchInfo, Set<ExtendedWifiNetworkSuggestion>>
431 private final Map<Pair<ScanResultMatchInfo, MacAddress>, Set<ExtendedWifiNetworkSuggestion>>
720 ScanResultMatchInfo scanResultMatchInfo = in addToScanResultMatchInfoMap()
721 ScanResultMatchInfo.fromWifiConfiguration( in addToScanResultMatchInfoMap()
725 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in addToScanResultMatchInfoMap()
751 ScanResultMatchInfo scanResultMatchInfo = in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard()
752 ScanResultMatchInfo.fromWifiConfiguration( in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard()
756 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard()
1789 @NonNull ScanResultMatchInfo scanResultMatchInfo, @Nullable MacAddress bssid) { in getNetworkSuggestionsForScanResultMatchInfo()
1867 ScanResultMatchInfo scanResultMatchInfo = in getNetworkSuggestionsForScanDetail()
[all …]
DWifiNetworkSelector.java1146 ScanResultMatchInfo.fromWifiConfiguration(currentNetwork), in getCandidatesFromScan()
1490 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams( in updateNetworkCandidateSecurityParams()
DWifiMetrics.java4166 Set<ScanResultMatchInfo> ssids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
4168 Set<ScanResultMatchInfo> openSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
4170 Set<ScanResultMatchInfo> savedSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms()
4193 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(scanResult); in incrementAvailableNetworksHistograms()
DClientModeImpl.java3516 ScanResultMatchInfo matchInfo = in handleNetworkDisconnect()
3517 ScanResultMatchInfo.fromWifiConfiguration(wifiConfig); in handleNetworkDisconnect()
8149 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(config); in updateWifiConfigOnStartConnection()
8155 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanResult); in updateWifiConfigOnStartConnection()
DWifiConnectivityManager.java3178 ScanResultMatchInfo scanResultMatchInfo = in retryConnectionOnLatestCandidates()
3179 ScanResultMatchInfo.fromWifiConfiguration(configuration); in retryConnectionOnLatestCandidates()
/packages/modules/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()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp380 "com.android.server.wifi.ScanResultMatchInfo",
381 "com.android.server.wifi.ScanResultMatchInfo$*",
382 "com.android.server.wifi.ScanResultMatchInfo.**",

12