Home
last modified time | relevance | path

Searched refs:ANSECTION (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketTest.java59 assertEquals(header.getRecordCount(DnsPacket.ANSECTION), aCount); in assertHeaderParses()
135 packet.getRecordList(DnsPacket.ANSECTION); in testV4Answer()
177 packet.getRecordList(DnsPacket.ANSECTION); in testV6Answer()
198 DnsPacket.DnsRecord.makeAOrAAAARecord(DnsPacket.ANSECTION, in testDnsRecordSynthesize()
202 assertDnsRecordRoundTrip(DnsPacket.DnsRecord.makeCNameRecord(DnsPacket.ANSECTION, in testDnsRecordSynthesize()
226 assertTrue(DnsPacket.DnsRecord.parse(DnsPacket.ANSECTION, in testDnsRecordParse()
257 DnsPacket.DnsRecord.parse(DnsPacket.ANSECTION, ByteBuffer.wrap(anWithoutTTLRData))); in testDnsRecordTTLRDataErrorHandling()
319 DnsPacket.ANSECTION, "hello.example.com", CLASS_IN, 0 /* ttl */, "test.com")); in testDnsPacketSynthesize()
321 DnsPacket.ANSECTION, "hello.example.com", CLASS_IN, 0 /* ttl */, in testDnsPacketSynthesize()
345 DnsPacket.ANSECTION, "hello.example.com", CLASS_IN, 0 /* ttl */, "test.com")); in testDnsPacketSynthesize_recordCountMismatch()
[all …]
DDnsSvcbPacketTest.java135 return new DnsSvcbRecord(DnsPacket.ANSECTION, ByteBuffer.wrap(data)); in makeDnsSvcbRecordFromByteArray()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDnsAnswerProvider.kt21 import com.android.net.module.util.DnsPacket.ANSECTION
60 DnsPacket.DnsRecord.makeAOrAAAARecord(ANSECTION, query, CLASS_IN, DEFAULT_TTL_S, it) in <lambda>()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java149 mRecordCount[ANSECTION] = ancount; in DnsHeader()
497 public static final int ANSECTION = 1; field in DnsPacket
506 ANSECTION,
556 mRecords[ANSECTION] = Collections.unmodifiableList(new ArrayList<>(an)); in DnsPacket()
DDnsSvcbPacket.java126 for (final DnsRecord record : mRecords[ANSECTION]) { in findSvcbRecord()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DNaptrDnsResolver.java190 if (mHeader.getRecordCount(ANSECTION) == 0) return naptrRecords; in parseNaptrRecords()
192 for (final DnsRecord ansSec : mRecords[ANSECTION]) { in parseNaptrRecords()
DSrvDnsResolver.java151 if (mHeader.getRecordCount(ANSECTION) == 0) return targetNameToSrvRecord; in parseSrvRecords()
153 for (final DnsRecord ansSec : mRecords[ANSECTION]) { in parseSrvRecords()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java30 import static com.android.net.module.util.DnsPacket.ANSECTION;
538 return mHeader.getRecordCount(ANSECTION);
581 return isRecordsEquals(ANSECTION, other);
639 if (forwardedDns.getRecordList(ANSECTION).isEmpty()) return false;
900 alist.add(DnsRecord.makeAOrAAAARecord(ANSECTION, PREF64_IPV4ONLY_HOSTNAME, CLASS_IN, TTL,
/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/staticlibs/tests/unit/src/com/android/testutils/
DTestDnsServerTest.kt93 val alist = listOf(DnsRecord.makeAOrAAAARecord(DnsPacket.ANSECTION, TEST_DOMAIN, in testHandleDnsQuery()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java566 if (mHeader.getRecordCount(ANSECTION) == 0) return results; in getAddresses()
568 for (final DnsRecord ansSec : mRecords[ANSECTION]) { in getAddresses()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsResolverTest.java240 return mHeader.getRecordCount(ANSECTION); in getANCount()