Home
last modified time | relevance | path

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

12

/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetConfigStore.java42 SparseArray<IpConfiguration> networks = readIpAndProxyConfigurations(ipConfigFile); in readIpAndProxyConfigurations() local
44 if (networks.size() == 0) { in readIpAndProxyConfigurations()
49 if (networks.size() > 1) { in readIpAndProxyConfigurations()
54 return networks.valueAt(0); in readIpAndProxyConfigurations()
58 SparseArray<IpConfiguration> networks = new SparseArray<IpConfiguration>(); in writeIpAndProxyConfigurations() local
59 networks.put(0, config); in writeIpAndProxyConfigurations()
60 writeIpAndProxyConfigurations(ipConfigFile, networks); in writeIpAndProxyConfigurations()
/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()
DNetworkScoreManager.java281 public boolean updateScores(ScoredNetwork[] networks) throws SecurityException { in updateScores() argument
283 return mService.updateScores(networks); in updateScores()
355 public boolean requestScores(NetworkKey[] networks) throws SecurityException { in requestScores() argument
357 return mService.requestScores(networks); in requestScores()
DINetworkScoreService.aidl35 boolean updateScores(in ScoredNetwork[] networks); in updateScores() argument
91 boolean requestScores(in NetworkKey[] networks); in requestScores() argument
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
DIConnectivityManager.aidl174 boolean setUnderlyingNetworksForVpn(in Network[] networks); in setUnderlyingNetworksForVpn() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java79 List<WifiConfiguration> networks = mWifiManager.getConfiguredNetworks(); in getSsid() local
80 int length = networks.size(); in getSsid()
82 if (networks.get(i).networkId == info.getNetworkId()) { in getSsid()
83 return networks.get(i).SSID; in getSsid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java548 List<WifiConfiguration> networks = new ArrayList<>(); in testPnoListComparator() local
566 networks.add(tempDisabledNetwork1); in testPnoListComparator()
567 networks.add(enabledNetwork1); in testPnoListComparator()
568 networks.add(permDisabledNetwork); in testPnoListComparator()
569 networks.add(tempDisabledNetwork2); in testPnoListComparator()
570 networks.add(enabledNetwork2); in testPnoListComparator()
591 Collections.sort(networks, comparator); in testPnoListComparator()
594 assertEquals(enabledNetwork1, networks.get(0)); in testPnoListComparator()
595 assertEquals(enabledNetwork2, networks.get(1)); in testPnoListComparator()
596 assertEquals(tempDisabledNetwork1, networks.get(2)); in testPnoListComparator()
[all …]
DWifiConfigManagerTest.java223 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetwork() local
224 networks.add(openNetwork); in testAddSingleOpenNetwork()
231 networks, retrievedNetworks); in testAddSingleOpenNetwork()
243 List<WifiConfiguration> networks = new ArrayList<>(); in testUpdateSingleOpenNetwork() local
244 networks.add(openNetwork); in testUpdateSingleOpenNetwork()
258 networks, retrievedNetworks); in testUpdateSingleOpenNetwork()
271 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleEphemeralNetwork() local
272 networks.add(ephemeralNetwork); in testAddSingleEphemeralNetwork()
279 networks, retrievedNetworks); in testAddSingleEphemeralNetwork()
318 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/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/services/core/java/com/android/server/net/
DIpConfigStore.java167 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurations() argument
171 for(int i = 0; i < networks.size(); i++) { in writeIpAndProxyConfigurations()
172 writeConfig(out, networks.keyAt(i), networks.valueAt(i)); in writeIpAndProxyConfigurations()
193 SparseArray<IpConfiguration> networks = new SparseArray<IpConfiguration>(); in readIpAndProxyConfigurations() local
285 networks.put(id, config); in readIpAndProxyConfigurations()
344 return networks; in readIpAndProxyConfigurations()
/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/
DOpenNetworkRecommender.java40 public ScanResult recommendNetwork(@NonNull List<ScanDetail> networks, in recommendNetwork() argument
44 for (ScanDetail scanDetail : networks) { in recommendNetwork()
DWifiBackupRestore.java406 SparseArray<IpConfiguration> networks = in retrieveConfigurationsFromSupplicantBackupData() local
409 if (networks != null) { in retrieveConfigurationsFromSupplicantBackupData()
410 for (int i = 0; i < networks.size(); i++) { in retrieveConfigurationsFromSupplicantBackupData()
411 int id = networks.keyAt(i); in retrieveConfigurationsFromSupplicantBackupData()
415 configuration.setIpConfiguration(networks.valueAt(i)); in retrieveConfigurationsFromSupplicantBackupData()
DWifiConfigManager.java461 List<WifiConfiguration> networks = new ArrayList<>(); in getConfiguredNetworks() local
466 networks.add(createExternalWifiConfiguration(config, maskPasswords)); in getConfiguredNetworks()
468 return networks; in getConfiguredNetworks()
2332 List<WifiConfiguration> networks = new ArrayList<>(getInternalConfiguredNetworks()); in retrievePnoNetworkList() local
2334 Iterator<WifiConfiguration> iter = networks.iterator(); in retrievePnoNetworkList()
2343 Collections.sort(networks, sScanListComparator); in retrievePnoNetworkList()
2346 int priority = networks.size() - 1; in retrievePnoNetworkList()
2347 for (WifiConfiguration config : networks) { in retrievePnoNetworkList()
2367 List<WifiConfiguration> networks = new ArrayList<>(getInternalConfiguredNetworks()); in retrieveHiddenNetworkList() local
2369 Iterator<WifiConfiguration> iter = networks.iterator(); in retrieveHiddenNetworkList()
[all …]
DREADME.txt46 …nning from any app with Wi-Fi turned off. This is done by disabling all networks and allowing only…
/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/services/core/java/com/android/server/
DNetworkScoreService.java387 public boolean updateScores(ScoredNetwork[] networks) { in updateScores() argument
397 for (ScoredNetwork network : networks) { in updateScores()
833 public boolean requestScores(NetworkKey[] networks) { in requestScores() argument
840 provider.requestScores(networks); in requestScores()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1343 public synchronized boolean setUnderlyingNetworks(Network[] networks) { in setUnderlyingNetworks() argument
1347 if (networks == null) { in setUnderlyingNetworks()
1350 mConfig.underlyingNetworks = new Network[networks.length]; in setUnderlyingNetworks()
1351 for (int i = 0; i < networks.length; ++i) { in setUnderlyingNetworks()
1352 if (networks[i] == null) { in setUnderlyingNetworks()
1355 mConfig.underlyingNetworks[i] = new Network(networks[i].netId); in setUnderlyingNetworks()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java229 final NetworkKey[] networks = new NetworkKey[0]; in testRequestScores_providerAvailable() local
230 assertTrue(mNetworkScoreService.requestScores(networks)); in testRequestScores_providerAvailable()
231 verify(mRecommendationProvider).requestScores(networks); in testRequestScores_providerAvailable()

12