Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 128) sorted by relevance

123456

/system/core/fastboot/
Dbootimg_utils.cpp61 boot_img_hdr_v3* hdr = reinterpret_cast<boot_img_hdr_v3*>(out->data()); in mkbootimg_v3() local
63 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg_v3()
64 hdr->kernel_size = kernel.size(); in mkbootimg_v3()
65 hdr->ramdisk_size = ramdisk.size(); in mkbootimg_v3()
66 hdr->os_version = src.os_version; in mkbootimg_v3()
67 hdr->header_size = sizeof(boot_img_hdr_v3); in mkbootimg_v3()
68 hdr->header_version = 3; in mkbootimg_v3()
70 memcpy(hdr->magic + V3_PAGE_SIZE, kernel.data(), kernel.size()); in mkbootimg_v3()
71 memcpy(hdr->magic + V3_PAGE_SIZE + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg_v3()
73 return hdr; in mkbootimg_v3()
[all …]
Dfastboot_test.cpp23 boot_img_hdr_v1 hdr; in TEST() local
25 hdr = {}; in TEST()
26 fb.ParseOsPatchLevel(&hdr, "2018-01-05"); in TEST()
27 ASSERT_EQ(2018U, 2000U + ((hdr.os_version >> 4) & 0x7f)); in TEST()
28 ASSERT_EQ(1U, ((hdr.os_version >> 0) & 0xf)); in TEST()
30 EXPECT_DEATH(fb.ParseOsPatchLevel(&hdr, "2018"), "should be YYYY-MM-DD"); in TEST()
31 EXPECT_DEATH(fb.ParseOsPatchLevel(&hdr, "2018-01"), "should be YYYY-MM-DD"); in TEST()
32 EXPECT_DEATH(fb.ParseOsPatchLevel(&hdr, "2128-01-05"), "year out of range"); in TEST()
33 EXPECT_DEATH(fb.ParseOsPatchLevel(&hdr, "2018-13-05"), "month out of range"); in TEST()
38 boot_img_hdr_v1 hdr; in TEST() local
[all …]
/system/extras/sound/
Dplaywav.c156 struct wav_header hdr; in wav_play() local
163 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) { in wav_play()
168 hdr.num_channels, hdr.sample_rate, hdr.bits_per_sample, in wav_play()
169 hdr.audio_format == FORMAT_PCM ? "PCM" : "unknown"); in wav_play()
171 if ((hdr.riff_id != ID_RIFF) || in wav_play()
172 (hdr.riff_fmt != ID_WAVE) || in wav_play()
173 (hdr.fmt_id != ID_FMT)) { in wav_play()
177 if ((hdr.audio_format != FORMAT_PCM) || in wav_play()
178 (hdr.fmt_sz != 16)) { in wav_play()
182 if (hdr.bits_per_sample != 16) { in wav_play()
[all …]
/system/netd/libnetdutils/
DNetlink.cpp30 nlmsghdr hdr = {}; in forEachNetlinkMessage() local
31 extract(tail, hdr); in forEachNetlinkMessage()
32 const auto len = std::max<size_t>(hdr.nlmsg_len, sizeof(hdr)); in forEachNetlinkMessage()
33 onMsg(hdr, drop(take(tail, len), sizeof(hdr))); in forEachNetlinkMessage()
42 nlattr hdr = {}; in forEachNetlinkAttribute() local
43 extract(tail, hdr); in forEachNetlinkAttribute()
44 const auto len = std::max<size_t>(hdr.nla_len, sizeof(hdr)); in forEachNetlinkAttribute()
45 onAttr(hdr, drop(take(tail, len), sizeof(hdr))); in forEachNetlinkAttribute()
62 std::ostream& operator<<(std::ostream& os, const nlmsghdr& hdr) { in operator <<() argument
64 << "len: 0x" << hdr.nlmsg_len << ", type: 0x" << hdr.nlmsg_type << ", flags: 0x" in operator <<()
[all …]
/system/memory/libmemunreachable/
DLeakPipe.cpp27 struct msghdr hdr {}; in SendFd() struct
32 hdr.msg_iov = &iov; in SendFd()
33 hdr.msg_iovlen = 1; in SendFd()
37 hdr.msg_control = cmsgbuf; in SendFd()
38 hdr.msg_controllen = CMSG_LEN(sizeof(int)); in SendFd()
40 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in SendFd()
47 int ret = sendmsg(sock, &hdr, 0); in SendFd()
61 struct msghdr hdr {}; in ReceiveFd() struct
66 hdr.msg_iov = &iov; in ReceiveFd()
67 hdr.msg_iovlen = 1; in ReceiveFd()
[all …]
/system/bt/bta/sdp/
Dbta_sdp_act.cc56 record->mns.hdr.type = SDP_TYPE_MAP_MNS; in bta_create_mns_sdp_record()
57 record->mns.hdr.service_name_length = 0; in bta_create_mns_sdp_record()
58 record->mns.hdr.service_name = NULL; in bta_create_mns_sdp_record()
59 record->mns.hdr.rfcomm_channel_number = 0; in bta_create_mns_sdp_record()
60 record->mns.hdr.l2cap_psm = -1; in bta_create_mns_sdp_record()
61 record->mns.hdr.profile_version = 0; in bta_create_mns_sdp_record()
71 record->mns.hdr.service_name_length = in bta_create_mns_sdp_record()
73 record->mns.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mns_sdp_record()
78 record->mns.hdr.profile_version = pversion; in bta_create_mns_sdp_record()
82 record->mns.hdr.rfcomm_channel_number = pe.params[0]; in bta_create_mns_sdp_record()
[all …]
Dbta_sdp_int.h54 BT_HDR hdr; member
60 BT_HDR hdr; member
67 BT_HDR hdr; member
74 BT_HDR hdr; member
/system/bt/btif/src/
Dbtif_sdp_server.cc131 records_size += record->hdr.service_name_length; in get_sdp_records_size()
132 if (record->hdr.service_name_length > 0) { in get_sdp_records_size()
135 records_size += record->hdr.user1_ptr_len; in get_sdp_records_size()
136 records_size += record->hdr.user2_ptr_len; in get_sdp_records_size()
157 if (in_record->hdr.service_name == NULL || in copy_sdp_records()
158 in_record->hdr.service_name_length == 0) { in copy_sdp_records()
159 out_record->hdr.service_name = NULL; in copy_sdp_records()
160 out_record->hdr.service_name_length = 0; in copy_sdp_records()
162 out_record->hdr.service_name = free_ptr; // Update service_name pointer in copy_sdp_records()
164 memcpy(free_ptr, in_record->hdr.service_name, in copy_sdp_records()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_act.cc58 bta_hf_client_find_cb_by_handle(p_data->hdr.layer_specific); in bta_hf_client_start_close()
61 p_data->hdr.layer_specific); in bta_hf_client_start_close()
92 bta_hf_client_find_cb_by_handle(p_data->hdr.layer_specific); in bta_hf_client_start_open()
95 p_data->hdr.layer_specific); in bta_hf_client_start_open()
135 bta_hf_client_find_cb_by_handle(p_data->hdr.layer_specific); in bta_hf_client_rfc_open()
138 p_data->hdr.layer_specific); in bta_hf_client_rfc_open()
161 bta_hf_client_find_cb_by_handle(p_data->hdr.layer_specific); in bta_hf_client_rfc_acp_open()
164 p_data->hdr.layer_specific); in bta_hf_client_rfc_acp_open()
215 bta_hf_client_find_cb_by_handle(p_data->hdr.layer_specific); in bta_hf_client_rfc_fail()
218 p_data->hdr.layer_specific); in bta_hf_client_rfc_fail()
[all …]
Dbta_hf_client_rfc.cc59 p_buf->hdr.event = BTA_HF_CLIENT_RFC_DATA_EVT; in bta_hf_client_port_cback()
60 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_port_cback()
94 p_buf->hdr.event = BTA_HF_CLIENT_RFC_OPEN_EVT; in bta_hf_client_mgmt_cback()
96 p_buf->hdr.event = BTA_HF_CLIENT_RFC_OPEN_EVT; in bta_hf_client_mgmt_cback()
116 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback()
139 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback()
143 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback()
146 p_buf->hdr.layer_specific = client_cb != NULL ? client_cb->handle : 0; in bta_hf_client_mgmt_cback()
238 bta_hf_client_find_cb_by_handle(p_data->hdr.layer_specific); in bta_hf_client_rfc_do_open()
241 p_data->hdr.layer_specific); in bta_hf_client_rfc_do_open()
[all …]
/system/bt/bta/av/
Dbta_av_api.cc70 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable()
115 p_buf->hdr.layer_specific = chnl; in BTA_AvRegister()
116 p_buf->hdr.event = BTA_AV_API_REGISTER_EVT; in BTA_AvRegister()
166 p_buf->hdr.event = BTA_AV_API_OPEN_EVT; in BTA_AvOpen()
167 p_buf->hdr.layer_specific = handle; in BTA_AvOpen()
212 p_buf->hdr.event = BTA_AV_API_DISCONNECT_EVT; in BTA_AvDisconnect()
271 p_buf->hdr.event = BTA_AV_API_OFFLOAD_START_RSP_EVT; in BTA_AvOffloadStartRsp()
272 p_buf->hdr.layer_specific = hndl; in BTA_AvOffloadStartRsp()
296 p_buf->hdr.event = BTA_AV_API_STOP_EVT; in BTA_AvStop()
297 p_buf->hdr.layer_specific = handle; in BTA_AvStop()
[all …]
/system/nfc/src/nfa/include/
Dnfa_snep_int.h54 NFC_HDR hdr; member
60 NFC_HDR hdr; member
66 NFC_HDR hdr; member
74 NFC_HDR hdr; member
80 NFC_HDR hdr; member
86 NFC_HDR hdr; member
93 NFC_HDR hdr; member
102 NFC_HDR hdr; member
110 NFC_HDR hdr; member
119 NFC_HDR hdr; member
[all …]
Dnfa_p2p_int.h67 NFC_HDR hdr; member
76 NFC_HDR hdr; member
83 NFC_HDR hdr; member
89 NFC_HDR hdr; member
97 NFC_HDR hdr; member
103 NFC_HDR hdr; member
110 NFC_HDR hdr; member
120 NFC_HDR hdr; member
128 NFC_HDR hdr; member
135 NFC_HDR hdr; member
[all …]
Dnfa_ee_int.h227 NFC_HDR hdr; member
233 NFC_HDR hdr; member
239 NFC_HDR hdr; member
245 NFC_HDR hdr; member
253 NFC_HDR hdr; member
266 NFC_HDR hdr; member
279 NFC_HDR hdr; member
290 NFC_HDR hdr; member
297 NFC_HDR hdr; member
306 NFC_HDR hdr; member
[all …]
Dnfa_hci_int.h127 NFC_HDR hdr; member
136 NFC_HDR hdr; member
143 NFC_HDR hdr; member
149 NFC_HDR hdr; member
156 NFC_HDR hdr; member
163 NFC_HDR hdr; member
170 NFC_HDR hdr; member
178 NFC_HDR hdr; member
188 NFC_HDR hdr; member
198 NFC_HDR hdr; member
[all …]
/system/bt/stack/avdt/
Davdt_scb_act.cc128 p_scb->close_code = p_data->msg.hdr.err_code; in avdt_scb_hdl_close_rsp()
469 p_data->msg.hdr.err_code = AVDT_ERR_NSC; in avdt_scb_hdl_reconfig_cmd()
470 p_data->msg.hdr.err_param = 0; in avdt_scb_hdl_reconfig_cmd()
494 if (p_data->msg.hdr.err_code == 0) { in avdt_scb_hdl_reconfig_rsp()
530 p_data->msg.hdr.err_code = AVDT_ERR_NSC; in avdt_scb_hdl_security_cmd()
583 AvdtpCcb* p_ccb = avdt_ccb_by_idx(p_data->msg.config_cmd.hdr.ccb_idx); in avdt_scb_hdl_setconfig_cmd()
590 p_data->msg.config_cmd.hdr.ccb_idx); in avdt_scb_hdl_setconfig_cmd()
607 p_data->msg.hdr.err_code = AVDT_ERR_UNSUP_CFG; in avdt_scb_hdl_setconfig_cmd()
608 p_data->msg.hdr.err_param = 0; in avdt_scb_hdl_setconfig_cmd()
609 avdt_msg_send_rej(avdt_ccb_by_idx(p_data->msg.hdr.ccb_idx), in avdt_scb_hdl_setconfig_cmd()
[all …]
/system/bt/profile/avrcp/
Davrcp_message_converter.h70 switch (m->hdr.opcode) { in Parse()
73 data.push_back(m->hdr.ctype); in Parse()
74 data.push_back((m->hdr.subunit_type << 3) | m->hdr.subunit_id); in Parse()
75 data.push_back(m->hdr.opcode); in Parse()
85 data.push_back(m->hdr.ctype); in Parse()
86 data.push_back((m->hdr.subunit_type << 3) | m->hdr.subunit_id); in Parse()
87 data.push_back(m->hdr.opcode); in Parse()
/system/bt/include/hardware/
Dbt_sdp.h69 bluetooth_sdp_hdr_overlay hdr; member
76 bluetooth_sdp_hdr_overlay hdr; member
81 bluetooth_sdp_hdr_overlay hdr; member
87 bluetooth_sdp_hdr_overlay hdr; member
91 bluetooth_sdp_hdr_overlay hdr; member
97 bluetooth_sdp_hdr_overlay hdr; member
101 bluetooth_sdp_hdr_overlay hdr; member
/system/tools/mkbootimg/
Dmkbootimg_dummy.cpp19 void mkbootimg_dummy(boot_img_hdr* hdr) { in mkbootimg_dummy() argument
21 if (hdr) { in mkbootimg_dummy()
22 hdr--; in mkbootimg_dummy()
/system/bt/bta/gatt/
Dbta_gattc_api.cc134 p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; in BTA_GATTC_Open()
165 p_buf->hdr.event = BTA_GATTC_API_CANCEL_OPEN_EVT; in BTA_GATTC_CancelOpen()
210 p_buf->hdr.event = BTA_GATTC_API_CFG_MTU_EVT; in BTA_GATTC_ConfigureMTU()
211 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ConfigureMTU()
238 p_buf->hdr.event = BTA_GATTC_API_SEARCH_EVT; in BTA_GATTC_ServiceSearchRequest()
239 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ServiceSearchRequest()
362 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadCharacteristic()
363 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadCharacteristic()
383 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadUsingCharUuid()
384 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadUsingCharUuid()
[all …]
Dbta_gatts_int.h62 BT_HDR hdr; member
68 BT_HDR hdr; member
75 BT_HDR hdr; member
82 BT_HDR hdr; member
90 BT_HDR hdr; member
97 BT_HDR hdr; member
102 BT_HDR hdr; member
113 BT_HDR hdr; member
/system/nfc/src/nfa/rw/
Dnfa_rw_api.cc74 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwDetectNDef()
119 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwReadNDef()
161 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwWriteNDef()
196 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwPresenceCheck()
229 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwFormatTag()
285 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwSetTagReadOnly()
342 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwLocateTlv()
383 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwT1tRid()
414 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwT1tReadAll()
445 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwT1tRead()
[all …]
/system/bt/bta/hd/
Dbta_hd_int.h62 BT_HDR hdr; member
79 BT_HDR hdr; member
94 BT_HDR hdr; member
103 BT_HDR hdr; member
108 BT_HDR hdr; member
114 BT_HDR hdr; member
123 BT_HDR hdr; member
/system/core/libunwindstack/
DElfInterface.cpp290 NhdrType hdr; in ReadBuildID() local
291 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &hdr, sizeof(hdr))) { in ReadBuildID()
294 offset += sizeof(hdr); in ReadBuildID()
296 if (gnu_build_id_size_ - offset < hdr.n_namesz) { in ReadBuildID()
299 if (hdr.n_namesz > 0) { in ReadBuildID()
300 std::string name(hdr.n_namesz, '\0'); in ReadBuildID()
301 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &(name[0]), hdr.n_namesz)) { in ReadBuildID()
310 offset += (hdr.n_namesz + 3) & ~3; in ReadBuildID()
312 if (name == "GNU" && hdr.n_type == NT_GNU_BUILD_ID) { in ReadBuildID()
313 if (gnu_build_id_size_ - offset < hdr.n_descsz || hdr.n_descsz == 0) { in ReadBuildID()
[all …]
/system/bt/bta/pan/
Dbta_pan_int.h65 BT_HDR hdr; /* Event header */ member
71 BT_HDR hdr; /* Event header */ member
87 BT_HDR hdr; /* Event header */ member
95 BT_HDR hdr; /* Event header */ member
101 BT_HDR hdr; /* Event header */ member
108 BT_HDR hdr; member
145 BT_HDR hdr; member

123456