Home
last modified time | relevance | path

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

/frameworks/libs/net/common/tests/unit/src/com/android/module/util/
DDnsPacketTest.java35 private void assertHeaderParses(DnsPacket.DnsHeader header, int id, int flag, in assertHeaderParses()
39 assertEquals(header.getRecordCount(DnsPacket.QDSECTION), qCount); in assertHeaderParses()
40 assertEquals(header.getRecordCount(DnsPacket.ANSECTION), aCount); in assertHeaderParses()
41 assertEquals(header.getRecordCount(DnsPacket.NSSECTION), nsCount); in assertHeaderParses()
42 assertEquals(header.getRecordCount(DnsPacket.ARSECTION), arCount); in assertHeaderParses()
45 private void assertRecordParses(DnsPacket.DnsRecord record, String dname, in assertRecordParses()
54 class TestDnsPacket extends DnsPacket {
55 TestDnsPacket(byte[] data) throws DnsPacket.ParseException { in TestDnsPacket()
72 } catch (DnsPacket.ParseException e) { in testNullDisallowed()
105 List<DnsPacket.DnsRecord> qdRecordList = in testV4Answer()
[all …]
/frameworks/libs/net/common/framework/com/android/net/module/util/
DDnsPacket.java36 public abstract class DnsPacket { class
221 private static final String TAG = DnsPacket.class.getSimpleName();
226 protected DnsPacket(@NonNull byte[] data) throws ParseException { in DnsPacket() method in DnsPacket
/frameworks/base/core/java/android/net/
DDnsResolver.java41 import com.android.net.module.util.DnsPacket;
295 } catch (DnsPacket.ParseException e) { in onAnswer()
537 private static class DnsAddressAnswer extends DnsPacket {