/frameworks/base/core/java/android/net/ |
H A D | NetworkRecommendationProvider.java | 71 * @param networks a non-empty array of {@link NetworkKey}s to score. 73 public abstract void onRequestScores(NetworkKey[] networks); argument 98 public void requestScores(final NetworkKey[] networks) throws RemoteException { argument 100 if (networks != null && networks.length > 0) { 104 onRequestScores(networks);
|
H A D | NetworkScoreManager.java | 69 * to the current active scorer app. That app is responsible for scoring the networks and 70 * calling {@link #updateScores} when complete. The networks to score are specified in 71 * {@link #EXTRA_NETWORKS_TO_SCORE}, and will generally consist of all networks which have been 72 * configured by the user as well as any open networks. 80 * Extra used with {@link #ACTION_SCORE_NETWORKS} to specify the networks to be scored, as an 88 * and secures open wifi networks available before enabling it. Applications that enable this 105 * name of the application that connects and secures open wifi networks automatically. The 269 * <p>This may be called at any time to re-score active networks. Scores will generally be 273 * @param networks the networks whic 278 updateScores(ScoredNetwork[] networks) argument 352 requestScores(NetworkKey[] networks) argument [all...] |
H A D | VpnService.java | 295 * Sets the underlying networks used by the VPN for its upstream connections. 297 * <p>Used by the system to know the actual networks that carry traffic for apps affected by 306 * <p>{@code networks} is one of the following: 310 * networks to carry app traffic, but prefers or uses wifi more than mobile, wifi should appear 322 * @param networks An array of networks the VPN uses to tunnel traffic to/from its servers. 326 public boolean setUnderlyingNetworks(Network[] networks) { argument 328 return getService().setUnderlyingNetworksForVpn(networks); 710 * Sets the underlying networks used by the VPN for its upstream connections. 714 * @param networks A 718 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 | 167 final SparseArray<IpConfiguration> networks) { 171 for(int i = 0; i < networks.size(); i++) { 172 writeConfig(out, networks.keyAt(i), networks.valueAt(i)); 193 SparseArray<IpConfiguration> networks = new SparseArray<IpConfiguration>(); 285 networks.put(id, config); 344 return networks; 166 writeIpAndProxyConfigurations(String filePath, final SparseArray<IpConfiguration> networks) argument
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiNetworkScoreCache.java | 82 @Override public final void updateScores(List<ScoredNetwork> networks) { argument 83 if (networks == null || networks.isEmpty()) { 87 Log.d(TAG, "updateScores list size=" + networks.size()); 93 for (ScoredNetwork network : networks) { 108 mListener.post(networks); 306 * @param updatedNetworks the networks that were updated
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiNetworkHistory.java | 124 * Write network history to file, for configured networks 126 * @param networks List of ConfiguredNetworks to write to NetworkHistory 128 public void writeKnownNetworkHistory(final List<WifiConfiguration> networks, argument 133 //final List<WifiConfiguration> networks = new ArrayList<WifiConfiguration>(); 136 // networks.add(new WifiConfiguration(config)); 141 for (WifiConfiguration config : networks) {
|
H A D | WifiMetrics.java | 712 * @param count number of networks over bad association threshold when watchdog triggered 720 * @param count number of networks over bad authentication threshold when watchdog triggered 728 * @param count number of networks over bad dhcp threshold when watchdog triggered 736 * @param count number of networks over bad other threshold when watchdog triggered 744 * @param count number of networks seen when watchdog triggered 887 * Counts all the different types of networks seen in a set of scan results 1234 * @param networks List of WifiConfigurations representing all saved networks, must not be null 1236 public void updateSavedNetworks(List<WifiConfiguration> networks) { argument 1238 mWifiLogProto.numSavedNetworks = networks [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkScoreService.java | 372 public boolean updateScores(ScoredNetwork[] networks) { argument 380 // Separate networks by type. 382 for (ScoredNetwork network : networks) { 812 public boolean requestScores(NetworkKey[] networks) { argument 819 provider.requestScores(networks);
|
H A D | ConnectivityService.java | 248 // Tear down networks that have no chance (e.g. even if validated) of becoming 250 // all networks have been rematched against all NetworkRequests. 252 // Don't reap networks. This should be passed when some networks have not yet been 960 final Network[] networks = getVpnUnderlyingNetworks(uid); 961 if (networks != null) { 965 // non-empty array => the VPN specified one or more default networks; we use the 967 if (networks.length > 0) { 968 nai = getNetworkAgentInfoForNetwork(networks[0]); 1125 // A VPN is active, so we may need to return one of its underlying networks 5356 setUnderlyingNetworksForVpn(Network[] networks) argument [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 152 * apps can still bypass by choosing explicit networks. Has no effect if {@link mAlwaysOn} is 1201 public synchronized boolean setUnderlyingNetworks(Network[] networks) { argument 1205 if (networks == null) { 1208 mConfig.underlyingNetworks = new Network[networks.length]; 1209 for (int i = 0; i < networks.length; ++i) { 1210 if (networks[i] == null) { 1213 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 813 // Find all networks that are satisfying this request and remove the request 871 // listens don't have a singular affectedNetwork. Check all networks to see 922 public boolean setUnderlyingNetworksForVpn(Network[] networks) { argument
|