Home
last modified time | relevance | path

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

/system/media/audio_utils/
Decho_reference.c48 size_t buf_size; // main buffer size in frames member
113 er->buf_size = 0; in echo_reference_reset_l()
261 if (er->frames_in + inFrames > er->buf_size) { in echo_reference_write()
263 er->buf_size, er->frames_in + inFrames); in echo_reference_write()
264 er->buf_size = er->frames_in + inFrames; in echo_reference_write()
265 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_write()
274 inFrames, er->frames_in, er->buf_size, in echo_reference_write()
400 if (er->frames_in > er->buf_size) { in echo_reference_read()
401 er->buf_size = er->frames_in; in echo_reference_read()
402 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_read()
[all …]
/system/media/camera/tests/
Dcamera_metadata_tests.cpp85 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local
88 EXPECT_TRUE(buf_size > 0); in TEST()
90 buf = malloc(buf_size); in TEST()
94 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
112 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local
115 EXPECT_GT(buf_size, (size_t)0); in TEST()
117 buf_size--; in TEST()
119 buf = malloc(buf_size); in TEST()
123 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
138 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local
[all …]
/system/core/adb/
Dtransport.c895 static void add_qual(char **buf, size_t *buf_size, in add_qual() argument
901 if (!buf || !*buf || !buf_size || !*buf_size || !qual || !*qual) in add_qual()
904 len = snprintf(*buf, *buf_size, "%s%n%s", prefix, &prefix_len, qual); in add_qual()
914 *buf_size -= len; in add_qual()