Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 37) sorted by relevance

12

/system/netd/resolv/
DDnsTlsQueryMap.h41 const netdutils::Slice query; member
48 QueryFuture(Query query, std::future<Result> result) in QueryFuture()
49 : query(query), result(std::move(result)) {} in QueryFuture()
50 Query query; member
57 std::unique_ptr<QueryFuture> recordQuery(const netdutils::Slice query);
81 QueryPromise(Query query) : query(query) {} in QueryPromise()
82 Query query; member
DDnsTlsTransport.cpp33 std::future<DnsTlsTransport::Result> DnsTlsTransport::query(const netdutils::Slice query) { in query() argument
36 auto record = mQueries.recordQuery(query); in query()
47 sendQuery(record->query); in query()
55 bool sent = mSocket->query(q.newId, netdutils::drop(q.query, 2)); in sendQuery()
160 uint8_t query[] = { in validate() local
176 const int qlen = std::size(query); in validate()
181 auto r = transport.query(netdutils::Slice(query, qlen)).get(); in validate()
Ddns_tls_test.cpp125 bytevec make_echo(uint16_t id, const Slice query) { in make_echo() argument
126 bytevec response(query.size() + 2); in make_echo()
130 memcpy(response.data() + 2, query.base(), query.size()); in make_echo()
138 bool query(uint16_t id, const Slice query) override { in query() function in android::net::FakeSocketEcho
140 std::thread(&IDnsTlsSocketObserver::onResponse, mObserver, make_echo(id, query)).detach(); in query()
153 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
163 bool query(uint16_t id, const Slice query ATTRIBUTE_UNUSED) override { in query() function in android::net::FakeSocketId
188 std::future<DnsTlsServer::Result> f = transport.query(makeSlice(QUERY)); in TEST_F()
209 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
226 bool query(uint16_t id, const Slice query) override { in query() function in android::net::FakeSocketDelay
[all …]
DDnsTlsDispatcher.cpp85 DnsTlsTransport::Response DnsTlsDispatcher::query( in query() function in android::net::DnsTlsDispatcher
87 const Slice query, const Slice ans, int *resplen) { in query() argument
94 code = this->query(server, mark, query, ans, resplen); in query()
115 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned mark, in query() function in android::net::DnsTlsDispatcher
116 const Slice query, in query() argument
132 ALOGV("Sending query of length %zu", query.size()); in query()
133 auto res = xport->transport.query(query); in query()
DDnsTlsQueryMap.cpp28 const netdutils::Slice query) { in recordQuery() argument
32 if (query.size() < 2) { in recordQuery()
41 Query q = { .newId = static_cast<uint16_t>(newId), .query = query }; in recordQuery()
108 queries.push_back(q.second.query); in getAll()
141 const uint8_t* data = it->second.query.query.base(); in onResponse()
DREADME.md1 # DNS-over-TLS query forwarder design
5 The DNS-over-TLS query forwarder consists of five classes:
12 `DnsTlsDispatcher` is a singleton class whose `query` method is the DnsTls's
15 network. `DnsTlsDispatcher` also blocks each query thread, waiting on a
18 `DnsTlsTransport` sends each query over a `DnsTlsSocket`, opening a
25 `DnsTlsQueryMap` handles ID renumbering and query-response pairing.
31 state to indicate whether there is an outstanding query.
46 query or response. However, DnsProxyListener does create a thread for each query.
52 The query method writes a struct (containing a pointer to the query) to the pipe
55 instead, any queueing happens by blocking the query thread until the
[all …]
Dresolv_cache.h54 ResolvCacheStatus _resolv_cache_lookup(unsigned netid, const void* query, int querylen,
61 void _resolv_cache_add(unsigned netid, const void* query, int querylen, const void* answer,
65 void _resolv_cache_query_failed(unsigned netid, const void* query, int querylen, uint32_t flags);
DDnsTlsDispatcher.h51 DnsTlsTransport::Response query(const std::list<DnsTlsServer>& tlsServers, unsigned mark,
52 const netdutils::Slice query, const netdutils::Slice ans,
58 DnsTlsTransport::Response query(const DnsTlsServer& server, unsigned mark,
59 const netdutils::Slice query, const netdutils::Slice ans,
DIDnsTlsSocket.h42 virtual bool query(uint16_t id, const netdutils::Slice query) = 0;
DDnsTlsTransport.h53 std::future<Result> query(const netdutils::Slice query) EXCLUDES(mLock);
Dres_cache.cpp933 const uint8_t* query; member
1061 _dnsPacket_init(pack, e->query, e->querylen); in entry_hash()
1067 static int entry_init_key(Entry* e, const void* query, int querylen) { in entry_init_key() argument
1072 e->query = (const uint8_t*) query; in entry_init_key()
1076 _dnsPacket_init(pack, e->query, e->querylen); in entry_init_key()
1091 e->query = (const uint8_t*) (e + 1); in entry_alloc()
1094 memcpy((char*) e->query, init->query, e->querylen); in entry_alloc()
1096 e->answer = e->query + e->querylen; in entry_alloc()
1110 _dnsPacket_init(pack1, e1->query, e1->querylen); in entry_equals()
1111 _dnsPacket_init(pack2, e2->query, e2->querylen); in entry_equals()
[all …]
DDnsTlsSocket.h65 bool query(uint16_t id, const netdutils::Slice query) override EXCLUDES(mLock);
DDnsTlsSocket.cpp432 bool DnsTlsSocket::query(uint16_t id, const Slice query) { in query() function in android::net::DnsTlsSocket
435 std::vector<uint8_t> buf(query.size() + 4); in query()
437 uint16_t len = query.size() + 2; // + 2 for the ID. in query()
444 std::memcpy(buf.data() + 4, query.base(), query.size()); in query()
Dstats.proto182 // the cache doesn't know about this query.
201 // Number of DNS query retry times
224 * broken up by query type, transport, network interface, etc.
Dres_send.cpp133 static int res_tls_send(res_state, const Slice query, const Slice answer, int* rcode,
1214 static int res_tls_send(res_state statp, const Slice query, const Slice answer, int* rcode, in res_tls_send() argument
1259 const auto response = sDnsTlsDispatcher.query(privateDnsStatus.validatedServers, mark, query, in res_tls_send()
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
DTestServiceClient.java89 boolean query = true; in checkPrimitiveRepeat()
90 boolean response = service.RepeatBoolean(query); in checkPrimitiveRepeat()
91 if (query != response) { in checkPrimitiveRepeat()
92 mLog.logAndThrow("Repeat with " + query + in checkPrimitiveRepeat()
97 char query = 'A'; in checkPrimitiveRepeat() local
98 char response = service.RepeatChar(query); in checkPrimitiveRepeat()
99 if (query != response) { in checkPrimitiveRepeat()
100 mLog.logAndThrow("Repeat with " + query + in checkPrimitiveRepeat()
105 byte query = -128; in checkPrimitiveRepeat()
106 byte response = service.RepeatByte(query); in checkPrimitiveRepeat()
[all …]
/system/core/libion/
Dion.c202 struct ion_heap_query query; in ion_query_heap_cnt() local
204 memset(&query, 0, sizeof(query)); in ion_query_heap_cnt()
206 ret = ion_ioctl(fd, ION_IOC_HEAP_QUERY, &query); in ion_query_heap_cnt()
209 *cnt = query.cnt; in ion_query_heap_cnt()
215 struct ion_heap_query query = { in ion_query_get_heaps() local
219 ret = ion_ioctl(fd, ION_IOC_HEAP_QUERY, &query); in ion_query_get_heaps()
/system/core/logcat/
Devent.logtags57 # count is negative for query phase, positive for merge phase
100 # sql: the executed query (without query args)
103 # sample_percent: the percent likelihood this query was logged
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp330 uint8_t query[qlen]; in handleOneRequest() local
333 int ret = SSL_read(ssl, query + qbytes, qlen - qbytes); in handleOneRequest()
340 int sent = send(backend_socket_.get(), query, qlen, 0); in handleOneRequest()
/system/sepolicy/prebuilts/api/26.0/private/
Duntrusted_v2_app.te24 # allow cts to query all services
/system/sepolicy/prebuilts/api/27.0/private/
Duntrusted_v2_app.te24 # allow cts to query all services
/system/bt/bta/hf_client/
Dbta_hf_client_int.h279 bool query);
292 extern void bta_hf_client_send_at_btrh(tBTA_HF_CLIENT_CB* client_cb, bool query,
/system/sepolicy/prebuilts/api/28.0/private/
Duntrusted_v2_app.te24 # allow cts to query all services
/system/core/adb/client/
Dcommandline.cpp1609 std::string query = android::base::StringPrintf("host:%s%s", argv[0], listopt); in adb_commandline() local
1615 return adb_query_command(query); in adb_commandline()
1620 std::string query = android::base::StringPrintf("host:connect:%s", argv[1]); in adb_commandline() local
1621 return adb_query_command(query); in adb_commandline()
1626 std::string query = android::base::StringPrintf("host:disconnect:%s", in adb_commandline() local
1628 return adb_query_command(query); in adb_commandline()
/system/core/adb/
DSERVICES.TXT32 This is a special query that is sent to the ADB server when a
64 This is a special form of query, where the 'host-serial:<serial-number>:'
148 to a real device, or that you have used a query prefix as described

12