Searched defs:buf_size (Results 1 - 20 of 20) sorted by relevance

/system/core/adb/
H A Dline_printer.cpp90 COORD buf_size = { csbi.dwSize.X, 1 }; local
104 WriteConsoleOutput(console_, &char_data[0], buf_size, zero_zero, &target);
H A Dsysdeps_win32_test.cpp145 void TestParseCompleteUTF8(const char* buf, const size_t buf_size, argument
149 const size_t complete_bytes = internal::ParseCompleteUTF8(buf, buf + buf_size,
H A Dsysdeps_win32.cpp2465 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, argument
2479 utf8_size = internal::ParseCompleteUTF8(buf, buf + buf_size, &g_console_output_buffer);
2485 combined_buffer.insert(combined_buffer.end(), buf, buf + buf_size);
2521 return buf_size;
/system/tpm/trunks/ftdi/
H A Dsupport.c96 int* buf_size) {
102 *buf_size = 0;
198 *buf_size = i;
92 build_block_buffer(struct mpsse_context* mpsse, uint8_t cmd, const uint8_t* data, int size, int* buf_size) argument
H A Dmpsse.c694 int retval = MPSSE_FAIL, buf_size = 0, txsize = 0, n = 0; local
712 buf = build_block_buffer(mpsse, mpsse->tx, data + n, txsize, &buf_size);
714 retval = raw_write(mpsse, buf, buf_size);
/system/bt/bta/hh/
H A Dbta_hh_api.c193 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) argument
195 UINT8 param = (buf_size) ? (r_type | 0x08) : r_type;
198 buf_size, rpt_id, NULL);
/system/bt/btif/co/
H A Dbta_hl_co.c313 ** buf_size - the size of the buffer
322 UINT16 buf_size, UINT8 *p_buf, UINT16 evt)
328 BTIF_TRACE_DEBUG("%s app_id=%d mdl_handle=0x%x buf_size=%d",
329 __FUNCTION__, app_id, mdl_handle, buf_size);
335 if (p_dcb->tx_size <= buf_size )
410 ** buf_size - the size of the buffer
419 UINT16 buf_size, UINT8 *p_buf, UINT16 evt)
423 UNUSED(buf_size);
321 bta_hl_co_get_tx_data(UINT8 app_id, tBTA_HL_MDL_HANDLE mdl_handle, UINT16 buf_size, UINT8 *p_buf, UINT16 evt) argument
418 bta_hl_co_get_echo_data(UINT8 app_id, tBTA_HL_MCL_HANDLE mcl_handle, UINT16 buf_size, UINT8 *p_buf, UINT16 evt) argument
/system/bt/stack/avct/
H A Davct_lcb_act.c536 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; local
567 p_buf = (BT_HDR *)osi_malloc(buf_size);
/system/bt/stack/hid/
H A Dhidh_conn.c893 UINT16 buf_size; local
919 buf_size = HID_CONTROL_BUF_SIZE;
923 buf_size = HID_INTERRUPT_BUF_SIZE;
938 p_buf = (BT_HDR *)osi_malloc(buf_size);
948 p_buf = (BT_HDR *)osi_malloc(buf_size);
/system/core/liblog/
H A Dlogd_reader.c264 const char *msg, char *buf, size_t buf_size)
277 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned) -1);
286 len = buf_size;
291 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) {
316 ret += buf_size - len;
263 send_log_msg(struct android_log_logger *logger, const char *msg, char *buf, size_t buf_size) argument
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp114 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local
117 EXPECT_TRUE(buf_size > 0);
119 buf = malloc(buf_size);
123 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity);
131 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size));
143 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local
146 EXPECT_GT(buf_size, (size_t)0);
148 buf_size--;
150 buf = malloc(buf_size);
154 m = place_camera_metadata(buf, buf_size, entry_capacit
169 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local
469 size_t buf_size = get_camera_metadata_compact_size(m); local
522 size_t buf_size = get_camera_metadata_compact_size(m); local
578 size_t buf_size = get_camera_metadata_compact_size(m); local
[all...]
/system/core/libnetutils/
H A Ddhcpclient.c239 static void hex2str(char *buf, size_t buf_size, const unsigned char *array, int len) argument
243 char *buf_end = buf + buf_size;
/system/extras/simpleperf/
H A Drecord.cpp601 const char* buf, size_t buf_size) {
604 const char* end = buf + buf_size;
600 ReadRecordsFromBuffer(const perf_event_attr& attr, const char* buf, size_t buf_size) argument
/system/media/audio_utils/
H A Decho_reference.c50 size_t buf_size; // main buffer size in frames member in struct:echo_reference
117 er->buf_size = 0;
265 if (er->frames_in + inFrames > er->buf_size) {
267 er->buf_size, er->frames_in + inFrames);
268 er->buf_size = er->frames_in + inFrames;
269 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size);
278 inFrames, er->frames_in, er->buf_size,
419 if (er->frames_in > er->buf_size) {
420 er->buf_size = er->frames_in;
421 er->buffer = realloc(er->buffer, er->buf_size * e
[all...]
/system/bt/stack/l2cap/
H A Dl2c_fcr.c333 uint16_t buf_size = no_of_bytes + sizeof(BT_HDR) + new_offset + L2CAP_FCS_LEN; local
339 buf_size += sizeof(uint32_t);
341 BT_HDR *p_buf2 = (BT_HDR *)osi_malloc(buf_size);
/system/core/logwrapper/
H A Dlogwrap.c55 /* This is a simple buffer that holds up to the first beginning_buf->buf_size
62 /* buf_size is the usable space, which is one less than the allocated size */
63 size_t buf_size; member in struct:beginning_buf
67 /* This is a circular buf that holds up to the last ending_buf->buf_size bytes
68 * of output from a command after the first beginning_buf->buf_size bytes
75 /* buf_size is the usable space, which is one less than the allocated size */
76 ssize_t buf_size; member in struct:ending_buf
109 if ((line_len + b_buf->used_len) > b_buf->buf_size) {
131 if (line_len > e_buf->buf_size) {
135 free_len = e_buf->buf_size
188 print_buf_lines(struct log_info *log_info, char *buf, int buf_size) argument
[all...]
/system/bt/stack/avdt/
H A Davdt_scb_act.c2083 UINT16 buf_size; local
2115 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE;
2116 AVDT_TRACE_DEBUG("peer_mtu: %d, buf_size: %d num_frag=%d",
2117 p_tbl->peer_mtu, buf_size, num_frag);
2119 if (buf_size > AVDT_DATA_BUF_SIZE)
2120 buf_size = AVDT_DATA_BUF_SIZE;
2122 mtu_used = buf_size - BT_HDR_SIZE;
2126 BT_HDR *p_frag = (BT_HDR *)osi_malloc(buf_size);
/system/bt/bta/av/
H A Dbta_av_int.h445 UINT16 buf_size; member in struct:__anon59
/system/bt/bta/include/
H A Dbta_hl_api.h344 UINT16 buf_size; member in struct:__anon424
/system/bt/btif/src/
H A Dbtif_rc.c3010 size_t buf_size = p_rsp->num_attr * sizeof(btrc_element_attr_val_t); local
3012 (btrc_element_attr_val_t *)osi_calloc(buf_size);

Completed in 778 milliseconds