Searched refs:buf_size (Results 1 – 4 of 4) sorted by relevance
/system/core/logwrapper/ |
D | logwrap.c | 63 size_t buf_size; member 76 ssize_t buf_size; member 111 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf() 134 if (line_len > e_buf->buf_size) { in add_line_to_circular_buf() 138 free_len = e_buf->buf_size - e_buf->used_len; in add_line_to_circular_buf() 144 e_buf->read = (e_buf->read + needed_space) % e_buf->buf_size; in add_line_to_circular_buf() 151 cnt = MIN(line_len, e_buf->buf_size - e_buf->write); in add_line_to_circular_buf() 157 e_buf->write = (e_buf->write + line_len) % e_buf->buf_size; in add_line_to_circular_buf() 191 static void print_buf_lines(struct log_info *log_info, char *buf, int buf_size) in print_buf_lines() argument 199 for (i = 0; i < buf_size; i++) { in print_buf_lines() [all …]
|
/system/media/audio_utils/ |
D | echo_reference.c | 48 size_t buf_size; // main buffer size in frames member 115 er->buf_size = 0; in echo_reference_reset_l() 263 if (er->frames_in + inFrames > er->buf_size) { in echo_reference_write() 265 er->buf_size, er->frames_in + inFrames); in echo_reference_write() 266 er->buf_size = er->frames_in + inFrames; in echo_reference_write() 267 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_write() 276 inFrames, er->frames_in, er->buf_size, in echo_reference_write() 403 if (er->frames_in > er->buf_size) { in echo_reference_read() 404 er->buf_size = er->frames_in; in echo_reference_read() 405 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_read() [all …]
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 90 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local 93 EXPECT_TRUE(buf_size > 0); in TEST() 95 buf = malloc(buf_size); in TEST() 99 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST() 107 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST() 119 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local 122 EXPECT_GT(buf_size, (size_t)0); in TEST() 124 buf_size--; in TEST() 126 buf = malloc(buf_size); in TEST() 130 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST() [all …]
|
/system/core/adb/ |
D | transport.c | 910 static void add_qual(char **buf, size_t *buf_size, in add_qual() argument 916 if (!buf || !*buf || !buf_size || !*buf_size || !qual || !*qual) in add_qual() 919 len = snprintf(*buf, *buf_size, "%s%n%s", prefix, &prefix_len, qual); in add_qual() 929 *buf_size -= len; in add_qual()
|