Home
last modified time | relevance | path

Searched refs:networks (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupLockTest.java76 private void updateEnoughTimesToEvictWithAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithAsserts() argument
79 mWakeupLock.update(networks); in updateEnoughTimesToEvictWithAsserts()
89 private void updateEnoughTimesToEvictWithoutAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithoutAsserts() argument
91 mWakeupLock.update(networks); in updateEnoughTimesToEvictWithoutAsserts()
101 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByScans() local
102 mWakeupLock.setLock(networks); in verifyInitializingLockByScans()
105 mWakeupLock.update(networks); in verifyInitializingLockByScans()
107 mWakeupLock.update(networks); in verifyInitializingLockByScans()
109 mWakeupLock.update(networks); in verifyInitializingLockByScans()
124 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByTimeout() local
[all …]
DWifiConfigStoreLegacyTest.java111 final List<WifiConfiguration> networks = new ArrayList<>(); in testLoadFromStores() local
112 networks.add(pskNetwork); in testLoadFromStores()
113 networks.add(wepNetwork); in testLoadFromStores()
114 networks.add(eapNetwork); in testLoadFromStores()
115 networks.add(passpointNetwork); in testLoadFromStores()
132 createWpaSupplicantLoadData(networks).entrySet()) { in testLoadFromStores()
144 .thenReturn(createIpConfigStoreLoadData(networks)); in testLoadFromStores()
156 networks, storeData.getConfigurations()); in testLoadFromStores()
170 final List<WifiConfiguration> networks = new ArrayList<>(); in testLoadFromStoresWithNullConfigKey() local
171 networks.add(pskNetwork); in testLoadFromStoresWithNullConfigKey()
[all …]
DWakeupConfigStoreDataTest.java116 Set<ScanResultMatchInfo> networks = Collections.emptySet(); in deserializeSerializedData_emptySet() local
124 when(mNetworkDataSource.getData()).thenReturn(networks); in deserializeSerializedData_emptySet()
132 verify(mNetworkDataSource).setData(eq(networks)); in deserializeSerializedData_emptySet()
152 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData() local
160 when(mNetworkDataSource.getData()).thenReturn(networks); in deserializeSerializedData()
168 verify(mNetworkDataSource).setData(eq(networks)); in deserializeSerializedData()
DWakeupEvaluatorTest.java67 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in getSavedNetworks() local
68 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
71 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
74 return networks; in getSavedNetworks()
DWifiConfigurationUtilTest.java640 List<WifiConfiguration> networks = new ArrayList<>(); in testPnoListComparator() local
658 networks.add(tempDisabledNetwork1); in testPnoListComparator()
659 networks.add(enabledNetwork1); in testPnoListComparator()
660 networks.add(permDisabledNetwork); in testPnoListComparator()
661 networks.add(tempDisabledNetwork2); in testPnoListComparator()
662 networks.add(enabledNetwork2); in testPnoListComparator()
683 Collections.sort(networks, comparator); in testPnoListComparator()
686 assertEquals(enabledNetwork1, networks.get(0)); in testPnoListComparator()
687 assertEquals(enabledNetwork2, networks.get(1)); in testPnoListComparator()
688 assertEquals(tempDisabledNetwork1, networks.get(2)); in testPnoListComparator()
[all …]
DWifiConfigManagerTest.java246 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetwork() local
247 networks.add(openNetwork); in testAddSingleOpenNetwork()
254 networks, retrievedNetworks); in testAddSingleOpenNetwork()
266 List<WifiConfiguration> networks = new ArrayList<>(); in testUpdateSingleOpenNetwork() local
267 networks.add(openNetwork); in testUpdateSingleOpenNetwork()
281 networks, retrievedNetworks); in testUpdateSingleOpenNetwork()
294 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleEphemeralNetwork() local
295 networks.add(ephemeralNetwork); in testAddSingleEphemeralNetwork()
302 networks, retrievedNetworks); in testAddSingleEphemeralNetwork()
341 List<WifiConfiguration> networks = new ArrayList<>(); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied() local
[all …]
DWifiNetworkSelectorTestUtil.java324 List<ScoredNetwork> networks = new ArrayList<>(); in configureScoreCache() local
348 networks.add(scoredNetwork); in configureScoreCache()
351 scoreCache.updateScores(networks); in configureScoreCache()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java182 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurationsToFile() argument
185 for(int i = 0; i < networks.size(); i++) { in writeIpAndProxyConfigurationsToFile()
186 writeConfig(out, String.valueOf(networks.keyAt(i)), networks.valueAt(i)); in writeIpAndProxyConfigurationsToFile()
192 ArrayMap<String, IpConfiguration> networks) { in writeIpConfigurations() argument
195 for(int i = 0; i < networks.size(); i++) { in writeIpConfigurations()
196 writeConfig(out, networks.keyAt(i), networks.valueAt(i)); in writeIpConfigurations()
233 ArrayMap<String, IpConfiguration> networks = readIpConfigurations(inputStream); in readIpAndProxyConfigurations() local
234 if (networks == null) { in readIpAndProxyConfigurations()
239 for (int i = 0; i < networks.size(); i++) { in readIpAndProxyConfigurations()
240 int id = Integer.valueOf(networks.keyAt(i)); in readIpAndProxyConfigurations()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DThreeGPPNetworkElement.java50 public ThreeGPPNetworkElement(List<CellularNetwork> networks) { in ThreeGPPNetworkElement() argument
52 mNetworks = networks; in ThreeGPPNetworkElement()
79 List<CellularNetwork> networks = new ArrayList<>(); in parse() local
83 networks.add(network); in parse()
86 return new ThreeGPPNetworkElement(networks); in parse()
/frameworks/base/core/java/android/net/
DNetworkRecommendationProvider.java74 public abstract void onRequestScores(NetworkKey[] networks); in onRequestScores() argument
99 public void requestScores(final NetworkKey[] networks) throws RemoteException { in requestScores() argument
101 if (networks != null && networks.length > 0) { in requestScores()
105 onRequestScores(networks); in requestScores()
DINetworkScoreService.aidl35 boolean updateScores(in ScoredNetwork[] networks); in updateScores() argument
91 boolean requestScores(in NetworkKey[] networks); in requestScores() argument
DNetworkScoreManager.java288 public boolean updateScores(ScoredNetwork[] networks) throws SecurityException { in updateScores() argument
290 return mService.updateScores(networks); in updateScores()
368 public boolean requestScores(NetworkKey[] networks) throws SecurityException { in requestScores() argument
370 return mService.requestScores(networks); in requestScores()
DVpnService.java361 public boolean setUnderlyingNetworks(Network[] networks) { in setUnderlyingNetworks() argument
363 return getService().setUnderlyingNetworksForVpn(networks); in setUnderlyingNetworks()
753 public Builder setUnderlyingNetworks(Network[] networks) { in setUnderlyingNetworks() argument
754 mConfig.underlyingNetworks = networks != null ? networks.clone() : null; in setUnderlyingNetworks()
DINetworkRecommendationProvider.aidl36 void requestScores(in NetworkKey[] networks); in requestScores() argument
DINetworkScoreCache.aidl39 void updateScores(in List<ScoredNetwork> networks); in updateScores() argument
Dnetwork-policy-restrictions.md24 ## On metered networks
37 ## On non-metered networks
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java89 @Override public final void updateScores(List<ScoredNetwork> networks) { in updateScores() argument
90 if (networks == null || networks.isEmpty()) { in updateScores()
94 Log.d(TAG, "updateScores list size=" + networks.size()); in updateScores()
100 for (ScoredNetwork network : networks) { in updateScores()
113 mListener.post(networks); in updateScores()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java172 List<WifiConfiguration> networks = mWifiManager.getConfiguredNetworks(); in getValidSsid() local
173 int length = networks.size(); in getValidSsid()
175 if (networks.get(i).networkId == info.getNetworkId()) { in getValidSsid()
176 return networks.get(i).SSID; in getValidSsid()
/frameworks/base/proto/src/
Dwifi.proto30 // Number of saved networks in the user profile.
33 // Number of open networks in the saved networks.
36 // Number of personal networks.
39 // Number of enterprise networks.
54 // Number of networks added by the user.
57 // Number of networks added by applications.
148 // Total number of networks over bad association threshold when watchdog triggered
151 // Total number of networks over bad authentication threshold when watchdog triggered
154 // Total number of networks over bad dhcp threshold when watchdog triggered
157 // Total number of networks over bad other threshold when watchdog triggered
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupConfigStoreData.java165 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in deserializeData() local
174 networks.add(parseNetwork(in, outerTagDepth + 1)); in deserializeData()
179 mNetworkDataSource.setData(networks); in deserializeData()
DWifiBackupRestore.java364 SparseArray<IpConfiguration> networks = in retrieveConfigurationsFromSupplicantBackupData() local
367 if (networks != null) { in retrieveConfigurationsFromSupplicantBackupData()
368 for (int i = 0; i < networks.size(); i++) { in retrieveConfigurationsFromSupplicantBackupData()
369 int id = networks.keyAt(i); in retrieveConfigurationsFromSupplicantBackupData()
373 configuration.setIpConfiguration(networks.valueAt(i)); in retrieveConfigurationsFromSupplicantBackupData()
DWifiConfigManager.java474 List<WifiConfiguration> networks = new ArrayList<>(); in getConfiguredNetworks() local
479 networks.add(createExternalWifiConfiguration(config, maskPasswords)); in getConfiguredNetworks()
481 return networks; in getConfiguredNetworks()
2369 List<WifiConfiguration> networks = new ArrayList<>(getInternalConfiguredNetworks()); in retrievePnoNetworkList() local
2371 Iterator<WifiConfiguration> iter = networks.iterator(); in retrievePnoNetworkList()
2380 Collections.sort(networks, sScanListComparator); in retrievePnoNetworkList()
2382 for (WifiConfiguration config : networks) { in retrievePnoNetworkList()
2401 List<WifiConfiguration> networks = new ArrayList<>(getInternalConfiguredNetworks()); in retrieveHiddenNetworkList() local
2403 Iterator<WifiConfiguration> iter = networks.iterator(); in retrieveHiddenNetworkList()
2410 Collections.sort(networks, sScanListComparator); in retrieveHiddenNetworkList()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkRecommendationProviderTest.java100 public void onRequestScores(NetworkKey[] networks) { in onRequestScores() argument
101 mCapturedNetworks = networks; in onRequestScores()
/frameworks/base/core/proto/android/net/
Dnetworkrequest.proto39 // The framework will issue callbacks about any and all networks that
59 // Like REQUEST but does not cause any networks to retain the
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java443 final Map<Network, NetworkCapabilities> networks = new HashMap<>(); in testCapabilities() local
444 networks.put(mobile, new NetworkCapabilities() in testCapabilities()
450 networks.put(wifi, new NetworkCapabilities() in testCapabilities()
456 setMockedNetworks(networks); in testCapabilities()
568 private void setMockedNetworks(final Map<Network, NetworkCapabilities> networks) { in setMockedNetworks() argument
571 return networks.get(network); in setMockedNetworks()

12