Searched refs:netHandle (Results 1 – 7 of 7) sorted by relevance
/aosp12/system/hardware/interfaces/net/netd/1.0/vts/functional/ |
H A D | VtsHalNetNetdV1_0TargetTest.cpp | 43 net_handle_t netHandle; in TEST_P() local 49 netHandle = n; in TEST_P() 55 ASSERT_NE(NETWORK_UNSPECIFIED, netHandle); in TEST_P() 58 ASSERT_EQ(0, checkNetworkExists(netHandle)); in TEST_P() 61 Return<INetd::StatusCode> retStatus = netd->destroyOemNetwork(netHandle); in TEST_P() 64 ASSERT_EQ(-ENONET, checkNetworkExists(netHandle)); in TEST_P()
|
/aosp12/packages/modules/Connectivity/framework/jni/ |
H A D | android_net_NetworkUtils.cpp | 86 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()
|
/aosp12/packages/modules/Connectivity/framework/src/android/net/ |
H A D | NetworkUtils.java | 63 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
|
/aosp12/system/hardware/interfaces/net/netd/testutils/ |
H A D | VtsHalNetNetdTestUtils.cpp | 33 int checkNetworkExists(net_handle_t netHandle) { in checkNetworkExists() argument 38 int ret = android_setsocknetwork(netHandle, sock); in checkNetworkExists() 96 int checkReachability(net_handle_t netHandle, const char* addrStr) { in checkReachability() argument 104 if (sock == -1 || android_setsocknetwork(netHandle, sock) == -1) { in checkReachability()
|
H A D | VtsHalNetNetdTestUtils.h | 32 int checkNetworkExists(net_handle_t netHandle); 36 int checkReachability(net_handle_t netHandle, const char* addrStr);
|
/aosp12/system/netd/server/ |
H A D | NetdHwService.cpp | 88 Return<StatusCode> NetdHwService::destroyOemNetwork(uint64_t netHandle) { in destroyOemNetwork() argument 89 unsigned netId = netHandleToNetId(netHandle); in destroyOemNetwork()
|
H A D | NetdHwService.h | 35 Return<StatusCode> destroyOemNetwork(uint64_t netHandle) override;
|