Searched refs:DnsPacket (Results 1 – 3 of 3) sorted by relevance
35 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 …]
36 public abstract class DnsPacket { class221 private static final String TAG = DnsPacket.class.getSimpleName();226 protected DnsPacket(@NonNull byte[] data) throws ParseException { in DnsPacket() method in DnsPacket
41 import com.android.net.module.util.DnsPacket;295 } catch (DnsPacket.ParseException e) { in onAnswer()537 private static class DnsAddressAnswer extends DnsPacket {