Home
last modified time | relevance | path

Searched refs:TYPE_AAAA (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DDnsAnswerProviderTest.kt21 import android.net.DnsResolver.TYPE_AAAA in <lambda>()
56 assertEquals(emptyList(), ansProvider.getAnswer("www.google.com", TYPE_AAAA)) in <lambda>()
76 assertEquals(emptyList(), ansProvider.getAnswer("www.google.com", TYPE_AAAA)) in <lambda>()
79 assertEquals(listOf(record1, record2), ansProvider.getAnswer("www.google.com", TYPE_AAAA)) in <lambda>()
83 assertEquals(listOf(record1, record2), ansProvider.getAnswer("www.google.com", TYPE_AAAA)) in <lambda>()
87 assertEquals(emptyList(), ansProvider.getAnswer("www.android.com", TYPE_AAAA)) in <lambda>()
91 assertEquals(listOf(record3), ansProvider.getAnswer("www.google.com", TYPE_AAAA)) in <lambda>()
96 assertEquals(emptyList(), ansProvider.getAnswer("www.google.com", TYPE_AAAA)) in <lambda>()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt22 import android.net.DnsResolver.TYPE_AAAA
67 verifyGetAllByName("www.google.com", arrayOf("2001:db8::1"), TYPE_AAAA) in testGetAllByNameWithTypeSuccess()
82 verifyGetAllByNameFails("www.android.com", TYPE_AAAA) in testGetAllByNameWithTypeNoResult()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java21 import static android.net.DnsResolver.TYPE_AAAA;
70 getAllByName(dnsResolver, network, host, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in getAllByName()
74 errorMsg.append(String.format(" (%s)%s", dnsTypeToStr(TYPE_AAAA), e.getMessage())); in getAllByName()
181 case TYPE_AAAA: in dnsTypeToStr()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsRecordRepositoryTest.kt29 import com.android.server.connectivity.mdns.MdnsRecord.TYPE_AAAA in <lambda>()
486 intArrayOf(TYPE_A, TYPE_AAAA)), in testOnProbingSucceeded()
601 TYPE_A, TYPE_AAAA -> return MdnsInetAddressRecord(name, type, false /* isUnicast */) in makeQuestionRecord()
633 intArrayOf(TYPE_A, TYPE_AAAA)), in testGetReply_singlePtrQuestion_returnsSrvTxtAddressNsecRecords()
666 intArrayOf(TYPE_AAAA)), in testGetReply_ptrQuestionForServiceWithCustomHost_customHostUsedInAdditionalAnswers()
719 intArrayOf(TYPE_A, TYPE_AAAA)), in testGetReply_ptrQuestionForServicesWithSameCustomHost_customHostUsedInAdditionalAnswers()
752 intArrayOf(TYPE_A, TYPE_AAAA)), in testGetReply_singleSubtypePtrQuestion_returnsSrvTxtAddressNsecRecords()
785 intArrayOf(TYPE_A, TYPE_AAAA)), in testGetReply_duplicatePtrQuestions_doesNotReturnDuplicateRecords()
821 intArrayOf(TYPE_A, TYPE_AAAA)), in testGetReply_multiplePtrQuestionsWithSubtype_doesNotReturnDuplicateRecords()
850 val query = makeQuery(TYPE_AAAA to TEST_HOSTNAME) in testGetReply_AAAAQuestionButNoIpv6Address_returnsNsecRecord()
[all …]
DMdnsRecordTests.java115 assertEquals(MdnsRecord.TYPE_AAAA, type); in testTypeAAAInet6AddressRecord()
117 MdnsInetAddressRecord record = new MdnsInetAddressRecord(name, MdnsRecord.TYPE_AAAA, in testTypeAAAInet6AddressRecord()
152 assertEquals(MdnsRecord.TYPE_AAAA, type); in testTypeAAAInet4AddressRecord()
154 MdnsInetAddressRecord record = new MdnsInetAddressRecord(name, MdnsRecord.TYPE_AAAA, in testTypeAAAInet4AddressRecord()
DMdnsReplySenderTest.kt91 hostname /* nextDomain */, intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA)))
109 intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA)))
DMdnsResponseTests.java94 super(name, MdnsRecord.TYPE_AAAA, reader); in MdnsInet6AddressRecord()
140 new MdnsInetAddressRecord(name, MdnsRecord.TYPE_AAAA, reader); in getInet6AddressRecord_returnsAddedRecord()
DMdnsAnnouncerTest.kt248 intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA))) in <lambda>()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsResolverTest.java23 import static android.net.DnsResolver.TYPE_AAAA;
410 mDns.rawQuery(network, TEST_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQuery()
450 mDns.rawQuery(network, dname, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQueryRoot()
473 mDns.rawQuery(network, TEST_NX_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQueryNXDomain()
495 mDns.rawQuery(network, TEST_NX_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQueryNXDomainWithPrivateDns()
520 mDns.rawQuery(network, TEST_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_EMPTY, in testRawQueryCancel()
570 mDns.rawQuery(network, TEST_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_EMPTY, in testCancelBeforeQuery()
763 mDns.query(network, TEST_DOMAIN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestQueryForInetAddressIpv6()
862 mDns.query(network, TEST_DOMAIN, queryV6 ? TYPE_AAAA : TYPE_A, in doTestContinuousQueries()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsSvcbPacket.java20 import static android.net.DnsResolver.TYPE_AAAA;
147 if (record.nsType != TYPE_A && record.nsType != TYPE_AAAA) { in getAddressesFromAdditionalSection()
DDnsPacket.java20 import static android.net.DnsResolver.TYPE_AAAA;
354 final int nsType = (address.getAddress().length == 4) ? TYPE_A : TYPE_AAAA; in makeAOrAAAARecord()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsInetAddressRecord.java71 super(name, address instanceof Inet4Address ? TYPE_A : TYPE_AAAA, in MdnsInetAddressRecord()
95 if (super.getType() == MdnsRecord.TYPE_AAAA) { in readData()
DMdnsPacket.java162 case MdnsRecord.TYPE_AAAA: { in parseRecord()
165 MdnsRecord.TYPE_AAAA, reader, isQuestion); in parseRecord()
DMdnsRecord.java40 public static final int TYPE_AAAA = 0x001C; field in MdnsRecord
DEnqueueMdnsQueryCallable.java178 host, MdnsRecord.TYPE_AAAA, expectUnicastResponse)); in call()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestDnsServerTest.kt20 import android.net.DnsResolver.TYPE_AAAA
85 val qlist = listOf(DnsRecord.makeQuestion(TEST_DOMAIN, TYPE_AAAA, CLASS_IN)) in testHandleDnsQuery()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java74 TYPE_AAAA
79 public static final int TYPE_AAAA = 28; field in DnsResolver
379 TYPE_AAAA, flags); in query()
571 if (nsType != mQueryType || (nsType != TYPE_A && nsType != TYPE_AAAA)) { in getAddresses()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketTest.java21 import static android.net.DnsResolver.TYPE_AAAA;
201 assertDnsRecordRoundTrip(DnsPacket.DnsRecord.makeQuestion("test.com", TYPE_AAAA, CLASS_IN)); in testDnsRecordSynthesize()
417 "test.com", TYPE_AAAA, CLASS_IN); in testEqualsAndHashCode()
DDnsSvcbPacketTest.java21 import static android.net.DnsResolver.TYPE_AAAA;
599 .setRRType(TYPE_AAAA) in testDnsSvcbPacket_hasAnswerInAdditionalSection()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java20 import static android.net.DnsResolver.TYPE_AAAA;
982 mFakeDns.setAnswer(addr2, new String[] {TEST_IPV6_ADDRESS}, TYPE_AAAA); in testGetValidatedServerListIpv4Preferred()
1013 mFakeDns.setAnswer(addr2, new String[] {TEST_IPV6_ADDRESS}, TYPE_AAAA); in testGetValidatedServerListIpv6Preferred()
1044 mFakeDns.setAnswer(addr2, new String[] {TEST_IPV6_ADDRESS}, TYPE_AAAA); in testGetValidatedServerListIpv4Only()
1084 mFakeDns.setAnswer(expectedFqdnFromHplmn, new String[] {TEST_IPV6_ADDRESS}, TYPE_AAAA); in testGetValidatedServerListIpv4OnlyCongestion()
1109 mFakeDns.setAnswer(addr2, new String[] {TEST_IPV6_ADDRESS}, TYPE_AAAA); in testGetValidatedServerListIpv6Only()
1140 mFakeDns.setAnswer(addr2, new String[] {TEST_IPV6_ADDRESS}, TYPE_AAAA); in testGetValidatedServerListSystemPreferred()
1227 return getAnswer(hostname, TYPE_AAAA); in queryIpv6()
1289 case TYPE_AAAA: in mockQuery()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java24 import static android.net.DnsResolver.TYPE_AAAA;
514 getAnswer(mockNetwork, hostname, TYPE_AAAA) in queryAllTypes()
687 mFakeDns.setAnswer(PRIVATE_DNS_PROBE_HOST_SUFFIX, new String[]{"2001:db8::1"}, TYPE_AAAA); in setUp()
1398 mFakeDns.setAnswer(httpHost, new String[] { "2001:db8::123" }, TYPE_AAAA); in setupPrivateIpResponse()
1401 (parsedPrivateAddr instanceof Inet6Address) ? TYPE_AAAA : TYPE_A); in setupPrivateIpResponse()
2364 mFakeDns.setAnswer("dns6.google", new String[]{"2001:db8::53"}, TYPE_AAAA); in runPrivateDnsSuccessTest()
2382 mFakeDns.setAnswer("dns.google", new String[]{"2001:db8::54"}, TYPE_AAAA); in runPrivateDnsSuccessTest()
2416 mFakeDns.setAnswer("dns.google", new String[]{"2001:db8::1"}, TYPE_AAAA); in runProbeStatusChangedTest()
2452 mFakeDns.setAnswer("dns.google", new String[]{"2001:db8::1"}, TYPE_AAAA); in runPrivateDnsResolutionRetryUpdateTest()
2460 mFakeDns.setAnswer("dns.bad", new String[0], TYPE_AAAA); in runPrivateDnsResolutionRetryUpdateTest()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DSrvDnsResolver.java182 if (nsType != DnsResolver.TYPE_A && nsType != DnsResolver.TYPE_AAAA) { in parseIpAddresses()
DEpdgSelector.java453 DnsResolver.TYPE_AAAA, in getIP()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java20 import static android.net.DnsResolver.TYPE_AAAA;
897 qlist.add(DnsRecord.makeQuestion(PREF64_IPV4ONLY_HOSTNAME, TYPE_AAAA, CLASS_IN));
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java28 import static android.net.DnsResolver.TYPE_AAAA;
1936 resolver.query(mCleartextDnsNetwork, queryName, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in sendQueries()

12