Home
last modified time | relevance | path

Searched refs:DnsRecordParser (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketUtilsTest.java19 import static com.android.net.module.util.DnsPacketUtils.DnsRecordParser;
79 assertThrows(DnsPacket.ParseException.class, () -> DnsRecordParser.parseName( in testParsingAnswerSectionNameCompressed()
83 String domainName = DnsRecordParser.parseName( in testParsingAnswerSectionNameCompressed()
120 String domainName = DnsRecordParser.parseName( in testParsingAnswerSectionNoNameCompression()
125 domainName = DnsRecordParser.parseName( in testParsingAnswerSectionNoNameCompression()
136 DnsRecordParser.domainNameToLabels("www.google.com")); in testDomainNameToLabels()
138 DnsRecordParser.domainNameToLabels("aaa.")); in testDomainNameToLabels()
140 DnsRecordParser.domainNameToLabels("aaa")); in testDomainNameToLabels()
142 DnsRecordParser.domainNameToLabels(".")); in testDomainNameToLabels()
144 DnsRecordParser.domainNameToLabels("")); in testDomainNameToLabels()
[all …]
DDnsSvcbPacketTest.java201 : DnsPacketUtils.DnsRecordParser.domainNameToLabels(mRRName); in build()
210 DnsPacketUtils.DnsRecordParser.domainNameToLabels(mTargetName); in build()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DDomainUtils.java25 import com.android.net.module.util.DnsPacketUtils.DnsRecordParser;
61 if (!DnsRecordParser.isHostName(domain)) return null; in encode()
80 if (!DnsRecordParser.isHostName(domains[i])) { in encode()
132 final String domain = DnsRecordParser.parseName(buffer, 0 /* depth */, in decode()
134 if (!DnsRecordParser.isHostName(domain)) continue; in decode()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java23 import static com.android.net.module.util.DnsPacketUtils.DnsRecordParser.domainNameToLabels;
31 import com.android.net.module.util.DnsPacketUtils.DnsRecordParser;
290 dName = DnsRecordParser.parseName(buf, 0 /* Parse depth */, in DnsRecord()
322 DnsRecordParser.parseName(buf, 0 /* Parse depth */, in parse()
387 if (!DnsRecordParser.isHostName(name)) { in requireHostName()
DDnsPacketUtils.java48 public static class DnsRecordParser { class in DnsPacketUtils
187 private DnsRecordParser() {} in DnsRecordParser() method in DnsPacketUtils.DnsRecordParser
DDnsSvcbRecord.java118 mTargetName = DnsPacketUtils.DnsRecordParser.parseName(buf, 0 /* Parse depth */, in DnsSvcbRecord()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DNaptrDnsResolver.java31 import com.android.net.module.util.DnsPacketUtils.DnsRecordParser;
148 DnsRecordParser.parseName( in NaptrRecord()
DSrvDnsResolver.java30 import com.android.net.module.util.DnsPacketUtils.DnsRecordParser;
113 DnsRecordParser.parseName( in SrvRecord()