/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() 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 …]
|
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 | 56 @Mock private WakeupConfigStoreData.DataSource<Set<ScanResultMatchInfo>> mNetworkDataSource; 99 Set<ScanResultMatchInfo> networks = Collections.emptySet(); in deserializeSerializedData_emptySet() 123 ScanResultMatchInfo network1 = new ScanResultMatchInfo(); in deserializeSerializedData() 127 ScanResultMatchInfo network2 = new ScanResultMatchInfo(); in deserializeSerializedData() 131 ScanResultMatchInfo network3 = new ScanResultMatchInfo(); in deserializeSerializedData() 135 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData()
|
D | WakeupControllerTest.java | 344 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithSavedScanResults() 345 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults() 382 Set<ScanResultMatchInfo> expectedMatchInfos = in startInitializesWakeupLockWithNetworkSuggestions() 383 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions() 425 Set<ScanResultMatchInfo> expectedMatchInfos = new HashSet<ScanResultMatchInfo>() {{ in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 426 add(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 427 add(ScanResultMatchInfo.fromScanResult(suggestionScanResult)); in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 463 Set<ScanResultMatchInfo> expectedMatchInfos = in startFiltersOutDfsScanResults() 464 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults() 496 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 | 133 ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence() 134 ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1); in testKeyEquivalence() 135 ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2); in testKeyEquivalence()
|
D | CarrierNetworkEvaluatorTest.java | 137 assertEquals(ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()), in configureNewSsid() 138 ScanResultMatchInfo.fromWifiConfiguration(newConfig)); in configureNewSsid()
|
/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 | 28 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()
|
D | WakeupConfigStoreData.java | 50 private final DataSource<Set<ScanResultMatchInfo>> mNetworkDataSource; 82 DataSource<Set<ScanResultMatchInfo>> networkDataSource) { in WakeupConfigStoreData() 101 for (ScanResultMatchInfo scanResultMatchInfo : mNetworkDataSource.getData()) { in serializeData() 133 private void writeNetwork(XmlSerializer out, ScanResultMatchInfo scanResultMatchInfo) in writeNetwork() 155 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in deserializeData() 221 private ScanResultMatchInfo parseNetwork(XmlPullParser in, int outerTagDepth) in parseNetwork() 223 ScanResultMatchInfo scanResultMatchInfo = new ScanResultMatchInfo(); in parseNetwork()
|
D | WakeupController.java | 127 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 …]
|
D | ConfigurationMap.java | 33 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()
|
D | WakeupEvaluator.java | 47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork() 54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
|
D | WifiCandidates.java | 296 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()
|
D | WifiNetworkSuggestionsManager.java | 214 private final Map<ScanResultMatchInfo, Set<ExtendedWifiNetworkSuggestion>> 225 private final Map<Pair<ScanResultMatchInfo, MacAddress>, Set<ExtendedWifiNetworkSuggestion>> 425 ScanResultMatchInfo scanResultMatchInfo = in addToScanResultMatchInfoMap() 426 ScanResultMatchInfo.fromWifiConfiguration( in addToScanResultMatchInfoMap() 430 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in addToScanResultMatchInfoMap() 457 ScanResultMatchInfo scanResultMatchInfo = in removeFromScanResultMatchInfoMap() 458 ScanResultMatchInfo.fromWifiConfiguration( in removeFromScanResultMatchInfoMap() 462 Pair<ScanResultMatchInfo, MacAddress> lookupPair = in removeFromScanResultMatchInfoMap() 813 @NonNull ScanResultMatchInfo scanResultMatchInfo, @Nullable MacAddress bssid) { in getNetworkSuggestionsForScanResultMatchInfo() 846 ScanResultMatchInfo scanResultMatchInfo = in getNetworkSuggestionsForScanDetail() [all …]
|
D | WifiNetworkFactory.java | 1078 if (ScanResultMatchInfo.getNetworkType(wns.wifiConfiguration) in doesScanResultMatchWifiNetworkSpecifier() 1079 != ScanResultMatchInfo.getNetworkType(scanResult)) { in doesScanResultMatchWifiNetworkSpecifier() 1210 ScanResultMatchInfo.fromScanResult(scanResult), in findBestBssidFromActiveMatchedScanResultsForNetwork() 1211 ScanResultMatchInfo.fromWifiConfiguration(network))) in findBestBssidFromActiveMatchedScanResultsForNetwork() 1233 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults() 1258 ScanResultMatchInfo fromScanResult = ScanResultMatchInfo.fromScanResult(scanResult); in addNetworkToUserApprovedAccessPointMap() 1259 ScanResultMatchInfo fromWifiConfiguration = in addNetworkToUserApprovedAccessPointMap() 1260 ScanResultMatchInfo.fromWifiConfiguration(network); in addNetworkToUserApprovedAccessPointMap()
|
D | WifiMetrics.java | 2075 Set<ScanResultMatchInfo> ssids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() 2077 Set<ScanResultMatchInfo> openSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() 2079 Set<ScanResultMatchInfo> savedSsids = new HashSet<ScanResultMatchInfo>(); in incrementAvailableNetworksHistograms() 2100 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromScanResult(scanResult); in incrementAvailableNetworksHistograms()
|
D | ClientModeImpl.java | 2975 ScanResultMatchInfo matchInfo = ScanResultMatchInfo.fromWifiConfiguration(wifiConfig); in handleNetworkDisconnect()
|