/frameworks/base/core/java/android/net/ |
H A D | NetworkRecommendationProvider.java | 72 * @param networks a non-empty array of {@link NetworkKey}s to score. 74 public abstract void onRequestScores(NetworkKey[] networks); argument 99 public void requestScores(final NetworkKey[] networks) throws RemoteException { argument 101 if (networks != null && networks.length > 0) { 105 onRequestScores(networks);
|
H A D | NetworkScoreManager.java | 70 * to the current active scorer app. That app is responsible for scoring the networks and 71 * calling {@link #updateScores} when complete. The networks to score are specified in 72 * {@link #EXTRA_NETWORKS_TO_SCORE}, and will generally consist of all networks which have been 73 * configured by the user as well as any open networks. 81 * Extra used with {@link #ACTION_SCORE_NETWORKS} to specify the networks to be scored, as an 89 * and secures open wifi networks available before enabling it. Applications that enable this 106 * name of the application that connects and secures open wifi networks automatically. The 279 * <p>This may be called at any time to re-score active networks. Scores will generally be 283 * @param networks the networks whic 288 updateScores(ScoredNetwork[] networks) argument 368 requestScores(NetworkKey[] networks) argument [all...] |
H A D | VpnService.java | 330 * Sets the underlying networks used by the VPN for its upstream connections. 332 * <p>Used by the system to know the actual networks that carry traffic for apps affected by 341 * <p>{@code networks} is one of the following: 345 * networks to carry app traffic, but prefers or uses wifi more than mobile, wifi should appear 357 * @param networks An array of networks the VPN uses to tunnel traffic to/from its servers. 361 public boolean setUnderlyingNetworks(Network[] networks) { argument 363 return getService().setUnderlyingNetworksForVpn(networks); 745 * Sets the underlying networks used by the VPN for its upstream connections. 749 * @param networks A 753 setUnderlyingNetworks(Network[] networks) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | NetworkRecommendationProviderTest.java | 100 public void onRequestScores(NetworkKey[] networks) { argument 101 mCapturedNetworks = networks;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | ThreeGPPNetworkElement.java | 50 public ThreeGPPNetworkElement(List<CellularNetwork> networks) { argument 52 mNetworks = networks; 79 List<CellularNetwork> networks = new ArrayList<>(); 83 networks.add(network); 86 return new ThreeGPPNetworkElement(networks);
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | IpConfigStore.java | 182 final SparseArray<IpConfiguration> networks) { 185 for(int i = 0; i < networks.size(); i++) { 186 writeConfig(out, String.valueOf(networks.keyAt(i)), networks.valueAt(i)); 192 ArrayMap<String, IpConfiguration> networks) { 195 for(int i = 0; i < networks.size(); i++) { 196 writeConfig(out, networks.keyAt(i), networks.valueAt(i)); 233 ArrayMap<String, IpConfiguration> networks = readIpConfigurations(inputStream); 234 if (networks 181 writeIpAndProxyConfigurationsToFile(String filePath, final SparseArray<IpConfiguration> networks) argument 191 writeIpConfigurations(String filePath, ArrayMap<String, IpConfiguration> networks) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiNetworkScoreCache.java | 89 @Override public final void updateScores(List<ScoredNetwork> networks) { argument 90 if (networks == null || networks.isEmpty()) { 94 Log.d(TAG, "updateScores list size=" + networks.size()); 100 for (ScoredNetwork network : networks) { 113 mListener.post(networks); 311 * @param updatedNetworks the networks that were updated
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | WakeupLockTest.java | 71 * Updates the lock enough times to evict any networks not passed in. 76 private void updateEnoughTimesToEvictWithAsserts(Collection<ScanResultMatchInfo> networks) { argument 79 mWakeupLock.update(networks); 84 * Updates the lock enough times to evict any networks not passed in. 89 private void updateEnoughTimesToEvictWithoutAsserts(Collection<ScanResultMatchInfo> networks) { argument 91 mWakeupLock.update(networks); 101 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); 102 mWakeupLock.setLock(networks); 105 mWakeupLock.update(networks); 107 mWakeupLock.update(networks); 286 setLockAndInitializeByTimeout(Collection<ScanResultMatchInfo> networks) argument [all...] |
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
H A D | VpnTest.java | 443 final Map<Network, NetworkCapabilities> networks = new HashMap<>(); 444 networks.put(mobile, new NetworkCapabilities() 450 networks.put(wifi, new NetworkCapabilities() 456 setMockedNetworks(networks); 568 private void setMockedNetworks(final Map<Network, NetworkCapabilities> networks) { argument 571 return networks.get(network); 606 // All IPv4 routes except for local networks. This is the case most relevant
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiNetworkHistory.java | 121 * Write network history to file, for configured networks 123 * @param networks List of ConfiguredNetworks to write to NetworkHistory 125 public void writeKnownNetworkHistory(final List<WifiConfiguration> networks, argument 130 //final List<WifiConfiguration> networks = new ArrayList<WifiConfiguration>(); 133 // networks.add(new WifiConfiguration(config)); 138 for (WifiConfiguration config : networks) {
|
H A D | AvailableNetworkNotifier.java | 113 /** Whether the user has set the setting to show the 'available networks' notification. */ 265 * If there are available networks, attempt to post a network notification. 267 * @param availableNetworks Available networks to choose from and possibly show notification 305 * Recommends a network to connect to from a list of available networks, while ignoring the 308 public ScanResult recommendNetwork(@NonNull List<ScanDetail> networks, argument 312 for (ScanDetail scanDetail : networks) {
|
H A D | WifiMetrics.java | 990 * @param count number of networks over bad association threshold when watchdog triggered 998 * @param count number of networks over bad authentication threshold when watchdog triggered 1006 * @param count number of networks over bad dhcp threshold when watchdog triggered 1014 * @param count number of networks over bad other threshold when watchdog triggered 1022 * @param count number of networks seen when watchdog triggered 1191 * Counts all the different types of networks seen in a set of scan results 2159 * @param networks List of WifiConfigurations representing all saved networks, must not be null 2161 public void updateSavedNetworks(List<WifiConfiguration> networks) { argument 2163 mWifiLogProto.numSavedNetworks = networks [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkScoreService.java | 447 public boolean updateScores(ScoredNetwork[] networks) { argument 455 // Separate networks by type. 457 for (ScoredNetwork network : networks) { 877 public boolean requestScores(NetworkKey[] networks) { argument 884 provider.requestScores(networks);
|
H A D | ConnectivityService.java | 277 // Tear down networks that have no chance (e.g. even if validated) of becoming 279 // all networks have been rematched against all NetworkRequests. 281 // Don't reap networks. This should be passed when some networks have not yet been 1079 final Network[] networks = getVpnUnderlyingNetworks(uid); 1080 if (networks != null) { 1084 // non-empty array => the VPN specified one or more default networks; we use the 1086 if (networks.length > 0) { 1087 nai = getNetworkAgentInfoForNetwork(networks[0]); 1239 // A VPN is active, so we may need to return one of its underlying networks 5802 setUnderlyingNetworksForVpn(Network[] networks) argument [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 193 * apps can still bypass by choosing explicit networks. Has no effect if {@link mAlwaysOn} is 333 // When we have multiple networks, we have to assume the 345 // No idea what the underlying networks are; assume sane defaults 1474 public synchronized boolean setUnderlyingNetworks(Network[] networks) { argument 1478 if (networks == null) { 1481 mConfig.underlyingNetworks = new Network[networks.length]; 1482 for (int i = 0; i < networks.length; ++i) { 1483 if (networks[i] == null) { 1486 mConfig.underlyingNetworks[i] = new Network(networks[i].netId);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
H A D | ConnectivityServiceMock.java | 258 // by other networks that are already connected. Perhaps that can be done by 293 // // after we've rematched networks with requests which should make a potential 824 // Find all networks that are satisfying this request and remove the request 882 // listens don't have a singular affectedNetwork. Check all networks to see 933 public boolean setUnderlyingNetworksForVpn(Network[] networks) { argument
|