Home
last modified time | relevance | path

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

12

/system/update_engine/payload_generator/
Dbzip.cc37 size_t buf_size = 40 + in.size() * 35 / 100; in BzipCompress() local
38 out->resize(buf_size); in BzipCompress()
42 if (buf_size > std::numeric_limits<uint32_t>::max()) in BzipCompress()
44 uint32_t data_size = buf_size; in BzipCompress()
61 buf_size *= 2; in BzipCompress()
62 out->resize(buf_size); in BzipCompress()
/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/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/bt/btif/co/
Dbta_hl_co.c322 UINT16 buf_size, UINT8 *p_buf, UINT16 evt) in bta_hl_co_get_tx_data() argument
329 __FUNCTION__, app_id, mdl_handle, buf_size); in bta_hl_co_get_tx_data()
335 if (p_dcb->tx_size <= buf_size ) in bta_hl_co_get_tx_data()
419 UINT16 buf_size, UINT8 *p_buf, UINT16 evt) in bta_hl_co_get_echo_data() argument
423 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.h344 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.cc760 virtual bool Append(uint8_t* buf, size_t buf_size) = 0;
777 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() argument
778 if (bytes_written_ + buf_size > size_) { in Append()
780 size_, bytes_written_ + buf_size); in Append()
784 memcpy(buf_ + bytes_written_, buf, buf_size); in Append()
785 bytes_written_ += buf_size; in Append()
845 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() argument
846 if (total_bytes_written_ + buf_size > declared_length_) { in Append()
848 declared_length_, total_bytes_written_ + buf_size); in Append()
852 const bool result = android::base::WriteFully(fd_, buf, buf_size); in Append()
[all …]
/system/core/adb/
Dline_printer.cpp90 COORD buf_size = { csbi.dwSize.X, 1 }; in Print() local
104 WriteConsoleOutput(console_, &char_data[0], buf_size, zero_zero, &target); in Print()
Dsysdeps_win32_test.cpp145 void TestParseCompleteUTF8(const char* buf, const size_t buf_size, in TestParseCompleteUTF8() argument
149 const size_t complete_bytes = internal::ParseCompleteUTF8(buf, buf + buf_size, in TestParseCompleteUTF8()
Dsysdeps_win32.cpp2465 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, in _console_write_utf8() argument
2479 utf8_size = internal::ParseCompleteUTF8(buf, buf + buf_size, &g_console_output_buffer); in _console_write_utf8()
2485 combined_buffer.insert(combined_buffer.end(), buf, buf + buf_size); in _console_write_utf8()
2521 return buf_size; in _console_write_utf8()
/system/tpm/trunks/ftdi/
Dsupport.c96 int* buf_size) { in build_block_buffer() argument
102 *buf_size = 0; in build_block_buffer()
198 *buf_size = i; in build_block_buffer()
Dsupport.h36 int* buf_size);
Dmpsse.c694 int retval = MPSSE_FAIL, buf_size = 0, txsize = 0, n = 0; in Write() local
712 buf = build_block_buffer(mpsse, mpsse->tx, data + n, txsize, &buf_size); in Write()
714 retval = raw_write(mpsse, buf, buf_size); in Write()
/system/bt/bta/hh/
Dbta_hh_api.c193 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument
195 UINT8 param = (buf_size) ? (r_type | 0x08) : r_type; in BTA_HhGetReport()
198 buf_size, rpt_id, NULL); in BTA_HhGetReport()
/system/core/liblog/
Dlogd_reader.c264 const char *msg, char *buf, size_t buf_size) in send_log_msg() argument
277 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned) -1); in send_log_msg()
286 len = buf_size; in send_log_msg()
291 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in send_log_msg()
316 ret += buf_size - len; in send_log_msg()
/system/bt/stack/hid/
Dhidh_conn.c893 UINT16 buf_size; in hidh_conn_snd_data() local
919 buf_size = HID_CONTROL_BUF_SIZE; in hidh_conn_snd_data()
923 buf_size = HID_INTERRUPT_BUF_SIZE; in hidh_conn_snd_data()
938 p_buf = (BT_HDR *)osi_malloc(buf_size); in hidh_conn_snd_data()
948 p_buf = (BT_HDR *)osi_malloc(buf_size); in hidh_conn_snd_data()
/system/bt/stack/avdt/
Davdt_scb_act.c2083 UINT16 buf_size; in avdt_scb_queue_frags() local
2115 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE; in avdt_scb_queue_frags()
2117 p_tbl->peer_mtu, buf_size, num_frag); in avdt_scb_queue_frags()
2119 if (buf_size > AVDT_DATA_BUF_SIZE) in avdt_scb_queue_frags()
2120 buf_size = AVDT_DATA_BUF_SIZE; in avdt_scb_queue_frags()
2122 mtu_used = buf_size - BT_HDR_SIZE; in avdt_scb_queue_frags()
2126 BT_HDR *p_frag = (BT_HDR *)osi_malloc(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.c536 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() local
567 p_buf = (BT_HDR *)osi_malloc(buf_size); in avct_lcb_send_msg()
/system/extras/simpleperf/
Drecord.h358 const char* buf, size_t buf_size);
Drecord.cpp601 const char* buf, size_t buf_size) { in ReadRecordsFromBuffer() argument
604 const char* end = buf + buf_size; in ReadRecordsFromBuffer()
/system/bt/stack/l2cap/
Dl2c_fcr.c333 uint16_t buf_size = no_of_bytes + sizeof(BT_HDR) + new_offset + L2CAP_FCS_LEN; in l2c_fcr_clone_buf() local
339 buf_size += sizeof(uint32_t); in l2c_fcr_clone_buf()
341 BT_HDR *p_buf2 = (BT_HDR *)osi_malloc(buf_size); in l2c_fcr_clone_buf()
/system/bt/bta/av/
Dbta_av_int.h445 UINT16 buf_size; member

12