Home
last modified time | relevance | path

Searched refs:sd (Results 1 – 12 of 12) sorted by relevance

/system/netd/tests/
Dsock_diag_test.cpp145 SockDiag sd; in TEST_F() local
146 ASSERT_TRUE(sd.open()) << "Failed to open SOCK_DIAG socket"; in TEST_F()
149 int ret = sd.sendDumpRequest(IPPROTO_TCP, AF_INET, "127.0.0.1"); in TEST_F()
152 sd.readDiagMsg(IPPROTO_TCP, checkIPv4Dump); in TEST_F()
158 ret = sd.sendDumpRequest(IPPROTO_TCP, AF_INET6, "127.0.0.1"); in TEST_F()
161 sd.readDiagMsg(IPPROTO_TCP, checkIPv6Dump); in TEST_F()
165 ret = sd.sendDumpRequest(IPPROTO_TCP, AF_INET6, "::1"); in TEST_F()
169 sd.readDiagMsg(IPPROTO_TCP, checkIPv6Dump); in TEST_F()
213 SockDiag sd; in TEST_F() local
214 ASSERT_TRUE(sd.open()) << "Failed to open SOCK_DIAG socket"; in TEST_F()
[all …]
Dbinder_test.cpp2150 std::vector<IPAddress> findDnsSockets(SockDiag* sd, unsigned numExpected) { in findDnsSockets() argument
2171 EXPECT_EQ(0, sd->sendDumpRequest(IPPROTO_TCP, AF_INET, 1 << TCP_LISTEN)) in findDnsSockets()
2173 sd->readDiagMsg(IPPROTO_TCP, findDnsSockets); in findDnsSockets()
2189 SockDiag sd; in TEST_F() local
2190 ASSERT_TRUE(sd.open()) << "Failed to open SOCK_DIAG socket"; in TEST_F()
2250 std::vector<IPAddress> listenAddrs = findDnsSockets(&sd, 0); in TEST_F()
2259 listenAddrs = findDnsSockets(&sd, 2); in TEST_F()
/system/memory/libion/
Dion_test.c119 int sd[2]; in ion_share_test() local
126 socketpair(AF_UNIX, SOCK_STREAM, 0, sd); in ion_share_test()
157 sendmsg(sd[0], &msg, 0); in ion_share_test()
158 if (recvmsg(sd[0], &msg, 0) < 0) in ion_share_test()
163 sendmsg(sd[0], &msg, 0); in ion_share_test()
165 if (recvmsg(sd[0], &msg, 0) < 0) in ion_share_test()
187 if (recvmsg(sd[1], &child_msg, 0) < 0) in ion_share_test()
208 sendmsg(sd[1], &child_msg, 0); in ion_share_test()
/system/netd/server/
DVirtualNetwork.cpp50 SockDiag sd; in maybeCloseSockets() local
51 if (!sd.open()) { in maybeCloseSockets()
55 if (int ret = sd.destroySockets(uidRanges, protectableUsers, true /* excludeLoopback */)) { in maybeCloseSockets()
DTcpSocketMonitor.cpp140 SockDiag sd; in dump() local
141 if (sd.open()) { in dump()
149 if (int ret = sd.getLiveTcpInfos(tcpInfoReader)) { in dump()
199 SockDiag sd; in poll() local
200 if (!sd.open()) { in poll()
218 if (int ret = sd.getLiveTcpInfos(tcpInfoReader)) { in poll()
DPhysicalNetwork.cpp72 SockDiag sd; in destroySocketsLackingPermission() local
73 if (!sd.open()) { in destroySocketsLackingPermission()
77 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission, in destroySocketsLackingPermission()
DSockDiagTest.cpp150 SockDiag sd; in TEST_F() local
151 ASSERT_TRUE(sd.open()) << "Failed to open SOCK_DIAG socket"; in TEST_F()
153 int ret = sd.sendDumpRequest(IPPROTO_TCP, AF_INET, "127.0.0.1"); in TEST_F()
156 sd.readDiagMsg(IPPROTO_TCP, checkIPv4Dump); in TEST_F()
161 ret = sd.sendDumpRequest(IPPROTO_TCP, AF_INET6, "127.0.0.1"); in TEST_F()
164 sd.readDiagMsg(IPPROTO_TCP, checkIPv6Dump); in TEST_F()
167 ret = sd.sendDumpRequest(IPPROTO_TCP, AF_INET6, "::1"); in TEST_F()
171 sd.readDiagMsg(IPPROTO_TCP, checkIPv6Dump); in TEST_F()
DNetlinkHandler.cpp156 SockDiag sd; in onEvent() local
157 if (sd.open()) { in onEvent()
158 int ret = sd.destroySockets(addrstr); in onEvent()
DNetdNativeService.cpp417 SockDiag sd; in socketDestroy() local
418 if (!sd.open()) { in socketDestroy()
424 int err = sd.destroySockets(uidRanges, std::set<uid_t>(skipUids.begin(), skipUids.end()), in socketDestroy()
/system/apex/apexd/
Dapexservice_test.cpp2240 struct stat sd; in CheckRevertWasPerformed() local
2241 ASSERT_EQ(0, stat(kActiveApexPackagesDataDir, &sd)); in CheckRevertWasPerformed()
2242 ASSERT_EQ(0755u, sd.st_mode & ALLPERMS); in CheckRevertWasPerformed()
/system/core/fs_mgr/tests/
Dadb-remount-test.sh927 sd*)
/system/timezone/input_data/android/
Dcountryzones.txt2868 isoCode:"sd"