Home
last modified time | relevance | path

Searched refs:netid (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/native/android/
Dnet.c30 static int getnetidfromhandle(net_handle_t handle, unsigned *netid) { in getnetidfromhandle() argument
39 if (netid != NULL) { in getnetidfromhandle()
40 *netid = ((handle >> (CHAR_BIT * sizeof(k32BitMask))) & k32BitMask); in getnetidfromhandle()
45 static net_handle_t gethandlefromnetid(unsigned netid) { in gethandlefromnetid() argument
46 if (netid == NETID_UNSET) { in gethandlefromnetid()
49 return (((net_handle_t) netid) << kHandleMagicSize) | kHandleMagic; in gethandlefromnetid()
53 unsigned netid; in android_setsocknetwork() local
54 if (!getnetidfromhandle(network, &netid)) { in android_setsocknetwork()
59 int rval = setNetworkForSocket(netid, fd); in android_setsocknetwork()
68 unsigned netid; in android_setprocnetwork() local
[all …]
/frameworks/base/core/java/android/net/metrics/
DIpConnectivityLog.java155 public boolean log(int netid, @NonNull int[] transports, @NonNull Event data) { in log() argument
157 ev.netId = netid; in log()