Home
last modified time | relevance | path

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

/system/core/libprocessgroup/
Dprocessgroup.cpp45 size_t buf_len; member
82 ctx->buf_len = 0; in initCtx()
92 memmove(ctx->buf, ctx->buf_ptr, ctx->buf_len); in refillBuffer()
95 ssize_t ret = read(ctx->fd, ctx->buf_ptr + ctx->buf_len, in refillBuffer()
96 sizeof(ctx->buf) - ctx->buf_len - 1); in refillBuffer()
103 ctx->buf_len += ret; in refillBuffer()
104 ctx->buf[ctx->buf_len] = 0; in refillBuffer()
107 assert(ctx->buf_len <= sizeof(ctx->buf)); in refillBuffer()
122 while ((eptr = (char *)memchr(ctx->buf_ptr, '\n', ctx->buf_len)) == NULL) { in getOneAppProcess()
143 ctx->buf_len -= (eptr - ctx->buf_ptr) + 1; in getOneAppProcess()
/system/bt/stack/avrc/
Davrc_pars_tg.c42 UINT8 *p_buf, UINT16 buf_len) in avrc_pars_vendor_cmd() argument
133 for (xx=0; ((xx< p_result->set_app_val.num_val) && (buf_len > size_needed)); xx++) in avrc_pars_vendor_cmd()
289 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) in AVRC_ParsCommand() argument
299 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_ParsCommand()
Davrc_pars_ct.c116 …RC_STS AVRC_ParsResponse (tAVRC_MSG *p_msg, tAVRC_RESPONSE *p_result, UINT8 *p_buf, UINT16 buf_len) in AVRC_ParsResponse() argument
121 UNUSED(buf_len); in AVRC_ParsResponse()
Davrc_api.c383 UINT16 buf_len; in avrc_proc_far_msg() local
459 buf_len = GKI_get_buf_size (p_rcb->p_rmsg) - sizeof(BT_HDR); in avrc_proc_far_msg()
464 if ((p_rcb->p_rmsg->offset + p_pkt->len) > buf_len) in avrc_proc_far_msg()
467 p_pkt->len = buf_len - p_rcb->p_rmsg->offset; in avrc_proc_far_msg()
/system/bt/stack/gatt/
Dgatt_sr.c836 UINT16 s_hdl = 0, e_hdl = 0, buf_len; in gatts_process_find_info() local
846 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info()
848 if ((p_msg = (BT_HDR *)GKI_getbuf(buf_len)) == NULL) in gatts_process_find_info()
856 memset(p_msg, 0, buf_len); in gatts_process_find_info()
861 buf_len = p_tcb->payload_size - 2; in gatts_process_find_info()
873 reason = gatt_build_find_info_rsp(p_rcb, p_msg, &buf_len, s_hdl, e_hdl); in gatts_process_find_info()
981 buf_len, in gatts_process_read_by_type_req() local
1019 buf_len = p_tcb->payload_size - 2; in gatts_process_read_by_type_req()
1045 &buf_len, in gatts_process_read_by_type_req()
1187 UINT16 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_read_req() local
[all …]
/system/bt/stack/include/
Davrc_api.h570 UINT8 *p_buf, UINT16 buf_len);
583 UINT8 *p_buf, UINT16 buf_len);
Davdt_api.h944 extern UINT16 AVDT_SetMediaBuf(UINT8 handle, UINT8 *p_buf, UINT32 buf_len);
/system/bt/bta/hf_client/
Dbta_hf_client_at.h84 UINT16 buf_len; member
Dbta_hf_client_at.c113 static void bta_hf_client_queue_at(tBTA_HF_CLIENT_AT_CMD cmd, const char *buf, UINT16 buf_len) in bta_hf_client_queue_at() argument
122 new_cmd->buf_len = buf_len; in bta_hf_client_queue_at()
124 memcpy(new_cmd->buf, buf, buf_len); in bta_hf_client_queue_at()
175 static void bta_hf_client_send_at(tBTA_HF_CLIENT_AT_CMD cmd, char *buf, UINT16 buf_len) in bta_hf_client_send_at() argument
184 APPL_TRACE_DEBUG("%s %.*s", __FUNCTION__, buf_len - 1, buf); in bta_hf_client_send_at()
197 PORT_WriteData(bta_hf_client_cb.scb.conn_handle, buf, buf_len, &len); in bta_hf_client_send_at()
204 bta_hf_client_queue_at(cmd, buf, buf_len); in bta_hf_client_send_at()
217 bta_hf_client_send_at(cur->cmd, cur->buf, cur->buf_len); in bta_hf_client_send_queued_at()
/system/bt/stack/avct/
Davct_lcb_act.c58 UINT16 buf_len; in avct_lcb_msg_asmbl() local
136 buf_len = GKI_get_buf_size(p_lcb->p_rx_msg) - sizeof(BT_HDR); in avct_lcb_msg_asmbl()
143 if ((p_lcb->p_rx_msg->offset + p_buf->len) > buf_len) in avct_lcb_msg_asmbl()
/system/bt/stack/avdt/
Davdt_msg.c1361 UINT16 buf_len; in avdt_msg_asmbl() local
1421 buf_len = GKI_get_buf_size(p_ccb->p_rx_msg) - sizeof(BT_HDR); in avdt_msg_asmbl()
1428 if ((p_ccb->p_rx_msg->offset + p_buf->len) > buf_len) in avdt_msg_asmbl()
Davdt_api.c1261 extern UINT16 AVDT_SetMediaBuf(UINT8 handle, UINT8 *p_buf, UINT32 buf_len) in AVDT_SetMediaBuf() argument
1278 p_scb->media_buf_len = buf_len; in AVDT_SetMediaBuf()