Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 52) sorted by relevance

123

/system/extras/libperfmgr/tests/
DRequestGroupTest.cc34 RequestGroup req(test_str); in TEST() local
35 EXPECT_EQ(test_str, req.GetRequestValue()); in TEST()
40 RequestGroup req(""); in TEST() local
43 bool ret = req.AddRequest("INTERACTION", start + duration); in TEST()
48 bool active = req.GetExpireTime(&expire_time); in TEST()
57 RequestGroup req(""); in TEST() local
58 bool ret = req.AddRequest("INTERACTION", ReqTime::max()); in TEST()
61 bool active = req.GetExpireTime(&expire_time); in TEST()
72 RequestGroup req(""); in TEST() local
75 bool ret = req.AddRequest("INTERACTION", start + duration); in TEST()
[all …]
/system/core/trusty/storage/proxy/
Drpmb.c72 static int send_mmc_rpmb_req(int mmc_fd, const struct storage_rpmb_send_req* req) { in send_mmc_rpmb_req() argument
80 const uint8_t* write_buf = req->payload; in send_mmc_rpmb_req()
81 if (req->reliable_write_size) { in send_mmc_rpmb_req()
86 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
90 print_buf("request: ", write_buf, req->reliable_write_size); in send_mmc_rpmb_req()
92 write_buf += req->reliable_write_size; in send_mmc_rpmb_req()
97 if (req->write_size) { in send_mmc_rpmb_req()
102 cmd->blocks = req->write_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
106 print_buf("request: ", write_buf, req->write_size); in send_mmc_rpmb_req()
108 write_buf += req->write_size; in send_mmc_rpmb_req()
[all …]
Dstorage.c166 const struct storage_file_delete_req *req = r; in storage_file_delete() local
168 if (req_len < sizeof(*req)) { in storage_file_delete()
170 __func__, req_len, sizeof(*req)); in storage_file_delete()
175 size_t fname_len = strlen(req->name); in storage_file_delete()
176 if (fname_len != req_len - sizeof(*req)) { in storage_file_delete()
178 __func__, fname_len, req_len - sizeof(*req)); in storage_file_delete()
183 int rc = asprintf(&path, "%s/%s", ssdir_name, req->name); in storage_file_delete()
219 const struct storage_file_open_req *req = r; in storage_file_open() local
222 if (req_len < sizeof(*req)) { in storage_file_open()
224 __func__, req_len, sizeof(*req)); in storage_file_open()
[all …]
Dstorage.h22 const void *req, size_t req_len);
25 const void *req, size_t req_len);
28 const void *req, size_t req_len);
31 const void *req, size_t req_len);
34 const void *req, size_t req_len);
37 const void *req, size_t req_len);
40 const void *req, size_t req_len);
Dproxy.c108 static int handle_req(struct storage_msg* msg, const void* req, size_t req_len) { in handle_req() argument
131 rc = storage_file_delete(msg, req, req_len); in handle_req()
135 rc = storage_file_open(msg, req, req_len); in handle_req()
139 rc = storage_file_close(msg, req, req_len); in handle_req()
143 rc = storage_file_write(msg, req, req_len); in handle_req()
147 rc = storage_file_read(msg, req, req_len); in handle_req()
151 rc = storage_file_get_size(msg, req, req_len); in handle_req()
155 rc = storage_file_set_size(msg, req, req_len); in handle_req()
159 rc = rpmb_send(msg, req, req_len); in handle_req()
/system/netd/server/
DClatUtils.cpp163 } req = { in doTcQdiscClsact() local
166 .nlmsg_len = sizeof(req), in doTcQdiscClsact()
190 const int rv = send(fd, &req, sizeof(req), 0); in doTcQdiscClsact()
192 if (rv != sizeof(req)) return -EMSGSIZE; in doTcQdiscClsact()
276 } req = { in tcFilterAddDevBpf() local
279 .nlmsg_len = sizeof(req), in tcFilterAddDevBpf()
295 .nla_len = sizeof(req.kind), in tcFilterAddDevBpf()
304 .nla_len = sizeof(req.options), in tcFilterAddDevBpf()
311 .nla_len = sizeof(req.options.fd), in tcFilterAddDevBpf()
320 .nla_len = sizeof(req.options.name), in tcFilterAddDevBpf()
[all …]
/system/core/trusty/storage/lib/
Dstorage.c147 struct storage_file_open_req req = { .flags = flags }; in storage_open_file() local
148 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)name, strlen(name)}}; in storage_open_file()
169 struct storage_file_close_req req = { .handle = _to_handle(fh)}; in storage_close_file() local
170 struct iovec tx[2] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}}; in storage_close_file()
183 struct storage_file_delete_req req = { .flags = 0, }; in storage_delete_file() local
184 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)name, strlen(name)}}; in storage_delete_file()
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; in _read_chunk() local
195 struct iovec tx[2] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}}; in _read_chunk()
229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, }; in _write_req() local
230 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)buf, size}}; in _write_req()
[all …]
/system/core/logd/
Dlibaudit.c75 struct audit_message req; in audit_send() local
78 memset(&req, 0, sizeof(req)); in audit_send()
85 req.nlh.nlmsg_type = type; in audit_send()
86 req.nlh.nlmsg_len = NLMSG_SPACE(size); in audit_send()
87 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in audit_send()
104 memcpy(NLMSG_DATA(&req.nlh), data, size); in audit_send()
119 req.nlh.nlmsg_seq = ++sequence; in audit_send()
123 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, in audit_send()
130 } else if ((uint32_t)rc != req.nlh.nlmsg_len) { in audit_send()
/system/extras/simpleperf/runtest/
Drun_and_sleep.cpp25 struct timespec req; in SleepFunction() local
26 req.tv_sec = sleep_time_in_ns / 1000000000; in SleepFunction()
27 req.tv_nsec = sleep_time_in_ns % 1000000000; in SleepFunction()
28 nanosleep(&req, nullptr); in SleepFunction()
Druntest.py195 for req in self.symbol_overhead_requirements:
196 strs.append('\t\t%s' % req)
198 for req in self.symbol_children_overhead_requirements:
199 strs.append('\t\t%s' % req)
201 for req in self.symbol_relation_requirements:
202 strs.append('\t\t%s' % req)
264 req = load_symbol_relation_requirement(symbol_item)
265 symbol_relation_requirements.append(req)
285 req = SymbolRelationRequirement(symbol_name, comm)
288 req.add_child(child_req)
[all …]
/system/core/adb/client/
Dusb_osx.cpp237 IOUSBDevRequest req; in AndroidInterfaceAdded() local
243 req.bmRequestType = in AndroidInterfaceAdded()
245 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded()
246 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded()
247 req.wIndex = 0; in AndroidInterfaceAdded()
248 req.pData = languages; in AndroidInterfaceAdded()
249 req.wLength = sizeof(languages); in AndroidInterfaceAdded()
250 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded()
252 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded()
254 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded()
[all …]
/system/core/libnetutils/
Difc_utils.c272 } req; in ifc_act_on_address() local
306 memset(&req, 0, sizeof(req)); in ifc_act_on_address()
309 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address()
310 req.n.nlmsg_type = action; in ifc_act_on_address()
311 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address()
312 req.n.nlmsg_pid = getpid(); in ifc_act_on_address()
315 req.r.ifa_family = ss.ss_family; in ifc_act_on_address()
316 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
317 req.r.ifa_index = ifindex; in ifc_act_on_address()
320 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
[all …]
/system/bt/btif/src/
Dbtif_gatt_server.cc189 const auto& req = p_data->req_data.p_data->write_req; in btapp_gatts_handle_cback() local
190 vector<uint8_t> value(req.value, req.value + req.len); in btapp_gatts_handle_cback()
193 p_data->req_data.remote_bda, req.handle, req.offset, in btapp_gatts_handle_cback()
194 req.need_rsp, req.is_prep, value); in btapp_gatts_handle_cback()
199 const auto& req = p_data->req_data.p_data->write_req; in btapp_gatts_handle_cback() local
200 vector<uint8_t> value(req.value, req.value + req.len); in btapp_gatts_handle_cback()
203 p_data->req_data.remote_bda, req.handle, req.offset, in btapp_gatts_handle_cback()
204 req.need_rsp, req.is_prep, value); in btapp_gatts_handle_cback()
Dbtif_core.cc859 btif_storage_req_t req; in btif_get_adapter_property() local
868 req.read_req.bd_addr = RawAddress::kEmpty; in btif_get_adapter_property()
869 req.read_req.type = type; in btif_get_adapter_property()
872 BTIF_CORE_STORAGE_ADAPTER_READ, (char*)&req, in btif_get_adapter_property()
888 btif_storage_req_t req; in btif_set_adapter_property() local
986 req.write_req.bd_addr = RawAddress::kEmpty; in btif_set_adapter_property()
987 memcpy(&(req.write_req.prop), property, sizeof(bt_property_t)); in btif_set_adapter_property()
990 (char*)&req, in btif_set_adapter_property()
1009 btif_storage_req_t req; in btif_get_remote_device_property() local
1013 req.read_req.bd_addr = *remote_addr; in btif_get_remote_device_property()
[all …]
/system/extras/tests/storage/
Dwipe_blkdev.c55 int req; in wipe_block_device() local
60 req = BLKSECDISCARD; in wipe_block_device()
62 req = BLKDISCARD; in wipe_block_device()
65 ret = ioctl(fd, req, &range); in wipe_block_device()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp86 SupportedByAlgorithmRequest req(ver); in TEST() local
87 req.algorithm = KM_ALGORITHM_EC; in TEST()
89 UniquePtr<SupportedByAlgorithmRequest> deserialized(round_trip(ver, req, 4)); in TEST()
96 SupportedByAlgorithmAndPurposeRequest req(ver); in TEST() local
97 req.algorithm = KM_ALGORITHM_EC; in TEST()
98 req.purpose = KM_PURPOSE_DECRYPT; in TEST()
100 UniquePtr<SupportedByAlgorithmAndPurposeRequest> deserialized(round_trip(ver, req, 8)); in TEST()
132 GenerateKeyRequest req(ver); in TEST() local
133 req.key_description.Reinitialize(params, array_length(params)); in TEST()
134 UniquePtr<GenerateKeyRequest> deserialized(round_trip(ver, req, 78)); in TEST()
[all …]
/system/core/libusbhost/
Dusbhost.c705 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new() local
706 if (!req) { in usb_request_new()
711 req->dev = dev; in usb_request_new()
712 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize); in usb_request_new()
713 req->private_data = urb; in usb_request_new()
714 req->endpoint = urb->endpoint; in usb_request_new()
715 urb->usercontext = req; in usb_request_new()
717 return req; in usb_request_new()
720 void usb_request_free(struct usb_request *req) in usb_request_free() argument
722 free(req->private_data); in usb_request_free()
[all …]
/system/libvintf/
Dparse_string.cpp375 bool parse(const std::string &s, MatrixHal *req) { in parse() argument
380 if (!parse(v[0], &req->format)) { in parse()
383 req->name = v[1]; in parse()
384 if (!parse(v[2], &req->versionRanges)) { in parse()
390 req->optional = (v[3] == kOptional); in parse()
394 std::ostream &operator<<(std::ostream &os, const MatrixHal &req) { in operator <<() argument
395 return os << req.format << "/" in operator <<()
396 << req.name << "/" in operator <<()
397 << req.versionRanges << "/" in operator <<()
398 << (req.optional ? kOptional : kRequired); in operator <<()
[all …]
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/cpp/
Dnative-lib.cpp80 struct timespec req; in SleepFunction() local
81 req.tv_sec = sleep_time_in_ns / 1000000000; in SleepFunction()
82 req.tv_nsec = sleep_time_in_ns % 1000000000; in SleepFunction()
83 nanosleep(&req, nullptr); in SleepFunction()
/system/core/trusty/keymaster/
DTrustyKeymaster.cpp34 ConfigureRequest req; in Initialize() local
35 req.os_version = GetOsVersion(); in Initialize()
36 req.os_patchlevel = GetOsPatchlevel(); in Initialize()
39 Configure(req, &rsp); in Initialize()
55 static void ForwardCommand(enum keymaster_command command, const Serializable& req, in ForwardCommand() argument
58 err = trusty_keymaster_send(command, req, rsp); in ForwardCommand()
/system/core/fastboot/
Dusb_osx.cpp346 IOUSBDevRequest req; in try_device() local
349 req.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); in try_device()
350 req.bRequest = kUSBRqGetDescriptor; in try_device()
351 req.wValue = (kUSBStringDesc << 8) | serialIndex; in try_device()
353 req.wIndex = 0x0409; in try_device()
354 req.pData = buffer; in try_device()
355 req.wLength = sizeof(buffer); in try_device()
356 kr = (*dev)->DeviceRequest(dev, &req); in try_device()
358 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in try_device()
362 count = (req.wLenDone - 1) / 2; in try_device()
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/
Dsmr_helper.h85 UniquePtr<ReqStruct> *req, UniquePtr<RespStruct> *resp, in sendReqAsync() argument
99 reqData->reqCStruct = std::move(*req); in sendReqAsync()
137 UniquePtr<ReqStruct> *req, UniquePtr<RespStruct> *resp,
146 clientHandle, msgId, req->get(), sizeof(ReqStruct),
156 req->release();
/system/connectivity/wifilogd/
Draw_os.cpp42 int RawOs::Nanosleep(const struct timespec* req, struct timespec* rem) { in Nanosleep() argument
43 return nanosleep(req, rem); in Nanosleep()
/system/chre/core/
Dwifi_request_manager.cc89 PendingRangingRequest& req = mPendingRangingRequests.back(); in requestRanging() local
90 req.nanoappInstanceId = nanoapp->getInstanceId(); in requestRanging()
91 req.cookie = cookie; in requestRanging()
109 success = req.targetList.copy_array(params->targetList, in requestRanging()
551 const PendingRangingRequest& req = mPendingRangingRequests.front(); in postRangingAsyncResult() local
557 event->cookie = req.cookie; in postRangingAsyncResult()
561 kSystemInstanceId, req.nanoappInstanceId); in postRangingAsyncResult()
572 const PendingRangingRequest& req = mPendingRangingRequests.front(); in dispatchQueuedRangingRequest() local
574 params.targetListLen = static_cast<uint8_t>(req.targetList.size()); in dispatchQueuedRangingRequest()
575 params.targetList = req.targetList.data(); in dispatchQueuedRangingRequest()
/system/core/libusbhost/include/usbhost/
Dusbhost.h255 void usb_request_free(struct usb_request *req);
258 int usb_request_queue(struct usb_request *req);
267 int usb_request_cancel(struct usb_request *req);

123