/packages/modules/DnsResolver/ |
D | resolv_unit_test.cpp | 118 void StartDns(test::DNSResponder& dns, const std::vector<DnsMessage>& messages) { in StartDns() argument 120 dns.addMappingDnsHeader(m.host_name, m.type, m.header); in StartDns() 122 ASSERT_TRUE(dns.startServer()); in StartDns() 123 dns.clearQueries(); in StartDns() 458 test::DNSResponder dns; in TEST_F() local 459 dns.addMapping(v4_host_name, ns_type::ns_t_a, "1.2.3.3"); in TEST_F() 460 ASSERT_TRUE(dns.startServer()); in TEST_F() 470 EXPECT_LE(1U, GetNumQueries(dns, v4_host_name)); in TEST_F() 543 test::DNSResponder dns; in TEST_F() local 544 dns.addMapping(host_name, ns_type::ns_t_a, v4addr); in TEST_F() [all …]
|
D | resolv_callback_unit_test.cpp | 147 test::DNSResponder dns; in TEST_F() local 148 dns.addMapping(kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4); in TEST_F() 149 ASSERT_TRUE(dns.startServer()); in TEST_F()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 222 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns() argument 224 dns.addMapping(r.host_name, r.type, r.addr); in StartDns() 227 ASSERT_TRUE(dns.startServer()); in StartDns() 228 dns.clearQueries(); in StartDns() 373 test::DNSResponder dns; in TEST_F() local 374 StartDns(dns, {{kHelloExampleCom, ns_type::ns_t_a, "1.2.3.3"}}); in TEST_F() 379 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, nonexistent_host_name)); in TEST_F() 383 dns.clearQueries(); in TEST_F() 385 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, kHelloExampleCom)); in TEST_F() 396 test::DNSResponder dns; in TEST_F() local [all …]
|
D | resolv_gold_test.cpp | 156 void SetupMappings(const android::net::GoldTest& goldtest, test::DNSResponder& dns) { in SetupMappings() argument 162 dns.addMappingBinaryPacket( in SetupMappings() 222 void VerifyResolver(const android::net::GoldTest& goldtest, const test::DNSResponder& dns, in VerifyResolver() argument 247 EXPECT_EQ(GetNumQueries(dns, name.c_str()), queries); in VerifyResolver() 281 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F() local 282 ASSERT_TRUE(dns.startServer()); in TEST_F() 285 dns.addMappingBinaryPacket(kHelloExampleComQueryV4, kHelloExampleComResponseV4); in TEST_F() 297 dns.removeMappingBinaryPacket(kHelloExampleComQueryV4); in TEST_F() 307 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F() local 308 ASSERT_TRUE(dns.startServer()); in TEST_F() [all …]
|
D | resolv_test_utils.cpp | 106 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) { in GetNumQueries() argument 107 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueries() 117 size_t GetNumQueriesForProtocol(const test::DNSResponder& dns, const int protocol, in GetNumQueriesForProtocol() argument 119 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueriesForProtocol() 129 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name) { in GetNumQueriesForType() argument 130 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueriesForType()
|
D | resolv_test_utils.h | 183 size_t GetNumQueries(const test::DNSResponder& dns, const char* name); 184 size_t GetNumQueriesForProtocol(const test::DNSResponder& dns, const int protocol, 186 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name);
|
D | dnsresolver_binder_test.cpp | 146 test::DNSResponder dns(listen_addr, listen_srv, ns_rcode::ns_r_servfail); in TEST_F() local 147 dns.addMapping("hi.example.com.", ns_type::ns_t_a, "1.2.3.4"); in TEST_F() 148 ASSERT_TRUE(dns.startServer()); in TEST_F() 157 dns.clearQueries(); in TEST_F()
|
D | resolv_stress_test.cpp | 45 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest() local 49 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpClientTest.java | 415 notProvisionedCase(links(), routes(), dns(), null), in testIsProvisioned() 416 notProvisionedCase(links(), routes(), dns(), empty), in testIsProvisioned() 419 provisionedCase(links("192.0.2.12/24"), routes(), dns(), empty), in testIsProvisioned() 424 routes(), dns(), empty), in testIsProvisioned() 427 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), dns("fd00:1234:5678::1000"), empty), in testIsProvisioned() 431 dns("2001:db8:dead:beef:f00::02"), empty), in testIsProvisioned() 437 dns(), in testIsProvisioned() 483 for (InetAddress dns : lpDns) { in provisioningTest() 484 testcase.lp.addDnsServer(dns); in provisioningTest() 494 links("192.0.2.12/24"), prefixes("192.0.2.0/24"), dns("192.0.2.2")), in testInitialConfigurations() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallDetectionStats.java | 78 DnsEvent dns = new DnsEvent(); in DataStallDetectionStats() local 79 dns.dnsReturnCode = returnCode; in DataStallDetectionStats() 80 dns.dnsTime = dnsTime; in DataStallDetectionStats() 81 mDns = MessageNano.toByteArray(dns); in DataStallDetectionStats()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpReachabilityMonitor.java | 320 for (InetAddress dns : lp.getDnsServers()) { 321 if (isOnLink(routes, dns)) { 322 newNeighborWatchList.put(dns, mNeighborWatchList.getOrDefault(dns, null));
|
D | IpClient.java | 1360 for (InetAddress dns : dnses) { in addAllReachableDnsServers() 1361 if (!dns.isAnyLocalAddress() && lp.isReachable(dns)) { in addAllReachableDnsServers() 1362 lp.addDnsServer(dns); in addAllReachableDnsServers()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | NetworkListAdapter.java | 67 vh.dns = convertView.findViewById(R.id.network_dns); in getView() 93 vh.dns.setText(mNetworkList[position].mDnsAddresses); in getView() 198 public TextView dns; field in NetworkListAdapter.ViewHolder
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder_client_ndk.cpp | 173 std::vector<std::unique_ptr<test::DNSResponder>>* dns, in SetupDNSServers() argument 176 dns->resize(numServers); in SetupDNSServers() 180 auto& d = (*dns)[i]; in SetupDNSServers()
|
D | dns_responder_client_ndk.h | 102 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 933 String dns = mDns1View.getText().toString(); in validateIpConfigFields() local 936 if (TextUtils.isEmpty(dns)) { in validateIpConfigFields() 940 dnsAddr = getIPv4Address(dns); in validateIpConfigFields() 948 dns = mDns2View.getText().toString(); in validateIpConfigFields() 949 dnsAddr = getIPv4Address(dns); in validateIpConfigFields()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiConfigController.java | 903 String dns = mDns1View.getText().toString(); in validateIpConfigFields() local 906 if (TextUtils.isEmpty(dns)) { in validateIpConfigFields() 910 dnsAddr = getIPv4Address(dns); in validateIpConfigFields() 918 dns = mDns2View.getText().toString(); in validateIpConfigFields() 919 dnsAddr = getIPv4Address(dns); in validateIpConfigFields()
|