/packages/modules/Connectivity/tests/cts/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 34 constexpr int MAXPACKET = 8 * 1024; variable 81 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid() 82 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid() 98 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid() 99 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid() 131 uint8_t buf1[MAXPACKET] = {}; in TEST_F() 136 uint8_t buf2[MAXPACKET] = {}; in TEST_F() 169 uint8_t buf[MAXPACKET] = {}; in TEST_F() 234 std::vector<uint8_t> largeBuf(2 * MAXPACKET, 0); in TEST_F()
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeMultinetworkJni.cpp | 81 static const int MAXPACKET = 8 * 1024; variable 148 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid() 149 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid() 164 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid() 165 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid() 196 uint8_t buf1[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 201 uint8_t buf2[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 251 uint8_t buf[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck() 313 uint8_t largeBuf[2 * MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNapiMalformedCheck()
|
/packages/modules/DnsResolver/tests/ |
D | doh_ffi_test.cpp | 34 constexpr int MAXPACKET = (8 * 1024); variable 122 std::vector<uint8_t> buf(MAXPACKET, 0); in TEST_F() 124 nullptr, buf.data(), MAXPACKET); in TEST_F()
|
D | resolv_unit_test.cpp | 47 constexpr unsigned int MAXPACKET = 8 * 1024; variable 1444 char tmpbuf[MAXPACKET]; in TEST_F() 1488 char tmpbuf[MAXPACKET]; in TEST_F() 1510 char tmpbuf[MAXPACKET]; in TEST_F() 1551 char tmpbuf[MAXPACKET]; in TEST_F() 1571 char tmpbuf[MAXPACKET]; in TEST_F() 1603 char tmpbuf[MAXPACKET]; in TEST_F() 1654 char tmpbuf[MAXPACKET]; in TEST_F() 1676 char tmpbuf[MAXPACKET]; in TEST_F() 1758 char tmpbuf[MAXPACKET]; in TEST_F() [all …]
|
D | resolv_integration_test.cpp | 89 constexpr int MAXPACKET = (8 * 1024); variable 2477 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid() 2479 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersValid() 2486 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid() 2488 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersNotValid() 2512 uint8_t buf[MAXPACKET] = {}; in TEST_F() 2514 int res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F() 2518 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F() 2531 res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F() 2535 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F() [all …]
|
D | resolv_cache_unit_test.cpp | 79 uint8_t buf[MAXPACKET] = {}; in makeQuery() 102 char answer[MAXPACKET] = {}; in makeAnswer() 165 std::vector<uint8_t> answer(MAXPACKET); in cacheLookup() 293 const std::vector<uint8_t> queryEmpty(MAXPACKET, 0); in TEST_F() 404 const std::vector<uint8_t> queryEmpty(MAXPACKET, 0); in TEST_F()
|
D | resolv_private_dns_test.cpp | 58 constexpr int MAXPACKET = (8 * 1024); variable 100 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid() 102 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersValid() 343 uint8_t buf[MAXPACKET] = {}; in expectQueriesAreBlocked() 345 EXPECT_EQ(-ECONNREFUSED, getAsyncResponse(fd, &rcode, buf, MAXPACKET)); in expectQueriesAreBlocked()
|
D | resolv_gold_test.cpp | 50 constexpr unsigned int MAXPACKET = 8 * 1024; variable 213 char tmpbuf[MAXPACKET]; in VerifyGetHostByName()
|
/packages/modules/DnsResolver/tests/fuzzer/ |
D | resolv_gethostbyname_fuzzer.cpp | 17 char tmpbuf[MAXPACKET]; in TestResolvGethostbyname()
|
D | resolv_fuzzer_utils.h | 23 constexpr int MAXPACKET = 8 * 1024; variable
|
D | resolv_gethostbyaddr_fuzzer.cpp | 16 char tmpbuf[MAXPACKET]; in TestResolvGethostbyaddr()
|
/packages/modules/DnsResolver/ |
D | res_query.cpp | 108 uint8_t buf[MAXPACKET]; in res_nquery()
|
D | DnsProxyListener.cpp | 1102 std::vector<uint8_t> msg(MAXPACKET, 0); in run() 1105 int msgLen = b64_pton(mMsg.c_str(), msg.data(), MAXPACKET); in run() 1127 std::vector<uint8_t> ansBuf(MAXPACKET, 0); in run() 1333 char tmpbuf[MAXPACKET]; in run() 1496 char tmpbuf[MAXPACKET]; in run()
|
D | resolv_private.h | 90 constexpr int MAXPACKET = 8 * 1024; variable
|
D | gethnamaddr.cpp | 92 uint8_t buf[MAXPACKET]; 532 const size_t line_buf_size = MAXPACKET; in netbsd_gethostent_r()
|
D | DnsTlsTransport.cpp | 132 std::vector<uint8_t> buf(MAXPACKET); in sendUdpQuery()
|
D | getaddrinfo.cpp | 122 std::vector<uint8_t> answer = std::vector<uint8_t>(MAXPACKET, 0); // buffer to put answer 1616 uint8_t buf[MAXPACKET]; in doQuery()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | DnsResolver.java | 62 private static final int MAXPACKET = 8 * 1024; field in DnsResolver
|