Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DPrivateDnsConfiguration.h58 struct ServerIdentity { struct
62 explicit ServerIdentity(const IPrivateDnsServer& server) in ServerIdentity() argument
65 bool operator<(const ServerIdentity& other) const {
68 bool operator==(const ServerIdentity& other) const {
88 base::Result<void> requestValidation(unsigned netId, const ServerIdentity& identity,
96 typedef std::map<ServerIdentity, std::unique_ptr<IPrivateDnsServer>> PrivateDnsTracker;
102 void startValidation(const ServerIdentity& identity, unsigned netId, bool isRevalidation)
105 bool recordPrivateDnsValidation(const ServerIdentity& identity, unsigned netId, bool success,
108 void sendPrivateDnsValidationEvent(const ServerIdentity& identity, unsigned netId, bool success)
116 void updateServerState(const ServerIdentity& identity, Validation state, uint32_t netId)
[all …]
DPrivateDnsConfigurationTest.cpp31 using ServerIdentity = PrivateDnsConfiguration::ServerIdentity; typedef in android::net::PrivateDnsConfigurationTest
119 bool hasPrivateDnsServer(const ServerIdentity& identity, unsigned netId) { in hasPrivateDnsServer()
194 EXPECT_TRUE(mPdc.requestValidation(kNetId, ServerIdentity(server), kMark).ok()); in TEST_F()
294 EXPECT_EQ(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
296 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
298 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
302 EXPECT_EQ(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
304 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
306 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
311 const ServerIdentity identity(server); in TEST_F()
[all …]
DPrivateDnsConfiguration.cpp76 tmp[ServerIdentity(*server)] = std::move(server); in set()
149 const ServerIdentity& identity, in requestValidation()
186 void PrivateDnsConfiguration::startValidation(const ServerIdentity& identity, unsigned netId, in startValidation()
240 void PrivateDnsConfiguration::sendPrivateDnsValidationEvent(const ServerIdentity& identity, in sendPrivateDnsValidationEvent()
270 bool PrivateDnsConfiguration::recordPrivateDnsValidation(const ServerIdentity& identity, in recordPrivateDnsValidation()
333 void PrivateDnsConfiguration::updateServerState(const ServerIdentity& identity, Validation state, in updateServerState()
367 const ServerIdentity& identity, unsigned netId) { in getPrivateDns()
373 const ServerIdentity& identity, unsigned netId) { in getPrivateDnsLocked()
DDnsTlsDispatcher.cpp218 netId, PrivateDnsConfiguration::ServerIdentity{server}, mark); in query()