Lines Matching defs:Network

47  * Identifies a {@code Network}.  This is supplied to applications via
51 * It is used to direct traffic to the given {@code Network}, either on a {@link Socket} basis
55 public class Network implements Parcelable {
68 private volatile com.android.okhttp.internal.Network mNetwork = null;
85 public Network(int netId) {
92 public Network(Network that) {
135 // Lookup addresses only on this Network.
187 * this factory will have its traffic sent over this {@code Network}. Note that if this
188 * {@code Network} ever disconnects, this factory and any {@link Socket} it produced in the
192 * {@code Network}.
206 // every Network object, instead of one for every NetId. This is
208 // Network object for the same NetId, causing increased memory footprint
216 // a Network is referenced doesn't correlate with whether a new Network
223 mNetwork = new com.android.okhttp.internal.Network() {
226 return Network.this.getAllByName(host);
238 * Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
239 * on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
263 * Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
264 * on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
292 // Use internal APIs to change the Network.
299 * Binds the specified {@link DatagramSocket} to this {@code Network}. All data traffic on the
300 * socket will be sent on this {@code Network}, irrespective of any process-wide network binding
312 * Binds the specified {@link Socket} to this {@code Network}. All data traffic on the socket
313 * will be sent on this {@code Network}, irrespective of any process-wide network binding set by
324 * Binds the specified {@link FileDescriptor} to this {@code Network}. All data traffic on the
325 * socket represented by this file descriptor will be sent on this {@code Network},
357 * Returns a handle representing this {@code Network}, for use with the NDK API.
364 // context) might not be sufficient to fully identify a Network.
371 // inhibit the expansion of state required for Network objects.
396 public static final Creator<Network> CREATOR =
397 new Creator<Network>() {
398 public Network createFromParcel(Parcel in) {
401 return new Network(netId);
404 public Network[] newArray(int size) {
405 return new Network[size];
411 if (obj instanceof Network == false) return false;
412 Network other = (Network)obj;