Home
last modified time | relevance | path

Searched refs:nsType (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java264 public final int nsType; field in DnsPacket.DnsRecord
296 nsType = Short.toUnsignedInt(buf.getShort()); in DnsRecord()
325 final int nsType = Short.toUnsignedInt(buf.getShort()); in parse() local
329 switch (nsType) { in parse()
354 final int nsType = (address.getAddress().length == 4) ? TYPE_A : TYPE_AAAA; in makeAOrAAAARecord() local
355 return new DnsRecord(rType, dName, nsType, nsClass, ttl, address, null /* rDataStr */); in makeAOrAAAARecord()
382 public static DnsRecord makeQuestion(@NonNull String dName, int nsType, int nsClass) { in makeQuestion() argument
383 return new DnsRecord(dName, nsType, nsClass); in makeQuestion()
397 private DnsRecord(@NonNull String dName, int nsType, int nsClass) { in DnsRecord() argument
400 this.nsType = nsType; in DnsRecord()
[all …]
DDnsSvcbPacket.java53 final int nsType = mRecords[QDSECTION].get(0).nsType; in DnsSvcbPacket() local
54 if (nsType != TYPE_SVCB) { in DnsSvcbPacket()
55 throw new DnsPacket.ParseException("Unexpected query type " + nsType); in DnsSvcbPacket()
147 if (record.nsType != TYPE_A && record.nsType != TYPE_AAAA) { in getAddressesFromAdditionalSection()
148 Log.d(TAG, "Found type other than A/AAAA in Additional section: " + record.nsType); in getAddressesFromAdditionalSection()
DDnsSvcbRecord.java97 if (nsType != DnsPacket.TYPE_SVCB) { in DnsSvcbRecord()
98 throw new IllegalStateException("incorrect nsType: " + nsType); in DnsSvcbRecord()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DSrvDnsResolver.java141 mQueryType = mRecords[QDSECTION].get(0).nsType; in SrvResponse()
154 final int nsType = ansSec.nsType; in parseSrvRecords() local
155 if (nsType != QUERY_TYPE_SRV) { in parseSrvRecords()
156 throw new ParseException("Unexpected DNS record type in ANSECTION: " + nsType); in parseSrvRecords()
181 int nsType = ansSec.nsType; in parseIpAddresses() local
182 if (nsType != DnsResolver.TYPE_A && nsType != DnsResolver.TYPE_AAAA) { in parseIpAddresses()
183 throw new ParseException("Unexpected DNS record type in ARSECTION: " + nsType); in parseIpAddresses()
DNaptrDnsResolver.java182 mQueryType = mRecords[QDSECTION].get(0).nsType; in NaptrResponse()
193 final int nsType = ansSec.nsType; in parseNaptrRecords() local
194 if (nsType != QUERY_TYPE_NAPTR) { in parseNaptrRecords()
195 throw new ParseException("Unexpected DNS record type in ANSECTION: " + nsType); in parseNaptrRecords()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java237 @QueryClass int nsClass, @QueryType int nsType, @QueryFlag int flags, in rawQuery() argument
248 ? network.getNetIdForResolv() : NETID_UNSET, domain, nsClass, nsType, flags); in rawQuery()
444 @QueryType int nsType, @QueryFlag int flags, in query() argument
456 queryfd = resNetworkQuery(queryNetwork.getNetIdForResolv(), domain, CLASS_IN, nsType, in query()
561 mQueryType = mRecords[QDSECTION].get(0).nsType; in DnsAddressAnswer()
570 int nsType = ansSec.nsType; in getAddresses() local
571 if (nsType != mQueryType || (nsType != TYPE_A && nsType != TYPE_AAAA)) { in getAddresses()
DNetworkUtils.java133 long netHandle, String dname, int nsClass, int nsType, int flags) throws ErrnoException; in resNetworkQuery() argument
143 int netId, String dname, int nsClass, int nsType, int flags) throws ErrnoException { in resNetworkQuery() argument
144 return resNetworkQuery(new Network(netId).getNetworkHandle(), dname, nsClass, nsType, in resNetworkQuery()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDnsAnswerProvider.kt51 .orEmpty().filter { it.nsType == type } in getAnswer()
DTestDnsServer.kt84 val answerRecords = queryRecords[0].let { ansProvider.getAnswer(it.dName, it.nsType) } in handleDnsQuery()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketTest.java67 assertEquals(record.nsType, dtype); in assertRecordParses()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java566 || records.get(i).nsType != otherRecords.get(i).nsType