Home
last modified time | relevance | path

Searched refs:DnsHeader (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketTest.java54 private void assertHeaderParses(DnsPacket.DnsHeader header, int id, int flag, in assertHeaderParses()
78 TestDnsPacket(@NonNull DnsHeader header, @Nullable ArrayList<DnsRecord> qd, in TestDnsPacket()
83 public DnsHeader getHeader() { in getHeader()
187 final DnsPacket.DnsHeader testHeader = new DnsPacket.DnsHeader(TEST_DNS_PACKET_ID, in testDnsHeaderSynthesize()
189 final DnsPacket.DnsHeader actualHeader = new DnsPacket.DnsHeader( in testDnsHeaderSynthesize()
312 final DnsPacket.DnsHeader testHeader = new DnsPacket.DnsHeader(0xbeef, in testDnsPacketSynthesize()
332 final DnsPacket.DnsHeader testHeader = new DnsPacket.DnsHeader(0xbeef, in testDnsPacketSynthesize_recordCountMismatch()
402 final DnsPacket.DnsHeader testHeader = new DnsPacket.DnsHeader(TEST_DNS_PACKET_ID, in testEqualsAndHashCode()
404 final DnsPacket.DnsHeader emptyHeader = new DnsPacket.DnsHeader(TEST_DNS_PACKET_ID + 1, in testEqualsAndHashCode()
406 final DnsPacket.DnsHeader headerFromBytes = in testEqualsAndHashCode()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java96 public static class DnsHeader { class in DnsPacket
118 public DnsHeader(@NonNull ByteBuffer buf) throws BufferUnderflowException { in DnsHeader() method in DnsPacket.DnsHeader
144 public DnsHeader(int id, int flags, int qdcount, int ancount) { in DnsHeader() method in DnsPacket.DnsHeader
183 final DnsHeader other = (DnsHeader) o; in equals()
515 protected final DnsHeader mHeader;
526 mHeader = new DnsHeader(buffer); in DnsPacket()
551 protected DnsPacket(@NonNull DnsHeader header, @NonNull List<DnsRecord> qd, in DnsPacket()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestDnsServer.kt145 constructor(header: DnsHeader, qd: List<DnsRecord>, an: List<DnsRecord>) :
162 val header = DnsHeader(mHeader.id, flags, qr.size, ar.size) in getAnswerPacket()
168 constructor(header: DnsHeader, qr: List<DnsRecord>, ar: List<DnsRecord>) :
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestDnsServerTest.kt83 val queryHeader = DnsPacket.DnsHeader(0xbeef /* id */, in testHandleDnsQuery()
91 val answerHeader = DnsPacket.DnsHeader(0xbeef, in testHandleDnsQuery()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java31 import static com.android.net.module.util.DnsPacket.DnsHeader;
514 TestDnsPacket(@NonNull DnsHeader header, @Nullable ArrayList<DnsRecord> qd,
529 public DnsHeader getHeader() {
903 new DnsHeader(dnsId, FLAG, qlist.size(), alist.size()), qlist, alist);
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1295 buf.put(new DnsPacket.DnsHeader(0 /* id */, 0 /* flags */, qnames.length, 0 /* ancount */) in fillQuestionSection()
1431 questions.put(new DnsPacket.DnsHeader(123, 0, names.length, 0).getBytes()); in makeMdnsCompressedV6Packet()