/external/sfntly/cpp/src/sfntly/port/ |
file_input_stream.cc | 97 size_t read_count = std::min<size_t>(length_ - position_, length); local 98 if (b->size() < (size_t)(offset + read_count)) { 99 b->resize((size_t)(offset + read_count)); 101 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_);
|
memory_input_stream.cc | 91 size_t read_count = std::min<size_t>(length_ - position_, length); local 92 if (b->size() < (size_t)(offset + read_count)) { 93 b->resize((size_t)(offset + read_count)); 95 memcpy(&((*b)[offset]), buffer_ + position_, read_count); 96 position_ += read_count; 97 return read_count;
|
/external/google-breakpad/src/client/windows/crash_generation/ |
client_info.cc | 187 SIZE_T read_count = sizeof(CustomInfoEntry) * custom_client_info_.count; local 205 read_count, 211 return (bytes_count == read_count);
|
/external/opencv/otherlibs/highgui/ |
cvcap_socket.cpp | 247 long read_count, total_read = 0; local 250 read_count = read(sockd, &readBuf[total_read], readBufSize); 251 if (read_count <= 0 || errno != 0) 258 total_read += read_count;
|
/external/webrtc/webrtc/common_audio/ |
ring_buffer.c | 129 const size_t read_count = GetBufferReadRegions(self, local 152 WebRtc_MoveReadPtr(self, (int) read_count); 154 return read_count;
|
/frameworks/av/media/mtp/ |
MtpDataPacket.cpp | 39 size_t read_count = 0; local 40 while (read_count < count) { 41 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); 46 read_count += result; 48 return read_count == count ? count : -1;
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
alsaucm_test.c | 87 ssize_t read_count; local 95 read_count = read(fd, &ch, 1); 96 if (read_count == 0) { 99 } else if (read_count < 0) {
|
/art/runtime/ |
class_table.cc | 276 size_t read_count; local 277 ClassSet class_set(ptr, /*make copy*/false, &read_count); 284 size_t read_count = 0; local 285 AddClassSet(ClassSet(ptr, /*make copy*/false, &read_count)); 286 return read_count;
|
intern_table.cc | 365 size_t read_count = 0; local 366 UnorderedSet set(ptr, /*make copy*/false, &read_count); 369 return read_count; 380 return read_count;
|
class_linker.cc | 1870 size_t read_count = 0; local [all...] |
/external/ltp/testcases/kernel/ipc/ipc_stress/ |
shmem_test_03.c | 133 * read_count: number of child processes reading data 135 enum { READ_COUNT, WRITE }; /* semaphore constants */ 136 int *read_count; variable 197 if ((read_count = (int *) 202 *read_count = 0; 319 * Wait for a READ_COUNT lock on the shared memory segment, then 320 * compute the checksum and release the READ_COUNT lock. 322 lock_resource(READ_COUNT); 323 (*read_count)++; 324 if (*read_count == 1 [all...] |
shmem_test_07.c | 195 * read_count: number of reader threads reading data 210 int *read_count[MAX_WRITER_NUMBER]; /* Shared memory segment address */ variable 278 sys_error("read_count shmget failed", __LINE__); 280 if ((long)(read_count[i] = shmat(shmid[j], 0, 0)) == -1) 283 *(read_count[i]) = 0; 512 * Wait for a READ_COUNT lock on the shared memory segment, then 513 * compute the checksum and release the READ_COUNT lock. 538 (*(read_count[num_w]))++; 548 (*(read_count[num_w]))--; 649 sys_error("read_count shmctl failed", __LINE__) [all...] |
/bootable/recovery/applypatch/ |
applypatch.cpp | 303 ssize_t read_count = TEMP_FAILURE_RETRY(ota_read(fd, buffer + so_far, to_read - so_far)); local 304 if (read_count == -1) { 307 } else if (read_count == 0) { 311 if (static_cast<size_t>(read_count) < to_read) { 312 printf("short verify read %s at %zu: %zd %zu\n", partition, p, read_count, to_read); 314 so_far += read_count;
|
/external/fmtlib/test/ |
posix-mock-test.cc | 63 int read_count; member in namespace:__anon19254 341 read_count = 1; 344 read_count = 0;
|
/external/syslinux/core/fs/ntfs/ |
ntfs.c | 1293 int read_count; local [all...] |
/external/webrtc/webrtc/modules/audio_processing/test/ |
process_test.cc | 553 size_t read_count = 0; local 850 read_count = fread(&event, sizeof(event), 1, event_file); 851 if (read_count != 1) { [all...] |
audio_processing_unittest.cc | 318 size_t read_count = fread(int_data, sizeof(int16_t), frame_size, file); local 319 if (read_count != frame_size) { 535 size_t read_count = fread(frame->data_, local 539 if (read_count != frame_size) { [all...] |
/external/libpng/contrib/libtests/ |
pngimage.c | 377 size_t read_count; /* count of bytes read from current */ member in struct:buffer 423 buffer->read_count = 0; 813 size_t read_count = bp->read_count; local 820 (last == bp->last && read_count >= bp->end_count)) 828 else if (read_count >= sizeof last->buffer) 832 read_count = 0; 844 avail = (sizeof last->buffer) - read_count; 848 memcpy(data, last->buffer + read_count, avail); 849 read_count += avail [all...] |
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
hw_ar3k.c | 575 int read_count; local 631 read_count = (byte_count > ENTRY_PER_LINE) ? 635 while (read_count > 0) { 637 read_count -= 2; [all...] |
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
hw_ar3k.c | 575 int read_count; local 631 read_count = (byte_count > ENTRY_PER_LINE) ? 635 while (read_count > 0) { 637 read_count -= 2; [all...] |
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
hw_ar3k.c | 577 int read_count; local 633 read_count = (byte_count > ENTRY_PER_LINE) ? 637 while (read_count > 0) { 639 read_count -= 2; [all...] |
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
hw_ar3k.c | 578 int read_count; local 634 read_count = (byte_count > ENTRY_PER_LINE) ? 638 while (read_count > 0) { 640 read_count -= 2; [all...] |
/system/core/adb/ |
sysdeps_win32.cpp | 1246 DWORD read_count = 0; local [all...] |
/external/libpng/contrib/tools/ |
pngfix.c | 883 png_uint_32 read_count; /* Count of bytes read (in the chunk) */ member in struct:file [all...] |
/external/opencv/cxcore/src/ |
cxpersistence.cpp | 4749 int read_max = read_buf_size \/MAX(src_elem_size, 1), read_count = 0; local [all...] |