Searched refs:query (Results 1 - 17 of 17) sorted by relevance

/system/netd/server/dns/
H A DDnsTlsQueryMap.h40 // The new ID number assigned to this query.
42 // A query that has been passed to recordQuery(), with its original ID number.
43 const Slice query; member in struct:android::net::DnsTlsQueryMap::Query
50 QueryFuture(Query query, std::future<Result> result) : argument
51 query(query), result(std::move(result)) {}
52 Query query; member in struct:android::net::DnsTlsQueryMap::QueryFuture
53 // A future which will resolve to the result of this query.
58 // this query, or null if the query coul
83 QueryPromise(Query query) argument
84 Query query; member in struct:android::net::DnsTlsQueryMap::QueryPromise
[all...]
H A DIDnsTlsSocket.h33 // This interface is not aware of query-response pairing or anything else about DNS.
37 // Send a query on the provided SSL socket. |query| contains
38 // the body of a query, not including the ID bytes. This function will typically return before
39 // the query is actually sent. If this function fails, the observer will be
42 virtual bool query(uint16_t id, const netdutils::Slice query) = 0;
H A DDnsTlsTransport.cpp38 std::future<DnsTlsTransport::Result> DnsTlsTransport::query(const netdutils::Slice query) { argument
41 auto record = mQueries.recordQuery(query);
49 ALOGV("No socket for query. Opening socket and sending.");
52 sendQuery(record->query);
60 bool sent = mSocket->query(q.newId, netdutils::drop(q.query, 2));
165 uint8_t query[] = { local
166 rnd[6], rnd[7], // [0-1] query ID
167 1, 0, // [2-3] flags; query[
[all...]
H A DDnsTlsDispatcher.cpp80 DnsTlsTransport::Response DnsTlsDispatcher::query( argument
82 const Slice query, const Slice ans, int *resplen) {
89 code = this->query(server, mark, query, ans, resplen);
110 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned mark, argument
111 const Slice query,
127 ALOGV("Sending query of length %zu", query.size());
128 auto res = xport->transport.query(query);
[all...]
H A DDnsTlsDispatcher.h52 // Enqueues |query| for resolution via the given |tlsServers| on the
57 DnsTlsTransport::Response query(const std::list<DnsTlsServer> &tlsServers, unsigned mark,
58 const Slice query, const Slice ans, int * _Nonnull resplen);
60 // Given a |query|, sends it to the server on the network indicated by |mark|,
63 DnsTlsTransport::Response query(const DnsTlsServer& server, unsigned mark,
64 const Slice query, const Slice ans, int * _Nonnull resplen);
H A DDnsTlsQueryMap.cpp27 std::unique_ptr<DnsTlsQueryMap::QueryFuture> DnsTlsQueryMap::recordQuery(const Slice query) { argument
30 // Store the query so it can be matched to the response or reissued.
31 if (query.size() < 2) {
37 ALOGW("All query IDs are in use");
40 Query q = { .newId = static_cast<uint16_t>(newId), .query = query };
45 ALOGE("Failed to store pending query");
107 queries.push_back(q.second.query);
139 // Rewrite ID to match the query
140 const uint8_t* data = it->second.query
[all...]
H A DDnsTlsSocket.h42 // This class is not aware of query-response pairing or anything else about DNS.
44 // This class is not re-entrant: the observer is not permitted to wait for a call to query()
61 // Send a query on the provided SSL socket. |query| contains
62 // the body of a query, not including the ID header. This function will typically return before
63 // the query is actually sent. If this function fails, DnsTlsSocketObserver will be
67 bool query(uint16_t id, const Slice query) override;
100 Slice query; member in struct:android::net::DnsTlsSocket::Query
106 // SOCK_SEQPACKET socket pair used for sending queries from myriad query
[all...]
H A DDnsTlsTransport.h53 // Given a |query|, this method sends it to the server and returns the result asynchronously.
54 std::future<Result> query(const netdutils::Slice query) EXCLUDES(mLock);
87 // Send a query to the socket.
H A DDnsTlsSocket.cpp344 // Buffer at most one query.
357 // If we have a pending query, also wait for space
358 // to write it, otherwise listen for a new query.
359 if (!q.query.empty()) {
394 // query cannot be null here.
430 bool DnsTlsSocket::query(uint16_t id, const Slice query) { argument
431 const Query q = { .id = id, .query = query };
471 ALOGV("sending query");
[all...]
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
H A DTestServiceClient.java87 boolean query = true;
88 boolean response = service.RepeatBoolean(query);
89 if (query != response) {
90 mLog.logAndThrow("Repeat with " + query +
95 char query = 'A';
96 char response = service.RepeatChar(query);
97 if (query != response) {
98 mLog.logAndThrow("Repeat with " + query +
103 byte query = -128;
104 byte response = service.RepeatByte(query);
[all...]
/system/netd/tests/
H A Ddns_tls_test.cpp96 // Arbitrarily fill the query body with unique data.
122 bytevec make_echo(uint16_t id, const Slice query) { argument
123 bytevec response(query.size() + 2);
126 // Echo the query as the fake response.
127 memcpy(response.data() + 2, query.base(), query.size());
131 // Simplest possible fake server. This just echoes the query as the response.
135 bool query(uint16_t id, const Slice query) override {
137 std::thread(&IDnsTlsSocketObserver::onResponse, mObserver, make_echo(id, query))
[all...]
/system/core/libion/
H A Dion.c202 struct ion_heap_query query; local
204 memset(&query, 0, sizeof(query));
206 ret = ion_ioctl(fd, ION_IOC_HEAP_QUERY, &query);
209 *cnt = query.cnt;
215 struct ion_heap_query query = { local
219 ret = ion_ioctl(fd, ION_IOC_HEAP_QUERY, &query);
/system/netd/tests/dns_responder/
H A Ddns_tls_frontend.cpp303 // a query that is fully processed, and the response returned to the
318 uint8_t query[qlen]; local
321 int ret = SSL_read(ssl, query + qbytes, qlen - qbytes);
323 ALOGI("Error while reading query");
328 int sent = send(backend_socket_, query, qlen, 0);
330 ALOGI("Failed to send query");
384 // any immediate post-query actions that the client may take (such as
/system/bt/bta/hf_client/
H A Dbta_hf_client_int.h279 bool query);
292 extern void bta_hf_client_send_at_btrh(tBTA_HF_CLIENT_CB* client_cb, bool query,
H A Dbta_hf_client_at.cc1759 void bta_hf_client_send_at_cops(tBTA_HF_CLIENT_CB* client_cb, bool query) { argument
1764 if (query)
1882 void bta_hf_client_send_at_btrh(tBTA_HF_CLIENT_CB* client_cb, bool query, argument
1889 if (query) {
/system/netd/server/
H A DDnsProxyListener.cpp155 if (DBG) ALOGD("Performing query over TLS");
157 Slice query = netdutils::Slice(const_cast<u_char*>(*buf), *buflen); local
159 const auto response = dnsTlsDispatcher.query(
161 query, answer, resplen);
168 ALOGW("qhook abort: TLS query failed: %d", (int)response);
/system/core/adb/
H A Dcommandline.cpp1530 std::string query = android::base::StringPrintf("host:%s%s", argv[0], listopt); local
1532 return adb_query_command(query);
1537 std::string query = android::base::StringPrintf("host:connect:%s", argv[1]);
1538 return adb_query_command(query);
1543 std::string query = android::base::StringPrintf("host:disconnect:%s",
1545 return adb_query_command(query);

Completed in 6738 milliseconds