Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DPrivateDnsConfiguration.h82 struct ServerIdentity { struct
86 explicit ServerIdentity(const DnsTlsServer& server) in ServerIdentity() argument
88 ServerIdentity(const netdutils::IPSockAddr& addr, const std::string& host) in ServerIdentity() argument
91 bool operator<(const ServerIdentity& other) const {
94 bool operator==(const ServerIdentity& other) const {
122 base::Result<void> requestDotValidation(unsigned netId, const ServerIdentity& identity,
144 base::Result<DnsTlsServer*> getDotServer(const ServerIdentity& identity, unsigned netId)
147 base::Result<DnsTlsServer*> getDotServerLocked(const ServerIdentity& identity, unsigned netId)
155 void startDotValidation(const ServerIdentity& identity, unsigned netId, bool isRevalidation)
158 bool recordDotValidation(const ServerIdentity& identity, unsigned netId, bool success,
[all …]
DPrivateDnsConfigurationTest.cpp34 using ServerIdentity = PrivateDnsConfiguration::ServerIdentity; typedef in android::net::PrivateDnsConfigurationTest
130 bool hasPrivateDnsServer(const ServerIdentity& identity, unsigned netId) { in hasPrivateDnsServer()
205 EXPECT_TRUE(mPdc.requestDotValidation(kNetId, ServerIdentity(server), kMark).ok()); in TEST_F()
305 EXPECT_EQ(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
307 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
309 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
313 EXPECT_EQ(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
315 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
317 EXPECT_NE(ServerIdentity(server), ServerIdentity(other)); in TEST_F()
322 const ServerIdentity identity(server); in TEST_F()
[all …]
DPrivateDnsConfiguration.cpp152 std::map<ServerIdentity, DnsTlsServer> tmp; in setDot()
159 tmp[ServerIdentity(server)] = server; in setDot()
301 const ServerIdentity& identity, in requestDotValidation()
338 void PrivateDnsConfiguration::startDotValidation(const ServerIdentity& identity, unsigned netId, in startDotValidation()
395 void PrivateDnsConfiguration::sendPrivateDnsValidationEvent(const ServerIdentity& identity, in sendPrivateDnsValidationEvent()
428 bool PrivateDnsConfiguration::recordDotValidation(const ServerIdentity& identity, unsigned netId, in recordDotValidation()
489 void PrivateDnsConfiguration::updateServerState(const ServerIdentity& identity, Validation state, in updateServerState()
522 base::Result<DnsTlsServer*> PrivateDnsConfiguration::getDotServer(const ServerIdentity& identity, in getDotServer()
529 const ServerIdentity& identity, unsigned netId) { in getDotServerLocked()
690 const ServerIdentity identity = {IPSockAddr::toIPSockAddr(ipAddr, kDohPort), host}; in onDohStatusUpdate()
[all …]
DDnsTlsDispatcher.cpp233 netId, PrivateDnsConfiguration::ServerIdentity{server}, mark); in query()