/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanResultMatchInfoTest.java | 43 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 …]
|
D | WakeupLockTest.java | 51 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 …]
|
D | WakeupConfigStoreDataTest.java | 58 @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()
|
D | WakeupControllerTest.java | 367 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 …]
|
D | WakeupEvaluatorTest.java | 68 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()
|
D | WifiCandidatesTest.java | 154 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence() 155 ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence() 156 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2); in testKeyEquivalence()
|
D | WifiNetworkSuggestionsManagerTest.java | 3476 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 …]
|
D | WifiNetworkSelectorTestUtil.java | 175 ScanResultMatchInfo.fromScanResult(scanResult), in checkConsistencyOfScanDetailsAndWifiConfigs() 176 ScanResultMatchInfo.fromWifiConfiguration(config)); in checkConsistencyOfScanDetailsAndWifiConfigs()
|
D | WifiConnectivityManagerTest.java | 360 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/ |
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 | 29 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()
|
D | WakeupController.java | 123 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 …]
|
D | WakeupConfigStoreData.java | 52 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()
|
D | ConfigurationMap.java | 35 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()
|
D | WakeupEvaluator.java | 47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork() 54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
|
D | WifiCandidates.java | 397 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()
|
D | WifiNetworkFactory.java | 800 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()
|
D | WifiNetworkSuggestionsManager.java | 343 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 …]
|
D | ClientModeImpl.java | 2744 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()
|
D | WifiMetrics.java | 2874 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()
|
D | WifiNetworkSelector.java | 791 ScanResultMatchInfo.fromWifiConfiguration(currentNetwork), in getCandidatesFromScan()
|
/frameworks/opt/net/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()
|
/frameworks/opt/net/wifi/tests/wifitests/ |
D | Android.bp | 261 "com.android.server.wifi.ScanResultMatchInfo", 262 "com.android.server.wifi.ScanResultMatchInfo$*", 263 "com.android.server.wifi.ScanResultMatchInfo.**",
|