Searched refs:network (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/telephony/java/com/android/ims/
H A DImsConfigListener.aidl29 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
34 void onGetFeatureResponse(int feature, int network, int value, int status);
44 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
50 void onSetFeatureResponse(int feature, int network, int value, int status);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNetworkScoreCache.java60 for (ScoredNetwork network : networks) {
61 String networkKey = buildNetworkKey(network);
63 mNetworkCache.put(networkKey, network);
80 ScoredNetwork network = mNetworkCache.get(key);
81 if (network != null) {
97 ScoredNetwork network = mNetworkCache.get(key);
98 if (network != null && network.rssiCurve != null) {
99 score = network.rssiCurve.lookupScore(result.level);
101 Log.e(TAG, "getNetworkScore found scored network "
133 buildNetworkKey(ScoredNetwork network) argument
[all...]
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsConfig.aidl92 * Gets the value of the specified IMS feature item for specified network type.
97 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
101 oneway void getFeatureValue(int feature, int network, ImsConfigListener listener);
104 * Sets the value for IMS feature item for specified network type.
109 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
114 oneway void setFeatureValue(int feature, int network, int value, ImsConfigListener listener);
/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsConfig.java283 * Gets the value for IMS feature item for specified network type.
286 * @param network, defined as in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
292 public void getFeatureValue(int feature, int network, argument
295 Rlog.d(TAG, "getFeatureValue: feature = " + feature + ", network =" + network +
299 miConfig.getFeatureValue(feature, network, listener);
307 * Sets the value for IMS feature item for specified network type.
310 * @param network, as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.
317 public void setFeatureValue(int feature, int network, int value, argument
321 Rlog.d(TAG, "setFeatureValue: feature = " + feature + ", network
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkAgentInfo.java43 public Network network; field in class:NetworkAgentInfo
56 // Score for explicitly connected network.
71 network = null;
113 return "NetworkAgentInfo{ ni{" + networkInfo + "} network{" +
114 network + "} lp{" +
124 (network == null ? "null" : network.toString()) + "]";
H A DNat464Xlat.java55 // Current LinkProperties of the network. Includes mLP as a stacked link when clat is active.
59 // Marker to connote which network we're augmenting.
88 * Determines whether a network requires clat.
89 * @param network the NetworkAgentInfo corresponding to the network.
90 * @return true if the network requires clat, false otherwise.
104 public boolean isRunningClat(NetworkAgentInfo network) { argument
105 return mNetworkMessenger == network.messenger;
112 public void startClat(NetworkAgentInfo network) { argument
113 if (mNetworkMessenger != null && mNetworkMessenger != network
[all...]
H A DPermissionMonitor.java184 List<Integer> network = new ArrayList<Integer>();
187 List<Integer> list = app.getValue() ? system : network;
194 mNetd.setPermission(CHANGE_NETWORK_STATE, toIntArray(network));
197 mNetd.clearPermission(toIntArray(network));
H A DNetworkMonitor.java89 // LOGGED_IN_RESULT = "1" if we should use network, "0" if not.
94 // After a network has been tested this result can be sent with EVENT_NETWORK_TESTED.
95 // The network should be used as a default internet connection. It was found to be:
96 // 1. a functioning network providing internet access, or
99 // After a network has been tested this result can be sent with EVENT_NETWORK_TESTED.
100 // The network should not be used as a default internet connection. It was found to be:
103 // 3. a broken network (e.g. DNS failed, connect failed, HTTP request failed).
109 * Inform NetworkMonitor that their network is connected.
115 * Inform ConnectivityService that the network has been tested.
122 * Inform NetworkMonitor to linger a network
[all...]
H A DTethering.java1347 Network network = getConnectivityManager().getNetworkForType(upType);
1348 if (network == null) {
1352 Log.d(TAG, "Setting DNS forwarders: Network=" + network +
1355 mNMService.setDnsForwarders(network, dnsServers);
/frameworks/volley/tests/src/com/android/volley/
H A DRequestQueueTest.java72 OrderCheckingNetwork network = new OrderCheckingNetwork();
73 RequestQueue queue = new RequestQueue(new NoCache(), network, 1, mDelivery);
79 network.setExpectedRequests(requestsToMake);
81 network.waitUntilExpectedDone(2000); // 2 seconds
86 OrderCheckingNetwork network = new OrderCheckingNetwork();
100 network.setExpectedRequests(2);
101 RequestQueue queue = new RequestQueue(new NoCache(), network, 3, mDelivery);
105 network.waitUntilExpectedDone(2000);
110 MockNetwork network = new MockNetwork();
111 RequestQueue queue = new RequestQueue(new NoCache(), network,
[all...]
/frameworks/volley/src/com/android/volley/
H A DRequestQueue.java35 * resolving from either cache or network on a worker thread, and then delivering
67 /** The queue of requests that are actually going out to the network. */
71 /** Number of network request dispatcher threads to start. */
83 /** The network dispatchers. */
93 * @param network A Network interface for performing HTTP requests
94 * @param threadPoolSize Number of network dispatcher threads to create
97 public RequestQueue(Cache cache, Network network, int threadPoolSize, argument
100 mNetwork = network;
109 * @param network A Network interface for performing HTTP requests
110 * @param threadPoolSize Number of network dispatche
112 RequestQueue(Cache cache, Network network, int threadPoolSize) argument
123 RequestQueue(Cache cache, Network network) argument
[all...]
H A DNetworkDispatcher.java27 * Provides a thread for performing network dispatch from a queue of requests.
29 * Requests added to the specified queue are processed from the network via a
37 /** The network interface for processing requests. */
47 * Creates a new network dispatcher thread. You must call {@link #start()}
51 * @param network Network interface to use for performing requests
56 Network network, Cache cache,
59 mNetwork = network;
98 request.addMarker("network-queue-take");
101 // network request.
103 request.finish("network
55 NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) argument
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DVolley.java39 * @param stack An {@link HttpStack} to use for the network, or null for default.
63 Network network = new BasicNetwork(stack);
65 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network);
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java55 * Class that answers queries about the state of network connectivity. It also
56 * notifies applications when network connectivity changes. Get an instance
62 * <li>Monitor network connections (Wi-Fi, GPRS, UMTS, etc.)</li>
63 * <li>Send broadcast intents when network connectivity changes</li>
64 * <li>Attempt to "fail over" to another network when connectivity to a network
77 * A change in network connectivity has occurred. A default connection has either
78 * been established or lost. The NetworkInfo for the affected network is
83 * disconnected network, then the FAILOVER_CONNECTION boolean extra is
87 * to connect (or has already connected) to another network, th
664 getNetworkInfo(Network network) argument
793 getLinkProperties(Network network) argument
808 getNetworkCapabilities(Network network) argument
1705 reportBadNetwork(Network network) argument
2046 onPreCheck(Network network) argument
2055 onAvailable(Network network) argument
2071 onLosing(Network network, int maxMsToLive) argument
2079 onLost(Network network) argument
2095 onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) argument
2105 onLinkPropertiesChanged(Network network, LinkProperties linkProperties) argument
2488 setProcessDefaultNetwork(Network network) argument
2527 setProcessDefaultNetworkForHostResolution(Network network) argument
[all...]
H A DIConnectivityManager.aidl41 * state of network connectivity.
49 NetworkInfo getNetworkInfoForNetwork(in Network network);
60 LinkProperties getLinkProperties(in Network network);
62 NetworkCapabilities getNetworkCapabilities(in Network network);
100 void reportBadNetwork(in Network network);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSecurityControllerImpl.java71 // TODO: re-register network callback on user change.
189 public void onAvailable(Network network) {
191 mConnectivityManager.getNetworkCapabilities(network);
192 if (DEBUG) Log.d(TAG, "onAvailable " + network.netId + " : " + networkCapabilities);
194 setCurrentNetid(network.netId);
201 public void onLost(Network network) {
202 if (DEBUG) Log.d(TAG, "onLost " + network.netId);
203 if (mCurrentVpnNetworkId == network.netId) {
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c83 char network[PROPERTY_VALUE_MAX], date[80]; local
91 property_get("gsm.operator.alpha", network, "(unknown)");
103 printf("Network: %s\n", network);
249 property_get("dhcp.wlan0.gateway", network, "");
250 if (network[0])
251 run_command("PING GATEWAY", 10, "ping", "-c", "3", "-i", ".5", network, NULL);
252 property_get("dhcp.wlan0.dns1", network, "");
253 if (network[0])
254 run_command("PING DNS1", 10, "ping", "-c", "3", "-i", ".5", network, NULL);
255 property_get("dhcp.wlan0.dns2", network, "");
[all...]
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
H A DCaptivePortalLoginActivity.java65 // LOGGED_IN_RESULT = "1" if we should use network, "0" if not.
87 final Network network = new Network(mNetId);
88 ConnectivityManager.setProcessDefaultNetwork(network);
91 final LinkProperties lp = ConnectivityManager.from(this).getLinkProperties(network);
116 ConnectivityManager.from(this).getNetworkCapabilities(network);
124 if (network.equals(lostNetwork)) done(false);
/frameworks/base/services/core/java/com/android/server/
H A DNetworkScoreService.java88 for (ScoredNetwork network : networks) {
89 List<ScoredNetwork> networkList = networksByType.get(network.networkKey.type);
92 networksByType.put(network.networkKey.type, networkList);
94 networkList.add(network);
97 // Pass the scores of each type down to the appropriate network scorer.
H A DConnectivityService.java193 // network sampling debugging
198 // TODO: create better separation between radio types and network types
200 // how long to wait before switching back to a radio's default network
219 // Set network sampling interval at 12 minutes, this way, even if the timers get
224 // start network sampling a minute after booting ...
245 /** Currently active network rules by UID. */
251 * Sometimes we want to refer to the individual network state
285 * network - EVENT_EXPIRE_NET_TRANSITION_WAKELOCK happens
286 * after a timeout if no network is found (typically 1 min).
341 * used to add a network reques
965 getNetworkInfoForNetwork(Network network) argument
1049 getLinkProperties(Network network) argument
1065 getNetworkCapabilities(Network network) argument
2486 reportBadNetwork(Network network) argument
[all...]
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl49 * Returns a list of currently known network interfaces
95 * Retrieves the network routes currently configured on the specified
168 void setDnsForwarders(in Network network, in String[] dns);
178 * the NAT'ed network.
234 * Return global network statistics summarized at an interface level,
241 * Return detailed network statistics with UID-level granularity,
247 * Return detailed network statistics for the requested UID,
253 * Return summary of network statistics all tethering interfaces.
283 * Control network activity of a UID over interfaces with a quota limit.
302 * {@link removeIdleTimer} to cleanup when the network disconnect
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DQSTileHost.java92 RotationLockController rotation, NetworkController network,
102 mNetwork = network;
90 QSTileHost(Context context, PhoneStatusBar statusBar, BluetoothController bluetooth, LocationController location, RotationLockController rotation, NetworkController network, ZenModeController zen, HotspotController hotspot, CastController cast, FlashlightController flashlight, UserSwitcherController userSwitcher, KeyguardMonitor keyguard, SecurityController security) argument
/frameworks/base/docs/html/training/
H A Dtraining_toc.cs508 <a href="<?cs var:toroot ?>training/basics/network-ops/index.html"
510 "How to create a network connection, monitor the connection for changes
515 <li><a href="<?cs var:toroot ?>training/basics/network-ops/connecting.html">
519 <li><a href="<?cs var:toroot ?>training/basics/network-ops/managing.html">
523 <li><a href="<?cs var:toroot ?>training/basics/network-ops/xml.html">
534 and other network transactions."
538 <li><a href="<?cs var:toroot ?>training/efficient-downloads/efficient-network-access.html">
615 description="How to perform fast, scalable UI operations over the network using Volley"
1624 "How to ensure that your app is secure when performing network transactions."
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneBase.java105 // Key used to read and write the saved network selection numeric value
107 // Key used to read and write the saved network selection operator name
211 * they are to simulate detaching from the network.
222 * they are to simulate attaching to the network.
362 * (i.e. voice) phone calls over the telephony network, and is allowed
495 // handle the select network completion callbacks.
828 public void selectNetworkManually(OperatorInfo network, Message response) { argument
833 nsm.operatorNumeric = network.getOperatorNumeric();
834 nsm.operatorAlphaLong = network.getOperatorAlphaLong();
837 mCi.setNetworkSelectionModeManual(network
[all...]
H A DPhone.java121 // Used for preferred network type
467 * its network activity and is in its final state. This may mean a state
527 * Register for Supplementary Service notifications from the network.
1073 * Switches network selection mode to "automatic", re-scanning and
1074 * re-selecting a network if appropriate.
1076 * @param response The message to dispatch when the network selection
1084 * Manually selects a network. <code>response</code> is
1091 void selectNetworkManually(OperatorInfo network, argument
1095 * Requests to set the preferred network type for searching and registering
1103 * Query the preferred network typ
[all...]

Completed in 637 milliseconds

12