Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp109 int fd2 = android_res_nquery( in TEST() local
111 EXPECT_GE(fd2, 0); in TEST()
112 expectAnswersValid(fd2, AF_INET, ns_r_noerror); in TEST()
119 fd2 = android_res_nquery( in TEST()
121 EXPECT_GE(fd2, 0); in TEST()
122 expectAnswersValid(fd2, AF_INET6, ns_r_noerror); in TEST()
140 int fd2 = android_res_nsend(NETWORK_UNSPECIFIED, buf2, len2, 0); in TEST() local
141 EXPECT_GE(fd2, 0); in TEST()
143 expectAnswersValid(fd2, AF_INET, ns_r_noerror); in TEST()
158 fd2 = android_res_nsend(NETWORK_UNSPECIFIED, buf2, len2, 0); in TEST()
[all …]
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp184 int fd2 = android_res_nsend(handle, buf2, len2, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() local
185 EXPECT_GE(env, fd2, 0, "v4 res_nsend 2nd"); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
187 EXPECT_EQ(env, 0, expectAnswersValid(env, fd2, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
202 fd2 = android_res_nsend(handle, buf2, len2, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
203 EXPECT_GE(env, fd2, 0, "v6 res_nsend 2nd"); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
205 EXPECT_EQ(env, 0, expectAnswersValid(env, fd2, AF_INET6, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
/packages/modules/StatsD/statsd/tests/storage/
DStorageManager_test.cpp115 android::base::unique_fd fd2(TEMP_FAILURE_RETRY( in prepareLocalHistoryTestFiles() local
117 if (fd2 != -1) { in prepareLocalHistoryTestFiles()
118 dprintf(fd2, "content"); in prepareLocalHistoryTestFiles()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp2296 int fd2 = resNetworkQuery(TEST_NETID, "howdy.example.com", ns_c_in, ns_t_aaaa, 0); in TEST_F() local
2298 EXPECT_TRUE(fd2 != -1); in TEST_F()
2302 int res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2314 fd2 = resNetworkQuery(TEST_NETID, "howdy.example.com", ns_c_in, ns_t_aaaa, 0); in TEST_F()
2317 EXPECT_TRUE(fd2 != -1); in TEST_F()
2319 res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2400 int fd2 = resNetworkQuery(TEST_NETID, "howdy.example.com", ns_c_in, ns_t_a, 0); in TEST_F() local
2401 EXPECT_TRUE(fd2 != -1); in TEST_F()
2415 res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2522 int fd2 = resNetworkQuery(TEST_NETID, "howdy.example.com", ns_c_in, ns_t_a, in TEST_F() local
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceTest.java599 private boolean fileDescriptorsEqual(FileDescriptor fd1, FileDescriptor fd2) {
602 StructStat fd2Stat = Os.fstat(fd2);
/packages/modules/adb/daemon/
Dshell_service.cpp133 bool CreateSocketpair(unique_fd* fd1, unique_fd* fd2) { in CreateSocketpair() argument
140 fd2->reset(sockets[1]); in CreateSocketpair()