/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | DnsAnswerProviderTest.kt | 20 import android.net.DnsResolver.TYPE_A in <lambda>() 45 assertEquals(emptyList(), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>() 49 assertEquals(listOf(record1), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>() 53 assertEquals(listOf(record1, record2), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>() 57 assertEquals(emptyList(), ansProvider.getAnswer("www.android.com", TYPE_A)) in <lambda>() 61 assertEquals(listOf(record1, record2), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>() 65 assertEquals(emptyList(), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>() 86 assertEquals(emptyList(), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>() 92 assertEquals(listOf(v4Record1), ansProvider.getAnswer("www.google.com", TYPE_A)) in <lambda>()
|
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/ |
D | EpdgSelectorTest.java | 19 import static android.net.DnsResolver.TYPE_A; 204 mFakeDns.setAnswer(testStaticAddress, new String[] {TEST_IP_ADDRESS}, TYPE_A); in testStaticMethodPass() 246 mFakeDns.setAnswer(testRoamStaticAddress, new String[] {TEST_IP_ADDRESS}, TYPE_A); in testRoamStaticMethodPass() 285 mFakeDns.setAnswer(expectedFqdnFromImsi, new String[] {TEST_IP_ADDRESS_1}, TYPE_A); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig() 286 mFakeDns.setAnswer(expectedFqdnFromEhplmn, new String[] {TEST_IP_ADDRESS_2}, TYPE_A); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig() 315 mFakeDns.setAnswer(expectedFqdnFromImsi, new String[] {TEST_IP_ADDRESS}, TYPE_A); in testPlmnResolutionMethod() 316 mFakeDns.setAnswer(expectedFqdnFromEhplmn, new String[] {TEST_IP_ADDRESS_1}, TYPE_A); in testPlmnResolutionMethod() 317 mFakeDns.setAnswer(excludedFqdnFromConfig, new String[] {TEST_IP_ADDRESS_2}, TYPE_A); in testPlmnResolutionMethod() 318 mFakeDns.setAnswer("sos." + expectedFqdnFromImsi, new String[] {TEST_IP_ADDRESS_3}, TYPE_A); in testPlmnResolutionMethod() 320 "sos." + expectedFqdnFromEhplmn, new String[] {TEST_IP_ADDRESS_4}, TYPE_A); in testPlmnResolutionMethod() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/ |
D | DnsUtilsTest.kt | 21 import android.net.DnsResolver.TYPE_A 68 verifyGetAllByName("www.google.com", arrayOf("192.168.0.1"), TYPE_A) in testGetAllByNameWithTypeSuccess() 81 verifyGetAllByNameFails("www.android.com", TYPE_A) in testGetAllByNameWithTypeNoResult()
|
/packages/modules/NetworkStack/src/com/android/networkstack/util/ |
D | DnsUtils.java | 20 import static android.net.DnsResolver.TYPE_A; 78 getAllByName(dnsResolver, network, host, TYPE_A, FLAG_NO_CACHE_LOOKUP, in getAllByName() 82 errorMsg.append(String.format(" (%s)%s", dnsTypeToStr(TYPE_A), e.getMessage())); in getAllByName() 179 case TYPE_A: in dnsTypeToStr()
|
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/ |
D | NaptrDnsResolver.java | 53 value = {TYPE_A, TYPE_SRV, TYPE_U, TYPE_P}) 57 public static final int TYPE_A = 0; field in NaptrDnsResolver 130 return TYPE_A; in getTypeFromFlagString()
|
D | SrvDnsResolver.java | 182 if (nsType != DnsResolver.TYPE_A && nsType != DnsResolver.TYPE_AAAA) { in parseIpAddresses()
|
D | EpdgSelector.java | 446 domainName, network, DnsResolver.TYPE_A, mDnsResolutionExecutor)); in getIP() 1103 if (target.mType == NaptrDnsResolver.TYPE_A) { in processNaptrResponse()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | DnsSvcbPacket.java | 19 import static android.net.DnsResolver.TYPE_A; 147 if (record.nsType != TYPE_A && record.nsType != TYPE_AAAA) { in getAddressesFromAdditionalSection()
|
D | DnsPacket.java | 19 import static android.net.DnsResolver.TYPE_A; 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/ |
D | MdnsInetAddressRecord.java | 71 super(name, address instanceof Inet4Address ? TYPE_A : TYPE_AAAA, in MdnsInetAddressRecord() 133 if (super.getType() == MdnsRecord.TYPE_A) { in toString()
|
D | MdnsPacket.java | 153 case MdnsRecord.TYPE_A: { in parseRecord() 155 return new MdnsInetAddressRecord(name, MdnsRecord.TYPE_A, reader, isQuestion); in parseRecord()
|
D | MdnsRecord.java | 39 public static final int TYPE_A = 0x0001; field in MdnsRecord
|
D | EnqueueMdnsQueryCallable.java | 176 host, MdnsRecord.TYPE_A, expectUnicastResponse)); in call()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | DnsResolver.java | 73 TYPE_A, 78 public static final int TYPE_A = 1; field in DnsResolver 396 v4fd = resNetworkQuery(queryNetwork.getNetIdForResolv(), domain, CLASS_IN, TYPE_A, in query() 571 if (nsType != mQueryType || (nsType != TYPE_A && nsType != TYPE_AAAA)) { in getAddresses()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordRepositoryTest.kt | 28 import com.android.server.connectivity.mdns.MdnsRecord.TYPE_A 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() 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() 1132 TYPE_A to TEST_HOSTNAME, in testGetReply_srvTxtAddressQuestions_returnsAllRecordsInAnswerSectionExceptNsec() 1151 intArrayOf(TYPE_A, TYPE_AAAA))), in testGetReply_srvTxtAddressQuestions_returnsAllRecordsInAnswerSectionExceptNsec() [all …]
|
D | MdnsReplySenderTest.kt | 91 hostname /* nextDomain */, intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA))) 109 intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA)))
|
D | MdnsResponseTests.java | 88 super(name, MdnsRecord.TYPE_A, reader); in MdnsInet4AddressRecord() 126 MdnsInetAddressRecord record = new MdnsInetAddressRecord(name, MdnsRecord.TYPE_A, reader); in getInet4AddressRecord_returnsAddedRecord()
|
D | MdnsAnnouncerTest.kt | 248 intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA))) in <lambda>()
|
D | MdnsRecordTests.java | 80 assertEquals(MdnsRecord.TYPE_A, type); in testInet4AddressRecord() 82 MdnsInetAddressRecord record = new MdnsInetAddressRecord(name, MdnsRecord.TYPE_A, reader); in testInet4AddressRecord()
|
D | MdnsServiceTypeClientTests.java | 1271 assertTrue(hasQuestion(addressQueryPacket, MdnsRecord.TYPE_A, hostname)); in testProcessResponse_Resolve()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | DnsPacketTest.java | 20 import static android.net.DnsResolver.TYPE_A; 317 "hello.example.com", TYPE_A, CLASS_IN)); in testDnsPacketSynthesize() 337 "hello.example.com", TYPE_A, CLASS_IN)); in testDnsPacketSynthesize_recordCountMismatch()
|
D | DnsSvcbPacketTest.java | 20 import static android.net.DnsResolver.TYPE_A; 363 .setRRType(TYPE_A) in testDnsSvcbRecord_invalidDnsRecord() 594 .setRRType(TYPE_A) in testDnsSvcbPacket_hasAnswerInAdditionalSection()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 23 import static android.net.DnsResolver.TYPE_A; 511 getAnswer(mockNetwork, hostname, TYPE_A) in queryAllTypes() 686 mFakeDns.setAnswer(PRIVATE_DNS_PROBE_HOST_SUFFIX, new String[]{"192.0.2.2"}, TYPE_A); in setUp() 1401 (parsedPrivateAddr instanceof Inet6Address) ? TYPE_AAAA : TYPE_A); in setupPrivateIpResponse() 2373 mFakeDns.setAnswer("dns4.google", new String[]{"192.0.2.1"}, TYPE_A); in runPrivateDnsSuccessTest() 2383 mFakeDns.setAnswer("dns.google", new String[]{"192.0.2.3"}, TYPE_A); in runPrivateDnsSuccessTest() 2459 mFakeDns.setAnswer("dns.bad", new String[0], TYPE_A); in runPrivateDnsResolutionRetryUpdateTest() 2533 mFakeDns.setAnswer("dns.google", new String[]{"192.0.2.123"}, TYPE_A); in testAsyncPrivateDnsResolution_PartialFailure() 2565 }, TYPE_A); in testAsyncPrivateDnsResolution_AQuerySucceedsFirst_PrioritizeAAAA() 2605 }, TYPE_A); in testAsyncPrivateDnsResolution_ConfigChange_RestartsWithNewConfig() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DnsResolverTest.java | 22 import static android.net.DnsResolver.TYPE_A; 747 mDns.query(network, TEST_DOMAIN, TYPE_A, FLAG_NO_CACHE_LOOKUP, in doTestQueryForInetAddressIpv4() 862 mDns.query(network, TEST_DOMAIN, queryV6 ? TYPE_AAAA : TYPE_A, in doTestContinuousQueries()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 27 import static android.net.DnsResolver.TYPE_A; 1938 resolver.query(mCleartextDnsNetwork, queryName, TYPE_A, FLAG_NO_CACHE_LOOKUP, in sendQueries()
|