Home
last modified time | relevance | path

Searched refs:ServerIdentity (Results 1 – 4 of 4) sorted by relevance

/packages/modules/DnsResolver/
DPrivateDnsConfiguration.h80 struct ServerIdentity { struct
84 explicit ServerIdentity(const IPrivateDnsServer& server) in ServerIdentity() argument
86 ServerIdentity(const netdutils::IPSockAddr& addr, const std::string& host) in ServerIdentity() argument
89 bool operator<(const ServerIdentity& other) const {
92 bool operator==(const ServerIdentity& other) const {
122 base::Result<void> requestValidation(unsigned netId, const ServerIdentity& identity,
136 typedef std::map<ServerIdentity, std::unique_ptr<IPrivateDnsServer>> PrivateDnsTracker;
142 void startValidation(const ServerIdentity& identity, unsigned netId, bool isRevalidation)
145 bool recordPrivateDnsValidation(const ServerIdentity& identity, unsigned netId, bool success,
148 void sendPrivateDnsValidationEvent(const ServerIdentity& identity, unsigned netId,
[all …]
DPrivateDnsConfigurationTest.cpp32 using ServerIdentity = PrivateDnsConfiguration::ServerIdentity; typedef in android::net::PrivateDnsConfigurationTest
120 bool hasPrivateDnsServer(const ServerIdentity& identity, unsigned netId) { in hasPrivateDnsServer()
195 EXPECT_TRUE(mPdc.requestValidation(kNetId, ServerIdentity(server), kMark).ok()); in TEST_F()
295 EXPECT_EQ(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
297 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
299 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
303 EXPECT_EQ(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
305 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
307 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
312 const ServerIdentity identity(server); in TEST_F()
[all …]
DPrivateDnsConfiguration.cpp68 tmp[ServerIdentity(*server)] = std::move(server); in set()
151 const ServerIdentity& identity, in requestValidation()
188 void PrivateDnsConfiguration::startValidation(const ServerIdentity& identity, unsigned netId, in startValidation()
242 void PrivateDnsConfiguration::sendPrivateDnsValidationEvent(const ServerIdentity& identity, in sendPrivateDnsValidationEvent()
275 bool PrivateDnsConfiguration::recordPrivateDnsValidation(const ServerIdentity& identity, in recordPrivateDnsValidation()
340 void PrivateDnsConfiguration::updateServerState(const ServerIdentity& identity, Validation state, in updateServerState()
374 const ServerIdentity& identity, unsigned netId) { in getPrivateDns()
380 const ServerIdentity& identity, unsigned netId) { in getPrivateDnsLocked()
560 ServerIdentity identity = {netdutils::IPSockAddr::toIPSockAddr(ipAddr, kDohPort), host}; in onDohStatusUpdate()
569 bool PrivateDnsConfiguration::needReportEvent(uint32_t netId, ServerIdentity identity, in needReportEvent()
DDnsTlsDispatcher.cpp223 netId, PrivateDnsConfiguration::ServerIdentity{server}, mark); in query()