Home
last modified time | relevance | path

Searched refs:TYPE_A (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DDnsAnswerProviderTest.kt20 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/
DEpdgSelectorTest.java19 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/
DDnsUtilsTest.kt21 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/
DDnsUtils.java20 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/
DNaptrDnsResolver.java53 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()
DSrvDnsResolver.java182 if (nsType != DnsResolver.TYPE_A && nsType != DnsResolver.TYPE_AAAA) { in parseIpAddresses()
DEpdgSelector.java446 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/
DDnsSvcbPacket.java19 import static android.net.DnsResolver.TYPE_A;
147 if (record.nsType != TYPE_A && record.nsType != TYPE_AAAA) { in getAddressesFromAdditionalSection()
DDnsPacket.java19 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/
DMdnsInetAddressRecord.java71 super(name, address instanceof Inet4Address ? TYPE_A : TYPE_AAAA, in MdnsInetAddressRecord()
133 if (super.getType() == MdnsRecord.TYPE_A) { in toString()
DMdnsPacket.java153 case MdnsRecord.TYPE_A: { in parseRecord()
155 return new MdnsInetAddressRecord(name, MdnsRecord.TYPE_A, reader, isQuestion); in parseRecord()
DMdnsRecord.java39 public static final int TYPE_A = 0x0001; field in MdnsRecord
DEnqueueMdnsQueryCallable.java176 host, MdnsRecord.TYPE_A, expectUnicastResponse)); in call()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java73 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/
DMdnsRecordRepositoryTest.kt28 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 …]
DMdnsReplySenderTest.kt91 hostname /* nextDomain */, intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA)))
109 intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA)))
DMdnsResponseTests.java88 super(name, MdnsRecord.TYPE_A, reader); in MdnsInet4AddressRecord()
126 MdnsInetAddressRecord record = new MdnsInetAddressRecord(name, MdnsRecord.TYPE_A, reader); in getInet4AddressRecord_returnsAddedRecord()
DMdnsAnnouncerTest.kt248 intArrayOf(MdnsRecord.TYPE_A, MdnsRecord.TYPE_AAAA))) in <lambda>()
DMdnsRecordTests.java80 assertEquals(MdnsRecord.TYPE_A, type); in testInet4AddressRecord()
82 MdnsInetAddressRecord record = new MdnsInetAddressRecord(name, MdnsRecord.TYPE_A, reader); in testInet4AddressRecord()
DMdnsServiceTypeClientTests.java1271 assertTrue(hasQuestion(addressQueryPacket, MdnsRecord.TYPE_A, hostname)); in testProcessResponse_Resolve()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketTest.java20 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()
DDnsSvcbPacketTest.java20 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/
DNetworkMonitorTest.java23 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/
DDnsResolverTest.java22 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/
DNetworkMonitor.java27 import static android.net.DnsResolver.TYPE_A;
1938 resolver.query(mCleartextDnsNetwork, queryName, TYPE_A, FLAG_NO_CACHE_LOOKUP, in sendQueries()

12