Searched refs:setServers (Results 1 – 4 of 4) sorted by relevance
/packages/modules/DnsResolver/ |
D | DnsStatsTest.cpp | 185 EXPECT_TRUE(mDnsStats.setServers(ipSockAddrs, PROTO_TCP) == isSuccess); in TEST_F() 186 EXPECT_TRUE(mDnsStats.setServers(ipSockAddrs, PROTO_UDP) == isSuccess); in TEST_F() 187 EXPECT_TRUE(mDnsStats.setServers(ipSockAddrs, PROTO_DOT) == isSuccess); in TEST_F() 212 EXPECT_FALSE(mDnsStats.setServers(servers, PROTO_TCP)); in TEST_F() 213 EXPECT_FALSE(mDnsStats.setServers(servers, PROTO_UDP)); in TEST_F() 214 EXPECT_FALSE(mDnsStats.setServers(servers, PROTO_DOT)); in TEST_F() 221 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_TCP)); in TEST_F() 222 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_UDP)); in TEST_F() 223 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_DOT)); in TEST_F() 244 EXPECT_TRUE(mDnsStats.setServers(servers, PROTO_TCP)); in TEST_F() [all …]
|
D | DnsStats.h | 116 bool setServers(const std::vector<netdutils::IPSockAddr>& servers, Protocol protocol);
|
D | DnsStats.cpp | 165 bool DnsStats::setServers(const std::vector<netdutils::IPSockAddr>& servers, Protocol protocol) { in setServers() function in android::net::DnsStats
|
D | res_cache.cpp | 1633 if (!netconfig->dnsStats.setServers(netconfig->nameserverSockAddrs, PROTO_TCP) || in resolv_set_nameservers() 1634 !netconfig->dnsStats.setServers(netconfig->nameserverSockAddrs, PROTO_UDP)) { in resolv_set_nameservers() 1894 if (!info->dnsStats.setServers(serverSockAddrs, android::net::PROTO_DOT)) { in resolv_stats_set_servers_for_dot()
|