/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | DnsPacket.java | 264 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 …]
|
D | DnsSvcbPacket.java | 53 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()
|
D | DnsSvcbRecord.java | 97 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/ |
D | SrvDnsResolver.java | 141 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()
|
D | NaptrDnsResolver.java | 182 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/ |
D | DnsResolver.java | 237 @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()
|
D | NetworkUtils.java | 133 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/ |
D | DnsAnswerProvider.kt | 51 .orEmpty().filter { it.nsType == type } in getAnswer()
|
D | TestDnsServer.kt | 84 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/ |
D | DnsPacketTest.java | 67 assertEquals(record.nsType, dtype); in assertRecordParses()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 566 || records.get(i).nsType != otherRecords.get(i).nsType
|