/system/media/camera/tests/ |
camera_metadata_tests.cpp | 116 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local 119 EXPECT_TRUE(buf_size > 0); 121 buf = malloc(buf_size); 125 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); 133 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); 145 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local 148 EXPECT_GT(buf_size, (size_t)0); 150 buf_size--; 152 buf = malloc(buf_size); 156 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity) 171 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local 471 size_t buf_size = get_camera_metadata_compact_size(m); local 524 size_t buf_size = get_camera_metadata_compact_size(m); local 580 size_t buf_size = get_camera_metadata_compact_size(m); local [all...] |
/system/tpm/trunks/ftdi/ |
mpsse.c | 694 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);
|
/device/google/marlin/camera/usbcamcore/src/ |
QCameraMjpegDecode.cpp | 620 uint32_t buf_size; local 629 jpeg_buffer_get_max_size(buffer, &buf_size); 631 bytes_to_read = (length < buf_size) ? length : buf_size; 634 ALOGD("%s: buf_ptr = %p, start_offset = %d, length = %d buf_size = %d bytes_to_read = %d", __func__, buf_ptr, start_offset, length, buf_size, bytes_to_read);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/ |
stringio.c | 15 size_t buf_size;
member in struct:__anon4384 58 size_t alloc = self->buf_size;
95 self->buf_size = alloc;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
cStringIO.c | 59 Py_ssize_t buf_size;
member in struct:__anon4402 407 if (newpos >= oself->buf_size) {
408 size_t newsize = oself->buf_size;
419 oself->buf_size = (Py_ssize_t)newsize;
469 self->pos = self->string_size = self->buf_size = 0;
595 self->buf_size = 0;
600 self->buf_size=size;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/ |
stringio.c | 15 size_t buf_size;
member in struct:__anon4697 58 size_t alloc = self->buf_size;
95 self->buf_size = alloc;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
cStringIO.c | 59 Py_ssize_t buf_size;
member in struct:__anon4735 385 if (newl >= oself->buf_size) {
386 oself->buf_size *= 2;
387 if (oself->buf_size <= newl) {
389 oself->buf_size = (int)(newl+1);
391 newbuf = (char*)realloc(oself->buf, oself->buf_size);
396 oself->buf_size = oself->pos = 0;
447 self->pos = self->string_size = self->buf_size = 0;
573 self->buf_size = 0;
578 self->buf_size=size; [all...] |
/external/opencv/cvaux/src/ |
cvbgfg_acmmm2003.cpp | 87 int i, j, k, pixel_count, buf_size; local 134 buf_size = pixel_count*sizeof(p_model->pixel_stat[0]); 135 CV_CALL( p_model->pixel_stat = (CvBGPixelStat*)cvAlloc(buf_size) ); 136 memset( p_model->pixel_stat, 0, buf_size ); 138 buf_size = pixel_count*params.N2c*sizeof(p_model->pixel_stat[0].ctable[0]); 139 CV_CALL( p_model->pixel_stat[0].ctable = (CvBGPixelCStatTable*)cvAlloc(buf_size) ); 140 memset( p_model->pixel_stat[0].ctable, 0, buf_size ); 142 buf_size = pixel_count*params.N2cc*sizeof(p_model->pixel_stat[0].cctable[0]); 143 CV_CALL( p_model->pixel_stat[0].cctable = (CvBGPixelCCStatTable*)cvAlloc(buf_size) ); 144 memset( p_model->pixel_stat[0].cctable, 0, buf_size ); [all...] |
/external/pdfium/core/fpdfapi/edit/ |
cpdf_creator.cpp | 78 size_t buf_size = std::min(kArchiveBufferSize - current_length_, temp_size); local 79 memcpy(buffer_.data() + current_length_, buffer, buf_size); 81 current_length_ += buf_size; 85 temp_size -= buf_size; 86 buffer += buf_size;
|
/external/protobuf/src/google/protobuf/io/ |
coded_stream.cc | 438 const int buf_size = BufferSize(); local 439 if (buf_size >= kMaxVarintBytes || 442 (buf_size > 0 && !(buffer_end_[-1] & 0x80))) { 459 if ((buf_size == 0) &&
|
/external/python/cpython2/Modules/_io/ |
stringio.c | 15 size_t buf_size; member in struct:__anon32718 58 size_t alloc = self->buf_size; 95 self->buf_size = alloc;
|
/external/python/cpython2/Modules/ |
cStringIO.c | 59 Py_ssize_t buf_size; member in struct:__anon32775 407 if (newpos >= oself->buf_size) { 408 size_t newsize = oself->buf_size; 419 oself->buf_size = (Py_ssize_t)newsize; 469 self->pos = self->string_size = self->buf_size = 0; 595 self->buf_size = 0; 600 self->buf_size=size;
|
/external/python/cpython3/Modules/_io/ |
stringio.c | 25 size_t buf_size; member in struct:__anon33325 78 size_t alloc = self->buf_size; 114 self->buf_size = alloc; 251 self->buf_size - self->pos,
|
/external/strace/ |
btrfs.c | 119 uint64_t buf_size; /* in - size of buffer member in struct:btrfs_ioctl_search_args_v2 421 uint64_t buf_addr, uint64_t buf_size, bool print_size) 450 tprintf(", buf_size=%" PRIu64, buf_size); 455 tprintf(", buf_size=%" PRIu64, buf_size); 1171 tprintf("{buf_size=%" PRIu64 "}", 1172 (uint64_t)args.buf_size); 1184 args.buf_size, true); [all...] |
/external/webp/src/dec/ |
webp_dec.c | 152 size_t buf_size; local 159 buf_size = *data_size; 171 *data_size = buf_size; 173 if (buf_size < CHUNK_HEADER_SIZE) { // Insufficient data. 192 // Note: This check must occur before the check 'buf_size < disk_chunk_size' 199 if (buf_size < disk_chunk_size) { // Insufficient data. 210 buf_size -= disk_chunk_size;
|
/hardware/qcom/camera/msm8998/usbcamcore/src/ |
QCameraMjpegDecode.cpp | 620 uint32_t buf_size; local 629 jpeg_buffer_get_max_size(buffer, &buf_size); 631 bytes_to_read = (length < buf_size) ? length : buf_size; 634 ALOGD("%s: buf_ptr = %p, start_offset = %d, length = %d buf_size = %d bytes_to_read = %d", __func__, buf_ptr, start_offset, length, buf_size, bytes_to_read);
|
/system/bt/hci/src/ |
hci_layer_linux.cc | 112 const size_t buf_size = 2000; local 113 uint8_t buf[buf_size]; 114 ssize_t len = read(fd, buf, buf_size); 117 if (len == buf_size) 123 size_t packet_size = buf_size + BT_HDR_SIZE; 165 len = read(fd, buf, buf_size);
|
/system/core/logwrapper/ |
logwrap.c | 54 /* This is a simple buffer that holds up to the first beginning_buf->buf_size 61 /* buf_size is the usable space, which is one less than the allocated size */ 62 size_t buf_size; member in struct:beginning_buf 66 /* This is a circular buf that holds up to the last ending_buf->buf_size bytes 67 * of output from a command after the first beginning_buf->buf_size bytes 74 /* buf_size is the usable space, which is one less than the allocated size */ 75 ssize_t buf_size; member in struct:ending_buf 108 if ((line_len + b_buf->used_len) > b_buf->buf_size) { 130 if (line_len > e_buf->buf_size) { 134 free_len = e_buf->buf_size - e_buf->used_len [all...] |
/bionic/libc/kernel/uapi/linux/ |
blktrace_api.h | 119 __u32 buf_size; member in struct:blk_user_trace_setup
|
/development/host/windows/usb/adb_winapi_test/ |
adb_winapi_test.cpp | 126 unsigned long buf_size = sizeof(buf);
local 131 while (AdbNextInterface(enum_handle, &interface_info, &buf_size)) {
141 buf_size = sizeof(buf);
175 unsigned long buf_size = sizeof(buf);
local 178 while (AdbNextInterface(enum_handle, &interface_info, &buf_size)) {
180 buf_size = sizeof(buf);
239 const size_t buf_size = intr_name_size + 16; // extra in case of overwrite
local 240 buf = reinterpret_cast<char*>(malloc(buf_size));
242 printf("\n--- could not malloc %d bytes, errno %u", buf_size, errno);
247 memset(buf, buf_fill, buf_size);
701 unsigned long buf_size = sizeof(buf); local [all...] |
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 191 int nread, buf_size = 2048; variable 621 (void) read(fd, buf, buf_size);
|
/device/linaro/bootloader/arm-trusted-firmware/tools/fiptool/ |
fiptool.c | 495 uint64_t entry_offset, buf_size, payload_size = 0; local 502 buf_size = sizeof(fip_toc_header_t) + 504 buf = calloc(1, buf_size); 516 entry_offset = buf_size; 539 log_dbgx("Metadata size: %zu bytes", buf_size); 541 xfwrite(buf, buf_size, fp, filename);
|
/external/blktrace/ |
blktrace_api.h | 124 __u32 buf_size; /* input */ member in struct:blk_user_trace_setup
|
/external/deqp/external/openglcts/modules/gl/ |
gl4cKHRDebugTests.cpp | 1593 GLsizei buf_size = (GLsizei)((half_count + 1) * (label_length + 1)); local [all...] |
/external/deqp/external/openglcts/modules/gles32/ |
es32cRobustBufferAccessBehaviorTests.cpp | 127 const GLint buf_size = width * height * pixel_size; local 128 GLubyte pixels[buf_size]; 129 deMemset(pixels, 0, buf_size); 139 for (GLuint i = 0; i < buf_size; i += pixel_size) [all...] |