Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 14 of 14) sorted by relevance

/system/core/logwrapper/
Dlogwrap.c63 size_t buf_size; member
76 ssize_t buf_size; member
109 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf()
131 if (line_len > e_buf->buf_size) { in add_line_to_circular_buf()
135 free_len = e_buf->buf_size - e_buf->used_len; in add_line_to_circular_buf()
141 e_buf->read = (e_buf->read + needed_space) % e_buf->buf_size; in add_line_to_circular_buf()
148 cnt = MIN(line_len, e_buf->buf_size - e_buf->write); in add_line_to_circular_buf()
154 e_buf->write = (e_buf->write + line_len) % e_buf->buf_size; in add_line_to_circular_buf()
188 static void print_buf_lines(struct log_info *log_info, char *buf, int buf_size) in print_buf_lines() argument
195 for (i = 0; i < buf_size; i++) { in print_buf_lines()
[all …]
/system/media/audio_utils/
Decho_reference.c50 size_t buf_size; // main buffer size in frames member
117 er->buf_size = 0; in echo_reference_reset_l()
265 if (er->frames_in + inFrames > er->buf_size) { in echo_reference_write()
267 er->buf_size, er->frames_in + inFrames); in echo_reference_write()
268 er->buf_size = er->frames_in + inFrames; in echo_reference_write()
269 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_write()
278 inFrames, er->frames_in, er->buf_size, in echo_reference_write()
419 if (er->frames_in > er->buf_size) { in echo_reference_read()
420 er->buf_size = er->frames_in; in echo_reference_read()
421 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_read()
[all …]
/system/bt/btif/co/
Dbta_hl_co.c323 UINT16 buf_size, UINT8 *p_buf, UINT16 evt) in bta_hl_co_get_tx_data() argument
330 __FUNCTION__, app_id, mdl_handle, buf_size); in bta_hl_co_get_tx_data()
336 if (p_dcb->tx_size <= buf_size ) in bta_hl_co_get_tx_data()
427 UINT16 buf_size, UINT8 *p_buf, UINT16 evt) in bta_hl_co_get_echo_data() argument
431 UNUSED(buf_size); in bta_hl_co_get_echo_data()
/system/bt/bta/include/
Dbta_hl_co.h175 UINT16 buf_size, UINT8 *p_buf, UINT16 evt);
213 UINT16 buf_size, UINT8 *p_buf, UINT16 evt);
Dbta_hh_api.h414 UINT8 rpt_id, UINT16 buf_size);
Dbta_hl_api.h345 UINT16 buf_size; member
/system/media/camera/tests/
Dcamera_metadata_tests.cpp114 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local
117 EXPECT_TRUE(buf_size > 0); in TEST()
119 buf = malloc(buf_size); in TEST()
123 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
131 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST()
143 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local
146 EXPECT_GT(buf_size, (size_t)0); in TEST()
148 buf_size--; in TEST()
150 buf = malloc(buf_size); in TEST()
154 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
[all …]
/system/core/libziparchive/
Dzip_archive.cc968 virtual bool Append(uint8_t* buf, size_t buf_size) = 0;
985 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() argument
986 if (bytes_written_ + buf_size > size_) { in Append()
988 size_, bytes_written_ + buf_size); in Append()
992 memcpy(buf_ + bytes_written_, buf, buf_size); in Append()
993 bytes_written_ += buf_size; in Append()
1053 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() argument
1054 if (total_bytes_written_ + buf_size > declared_length_) { in Append()
1056 declared_length_, total_bytes_written_ + buf_size); in Append()
1060 const bool result = android::base::WriteFully(fd_, buf, buf_size); in Append()
[all …]
/system/bt/bta/hh/
Dbta_hh_api.c216 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument
218 UINT8 param = (buf_size) ? (r_type | 0x08) : r_type; in BTA_HhGetReport()
221 buf_size, rpt_id, NULL); in BTA_HhGetReport()
/system/core/liblog/
Dlog_read.c284 const char *msg, char *buf, size_t buf_size) in send_log_msg() argument
297 snprintf(buf, buf_size, msg, logger ? logger->id : (unsigned) -1); in send_log_msg()
306 len = buf_size; in send_log_msg()
311 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in send_log_msg()
336 ret += buf_size - len; in send_log_msg()
/system/bt/stack/avdt/
Davdt_scb_act.c2093 UINT16 buf_size; in avdt_scb_queue_frags() local
2126 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE; in avdt_scb_queue_frags()
2128 p_tbl->peer_mtu, buf_size, num_frag); in avdt_scb_queue_frags()
2130 if(buf_size > AVDT_DATA_POOL_SIZE) in avdt_scb_queue_frags()
2131 buf_size = AVDT_DATA_POOL_SIZE; in avdt_scb_queue_frags()
2133 mtu_used = buf_size - BT_HDR_SIZE; in avdt_scb_queue_frags()
2138 if(NULL == (p_frag = (BT_HDR*)GKI_getbuf(buf_size))) in avdt_scb_queue_frags()
/system/core/libnetutils/
Ddhcpclient.c239 static void hex2str(char *buf, size_t buf_size, const unsigned char *array, int len) in hex2str() argument
243 char *buf_end = buf + buf_size; in hex2str()
/system/bt/stack/avct/
Davct_lcb_act.c544 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() local
574 if ((p_buf = (BT_HDR *) GKI_getbuf(buf_size)) == NULL) in avct_lcb_send_msg()
/system/bt/bta/av/
Dbta_av_int.h433 UINT16 buf_size; member