Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 20 of 20) sorted by relevance

/system/bt/stack/avrc/
Davrc_pars_tg.cc98 uint16_t buf_len) { in avrc_pars_vendor_cmd() argument
186 ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); in avrc_pars_vendor_cmd()
404 uint16_t buf_len) { in avrc_pars_browsing_cmd() argument
438 if (buf_len < (count << 2)) in avrc_pars_browsing_cmd()
439 p_result->get_items.attr_count = count = (buf_len >> 2); in avrc_pars_browsing_cmd()
469 if (buf_len < (count << 2)) in avrc_pars_browsing_cmd()
470 p_result->get_attrs.attr_count = count = (buf_len >> 2); in avrc_pars_browsing_cmd()
499 if (p_result->search.string.str_len > buf_len) { in avrc_pars_browsing_cmd()
500 p_result->search.string.str_len = buf_len; in avrc_pars_browsing_cmd()
530 uint8_t* p_buf, uint16_t buf_len) { in AVRC_ParsCommand() argument
[all …]
Davrc_pars_ct.cc491 uint8_t* p_buf, uint16_t* buf_len) { in avrc_ctrl_pars_vendor_rsp() argument
835 uint8_t* p_buf, uint16_t* buf_len) { in AVRC_Ctrl_ParsResponse() argument
841 avrc_ctrl_pars_vendor_rsp(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_Ctrl_ParsResponse()
872 UNUSED_ATTR uint16_t buf_len) { in AVRC_ParsResponse() argument
Davrc_api.cc528 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avrc_proc_far_msg() local
533 if ((p_rcb->p_rmsg->offset + p_pkt->len) > buf_len) { in avrc_proc_far_msg()
536 p_pkt->len = buf_len - p_rcb->p_rmsg->offset; in avrc_proc_far_msg()
/system/connectivity/wifilogd/
Dcommand_processor.cpp86 std::string MakeSanitizedString(const uint8_t* buf, size_t buf_len);
112 std::string MakeSanitizedString(const uint8_t* buf, size_t buf_len) { in MakeSanitizedString() argument
113 std::string out(buf_len, '\0'); in MakeSanitizedString()
114 std::replace_copy_if(buf, buf + buf_len, &out.front(), in MakeSanitizedString()
Dlocal_utils.h76 T CopyFromBufferOrDie(NONNULL const void* buf, size_t buf_len) { in CopyFromBufferOrDie() argument
80 CHECK(buf_len >= sizeof(out)); in CopyFromBufferOrDie()
/system/bt/stack/include/
Davrc_api.h630 uint8_t* p_buf, uint16_t buf_len);
644 uint8_t* p_buf, uint16_t buf_len);
659 uint8_t* p_buf, uint16_t* buf_len);
/system/bt/bta/hf_client/
Dbta_hf_client_at.h36 uint16_t buf_len; member
Dbta_hf_client_at.cc121 uint16_t buf_len) { in bta_hf_client_queue_at() argument
128 new_cmd->buf_len = buf_len; in bta_hf_client_queue_at()
130 memcpy(new_cmd->buf, buf, buf_len); in bta_hf_client_queue_at()
170 uint16_t buf_len) { in bta_hf_client_send_at() argument
178 APPL_TRACE_DEBUG("%s: %.*s", __func__, buf_len - 1, buf); in bta_hf_client_send_at()
192 PORT_WriteData(client_cb->conn_handle, buf, buf_len, &len); in bta_hf_client_send_at()
199 bta_hf_client_queue_at(client_cb, cmd, buf, buf_len); in bta_hf_client_send_at()
210 bta_hf_client_send_at(client_cb, cur->cmd, cur->buf, cur->buf_len); in bta_hf_client_send_queued_at()
/system/core/adb/daemon/
Dusb.cpp422 int buf_len = std::min(len, USB_FFS_BULK_SIZE); in usb_ffs_do_aio() local
423 io_prep(&aiob->iocb[i], aiob->fd, cur_data, buf_len, 0, read); in usb_ffs_do_aio()
425 len -= buf_len; in usb_ffs_do_aio()
426 cur_data += buf_len; in usb_ffs_do_aio()
428 if (len == 0 && buf_len % packet_size == 0 && read) { in usb_ffs_do_aio()
/system/bt/stack/gatt/
Dgatt_sr.cc684 uint16_t buf_len = in gatts_process_find_info() local
687 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_find_info()
694 buf_len = tcb.payload_size - 2; in gatts_process_find_info()
698 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl); in gatts_process_find_info()
821 uint16_t buf_len = tcb.payload_size - 2; in gatts_process_read_by_type_req() local
830 tcb, el.p_db, op_code, p_msg, s_hdl, e_hdl, uuid, &buf_len, sec_flag, in gatts_process_read_by_type_req()
954 size_t buf_len = sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_req() local
966 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_read_req()
973 buf_len = tcb.payload_size - 1; in gatts_process_read_req()
980 tcb, el.p_db, op_code, handle, offset, p, &value_len, (uint16_t)buf_len, in gatts_process_read_req()
/system/bt/bta/av/
Dbta_av_api.cc436 uint8_t buf_len) { in BTA_AvRemoteVendorUniqueCmd() argument
438 sizeof(tBTA_AV_API_REMOTE_CMD) + buf_len); in BTA_AvRemoteVendorUniqueCmd()
445 p_buf->msg.pass_len = buf_len; in BTA_AvRemoteVendorUniqueCmd()
450 memcpy(p_buf->msg.p_pass_data, p_msg, buf_len); in BTA_AvRemoteVendorUniqueCmd()
/system/nfc/src/nfc/include/
Drw_api.h404 extern tNFC_STATUS RW_T1tReadNDef(uint8_t* p_buffer, uint16_t buf_len);
553 extern tNFC_STATUS RW_T2tReadNDef(uint8_t* p_buffer, uint16_t buf_len);
/system/sepolicy/tools/fc_sort/
Dfc_sort.c332 size_t line_len, buf_len, i; in main() local
370 while ( getline(&line_buf, &buf_len, in_file) != -1 ){ in main()
/system/bt/stack/avct/
Davct_lcb_act.cc122 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avct_lcb_msg_asmbl() local
129 if ((p_lcb->p_rx_msg->offset + p_buf->len) > buf_len) { in avct_lcb_msg_asmbl()
/system/bt/bta/include/
Dbta_av_api.h592 uint8_t buf_len);
/system/bt/stack/avdt/
Davdt_msg.cc1258 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avdt_msg_asmbl() local
1265 if ((p_ccb->p_rx_msg->offset + p_buf->len) > buf_len) { in avdt_msg_asmbl()
/system/nfc/src/nfc/tags/
Drw_t1t_ndef.cc2323 tNFC_STATUS RW_T1tReadNDef(uint8_t* p_buffer, uint16_t buf_len) { in RW_T1tReadNDef() argument
2361 if (buf_len < p_t1t->ndef_msg_len) { in RW_T1tReadNDef()
2364 buf_len, p_t1t->ndef_msg_len); in RW_T1tReadNDef()
Drw_t2t_ndef.cc2905 tNFC_STATUS RW_T2tReadNDef(uint8_t* p_buffer, uint16_t buf_len) { in RW_T2tReadNDef() argument
2922 if (buf_len < p_t2t->ndef_msg_len) { in RW_T2tReadNDef()
2925 buf_len, p_t2t->ndef_msg_len); in RW_T2tReadNDef()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h1456 Verifier(const uint8_t *buf, size_t buf_len, size_t _max_depth = 64,
1458 : buf_(buf), end_(buf + buf_len), depth_(0), max_depth_(_max_depth),
/system/bt/btif/src/
Dbtif_rc.cc4260 uint16_t buf_len; in handle_avk_rc_metamsg_rsp() local
4267 &buf_len); in handle_avk_rc_metamsg_rsp()