/system/extras/libperfmgr/tests/ |
D | RequestGroupTest.cc | 34 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/ |
D | rpmb.c | 134 static int send_mmc_rpmb_req(int mmc_fd, const struct storage_rpmb_send_req* req) { in send_mmc_rpmb_req() argument 142 const uint8_t* write_buf = req->payload; in send_mmc_rpmb_req() 143 if (req->reliable_write_size) { in send_mmc_rpmb_req() 148 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req() 152 print_buf("request: ", write_buf, req->reliable_write_size); in send_mmc_rpmb_req() 154 write_buf += req->reliable_write_size; in send_mmc_rpmb_req() 159 if (req->write_size) { in send_mmc_rpmb_req() 164 cmd->blocks = req->write_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req() 168 print_buf("request: ", write_buf, req->write_size); in send_mmc_rpmb_req() 170 write_buf += req->write_size; in send_mmc_rpmb_req() [all …]
|
D | storage.c | 166 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 …]
|
D | storage.h | 22 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);
|
D | proxy.c | 112 static int handle_req(struct storage_msg* msg, const void* req, size_t req_len) { in handle_req() argument 135 rc = storage_file_delete(msg, req, req_len); in handle_req() 139 rc = storage_file_open(msg, req, req_len); in handle_req() 143 rc = storage_file_close(msg, req, req_len); in handle_req() 147 rc = storage_file_write(msg, req, req_len); in handle_req() 151 rc = storage_file_read(msg, req, req_len); in handle_req() 155 rc = storage_file_get_size(msg, req, req_len); in handle_req() 159 rc = storage_file_set_size(msg, req, req_len); in handle_req() 163 rc = rpmb_send(msg, req, req_len); in handle_req()
|
/system/netd/server/ |
D | OffloadUtils.cpp | 86 static int sendAndProcessNetlinkResponse(const void* req, int len) { in sendAndProcessNetlinkResponse() argument 114 rv = send(fd, req, len, 0); in sendAndProcessNetlinkResponse() 168 } req = { in doTcQdiscClsact() local 171 .nlmsg_len = sizeof(req), in doTcQdiscClsact() 194 return sendAndProcessNetlinkResponse(&req, sizeof(req)); in doTcQdiscClsact() 295 } req = { in tcFilterAddDevBpf() local 298 .nlmsg_len = sizeof(req), in tcFilterAddDevBpf() 315 .nla_len = sizeof(req.kind), in tcFilterAddDevBpf() 324 .nla_len = sizeof(req.options), in tcFilterAddDevBpf() 331 .nla_len = sizeof(req.options.fd), in tcFilterAddDevBpf() [all …]
|
/system/core/trusty/storage/lib/ |
D | storage.c | 147 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/ |
D | libaudit.cpp | 71 struct audit_message req = {}; in audit_send() local 72 req.nlh.nlmsg_type = static_cast<uint16_t>(type); in audit_send() 73 req.nlh.nlmsg_len = NLMSG_SPACE(size); in audit_send() 74 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in audit_send() 91 memcpy(NLMSG_DATA(&req.nlh), data, size); in audit_send() 104 req.nlh.nlmsg_seq = sequence; in audit_send() 107 sendto(fd, &req, req.nlh.nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr))); in audit_send() 112 } else if ((uint32_t)rc != req.nlh.nlmsg_len) { in audit_send()
|
/system/extras/simpleperf/runtest/ |
D | run_and_sleep.cpp | 25 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()
|
D | runtest.py | 195 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/ |
D | usb_osx.cpp | 239 IOUSBDevRequest req; in AndroidInterfaceAdded() local 245 req.bmRequestType = in AndroidInterfaceAdded() 247 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded() 248 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded() 249 req.wIndex = 0; in AndroidInterfaceAdded() 250 req.pData = languages; in AndroidInterfaceAdded() 251 req.wLength = sizeof(languages); in AndroidInterfaceAdded() 252 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded() 254 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded() 256 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded() [all …]
|
/system/core/libnetutils/ |
D | ifc_utils.c | 273 } req; in ifc_act_on_address() local 304 memset(&req, 0, sizeof(req)); in ifc_act_on_address() 307 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address() 308 req.n.nlmsg_type = action; in ifc_act_on_address() 309 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address() 310 req.n.nlmsg_pid = getpid(); in ifc_act_on_address() 313 req.r.ifa_family = ss.ss_family; in ifc_act_on_address() 314 req.r.ifa_flags = nodad ? IFA_F_NODAD : 0; in ifc_act_on_address() 315 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address() 316 req.r.ifa_index = ifindex; in ifc_act_on_address() [all …]
|
/system/bt/btif/src/ |
D | btif_gatt_server.cc | 189 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()
|
D | btif_core.cc | 859 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/ |
D | wipe_blkdev.c | 55 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/ |
D | android_keymaster_messages_test.cpp | 86 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/ |
D | usbhost.c | 710 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new() local 711 if (!req) { in usb_request_new() 716 req->dev = dev; in usb_request_new() 717 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize); in usb_request_new() 718 req->private_data = urb; in usb_request_new() 719 req->endpoint = urb->endpoint; in usb_request_new() 720 urb->usercontext = req; in usb_request_new() 722 return req; in usb_request_new() 725 void usb_request_free(struct usb_request *req) in usb_request_free() argument 727 free(req->private_data); in usb_request_free() [all …]
|
/system/libvintf/ |
D | parse_string.cpp | 375 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/ |
D | native-lib.cpp | 80 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/ |
D | TrustyKeymaster.cpp | 34 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/ |
D | usb_osx.cpp | 346 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/ |
D | smr_helper.h | 85 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/ |
D | raw_os.cpp | 42 int RawOs::Nanosleep(const struct timespec* req, struct timespec* rem) { in Nanosleep() argument 43 return nanosleep(req, rem); in Nanosleep()
|
/system/chre/core/ |
D | wifi_request_manager.cc | 89 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() 553 const PendingRangingRequest& req = mPendingRangingRequests.front(); in postRangingAsyncResult() local 559 event->cookie = req.cookie; in postRangingAsyncResult() 564 req.nanoappInstanceId); in postRangingAsyncResult() 575 const PendingRangingRequest& req = mPendingRangingRequests.front(); in dispatchQueuedRangingRequest() local 577 params.targetListLen = static_cast<uint8_t>(req.targetList.size()); in dispatchQueuedRangingRequest() 578 params.targetList = req.targetList.data(); in dispatchQueuedRangingRequest()
|
/system/core/libusbhost/include/usbhost/ |
D | usbhost.h | 255 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);
|