/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanResultMatchInfoTest.java | 103 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration() 104 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration() 108 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration() 109 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration() 113 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration() 114 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration() 115 assertTrue(ScanResultMatchInfo.fromWifiConfiguration(conf) in testScanResultMatchesWifiConfiguration() 116 .equals(ScanResultMatchInfo.fromScanResult( in testScanResultMatchesWifiConfiguration() 121 assertEquals(ScanResultMatchInfo.fromWifiConfiguration(conf), in testScanResultMatchesWifiConfiguration() 122 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration() [all …]
|
D | WakeupLockTest.java | 53 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 …]
|
D | WakeupConfigStoreDataTest.java | 60 @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()
|
D | WakeupControllerTest.java | 450 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithSavedScanResults() 451 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults() 490 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithNetworkSuggestions() 491 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions() 535 Set<ScanResultMatchInfo> expectedMatchInfos = Set.of( in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 536 ScanResultMatchInfo.fromScanResult(savedScanResult), in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 537 ScanResultMatchInfo.fromScanResult(suggestionScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 616 Set<ScanResultMatchInfo> expectedMatchInfos = in startFiltersOutDfsScanResults() 617 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults() 650 ScanResultMatchInfo expectedMatchInfo = ScanResultMatchInfo.fromScanResult(mTestScanResult); in onResultsUpdatesWakeupLockForSavedNetworks() [all …]
|
D | WakeupEvaluatorTest.java | 86 private Set<ScanResultMatchInfo> getSavedNetworks() { in getSavedNetworks() 87 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in getSavedNetworks() 88 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks() 91 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
|
D | WifiCandidatesTest.java | 206 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence() 207 ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence() 208 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2); in testKeyEquivalence()
|
D | CandidateScorerTest.java | 141 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo in setUp() 143 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo in setUp()
|
D | WifiNetworkSelectorTestUtil.java | 184 ScanResultMatchInfo.fromScanResult(scanResult), in checkConsistencyOfScanDetailsAndWifiConfigs() 185 ScanResultMatchInfo.fromWifiConfiguration(config)); in checkConsistencyOfScanDetailsAndWifiConfigs()
|
D | WifiNetworkSuggestionsManagerTest.java | 3808 ScanResultMatchInfo mockMatchInfo = mock(ScanResultMatchInfo.class); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch() 3809 ScanResultMatchInfo nonPasspointMi = new ScanResultMatchInfo(); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch() 3812 .mockStatic(ScanResultMatchInfo.class).startMocking(); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch() 3815 () -> ScanResultMatchInfo.fromWifiConfiguration( in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch() 3818 () -> ScanResultMatchInfo.fromScanResult(nonPasspointScanResult)); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch() 3820 () -> ScanResultMatchInfo.fromScanResult(passpointScanResult)); in getMatchingScanResultsTestWithPasspointAndNonPasspointMatch() 3844 ScanResultMatchInfo.class).startMocking(); in getMatchingScanResultsTestWithMatchNothing() 3845 ScanResultMatchInfo mockMatchInfo = mock(ScanResultMatchInfo.class); in getMatchingScanResultsTestWithMatchNothing() 3846 ScanResultMatchInfo miFromConfig = new ScanResultMatchInfo(); in getMatchingScanResultsTestWithMatchNothing() 3849 when(ScanResultMatchInfo.fromWifiConfiguration(any(WifiConfiguration.class))) in getMatchingScanResultsTestWithMatchNothing() [all …]
|
D | WifiConnectivityManagerTest.java | 574 ScanResultMatchInfo matchInfo = mock(ScanResultMatchInfo.class); in mockWifiNetworkSelector() 1369 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(result); in getTestWifiCandidate() 2414 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailure() 2467 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testNoRetryConnectionOnNetworkNotFoundFailure() 2502 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromWifiConfiguration( in testRetryConnectionEapFailureIgnoreSameNetwork() 2543 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionIgnoreNetworkWithAutojoinDisabled() 2585 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionIgnoreNetworkWithAdminRestriction() 2640 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailureCacheTimeout() 2680 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testNoRetryConnectionOnUserDisconnectedNetwork() 2724 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testNoRetryConnectionOnFailureAfterCacheCleared() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WakeupLock.java | 47 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 …]
|
D | ScanResultMatchInfo.java | 33 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()
|
D | WakeupConfigStoreData.java | 59 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()
|
D | WakeupController.java | 139 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 …]
|
D | WifiCandidates.java | 542 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()
|
D | ConfigurationMap.java | 39 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()
|
D | WakeupEvaluator.java | 47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork() 54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
|
D | WifiNetworkSuggestionsManager.java | 421 private final Map<ScanResultMatchInfo, Set<ExtendedWifiNetworkSuggestion>> 432 private final Map<Pair<ScanResultMatchInfo, MacAddress>, Set<ExtendedWifiNetworkSuggestion>> 721 ScanResultMatchInfo scanResultMatchInfo = in addToScanResultMatchInfoMap() 722 ScanResultMatchInfo.fromWifiConfiguration( in addToScanResultMatchInfoMap() 726 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in addToScanResultMatchInfoMap() 752 ScanResultMatchInfo scanResultMatchInfo = in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard() 753 ScanResultMatchInfo.fromWifiConfiguration( in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard() 757 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in removeFromScanResultMatchInfoMapAndRemoveRelatedScoreCard() 1790 @NonNull ScanResultMatchInfo scanResultMatchInfo, @Nullable MacAddress bssid) { in getNetworkSuggestionsForScanResultMatchInfo() 1868 ScanResultMatchInfo scanResultMatchInfo = in getNetworkSuggestionsForScanDetail() [all …]
|
D | WifiNetworkFactory.java | 1165 ScanResultMatchInfo.fromWifiConfiguration(networkToConnect)); in handleConnectToNetworkUserSelectionInternal() 1685 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in doesScanResultMatchWifiNetworkSpecifier() 1686 ScanResultMatchInfo fromWifiConfiguration = in doesScanResultMatchWifiNetworkSpecifier() 1687 ScanResultMatchInfo.fromWifiConfiguration(wns.wifiConfiguration); in doesScanResultMatchWifiNetworkSpecifier() 1802 @NonNull ScanResultMatchInfo scanResultMatchInfo) { in findBestScanResultFromActiveMatchedScanResultsForNetwork() 1809 ScanResultMatchInfo.fromScanResult(scanResult), in findBestScanResultFromActiveMatchedScanResultsForNetwork() 1911 ScanResultMatchInfo fromWifiConfiguration = in addNetworkToUserApprovedAccessPointMap() 1912 ScanResultMatchInfo.fromWifiConfiguration(network); in addNetworkToUserApprovedAccessPointMap() 1914 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in addNetworkToUserApprovedAccessPointMap() 1964 ScanResultMatchInfo.fromWifiConfiguration( in triggerConnectIfUserApprovedMatchFound() [all …]
|
D | WifiNetworkSelector.java | 1172 ScanResultMatchInfo.fromWifiConfiguration(currentNetwork), in getCandidatesFromScan() 1516 SecurityParams params = ScanResultMatchInfo.getBestMatchingSecurityParams( in updateNetworkCandidateSecurityParams()
|
D | ClientModeImpl.java | 3550 ScanResultMatchInfo matchInfo = in handleNetworkDisconnect() 3551 ScanResultMatchInfo.fromWifiConfiguration(wifiConfig); in handleNetworkDisconnect() 8202 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(config); in updateWifiConfigOnStartConnection() 8208 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanResult); in updateWifiConfigOnStartConnection()
|
D | WifiMetrics.java | 4258 Set<ScanResultMatchInfo> ssids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() 4260 Set<ScanResultMatchInfo> openSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() 4262 Set<ScanResultMatchInfo> savedSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() 4285 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(scanResult); in incrementAvailableNetworksHistograms()
|
D | WifiConnectivityManager.java | 3335 ScanResultMatchInfo scanResultMatchInfo = in retryConnectionOnLatestCandidates() 3336 ScanResultMatchInfo.fromWifiConfiguration(configuration); in retryConnectionOnLatestCandidates()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | LruConnectionTracker.java | 23 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/ |
D | Android.bp | 380 "com.android.server.wifi.ScanResultMatchInfo", 381 "com.android.server.wifi.ScanResultMatchInfo$*", 382 "com.android.server.wifi.ScanResultMatchInfo.**",
|