Home
last modified time | relevance | path

Searched refs:javaFd (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/framework/jni/
Dandroid_net_NetworkUtils.cpp56 static void android_net_utils_attachDropAllBPFFilter(JNIEnv *env, jobject clazz, jobject javaFd) in android_net_utils_attachDropAllBPFFilter() argument
67 int fd = AFileDescriptor_getFd(env, javaFd); in android_net_utils_attachDropAllBPFFilter()
74 static void android_net_utils_detachBPFFilter(JNIEnv *env, jobject clazz, jobject javaFd) in android_net_utils_detachBPFFilter() argument
77 int fd = AFileDescriptor_getFd(env, javaFd); in android_net_utils_detachBPFFilter()
108 static jint android_net_utils_bindSocketToNetworkHandle(JNIEnv *env, jobject thiz, jobject javaFd, in android_net_utils_bindSocketToNetworkHandle() argument
110 return android_setsocknetwork(netHandle, AFileDescriptor_getFd(env, javaFd)); in android_net_utils_bindSocketToNetworkHandle()
158 static jobject android_net_utils_resNetworkResult(JNIEnv *env, jobject thiz, jobject javaFd) { in android_net_utils_resNetworkResult() argument
159 int fd = AFileDescriptor_getFd(env, javaFd); in android_net_utils_resNetworkResult()
164 jniSetFileDescriptorOfFD(env, javaFd, -1); in android_net_utils_resNetworkResult()
184 static void android_net_utils_resNetworkCancel(JNIEnv *env, jobject thiz, jobject javaFd) { in android_net_utils_resNetworkCancel() argument
[all …]
/packages/modules/Connectivity/Tethering/jni/
Dandroid_net_util_TetheringUtils.cpp37 static void android_net_util_setupIcmpFilter(JNIEnv *env, jobject javaFd, uint32_t type) { in android_net_util_setupIcmpFilter() argument
57 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in android_net_util_setupIcmpFilter()
64 static void android_net_util_setupNaSocket(JNIEnv *env, jobject clazz, jobject javaFd) in android_net_util_setupNaSocket() argument
66 android_net_util_setupIcmpFilter(env, javaFd, ND_NEIGHBOR_ADVERT); in android_net_util_setupNaSocket()
69 static void android_net_util_setupNsSocket(JNIEnv *env, jobject clazz, jobject javaFd) in android_net_util_setupNsSocket() argument
71 android_net_util_setupIcmpFilter(env, javaFd, ND_NEIGHBOR_SOLICIT); in android_net_util_setupNsSocket()
74 static void android_net_util_setupRaSocket(JNIEnv *env, jobject clazz, jobject javaFd, in android_net_util_setupRaSocket() argument
79 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in android_net_util_setupRaSocket()
/packages/modules/NetworkStack/jni/
Dnetwork_stack_utils_jni.cpp63 jbyteArray ipv4Addr, jstring ifname, jobject javaFd) { in network_stack_utils_addArpEntry() argument
89 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_addArpEntry()
101 static void network_stack_utils_attachDhcpFilter(JNIEnv *env, jobject clazz, jobject javaFd) { in network_stack_utils_attachDhcpFilter() argument
127 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachDhcpFilter()
134 static void network_stack_utils_attachRaFilter(JNIEnv *env, jobject clazz, jobject javaFd, in network_stack_utils_attachRaFilter() argument
160 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachRaFilter()
169 JNIEnv *env, jobject clazz, jobject javaFd, jint hardwareAddressType) { in network_stack_utils_attachControlPacketFilter() argument
235 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachControlPacketFilter()