Home
last modified time | relevance | path

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

/system/core/libprocessgroup/
Dprocessgroup.cpp69 size_t buf_len; member
121 ctx->buf_len = 0; in initCtx()
131 memmove(ctx->buf, ctx->buf_ptr, ctx->buf_len); in refillBuffer()
134 ssize_t ret = read(ctx->fd, ctx->buf_ptr + ctx->buf_len, in refillBuffer()
135 sizeof(ctx->buf) - ctx->buf_len - 1); in refillBuffer()
142 ctx->buf_len += ret; in refillBuffer()
143 ctx->buf[ctx->buf_len] = 0; in refillBuffer()
146 assert(ctx->buf_len <= sizeof(ctx->buf)); in refillBuffer()
161 while ((eptr = (char *)memchr(ctx->buf_ptr, '\n', ctx->buf_len)) == NULL) { in getOneAppProcess()
182 ctx->buf_len -= (eptr - ctx->buf_ptr) + 1; in getOneAppProcess()
/system/bt/stack/include/
Davrc_api.h590 UINT8 *p_buf, UINT16 buf_len);
603 UINT8 *p_buf, UINT16 buf_len);
616 UINT8 *p_buf, UINT16* buf_len);
Davdt_api.h915 extern UINT16 AVDT_SetMediaBuf(UINT8 handle, UINT8 *p_buf, UINT32 buf_len);
/system/bt/stack/avrc/
Davrc_pars_tg.c103 UINT8 *p_buf, UINT16 buf_len) in avrc_pars_vendor_cmd() argument
194 for (xx=0; ((xx< p_result->set_app_val.num_val) && (buf_len > size_needed)); xx++) in avrc_pars_vendor_cmd()
388 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) in AVRC_ParsCommand() argument
398 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_ParsCommand()
Davrc_pars_ct.c166 tAVRC_MSG_VENDOR *p_msg, tAVRC_RESPONSE *p_result, UINT8* p_buf, UINT16* buf_len) in avrc_ctrl_pars_vendor_rsp() argument
390 … AVRC_Ctrl_ParsResponse (tAVRC_MSG *p_msg, tAVRC_RESPONSE *p_result, UINT8 *p_buf, UINT16* buf_len) in AVRC_Ctrl_ParsResponse() argument
398 status = avrc_ctrl_pars_vendor_rsp(&p_msg->vendor, p_result, p_buf,buf_len); in AVRC_Ctrl_ParsResponse()
421 …RC_STS AVRC_ParsResponse (tAVRC_MSG *p_msg, tAVRC_RESPONSE *p_result, UINT8 *p_buf, UINT16 buf_len) in AVRC_ParsResponse() argument
426 UNUSED(buf_len); in AVRC_ParsResponse()
Davrc_api.c422 UINT16 buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avrc_proc_far_msg() local
427 if ((p_rcb->p_rmsg->offset + p_pkt->len) > buf_len) in avrc_proc_far_msg()
430 p_pkt->len = buf_len - p_rcb->p_rmsg->offset; in avrc_proc_far_msg()
/system/bt/stack/gatt/
Dgatt_sr.c808 UINT16 s_hdl = 0, e_hdl = 0, buf_len; in gatts_process_find_info() local
818 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info()
820 p_msg = (BT_HDR *)osi_calloc(buf_len); in gatts_process_find_info()
827 buf_len = p_tcb->payload_size - 2; in gatts_process_find_info()
836 reason = gatt_build_find_info_rsp(p_rcb, p_msg, &buf_len, in gatts_process_find_info()
943 UINT16 buf_len, s_hdl, e_hdl, err_hdl = 0; in gatts_process_read_by_type_req() local
972 buf_len = p_tcb->payload_size - 2; in gatts_process_read_by_type_req()
993 &buf_len, in gatts_process_read_by_type_req()
1137 size_t buf_len = sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_req() local
1141 BT_HDR *p_msg = (BT_HDR *)osi_calloc(buf_len); in gatts_process_read_req()
[all …]
/system/bt/bta/av/
Dbta_av_api.c449 UINT8 buf_len) in BTA_AvRemoteVendorUniqueCmd() argument
453 buf_len); in BTA_AvRemoteVendorUniqueCmd()
460 p_buf->msg.pass_len = buf_len; in BTA_AvRemoteVendorUniqueCmd()
465 memcpy(p_buf->msg.p_pass_data, p_msg, buf_len); in BTA_AvRemoteVendorUniqueCmd()
/system/bt/bta/hf_client/
Dbta_hf_client_at.h84 UINT16 buf_len; member
Dbta_hf_client_at.c120 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
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 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
178 APPL_TRACE_DEBUG("%s %.*s", __FUNCTION__, buf_len - 1, buf); in bta_hf_client_send_at()
191 PORT_WriteData(bta_hf_client_cb.scb.conn_handle, buf, buf_len, &len); in bta_hf_client_send_at()
198 bta_hf_client_queue_at(cmd, buf, buf_len); in bta_hf_client_send_at()
211 bta_hf_client_send_at(cur->cmd, cur->buf, cur->buf_len); in bta_hf_client_send_queued_at()
/system/sepolicy/tools/fc_sort/
Dfc_sort.c318 size_t line_len, buf_len, i, j; in main() local
354 while ( getline(&line_buf, &buf_len, in_file) != -1 ){ in main()
/system/bt/stack/avct/
Davct_lcb_act.c133 UINT16 buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avct_lcb_msg_asmbl() local
140 if ((p_lcb->p_rx_msg->offset + p_buf->len) > buf_len) { in avct_lcb_msg_asmbl()
/system/connectivity/shill/
Dhttp_proxy_unittest.cc553 int buf_len = GetServerData().GetLength(); in TEST_F() local
554 EXPECT_CALL(sockets(), Send(kClientFD, _, buf_len, 0)) in TEST_F()
555 .WillOnce(Return(buf_len - 1)); in TEST_F()
/system/bt/stack/avdt/
Davdt_api.c1149 extern UINT16 AVDT_SetMediaBuf(UINT8 handle, UINT8 *p_buf, UINT32 buf_len) in AVDT_SetMediaBuf() argument
1166 p_scb->media_buf_len = buf_len; in AVDT_SetMediaBuf()
Davdt_msg.c1438 UINT16 buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avdt_msg_asmbl() local
1445 if ((p_ccb->p_rx_msg->offset + p_buf->len) > buf_len) { in avdt_msg_asmbl()
/system/bt/bta/include/
Dbta_av_api.h726 UINT8* p_msg, UINT8 buf_len);
/system/bt/btif/src/
Dbtif_rc.c3111 UINT16 buf_len; in handle_avk_rc_metamsg_rsp() local
3121 status = AVRC_Ctrl_ParsResponse(pmeta_msg->p_msg, &avrc_response, scratch_buf, &buf_len); in handle_avk_rc_metamsg_rsp()