Home
last modified time | relevance | path

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

/system/extras/tests/sdcard/
Dsdcard_perf_test.cpp312 size_t chunk_size = testCase->chunkSize(); in readData() local
314 if (chunk_size > left) in readData()
316 chunk_size = left; in readData()
321 left -= chunk_size; in readData()
325 while (chunk_size > 0) in readData()
327 ssize_t s = read(fd, dest, chunk_size); in readData()
334 chunk_size -= s; in readData()
355 size_t chunk_size = testCase->chunkSize(); in testRead() local
356 char *const chunk = new char[chunk_size]; in testRead()
358 memset(chunk, 0xaa, chunk_size); in testRead()
[all …]
/system/core/libsparse/
Dsparse_read.c100 static int process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, in process_raw_chunk() argument
108 if (chunk_size % s->block_size != 0) { in process_raw_chunk()
112 if (chunk_size / s->block_size != blocks) { in process_raw_chunk()
138 static int process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, in process_fill_chunk() argument
148 if (chunk_size != sizeof(fill_val)) { in process_fill_chunk()
179 static int process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, in process_skip_chunk() argument
183 if (chunk_size != 0) { in process_skip_chunk()
201 static int process_crc32_chunk(int fd, unsigned int chunk_size, uint32_t crc32) in process_crc32_chunk() argument
206 if (chunk_size != sizeof(file_crc32)) { in process_crc32_chunk()
/system/core/init/
Dinit.cpp664 ssize_t chunk_size; in mix_hwrng_into_linux_rng_action() local
688 chunk_size = TEMP_FAILURE_RETRY( in mix_hwrng_into_linux_rng_action()
690 if (chunk_size == -1) { in mix_hwrng_into_linux_rng_action()
693 } else if (chunk_size == 0) { in mix_hwrng_into_linux_rng_action()
698 chunk_size = TEMP_FAILURE_RETRY(write(urandom_fd, buf, chunk_size)); in mix_hwrng_into_linux_rng_action()
699 if (chunk_size == -1) { in mix_hwrng_into_linux_rng_action()
703 total_bytes_written += chunk_size; in mix_hwrng_into_linux_rng_action()