Home
last modified time | relevance | path

Searched refs:rdata (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Uwb/service/java/com/android/server/uwb/secure/iso7816/
DResponseApdu.java102 ResponseApdu(byte[] rdata, int sw, long cmdTimeMillis) { in ResponseApdu() argument
103 this.mRdata = rdata; in ResponseApdu()
179 byte[] rdata = new byte[rdataLen]; in fromResponse()
180 buffer.get(rdata, 0, rdataLen); in fromResponse()
185 return new ResponseApdu(rdata, sw, cmdTimeMillis); in fromResponse()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp302 rdata.assign(cur, cur + rdlen); in read()
309 buffer_cur = writeIntFields(rdata.size(), buffer_cur, buffer_end); in write()
311 if (buffer_cur + rdata.size() > buffer_end) { in write()
315 return std::copy(rdata.begin(), rdata.end(), buffer_cur); in write()
848 record.rdata.resize(4); in fillRdata()
849 if (inet_pton(AF_INET, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
854 record.rdata.resize(16); in fillRdata()
855 if (inet_pton(AF_INET6, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
863 std::vector<char> rdata; in fillRdata() local
879 rdata.push_back(label.length()); in fillRdata()
[all …]
Ddns_responder.h66 std::vector<char> rdata; member
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsSvcbRecord.java111 final byte[] rdata = getRR(); in DnsSvcbRecord()
112 if (rdata == null) { in DnsSvcbRecord()
116 final ByteBuffer buf = ByteBuffer.wrap(rdata).asReadOnlyBuffer(); in DnsSvcbRecord()
/packages/modules/DnsResolver/
Dres_cache.cpp730 const uint8_t* rdata = ns_rr_rdata(rr); // find the data in answer_getNegativeTTL() local
731 const uint8_t* edata = rdata + ns_rr_rdlen(rr); // add the len to find the end in answer_getNegativeTTL()
737 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
739 rdata += len; in answer_getNegativeTTL()
742 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
744 rdata += len; in answer_getNegativeTTL()
746 if (edata - rdata != 5 * NS_INT32SZ) continue; in answer_getNegativeTTL()
748 rdata += NS_INT32SZ * 4; in answer_getNegativeTTL()
750 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
DDnsProxyListener.cpp175 const uint8_t* rdata = ns_rr_rdata(rr); in extractResNsendAnswers() local
178 memcpy(&sin.sin_addr, rdata, sizeof(sin.sin_addr)); in extractResNsendAnswers()
183 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers()
/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp70 const uint8_t* rdata = ns_rr_rdata(rr); in extractIpAddressAnswers() local
72 if (inet_ntop(ipType, (const char*) rdata, buffer, sizeof(buffer))) { in extractIpAddressAnswers()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp260 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry() argument
264 ce.answer = makeAnswer(ce.query, rdata, static_cast<unsigned>(ttl.count())); in makeCacheEntry()
382 std::string rdata; in TEST_F() member
391 std::string name = fmt::format("cache.lookup.type.{}", t.rdata); in TEST_F()
394 CacheEntry ce = makeCacheEntry(QUERY, name.data(), ns_c_in, t.type, t.rdata.data()); in TEST_F()
Dresolv_unit_test.cpp73 const std::string& rdata, unsigned ttl = kAnswerRecordTtlSec) { in MakeAnswerRecord() argument
80 EXPECT_TRUE(test::DNSResponder::fillRdata(rdata, record)); in MakeAnswerRecord()
85 const std::vector<std::string>& rdata) { in MakeDnsMessage() argument
113 for (const auto& r : rdata) { in MakeDnsMessage()
Dresolv_private_dns_test.cpp88 const uint8_t* rdata = ns_rr_rdata(rr); in toString() local
90 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
Dresolv_integration_test.cpp2443 const uint8_t* rdata = ns_rr_rdata(rr); in toString() local
2445 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp136 const uint8_t* rdata = ns_rr_rdata(rr); in extractIpAddressAnswers() local
138 if (inet_ntop(family, (const char*) rdata, buffer, sizeof(buffer)) == NULL) { in extractIpAddressAnswers()
/packages/inputmethods/LatinIME/dictionaries/
Dnb_wordlist.combined.gz