Home
last modified time | relevance | path

Searched refs:answers (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NetworkStack/tests/lib/src/com/android/testutils/
DFakeDns.kt39 val answers = ArrayList<DnsEntry>() in match() constant
41 fun getAnswer(hostname: String, type: Int): DnsEntry? = synchronized(answers) { in match()
42 return answers.firstOrNull { it.match(hostname, type) } in match()
45 fun setAnswer(hostname: String, answer: Array<String>, type: Int) = synchronized(answers) { in <lambda>()
48 when (val index = answers.indexOfFirst { it.match(hostname, type) }) { in <lambda>()
49 -1 -> answers.add(ans) in <lambda>()
50 else -> answers[index] = ans in <lambda>()
91 fun clearAll() = synchronized(answers) { in <lambda>()
92 answers.clear() in <lambda>()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp347 answers.resize(ancount); in read()
349 cur = answers[i].read(cur, buffer_end); in read()
396 header.ancount = htons(answers.size()); in write()
404 for (const DNSRecord& answer : answers) { in write()
723 if (!header.answers.empty()) { in handleDNSRequest()
724 LOG(INFO) << "already " << header.answers.size() << " answers present in query"; in handleDNSRequest()
768 std::vector<DNSRecord>* answers) const { in addAnswerRecords()
798 answers->push_back(std::move(record)); in addAnswerRecords()
804 if (answers->size() == 0) { in addAnswerRecords()
876 header->answers.clear(); in makeErrorResponse()
[all …]
Ddns_responder.h96 std::vector<DNSRecord> answers; member
243 bool addAnswerRecords(const DNSQuestion& question, std::vector<DNSRecord>* answers) const;
/packages/modules/DnsResolver/tests/testdata/
DREADME.md9 'config' and expected answers to 'result' in pbtext. Then, record the
/packages/modules/DnsResolver/
Dresolv_cache_unit_test.cpp94 header.answers.push_back(std::move(record)); in makeAnswer()
Dresolv_unit_test.cpp112 header.answers.push_back(std::move(record)); in MakeDnsMessage()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp4751 header.answers.push_back(std::move(recordAnswer)); in TEST_P()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...