Home
last modified time | relevance | path

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

12

/external/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
96 if (b->size() < (size_t)(offset + read_count)) { in Read()
97 b->resize((size_t)(offset + read_count)); in Read()
99 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
100 position_ += read_count; in Read()
101 return read_count; in Read()
Dfile_input_stream.cc101 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
102 if (b->size() < (size_t)(offset + read_count)) { in Read()
103 b->resize((size_t)(offset + read_count)); in Read()
105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/external/capstone/arch/ARM/
DARMMapping.c904 uint8_t read_count, write_count; in ARM_reg_access() local
907 read_count = insn->detail->regs_read_count; in ARM_reg_access()
911 memcpy(regs_read, insn->detail->regs_read, read_count * sizeof(insn->detail->regs_read[0])); in ARM_reg_access()
919 if ((op->access & CS_AC_READ) && !arr_exist(regs_read, read_count, op->reg)) { in ARM_reg_access()
920 regs_read[read_count] = (uint16_t)op->reg; in ARM_reg_access()
921 read_count++; in ARM_reg_access()
930 if ((op->mem.base != ARM_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.base)) { in ARM_reg_access()
931 regs_read[read_count] = (uint16_t)op->mem.base; in ARM_reg_access()
932 read_count++; in ARM_reg_access()
934 if ((op->mem.index != ARM_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.index)) { in ARM_reg_access()
[all …]
/external/python/cpython3/Lib/test/
Dtest_winconsoleio.py159 for read_count in range(1, 16):
165 b = stdin.read(read_count)
168 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
178 for read_count in range(1, 16):
184 b = stdin.read(read_count)
187 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/crosvm/sys_util/src/
Dsock_ctrl_msg.rs292 let (read_count, fd_count) = self.recv_with_fds(buf, &mut fd)?; in recv_with_fd()
300 Ok((read_count, file)) in recv_with_fd()
483 let (read_count, file_count) = s2 in send_recv_no_fd()
487 assert_eq!(read_count, 6); in send_recv_no_fd()
496 let (read_count, file_count) = s2 in send_recv_no_fd()
500 assert_eq!(read_count, 6); in send_recv_no_fd()
517 let (read_count, file_opt) = s2.recv_with_fd(&mut []).expect("failed to recv fd"); in send_recv_only_fd()
521 assert_eq!(read_count, 0); in send_recv_only_fd()
547 let (read_count, file_count) = s2 in send_recv_with_fd()
551 assert_eq!(read_count, 1); in send_recv_with_fd()
/external/crosvm/qcow_utils/src/
Dqcow_img.rs255 let mut read_count = 0; in dd() localVariable
260 std::cmp::min(CHUNK_SIZE, count - read_count) in dd()
271 read_count = read_count + nread; in dd()
272 if nread == 0 || Some(read_count) == count { in dd()
277 println!("wrote {} bytes", read_count); in dd()
/external/capstone/arch/AArch64/
DAArch64Mapping.c1031 uint8_t read_count, write_count; in AArch64_reg_access() local
1034 read_count = insn->detail->regs_read_count; in AArch64_reg_access()
1038 memcpy(regs_read, insn->detail->regs_read, read_count * sizeof(insn->detail->regs_read[0])); in AArch64_reg_access()
1046 if ((op->access & CS_AC_READ) && !arr_exist(regs_read, read_count, op->reg)) { in AArch64_reg_access()
1047 regs_read[read_count] = (uint16_t)op->reg; in AArch64_reg_access()
1048 read_count++; in AArch64_reg_access()
1057 if ((op->mem.base != ARM64_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.base)) { in AArch64_reg_access()
1058 regs_read[read_count] = (uint16_t)op->mem.base; in AArch64_reg_access()
1059 read_count++; in AArch64_reg_access()
1061 if ((op->mem.index != ARM64_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.index)) { in AArch64_reg_access()
[all …]
/external/tinyalsa_new/tests/src/
Dpcm_in_test.cc83 constexpr uint32_t read_count = 20; in TEST_F() local
91 for (uint32_t i = 0; i < read_count; ++i) { in TEST_F()
97 std::chrono::milliseconds expected_elapsed_time_ms(frames * read_count / in TEST_F()
/external/webrtc/common_audio/
Dring_buffer.c115 const size_t read_count = GetBufferReadRegions(self, in WebRtc_ReadBuffer() local
133 *data_ptr = read_count == 0 ? NULL : buf_ptr_1; in WebRtc_ReadBuffer()
137 WebRtc_MoveReadPtr(self, (int) read_count); in WebRtc_ReadBuffer()
139 return read_count; in WebRtc_ReadBuffer()
/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/tinyalsa_new/examples/
Dpcm-readi.c43 int read_count = pcm_readi(pcm, *frames, frames_per_sec); in read_frames() local
45 size_t byte_count = pcm_frames_to_bytes(pcm, read_count); in read_frames()
/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/perfetto/test/
Dtest_helper.cc201 void TestHelper::ReadData(uint32_t read_count) { in ReadData() argument
203 CreateCheckpoint("readback.complete." + std::to_string(read_count)); in ReadData()
228 void TestHelper::WaitForReadData(uint32_t read_count, uint32_t timeout_ms) { in WaitForReadData() argument
229 RunUntilCheckpoint("readback.complete." + std::to_string(read_count), in WaitForReadData()
Dtest_helper.h236 void ReadData(uint32_t read_count = 0);
249 void WaitForReadData(uint32_t read_count = 0,
/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/libhevc/encoder/
Dosal_mbox.h71 UWORD32 read_count; /* Get Count */ member
Dosal_select_engine.h57 UWORD32 read_count; /* Count of read descriptors */ member
/external/capstone/arch/X86/
DX86Mapping.c3521 uint8_t read_count, write_count; in X86_reg_access() local
3524 read_count = insn->detail->regs_read_count; in X86_reg_access()
3528 memcpy(regs_read, insn->detail->regs_read, read_count * sizeof(insn->detail->regs_read[0])); in X86_reg_access()
3536 if ((op->access & CS_AC_READ) && !arr_exist(regs_read, read_count, op->reg)) { in X86_reg_access()
3537 regs_read[read_count] = op->reg; in X86_reg_access()
3538 read_count++; in X86_reg_access()
3548 regs_read[read_count] = op->mem.segment; in X86_reg_access()
3549 read_count++; in X86_reg_access()
3551 if ((op->mem.base != X86_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.base)) { in X86_reg_access()
3552 regs_read[read_count] = op->mem.base; in X86_reg_access()
[all …]
/external/arm-trusted-firmware/plat/intel/soc/common/drivers/qspi/
Dcadence_qspi.c636 uint32_t read_count = 0, *read_data; in cad_qspi_read_bank() local
644 while (read_count < size) { in cad_qspi_read_bank()
649 read_data = (uint32_t *)(buffer + read_count); in cad_qspi_read_bank()
653 read_count += level * sizeof(uint32_t); in cad_qspi_read_bank()
/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/f2fs-tools/fsck/
Dsegment.c167 u64 read_count; in f2fs_read() local
193 read_count = remained_blkentries = 0; in f2fs_read()
229 read_count += len_in_blk; in f2fs_read()
238 return read_count; in f2fs_read()
/external/crosvm/disk/src/
Ddisk.rs164 let mut read_count = 0; in convert_copy() localVariable
172 let this_count = min(CHUNK_SIZE as u64, size - read_count) as usize; in convert_copy()
177 read_count += nread as u64; in convert_copy()
178 if nread == 0 || read_count == size { in convert_copy()
/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()

12