Home | History | Annotate | Download | only in net

Lines Matching defs:netId

62     public final int netId;
106 public Network(int netId) {
107 this.netId = netId;
114 this.netId = that.netId;
155 * Returns a netid marked with the Private DNS bypass flag.
164 ? (int) (0x80000000L | (long) netId) // Non-portable DNS resolution flag.
165 : netId;
174 public NetworkBoundSocketFactory(int netId) {
176 mNetId = netId;
268 mNetworkBoundSocketFactory = new NetworkBoundSocketFactory(netId);
276 // every Network object, instead of one for every NetId. This is
278 // Network object for the same NetId, causing increased memory footprint
283 // for every NetId, perhaps by using a static HashMap of NetIds to
287 // will be instantiated in the near future with the same NetID. A good
400 final int err = NetworkUtils.bindSocketToNetwork(fd.getInt$(), netId);
403 throw new ErrnoException("Binding socket to network " + netId, -err)
431 // The network handle is explicitly not the same as the netId.
433 // The netId is an implementation detail which might be changed in the
439 // were identical and passing a netId to a call expecting a handle
441 // prevent future changes to the semantics of the netId field or
449 if (netId == 0) {
452 return (((long) netId) << HANDLE_MAGIC_SIZE) | HANDLE_MAGIC;
460 dest.writeInt(netId);
466 int netId = in.readInt();
468 return new Network(netId);
480 return this.netId == other.netId;
485 return netId * 11;
490 return Integer.toString(netId);
496 proto.write(NetworkProto.NET_ID, netId);