/system/core/sdcard/ |
D | sdcard.c | 822 const struct fuse_in_header *hdr, const struct fuse_forget_in *req) in handle_forget() argument 828 TRACE("[%d] FORGET #%"PRIu64" @ %"PRIx64" (%s)\n", handler->token, req->nlookup, in handle_forget() 831 __u64 n = req->nlookup; in handle_forget() 841 const struct fuse_in_header *hdr, const struct fuse_getattr_in *req) in handle_getattr() argument 849 req->getattr_flags, req->fh, hdr->nodeid, node ? node->name : "?"); in handle_getattr() 863 const struct fuse_in_header *hdr, const struct fuse_setattr_in *req) in handle_setattr() argument 872 req->fh, req->valid, hdr->nodeid, node ? node->name : "?"); in handle_setattr() 879 if (!(req->valid & FATTR_FH) && in handle_setattr() 887 if ((req->valid & FATTR_SIZE) && truncate64(path, req->size) < 0) { in handle_setattr() 897 if (req->valid & (FATTR_ATIME | FATTR_MTIME)) { in handle_setattr() [all …]
|
/system/core/logd/ |
D | libaudit.c | 87 struct audit_message req; in audit_send() local 90 memset(&req, 0, sizeof(req)); in audit_send() 97 req.nlh.nlmsg_type = type; in audit_send() 98 req.nlh.nlmsg_len = NLMSG_SPACE(size); in audit_send() 99 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in audit_send() 117 memcpy(NLMSG_DATA(&req.nlh), data, size); in audit_send() 132 req.nlh.nlmsg_seq = ++sequence; in audit_send() 136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, in audit_send() 144 } else if ((uint32_t) rc != req.nlh.nlmsg_len) { in audit_send()
|
/system/core/adb/ |
D | usb_osx.cpp | 220 IOUSBDevRequest req; in AndroidInterfaceAdded() local 226 req.bmRequestType = in AndroidInterfaceAdded() 228 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded() 229 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded() 230 req.wIndex = 0; in AndroidInterfaceAdded() 231 req.pData = languages; in AndroidInterfaceAdded() 232 req.wLength = sizeof(languages); in AndroidInterfaceAdded() 233 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded() 235 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded() 237 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded() [all …]
|
D | file_sync_client.cpp | 154 SyncRequest* req = reinterpret_cast<SyncRequest*>(&buf[0]); in SendRequest() local 155 req->id = id; in SendRequest() 156 req->path_length = path_length; in SendRequest() 157 char* data = reinterpret_cast<char*>(req + 1); in SendRequest()
|
/system/core/libusbhost/ |
D | usbhost.c | 643 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new() local 644 if (!req) { in usb_request_new() 649 req->dev = dev; in usb_request_new() 650 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize); in usb_request_new() 651 req->private_data = urb; in usb_request_new() 652 req->endpoint = urb->endpoint; in usb_request_new() 653 urb->usercontext = req; in usb_request_new() 655 return req; in usb_request_new() 658 void usb_request_free(struct usb_request *req) in usb_request_free() argument 660 free(req->private_data); in usb_request_free() [all …]
|
/system/extras/simpleperf/runtest/ |
D | runtest.py | 187 for req in self.symbol_overhead_requirements: 188 strs.append('\t\t%s' % req) 190 for req in self.symbol_children_overhead_requirements: 191 strs.append('\t\t%s' % req) 193 for req in self.symbol_relation_requirements: 194 strs.append('\t\t%s' % req) 250 req = load_symbol_relation_requirement(symbol_item) 251 symbol_relation_requirements.append(req) 269 req = SymbolRelationRequirement(symbol_name, comm) 272 req.add_child(child_req) [all …]
|
/system/core/libnetutils/ |
D | ifc_utils.c | 276 } req; in ifc_act_on_address() local 310 memset(&req, 0, sizeof(req)); in ifc_act_on_address() 313 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address() 314 req.n.nlmsg_type = action; in ifc_act_on_address() 315 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address() 316 req.n.nlmsg_pid = getpid(); in ifc_act_on_address() 319 req.r.ifa_family = ss.ss_family; in ifc_act_on_address() 320 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address() 321 req.r.ifa_index = ifindex; in ifc_act_on_address() 324 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address() [all …]
|
/system/nativepower/daemon/ |
D | wake_lock_manager_stub.cc | 42 const Request& req = it->second; in GetRequestString() local 43 return ConstructRequestString(req.tag, req.package, req.uid); in GetRequestString()
|
/system/extras/tests/net_test/ |
D | sock_diag.py | 301 def FindSockDiagFromReq(self, req): argument 302 for diag_msg, attrs in self.Dump(req): 304 raise ValueError("Dump of %s returned no sockets" % req) 308 req = self.DiagReqFromSocket(s) 309 return self.FindSockDiagFromReq(req) 311 def GetSockDiag(self, req): argument 313 self._SendNlRequest(SOCK_DIAG_BY_FAMILY, req.Pack(), netlink.NLM_F_REQUEST) 321 def CloseSocket(self, req): argument 322 self._SendNlRequest(SOCK_DESTROY, req.Pack(), 328 req = self.DiagReqFromDiagMsg(diag_msg, protocol) [all …]
|
D | sock_diag_test.py | 147 req = self.sock_diag.DiagReqFromSocket(sock) 148 req.id.cookie = cookie 149 diag_msg = self.sock_diag.GetSockDiag(req) 150 req.states = 1 << diag_msg.state 258 req = sock_diag.InetDiagReqV2((AF_INET6, IPPROTO_TCP, 0, 0xffffffff, 260 self.sock_diag._Dump(code, req, sock_diag.InetDiagMsg, "") 315 req = self.sock_diag.DiagReqFromDiagMsg(diag_msg, IPPROTO_TCP) 316 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req) 320 req.id.cookie = real_cookie 321 self.sock_diag.CloseSocket(req) [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/ |
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/bt/btif/src/ |
D | btif_core.c | 1010 btif_storage_req_t req; in btif_get_adapter_property() local 1018 memset(&(req.read_req.bd_addr), 0, sizeof(bt_bdaddr_t)); in btif_get_adapter_property() 1019 req.read_req.type = type; in btif_get_adapter_property() 1023 (char*)&req, sizeof(btif_storage_req_t), NULL); in btif_get_adapter_property() 1039 btif_storage_req_t req; in btif_set_adapter_property() local 1129 memset(&(req.write_req.bd_addr), 0, sizeof(bt_bdaddr_t)); in btif_set_adapter_property() 1130 memcpy(&(req.write_req.prop), property, sizeof(bt_property_t)); in btif_set_adapter_property() 1134 (char*)&req, in btif_set_adapter_property() 1155 btif_storage_req_t req; in btif_get_remote_device_property() local 1160 memcpy(&(req.read_req.bd_addr), remote_addr, sizeof(bt_bdaddr_t)); in btif_get_remote_device_property() [all …]
|
D | btif_av.c | 381 btif_av_sink_config_req_t req; in btif_av_state_idle_handler() local 383 memcpy(&req, p_data, sizeof(req)); in btif_av_state_idle_handler() 385 BTIF_TRACE_WARNING("BTIF_AV_SINK_CONFIG_REQ_EVT %d %d", req.sample_rate, in btif_av_state_idle_handler() 386 req.channel_count); in btif_av_state_idle_handler() 388 HAL_CBACK(bt_av_sink_callbacks, audio_config_cb, &(req.peer_bd), in btif_av_state_idle_handler() 389 req.sample_rate, req.channel_count); in btif_av_state_idle_handler() 556 btif_av_sink_config_req_t req; in btif_av_state_opening_handler() local 558 memcpy(&req, p_data, sizeof(req)); in btif_av_state_opening_handler() 560 BTIF_TRACE_WARNING("BTIF_AV_SINK_CONFIG_REQ_EVT %d %d", req.sample_rate, in btif_av_state_opening_handler() 561 req.channel_count); in btif_av_state_opening_handler() [all …]
|
/system/core/fastboot/ |
D | usb_osx.cpp | 361 IOUSBDevRequest req; in try_device() local 364 req.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); in try_device() 365 req.bRequest = kUSBRqGetDescriptor; in try_device() 366 req.wValue = (kUSBStringDesc << 8) | serialIndex; in try_device() 368 req.wIndex = 0x0409; in try_device() 369 req.pData = buffer; in try_device() 370 req.wLength = sizeof(buffer); in try_device() 371 kr = (*dev)->DeviceRequest(dev, &req); in try_device() 373 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in try_device() 377 count = (req.wLenDone - 1) / 2; in try_device()
|
/system/core/include/usbhost/ |
D | usbhost.h | 230 void usb_request_free(struct usb_request *req); 233 int usb_request_queue(struct usb_request *req); 241 int usb_request_cancel(struct usb_request *req);
|
/system/core/libion/ |
D | ion.c | 50 static int ion_ioctl(int fd, int req, void *arg) in ion_ioctl() argument 52 int ret = ioctl(fd, req, arg); in ion_ioctl() 54 ALOGE("ioctl %x failed with code %d: %s\n", req, in ion_ioctl()
|
/system/bt/stack/gatt/ |
D | gatt_main.c | 1035 tGATTS_SRV_CHG_REQ req; in gatt_add_a_bonded_dev_for_srv_chg() local 1042 memcpy(req.srv_chg.bda, bda, BD_ADDR_LEN); in gatt_add_a_bonded_dev_for_srv_chg() 1043 req.srv_chg.srv_changed = FALSE; in gatt_add_a_bonded_dev_for_srv_chg() 1045 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_ADD_CLIENT, &req, NULL); in gatt_add_a_bonded_dev_for_srv_chg() 1119 tGATTS_SRV_CHG_REQ req; in gatt_init_srv_chg() local 1137 req.client_read_index = i; in gatt_init_srv_chg() 1138 …(status = (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_READ_CLENT, &req, &rsp)) == TRUE) in gatt_init_srv_chg()
|
D | gatt_utils.c | 149 tGATTS_SRV_CHG_REQ req; in gatt_delete_dev_from_srv_chg_clt_list() local 150 memcpy(req.srv_chg.bda, bd_addr, BD_ADDR_LEN); in gatt_delete_dev_from_srv_chg_clt_list() 151 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT,&req, NULL); in gatt_delete_dev_from_srv_chg_clt_list() 184 tGATTS_SRV_CHG_REQ req; in gatt_set_srv_chg() local 185 memcpy(&req.srv_chg, p_buf, sizeof(tGATTS_SRV_CHG)); in gatt_set_srv_chg() 187 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT,&req, NULL); in gatt_set_srv_chg()
|
D | gatt_sr.c | 1281 tGATTS_SRV_CHG_REQ req; in gatts_proc_srv_chg_ind_ack() local 1290 memcpy(&req.srv_chg, p_buf, sizeof(tGATTS_SRV_CHG)); in gatts_proc_srv_chg_ind_ack() 1292 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT,&req, NULL); in gatts_proc_srv_chg_ind_ack()
|
/system/netd/server/ |
D | SockDiag.h | 43 inet_diag_req_v2 req; member
|
D | SockDiag.cpp | 92 inet_diag_req_v2 req; in sendDumpRequest() member 98 .req = { in sendDumpRequest() 265 .req = { in sockDestroy()
|
/system/keymaster/include/keymaster/ |
D | soft_keymaster_device.h | 78 void GetVersion(const GetVersionRequest& req, GetVersionResponse* rsp) { in GetVersion() argument 79 impl_->GetVersion(req, rsp); in GetVersion()
|
/system/core/debuggerd/ |
D | debuggerd.cpp | 143 struct debugger_request_t* req = reinterpret_cast<debugger_request_t*>(data); in audit_callback() local 145 if (!req) { in audit_callback() 150 snprintf(buf, len, "pid=%d uid=%d gid=%d", req->pid, req->uid, req->gid); in audit_callback()
|