Home
last modified time | relevance | path

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

/system/bt/btif/test/
Dbtif_rc_test.cc51 uint8_t* p_buf, uint16_t* buf_len) { in AVRC_Ctrl_ParsResponse() argument
55 uint8_t* p_buf, uint16_t buf_len) { in AVRC_ParsCommand() argument
60 UNUSED_ATTR uint16_t buf_len) { in AVRC_ParsResponse() argument
72 uint8_t buf_len) {} in BTA_AvRemoteVendorUniqueCmd() argument
/system/bt/stack/avrc/
Davrc_pars_tg.cc98 uint16_t buf_len) { in avrc_pars_vendor_cmd() argument
189 ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); in avrc_pars_vendor_cmd()
413 uint16_t buf_len) { in avrc_pars_browsing_cmd() argument
460 if (buf_len < (count << 2)) in avrc_pars_browsing_cmd()
461 p_result->get_items.attr_count = count = (buf_len >> 2); in avrc_pars_browsing_cmd()
505 if (buf_len < (count << 2)) in avrc_pars_browsing_cmd()
506 p_result->get_attrs.attr_count = count = (buf_len >> 2); in avrc_pars_browsing_cmd()
548 if (p_result->search.string.str_len > buf_len) { in avrc_pars_browsing_cmd()
549 p_result->search.string.str_len = buf_len; in avrc_pars_browsing_cmd()
583 uint8_t* p_buf, uint16_t buf_len) { in AVRC_ParsCommand() argument
[all …]
Davrc_pars_ct.cc524 uint8_t* p_buf, uint16_t* buf_len) { in avrc_ctrl_pars_vendor_rsp() argument
868 uint8_t* p_buf, uint16_t* buf_len) { in AVRC_Ctrl_ParsResponse() argument
874 avrc_ctrl_pars_vendor_rsp(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_Ctrl_ParsResponse()
905 UNUSED_ATTR uint16_t buf_len) { in AVRC_ParsResponse() argument
Davrc_api.cc529 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avrc_proc_far_msg() local
534 if ((p_rcb->p_rmsg->offset + p_pkt->len) > buf_len) { in avrc_proc_far_msg()
537 p_pkt->len = buf_len - p_rcb->p_rmsg->offset; in avrc_proc_far_msg()
/system/core/fastboot/device/
Dusb.cpp143 int buf_len = std::min(len, static_cast<int>(h->io_size)); in usb_ffs_do_aio() local
144 io_prep(&aiob->iocb[i], aiob->fd, cur_data, buf_len, 0, read); in usb_ffs_do_aio()
146 len -= buf_len; in usb_ffs_do_aio()
147 cur_data += buf_len; in usb_ffs_do_aio()
149 if (len == 0 && buf_len % packet_size == 0 && read) { in usb_ffs_do_aio()
/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()
169 uint16_t buf_len) { in bta_hf_client_send_at() argument
177 APPL_TRACE_DEBUG("%s: %.*s", __func__, buf_len - 1, buf); in bta_hf_client_send_at()
191 PORT_WriteData(client_cb->conn_handle, buf, buf_len, &len); in bta_hf_client_send_at()
198 bta_hf_client_queue_at(client_cb, cmd, buf, buf_len); in bta_hf_client_send_at()
209 bta_hf_client_send_at(client_cb, cur->cmd, cur->buf, cur->buf_len); in bta_hf_client_send_queued_at()
/system/nfc/src/nfc/include/
Drw_api.h421 extern tNFC_STATUS RW_T1tReadNDef(uint8_t* p_buffer, uint16_t buf_len);
570 extern tNFC_STATUS RW_T2tReadNDef(uint8_t* p_buffer, uint16_t buf_len);
1379 extern tNFC_STATUS RW_MfcReadNDef(uint8_t* p_buffer, uint16_t buf_len);
1410 extern tNFC_STATUS RW_MfcWriteNDef(uint16_t buf_len, uint8_t* p_buffer);
/system/bt/stack/gatt/
Dgatt_sr.cc685 uint16_t buf_len = in gatts_process_find_info() local
688 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_find_info()
695 buf_len = tcb.payload_size - 2; in gatts_process_find_info()
699 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl); in gatts_process_find_info()
822 uint16_t buf_len = tcb.payload_size - 2; in gatts_process_read_by_type_req() local
831 tcb, el.p_db, op_code, p_msg, s_hdl, e_hdl, uuid, &buf_len, sec_flag, in gatts_process_read_by_type_req()
955 size_t buf_len = sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_req() local
967 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_read_req()
974 buf_len = tcb.payload_size - 1; in gatts_process_read_req()
981 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/core/init/
Dselinux.cpp493 void SelinuxAvcLog(char* buf, size_t buf_len) { in SelinuxAvcLog() argument
494 CHECK_GT(buf_len, 0u); in SelinuxAvcLog()
496 size_t str_len = strnlen(buf, buf_len); in SelinuxAvcLog()
/system/nfc/src/nfc/tags/
Drw_mfc.cc321 tNFC_STATUS RW_MfcWriteNDef(uint16_t buf_len, uint8_t* p_buffer) { in RW_MfcWriteNDef() argument
335 p_mfc->ndef_length = buf_len; in RW_MfcWriteNDef()
1183 tNFC_STATUS RW_MfcReadNDef(uint8_t* p_buffer, uint16_t buf_len) { in RW_MfcReadNDef() argument
1199 if (buf_len < p_mfc->ndef_length) { in RW_MfcReadNDef()
1200 LOG(ERROR) << __func__ << " buffer size=" << buf_len in RW_MfcReadNDef()
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.cc2904 tNFC_STATUS RW_T2tReadNDef(uint8_t* p_buffer, uint16_t buf_len) { in RW_T2tReadNDef() argument
2921 if (buf_len < p_t2t->ndef_msg_len) { in RW_T2tReadNDef()
2924 buf_len, p_t2t->ndef_msg_len); in RW_T2tReadNDef()
/system/bt/stack/smp/
Dsmp_utils.cc308 const uint8_t* p_buf, size_t buf_len) { in smp_log_metrics() argument
309 if (buf_len < 1) { in smp_log_metrics()
310 LOG(WARNING) << __func__ << ": buffer is too small, size is " << buf_len; in smp_log_metrics()
315 buf_len--; in smp_log_metrics()
317 if (cmd == SMP_OPCODE_PAIRING_FAILED && buf_len >= 1) { in smp_log_metrics()
Dsmp_int.h444 const uint8_t* p_buf, size_t buf_len);
/system/bt/stack/avct/
Davct_lcb_act.cc128 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avct_lcb_msg_asmbl() local
135 if ((p_lcb->p_rx_msg->offset + p_buf->len) > buf_len) { in avct_lcb_msg_asmbl()
/system/bt/bta/include/
Dbta_av_api.h599 uint8_t buf_len);
/system/bt/stack/avdt/
Davdt_msg.cc1286 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avdt_msg_asmbl() local
1293 if ((p_ccb->p_rx_msg->offset + p_buf->len) > buf_len) { in avdt_msg_asmbl()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h1457 Verifier(const uint8_t *buf, size_t buf_len, size_t _max_depth = 64,
1459 : buf_(buf), end_(buf + buf_len), depth_(0), max_depth_(_max_depth),
/system/bt/btif/src/
Dbtif_rc.cc4332 uint16_t buf_len; in handle_avk_rc_metamsg_rsp() local
4339 &buf_len); in handle_avk_rc_metamsg_rsp()