Home
last modified time | relevance | path

Searched refs:DnsRecord (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketTest.java64 private void assertRecordParses(DnsPacket.DnsRecord record, String dname, in assertRecordParses()
78 TestDnsPacket(@NonNull DnsHeader header, @Nullable ArrayList<DnsRecord> qd, in TestDnsPacket()
79 @Nullable ArrayList<DnsRecord> an) { in TestDnsPacket()
86 public List<DnsRecord> getRecordList(int secType) { in getRecordList()
129 List<DnsPacket.DnsRecord> qdRecordList = in testV4Answer()
134 List<DnsPacket.DnsRecord> anRecordList = in testV4Answer()
171 List<DnsPacket.DnsRecord> qdRecordList = in testV6Answer()
176 List<DnsPacket.DnsRecord> anRecordList = in testV6Answer()
198 DnsPacket.DnsRecord.makeAOrAAAARecord(DnsPacket.ANSECTION, in testDnsRecordSynthesize()
201 assertDnsRecordRoundTrip(DnsPacket.DnsRecord.makeQuestion("test.com", TYPE_AAAA, CLASS_IN)); in testDnsRecordSynthesize()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java253 public static class DnsRecord { class in DnsPacket
286 protected DnsRecord(@RecordType int rType, @NonNull ByteBuffer buf) in DnsRecord() method in DnsPacket.DnsRecord
317 public static DnsRecord parse(@RecordType int rType, @NonNull ByteBuffer buf) in parse()
333 return new DnsRecord(rType, buf); in parse()
352 public static DnsRecord makeAOrAAAARecord(int rType, @NonNull String dName, in makeAOrAAAARecord()
355 return new DnsRecord(rType, dName, nsType, nsClass, ttl, address, null /* rDataStr */); in makeAOrAAAARecord()
373 public static DnsRecord makeCNameRecord(int rType, @NonNull String dName, int nsClass, in makeCNameRecord()
375 return new DnsRecord(rType, dName, TYPE_CNAME, nsClass, ttl, null /* address */, in makeCNameRecord()
382 public static DnsRecord makeQuestion(@NonNull String dName, int nsType, int nsClass) { in makeQuestion()
383 return new DnsRecord(dName, nsType, nsClass); in makeQuestion()
[all …]
DDnsSvcbPacket.java126 for (final DnsRecord record : mRecords[ANSECTION]) { in findSvcbRecord()
146 for (final DnsRecord record : mRecords[ARSECTION]) { in getAddressesFromAdditionalSection()
DDnsPacketUtils.java19 import static com.android.net.module.util.DnsPacket.DnsRecord.NAME_COMPRESSION;
20 import static com.android.net.module.util.DnsPacket.DnsRecord.NAME_NORMAL;
DDnsSvcbRecord.java48 public final class DnsSvcbRecord extends DnsPacket.DnsRecord {
121 if (mTargetName.length() > DnsPacket.DnsRecord.MAXNAMESIZE) { in DnsSvcbRecord()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestDnsServer.kt145 constructor(header: DnsHeader, qd: List<DnsRecord>, an: List<DnsRecord>) :
154 val queryRecords: List<DnsRecord>
157 fun getAnswerPacket(ar: List<DnsRecord>): DnsAnswerPacket { in getAnswerPacket()
168 constructor(header: DnsHeader, qr: List<DnsRecord>, ar: List<DnsRecord>) :
DDnsAnswerProvider.kt40 private val mDnsKeyToRecords = ConcurrentHashMap<String, List<DnsPacket.DnsRecord>>()
60 DnsPacket.DnsRecord.makeAOrAAAARecord(ANSECTION, query, CLASS_IN, DEFAULT_TTL_S, it) in <lambda>()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestDnsServerTest.kt25 import com.android.net.module.util.DnsPacket.DnsRecord
85 val qlist = listOf(DnsRecord.makeQuestion(TEST_DOMAIN, TYPE_AAAA, CLASS_IN)) in testHandleDnsQuery()
93 val alist = listOf(DnsRecord.makeAOrAAAARecord(DnsPacket.ANSECTION, TEST_DOMAIN, in testHandleDnsQuery()
/packages/modules/DnsResolver/tests/fuzzer/
Dresolv_fuzzer_utils.h26 const std::vector<DnsRecord> records = {
45 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records);
Dresolv_fuzzer_utils.cpp31 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java32 import static com.android.net.module.util.DnsPacket.DnsRecord;
514 TestDnsPacket(@NonNull DnsHeader header, @Nullable ArrayList<DnsRecord> qd,
515 @Nullable ArrayList<DnsRecord> an) {
533 public List<DnsRecord> getRecordList(int secType) {
554 List<DnsRecord> records = getRecordList(type);
555 List<DnsRecord> otherRecords = other.getRecordList(type);
895 final ArrayList<DnsRecord> qlist = new ArrayList<>();
897 qlist.add(DnsRecord.makeQuestion(PREF64_IPV4ONLY_HOSTNAME, TYPE_AAAA, CLASS_IN));
898 final ArrayList<DnsRecord> alist = new ArrayList<>();
900 alist.add(DnsRecord.makeAOrAAAARecord(ANSECTION, PREF64_IPV4ONLY_HOSTNAME, CLASS_IN, TTL,
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp255 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns()
483 const std::vector<DnsRecord> records = { in TEST_F()
536 const std::vector<DnsRecord> records = { in TEST_F()
719 const std::vector<DnsRecord> records = { in TEST_F()
1105 const std::vector<DnsRecord> records = { in TEST_F()
1132 const std::vector<DnsRecord> records = { in TEST_F()
1150 const std::vector<DnsRecord> records = { in TEST_F()
1170 const std::vector<DnsRecord> records = { in TEST_F()
1309 const std::vector<DnsRecord> records0 = { in TEST_F()
1313 const std::vector<DnsRecord> records1 = { in TEST_F()
[all …]
Dresolv_test_utils.h156 struct DnsRecord { struct
406 const std::vector<DnsRecord> kLargeCnameChainRecords = {
Dresolv_private_dns_test.cpp278 static const std::vector<DnsRecord> records = { in SetUp()
473 const std::vector<DnsRecord> records = { in TEST_P()
539 const DnsRecord r = {ptr_addr_v6, ns_type::ns_t_ptr, ptr_name}; in TEST_P()
605 const DnsRecord r = {ptr_addr_v6, ns_type::ns_t_ptr, ptr_name}; in TEST_P()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DSrvDnsResolver.java153 for (final DnsRecord ansSec : mRecords[ANSECTION]) { in parseSrvRecords()
180 for (final DnsRecord ansSec : mRecords[ARSECTION]) { in parseIpAddresses()
DNaptrDnsResolver.java192 for (final DnsRecord ansSec : mRecords[ANSECTION]) { in parseNaptrRecords()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DDnsAnswerProviderTest.kt100 DnsPacket.DnsRecord.makeAOrAAAARecord(DnsPacket.ANSECTION, dName, CLASS_IN, 5 /* ttl */, in <lambda>()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java568 for (final DnsRecord ansSec : mRecords[ANSECTION]) { in getAddresses()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1298 buf.put(DnsPacket.DnsRecord.makeQuestion(qname, 0 /* nsType */, 0 /* nsClass */) in fillQuestionSection()