Home
last modified time | relevance | path

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

/system/hardware/interfaces/net/netd/1.0/vts/functional/
DVtsHalNetNetdV1_0TargetTest.cpp43 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()
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp33 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()
DVtsHalNetNetdTestUtils.h32 int checkNetworkExists(net_handle_t netHandle);
36 int checkReachability(net_handle_t netHandle, const char* addrStr);
/system/netd/server/
DNetdHwService.cpp88 Return<StatusCode> NetdHwService::destroyOemNetwork(uint64_t netHandle) { in destroyOemNetwork() argument
89 unsigned netId = netHandleToNetId(netHandle); in destroyOemNetwork()
DNetdHwService.h35 Return<StatusCode> destroyOemNetwork(uint64_t netHandle) override;