Home
last modified time | relevance | path

Searched refs:vendor_len (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Bluetooth/system/stack/avrc/
Davrc_opt.cc65 AVRC_META_CMD_BUF_SIZE < AVRC_MIN_VENDOR_CMD_LEN + p_msg->vendor_len) { in avrc_vendor_msg()
78 if (p_msg->vendor_len && p_msg->p_vendor_data) in avrc_vendor_msg()
79 memcpy(p_data, p_msg->p_vendor_data, p_msg->vendor_len); in avrc_vendor_msg()
80 p_cmd->len = (uint16_t)(p_data + p_msg->vendor_len - (uint8_t*)(p_cmd + 1) - in avrc_vendor_msg()
Davrc_pars_tg.cc49 if (p_msg->vendor_len < 4) { // 4 == pdu + reserved byte + len as uint16 in avrc_ctrl_pars_vendor_cmd()
51 p_msg->vendor_len); in avrc_ctrl_pars_vendor_cmd()
65 if ((len + 4) != (p_msg->vendor_len)) { in avrc_ctrl_pars_vendor_cmd()
125 if (p_msg->vendor_len == 0) return AVRC_STS_NO_ERROR; in avrc_pars_vendor_cmd()
128 if (p_msg->vendor_len < 4) { in avrc_pars_vendor_cmd()
130 p_msg->vendor_len); in avrc_pars_vendor_cmd()
144 if ((len + 4) != (p_msg->vendor_len)) { in avrc_pars_vendor_cmd()
145 log::error("incorrect length :{}, {}", len, p_msg->vendor_len); in avrc_pars_vendor_cmd()
Davrc_pars_ct.cc57 if (p_msg->vendor_len == 0) return AVRC_STS_NO_ERROR; in avrc_pars_vendor_rsp()
60 if (p_msg->vendor_len < 4) { in avrc_pars_vendor_rsp()
62 p_msg->vendor_len); in avrc_pars_vendor_rsp()
70 p_msg->hdr.ctype, p_result->pdu, len, len, p_msg->vendor_len); in avrc_pars_vendor_rsp()
71 if (p_msg->vendor_len < len + 4) { in avrc_pars_vendor_rsp()
73 p_msg->vendor_len, len + 4); in avrc_pars_vendor_rsp()
510 if (p_msg->vendor_len < 4) { in avrc_ctrl_pars_vendor_rsp()
512 p_msg->vendor_len); in avrc_ctrl_pars_vendor_rsp()
524 p_msg->hdr.ctype, p_result->pdu, len, p_msg->vendor_len); in avrc_ctrl_pars_vendor_rsp()
525 if (p_msg->vendor_len < len + 4) { in avrc_ctrl_pars_vendor_rsp()
[all …]
Davrc_api.cc577 p_msg->vendor_len = p_pkt_new->len - AVRC_VENDOR_HDR_SIZE; in avrc_proc_far_msg()
581 (p_msg->vendor_len - AVRC_MIN_META_HDR_SIZE)); in avrc_proc_far_msg()
799 p_msg->vendor_len = p_pkt->len - (p_data - p_begin); in avrc_msg_cback()
/packages/modules/Bluetooth/system/stack/test/
Dstack_avrcp_test.cc50 msg.vendor.vendor_len = 13; in TEST_F()
197 .vendor_len = sizeof(data), in TEST_F()
/packages/modules/Bluetooth/system/profile/avrcp/
Davrcp_message_converter.h82 for (int i = 0; i < msg->vendor_len; i++) { in Parse()
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_api.cc469 p_buf->msg.vendor_len = len; in BTA_AvVendorCmd()
507 p_buf->msg.vendor_len = len; in BTA_AvVendorRsp()
Dbta_av_act.cc288 data_len = (uint16_t)p_msg->vendor.vendor_len; in bta_av_rc_msg_cback()
811 if ((u16 != 5) || (p_vendor->vendor_len != 9)) { in bta_av_chk_notif_evt_id()
884 if (p_vendor->vendor_len == 0) { in bta_av_proc_meta_cmd()
896 if ((AVRC_MIN_META_CMD_LEN + p_vendor->vendor_len) > AVRC_META_CMD_BUF_SIZE) { in bta_av_proc_meta_cmd()
899 log::error("Invalid meta-command length: {}", p_vendor->vendor_len); in bta_av_proc_meta_cmd()
909 p_vendor->vendor_len = 0; in bta_av_proc_meta_cmd()
921 if (p_vendor->vendor_len != 5) { in bta_av_proc_meta_cmd()
1076 av.vendor_cmd.len = p_vendor->vendor_len; in bta_av_rc_msg()
/packages/modules/Bluetooth/system/stack/test/fuzzers/avrc/
Dfuzz_avrc.cc177 msg.vendor.vendor_len = size - 2; in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/stack/include/
Davrc_defs.h915 uint16_t vendor_len; /* Length in bytes of vendor dependent data. */ member
/packages/modules/Bluetooth/system/btif/src/
Dbtif_av.cc1034 (p_msg_src->vendor.p_vendor_data && p_msg_src->vendor.vendor_len)) { in DeepCopy()
1036 (uint8_t*)osi_calloc(p_msg_src->vendor.vendor_len); in DeepCopy()
1038 p_msg_src->vendor.p_vendor_data, p_msg_src->vendor.vendor_len); in DeepCopy()