Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 21 of 21) sorted by relevance

/external/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc91 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
92 if (b->size() < (size_t)(offset + read_count)) { in Read()
93 b->resize((size_t)(offset + read_count)); in Read()
95 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
96 position_ += read_count; in Read()
97 return read_count; in Read()
Dfile_input_stream.cc97 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
98 if (b->size() < (size_t)(offset + read_count)) { in Read()
99 b->resize((size_t)(offset + read_count)); in Read()
101 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/external/python/cpython3/Lib/test/
Dtest_winconsoleio.py157 for read_count in range(1, 16):
163 b = stdin.read(read_count)
166 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
174 for read_count in range(1, 16):
180 b = stdin.read(read_count)
183 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
/external/freetype/builds/unix/
Dftsystem.c322 ssize_t read_count; in FT_Stream_Open() local
325 read_count = read( file, in FT_Stream_Open()
329 if ( read_count <= 0 ) in FT_Stream_Open()
331 if ( read_count == -1 && errno == EINTR ) in FT_Stream_Open()
339 total_read_count += read_count; in FT_Stream_Open()
/external/perfetto/test/
Dtest_helper.cc144 void TestHelper::ReadData(uint32_t read_count) { in ReadData() argument
146 CreateCheckpoint("readback.complete." + std::to_string(read_count)); in ReadData()
166 void TestHelper::WaitForReadData(uint32_t read_count) { in WaitForReadData() argument
167 RunUntilCheckpoint("readback.complete." + std::to_string(read_count)); in WaitForReadData()
Dtest_helper.h57 void ReadData(uint32_t read_count = 0);
65 void WaitForReadData(uint32_t read_count = 0);
/external/webrtc/webrtc/modules/audio_processing/test/
Dprocess_test.cc553 size_t read_count = 0; in void_main() local
850 read_count = fread(&event, sizeof(event), 1, event_file); in void_main()
851 if (read_count != 1) { in void_main()
906 read_count = fread(far_frame.data_, in void_main()
912 if (read_count != size) { in void_main()
915 EXPECT_EQ(0, fseek(near_file, read_count * sizeof(int16_t), in void_main()
920 ASSERT_EQ(size, read_count); in void_main()
947 read_count = fread(near_frame.data_, in void_main()
952 near_read_bytes += read_count * sizeof(int16_t); in void_main()
959 if (read_count != size) { in void_main()
[all …]
Daudio_processing_unittest.cc318 size_t read_count = fread(int_data, sizeof(int16_t), frame_size, file); in ReadChunk() local
319 if (read_count != frame_size) { in ReadChunk()
535 size_t read_count = fread(frame->data_, in ReadFrame() local
539 if (read_count != frame_size) { in ReadFrame()
/external/tensorflow/tensorflow/tools/gcs_test/python/
Dgcs_smoke.py218 read_count = 0
220 read_count += 1
221 print("Read %d records using tf_record_iterator" % read_count)
223 if read_count != FLAGS.num_examples:
225 "differs from the expected number (%d)" % (read_count,
/external/google-breakpad/src/client/windows/crash_generation/
Dclient_info.cc187 SIZE_T read_count = sizeof(CustomInfoEntry) * custom_client_info_.count; in PopulateCustomInfo() local
205 read_count, in PopulateCustomInfo()
211 return (bytes_count == read_count); in PopulateCustomInfo()
/external/grpc-grpc/test/core/surface/
Dbyte_buffer_reader_test.cc126 size_t read_count = 0; in read_compressed_slice() local
149 GRPC_SLICE_START_PTR(input_slice) + read_count, in read_compressed_slice()
151 read_count += GRPC_SLICE_LENGTH(read_slice); in read_compressed_slice()
154 GPR_ASSERT(read_count == input_size); in read_compressed_slice()
/external/libpng/contrib/libtests/
Dpngimage.c377 size_t read_count; /* count of bytes read from current */ member
423 buffer->read_count = 0; in buffer_start_read()
813 size_t read_count = bp->read_count; in buffer_read() local
820 (last == bp->last && read_count >= bp->end_count)) in buffer_read()
828 else if (read_count >= sizeof last->buffer) in buffer_read()
832 read_count = 0; in buffer_read()
844 avail = (sizeof last->buffer) - read_count; in buffer_read()
848 memcpy(data, last->buffer + read_count, avail); in buffer_read()
849 read_count += avail; in buffer_read()
854 bp->read_count = read_count; in buffer_read()
/external/webrtc/webrtc/common_audio/
Dring_buffer.c129 const size_t read_count = GetBufferReadRegions(self, in WebRtc_ReadBuffer() local
152 WebRtc_MoveReadPtr(self, (int) read_count); in WebRtc_ReadBuffer()
154 return read_count; in WebRtc_ReadBuffer()
/external/f2fs-tools/fsck/
Dsegment.c102 u64 read_count; in f2fs_read() local
128 read_count = remained_blkentries = 0; in f2fs_read()
163 read_count += len_in_blk; in f2fs_read()
172 return read_count; in f2fs_read()
/external/libhevc/encoder/
Dosal_mbox.h71 UWORD32 read_count; /* Get Count */ member
Dosal_select_engine.h57 UWORD32 read_count; /* Count of read descriptors */ member
/external/libpng/contrib/tools/
Dpngfix.c882 png_uint_32 read_count; /* Count of bytes read (in the chunk) */ member
1048 file->read_count = 0; in file_init()
1250 ++(file->read_count); in read_byte()
1645 chunk->file->read_count = 8; in setpos()
2982 file->read_count = 8; in sync_stream()
3038 file->read_count -= 8; in sync_stream()
3140 file->read_count -= 8; in read_chunk()
3203 if (file->read_count < 8) in read_callback()
3205 assert(file->read_count == 0); in read_callback()
3210 if (file->read_count == 4) in read_callback()
[all …]
/external/freetype/src/pshinter/
Dpshglob.c141 FT_UInt read_count, in psh_blues_set_zones_0() argument
153 for ( ; read_count > 1; read_count -= 2 ) in psh_blues_set_zones_0()
/external/u-boot/arch/arm/mach-zynq/include/mach/
Dhardware.h113 u32 read_count; /* 0x8c */ member
/external/nos/test/system-test-harness/src/
Dutil.cc291 size_t read_count = 0; in GetAhdlc() local
306 ++read_count; in GetAhdlc()
320 if (read_count > 7) { in GetAhdlc()
/external/u-boot/drivers/fpga/
Dzynqpl.c174 readl(&devcfg_base->read_count)); in zynq_dma_transfer()