Searched refs:chunk_size (Results 1 - 11 of 11) sorted by relevance

/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp312 size_t chunk_size = testCase->chunkSize(); local
314 if (chunk_size > left)
316 chunk_size = left;
321 left -= chunk_size;
325 while (chunk_size > 0)
327 ssize_t s = read(fd, dest, chunk_size);
334 chunk_size -= s;
355 size_t chunk_size = testCase->chunkSize(); local
356 char *const chunk = new char[chunk_size];
358 memset(chunk, 0xaa, chunk_size);
444 size_t chunk_size = testCase->chunkSize(); local
492 size_t chunk_size = testCase->chunkSize(); local
574 size_t chunk_size = testCase->chunkSize(); local
[all...]
/system/update_engine/common/
H A Dmock_http_fetcher.cc61 const size_t chunk_size = min(kMockHttpFetcherChunkSize, local
64 delegate_->ReceivedBytes(this, &data_[sent_size_], chunk_size);
70 sent_size_ += chunk_size;
/system/core/libsparse/
H A Dsparse_read.c101 static int process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, argument
109 if (chunk_size % s->block_size != 0) {
113 if (chunk_size / s->block_size != blocks) {
139 static int process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, argument
149 if (chunk_size != sizeof(fill_val)) {
180 static int process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, argument
184 if (chunk_size != 0) {
202 static int process_crc32_chunk(int fd, unsigned int chunk_size, uint32_t *crc32) argument
207 if (chunk_size != sizeof(file_crc32)) {
/system/update_engine/scripts/
H A Dupdate_device.py52 chunk_size = buffer_size
54 chunk_size = min(chunk_size, copy_length - copied)
55 if not chunk_size:
57 buf = fsrc.read(chunk_size)
/system/extras/pagecache/
H A Dpagecache.py120 def __init__(self, file_object, output_queue, text_file, chunk_size=-1):
127 chunk_size will be ignored. If False, line breaks are ignored and
128 chunk_size must be set to a positive integer.
129 chunk_size: When processing a non-text file (text_file = False),
130 chunk_size is the amount of data to copy into the queue with each
137 self._chunk_size = chunk_size
138 assert text_file or chunk_size > 0
157 def set_chunk_size(self, chunk_size):
161 created with an initial chunk_size > 0.
163 chunk_size
[all...]
/system/tpm/tpm_manager/server/
H A Dtpm_nvram_impl.cc280 uint32_t chunk_size = std::min(nvram_size - offset, kMaxDataSize); local
283 Tspi_NV_ReadValue(nv_handle, offset, &chunk_size, space_data.ptr());
295 CHECK_LE((offset + chunk_size), data->size());
296 data->replace(offset, chunk_size,
297 reinterpret_cast<char*>(space_data.value()), chunk_size);
298 offset += chunk_size;
/system/update_engine/payload_consumer/
H A Dextent_writer_unittest.cc56 // Writes data to an extent writer in 'chunk_size' chunks with
60 void WriteAlignedExtents(size_t chunk_size, size_t first_chunk_size);
118 void ExtentWriterTest::WriteAlignedExtents(size_t chunk_size, argument
140 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size);
H A Dbzip_extent_writer_unittest.cc50 void WriteAlignedExtents(size_t chunk_size, size_t first_chunk_size);
H A Ddelta_performer_integration_test.cc310 ssize_t chunk_size,
508 payload_config.hard_chunk_size = chunk_size;
928 ssize_t chunk_size,
933 GenerateDeltaFile(full_kernel, full_rootfs, noop, chunk_size,
307 GenerateDeltaFile(bool full_kernel, bool full_rootfs, bool noop, ssize_t chunk_size, SignatureTest signature_test, DeltaState *state, uint32_t minor_version) argument
927 DoSmallImageTest(bool full_kernel, bool full_rootfs, bool noop, ssize_t chunk_size, SignatureTest signature_test, bool hash_checks_mandatory, uint32_t minor_version) argument
/system/core/init/
H A Dinit.cpp240 ssize_t chunk_size; local
264 chunk_size = TEMP_FAILURE_RETRY(
266 if (chunk_size == -1) {
269 } else if (chunk_size == 0) {
274 chunk_size = TEMP_FAILURE_RETRY(write(urandom_fd, buf, chunk_size));
275 if (chunk_size == -1) {
279 total_bytes_written += chunk_size;
/system/update_engine/payload_generator/
H A Dgenerate_delta_main.cc309 DEFINE_int32(chunk_size, 200 * 1024 * 1024,

Completed in 136 milliseconds