Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/native/netjniutils/
Dnetjniutils.cpp34 int GetNativeFileDescriptorWithoutNdk(JNIEnv* env, jobject javaFd) { in GetNativeFileDescriptorWithoutNdk() argument
50 return javaFd != nullptr ? env->GetIntField(javaFd, descriptorFieldID) : -1; in GetNativeFileDescriptorWithoutNdk()
53 int GetNativeFileDescriptorWithNdk(JNIEnv* env, jobject javaFd) { in GetNativeFileDescriptorWithNdk() argument
69 return javaFd != nullptr ? ndkGetFd(env, javaFd) : -1; in GetNativeFileDescriptorWithNdk()
74 int GetNativeFileDescriptor(JNIEnv* env, jobject javaFd) { in GetNativeFileDescriptor() argument
78 return GetNativeFileDescriptorWithNdk(env, javaFd); in GetNativeFileDescriptor()
80 return GetNativeFileDescriptorWithoutNdk(env, javaFd); in GetNativeFileDescriptor()
/packages/modules/Connectivity/framework/jni/
Dandroid_net_NetworkUtils.cpp59 static void android_net_utils_attachDropAllBPFFilter(JNIEnv *env, jclass clazz, jobject javaFd) in android_net_utils_attachDropAllBPFFilter() argument
69 int fd = AFileDescriptor_getFd(env, javaFd); in android_net_utils_attachDropAllBPFFilter()
76 static void android_net_utils_detachBPFFilter(JNIEnv *env, jclass clazz, jobject javaFd) in android_net_utils_detachBPFFilter() argument
79 int fd = AFileDescriptor_getFd(env, javaFd); in android_net_utils_detachBPFFilter()
110 static jint android_net_utils_bindSocketToNetworkHandle(JNIEnv *env, jclass clazz, jobject javaFd, in android_net_utils_bindSocketToNetworkHandle() argument
112 return android_setsocknetwork(netHandle, AFileDescriptor_getFd(env, javaFd)); in android_net_utils_bindSocketToNetworkHandle()
160 static jobject android_net_utils_resNetworkResult(JNIEnv *env, jclass clazz, jobject javaFd) { in android_net_utils_resNetworkResult() argument
161 int fd = AFileDescriptor_getFd(env, javaFd); in android_net_utils_resNetworkResult()
166 jniSetFileDescriptorOfFD(env, javaFd, -1); in android_net_utils_resNetworkResult()
186 static void android_net_utils_resNetworkCancel(JNIEnv *env, jclass clazz, jobject javaFd) { in android_net_utils_resNetworkCancel() argument
[all …]
/packages/modules/Connectivity/Tethering/jni/
Dcom_android_networkstack_tethering_util_TetheringUtils.cpp39 static void com_android_networkstack_tethering_util_setupIcmpFilter(JNIEnv *env, jobject javaFd, in com_android_networkstack_tethering_util_setupIcmpFilter() argument
58 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in com_android_networkstack_tethering_util_setupIcmpFilter()
65 jobject javaFd) { in com_android_networkstack_tethering_util_setupNaSocket() argument
66 com_android_networkstack_tethering_util_setupIcmpFilter(env, javaFd, ND_NEIGHBOR_ADVERT); in com_android_networkstack_tethering_util_setupNaSocket()
70 jobject javaFd) { in com_android_networkstack_tethering_util_setupNsSocket() argument
71 com_android_networkstack_tethering_util_setupIcmpFilter(env, javaFd, ND_NEIGHBOR_SOLICIT); in com_android_networkstack_tethering_util_setupNsSocket()
75 jobject javaFd, jint ifIndex) { in com_android_networkstack_tethering_util_setupRaSocket() argument
78 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in com_android_networkstack_tethering_util_setupRaSocket()
/packages/modules/NetworkStack/jni/
Dnetwork_stack_utils_jni.cpp56 jbyteArray ipv4Addr, jstring ifname, jobject javaFd) { in network_stack_utils_addArpEntry() argument
82 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_addArpEntry()
96 static void network_stack_utils_attachDhcpFilter(JNIEnv *env, jclass clazz, jobject javaFd) { in network_stack_utils_attachDhcpFilter() argument
120 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachDhcpFilter()
128 static void network_stack_utils_attachRaFilter(JNIEnv *env, jclass clazz, jobject javaFd) { in network_stack_utils_attachRaFilter() argument
147 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachRaFilter()
156 JNIEnv *env, jclass clazz, jobject javaFd) { in network_stack_utils_attachControlPacketFilter() argument
218 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachControlPacketFilter()
/packages/modules/Connectivity/service/jni/
Dcom_android_server_connectivity_ClatCoordinator.cpp311 JNIEnv* env, jclass clazz, jobject javaFd, jstring addr6, jint ifindex) { in com_android_server_connectivity_ClatCoordinator_addAnycastSetsockopt() argument
312 int sock = netjniutils::GetNativeFileDescriptor(env, javaFd); in com_android_server_connectivity_ClatCoordinator_addAnycastSetsockopt()
337 JNIEnv* env, jclass clazz, jobject javaFd, jstring addr6, jint ifindex) { in com_android_server_connectivity_ClatCoordinator_configurePacketSocket() argument
340 int sock = netjniutils::GetNativeFileDescriptor(env, javaFd); in com_android_server_connectivity_ClatCoordinator_configurePacketSocket()
/packages/modules/Connectivity/staticlibs/native/netjniutils/include/netjniutils/
Dnetjniutils.h22 int GetNativeFileDescriptor(JNIEnv* env, jobject javaFd);