Home
last modified time | relevance | path

Searched refs:QueryKey (Results 1 – 3 of 3) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h214 struct QueryKey { struct
218 QueryKey(std::string n, unsigned t) : name(std::move(n)), type(t) {} in QueryKey() argument
219 bool operator==(const QueryKey& o) const { return name == o.name && type == o.type; }
220 bool operator<(const QueryKey& o) const {
228 size_t operator()(const QueryKey& key) const { in operator()
335 std::unordered_map<QueryKey, std::string, QueryKeyHash> mappings_ GUARDED_BY(mappings_mutex_);
336 std::unordered_map<QueryKey, DNSHeader, QueryKeyHash> dnsheader_mappings_
Ddns_responder.cpp812 std::unordered_map<QueryKey, std::string, QueryKeyHash>::const_iterator it; in addAnswerRecords()
813 while ((it = mappings_.find(QueryKey(rname, rtype))) != mappings_.end()) { in addAnswerRecords()
1013 const auto it = dnsheader_mappings_.find(QueryKey(name, qtype)); in makeResponseFromDnsHeader()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java718 private static class QueryKey { class in NetworkStatsManagerTest.QueryResults
722 QueryKey(int tag, int state) { in QueryKey() method in NetworkStatsManagerTest.QueryResults.QueryKey
730 if (!(o instanceof QueryKey)) return false; in equals()
732 QueryKey queryKey = (QueryKey) o; in equals()
748 private final HashMap<QueryKey, Long> mSnapshot = new HashMap<>();
752 return Objects.requireNonNull(mSnapshot.get(new QueryKey(tag, state))); in get()
756 mSnapshot.put(new QueryKey(tag, state), total); in put()
826 new QueryResults.QueryKey(tag, state) + "=" + total); in testUidTagStateDetails()
859 final String queryKeyStr = new QueryResults.QueryKey(tag, state).toString(); in testUidTagStateDetails()