Home
last modified time | relevance | path

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

/packages/modules/Connectivity/framework/jni/
Dandroid_net_NetworkUtils.cpp86 jlong netHandle) in android_net_utils_bindProcessToNetworkHandle() argument
88 return (jboolean) !android_setprocnetwork(netHandle); in android_net_utils_bindProcessToNetworkHandle()
103 jint netId, jlong netHandle) in android_net_utils_bindProcessToNetworkForHostResolution() argument
105 return (jboolean) !android_setprocdns(netHandle); in android_net_utils_bindProcessToNetworkForHostResolution()
109 jlong netHandle) { in android_net_utils_bindSocketToNetworkHandle() argument
110 return android_setsocknetwork(netHandle, AFileDescriptor_getFd(env, javaFd)); in android_net_utils_bindSocketToNetworkHandle()
122 static jobject android_net_utils_resNetworkQuery(JNIEnv *env, jobject thiz, jlong netHandle, in android_net_utils_resNetworkQuery() argument
133 int fd = android_res_nquery(netHandle, queryname, ns_class, ns_type, flags); in android_net_utils_resNetworkQuery()
143 static jobject android_net_utils_resNetworkSend(JNIEnv *env, jobject thiz, jlong netHandle, in android_net_utils_resNetworkSend() argument
148 int fd = android_res_nsend(netHandle, data, msgLen, flags); in android_net_utils_resNetworkSend()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkUtils.java63 private static native boolean bindProcessToNetworkHandle(long netHandle); in bindProcessToNetworkHandle() argument
84 final long netHandle = getBoundNetworkHandleForProcess(); in getBoundNetworkForProcess() local
85 return netHandle == 0L ? NETID_UNSET : Network.fromNetworkHandle(netHandle).getNetId(); in getBoundNetworkForProcess()
98 private static native int bindSocketToNetworkHandle(FileDescriptor fd, long netHandle); in bindSocketToNetworkHandle() argument
119 long netHandle, byte[] msg, int msglen, int flags) throws ErrnoException; in resNetworkSend() argument
133 long netHandle, String dname, int nsClass, int nsType, int flags) throws ErrnoException; in resNetworkQuery() argument