/system/extras/tests/sdcard/ |
D | sdcard_perf_test.cpp | 312 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/init/ |
D | security.cpp | 67 ssize_t chunk_size = in MixHwrngIntoLinuxRngAction() local 69 if (chunk_size == -1) { in MixHwrngIntoLinuxRngAction() 71 } else if (chunk_size == 0) { in MixHwrngIntoLinuxRngAction() 75 chunk_size = TEMP_FAILURE_RETRY(write(urandom_fd, buf, chunk_size)); in MixHwrngIntoLinuxRngAction() 76 if (chunk_size == -1) { in MixHwrngIntoLinuxRngAction() 79 total_bytes_written += chunk_size; in MixHwrngIntoLinuxRngAction()
|
/system/core/libsparse/ |
D | sparse_read.cpp | 76 static int process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, in process_raw_chunk() argument 84 if (chunk_size % s->block_size != 0) { in process_raw_chunk() 88 if (chunk_size / s->block_size != blocks) { in process_raw_chunk() 114 static int process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, in process_fill_chunk() argument 124 if (chunk_size != sizeof(fill_val)) { in process_fill_chunk() 155 static int process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, in process_skip_chunk() argument 159 if (chunk_size != 0) { in process_skip_chunk() 177 static int process_crc32_chunk(int fd, unsigned int chunk_size, uint32_t *crc32) in process_crc32_chunk() argument 182 if (chunk_size != sizeof(file_crc32)) { in process_crc32_chunk()
|
/system/update_engine/common/ |
D | mock_http_fetcher.cc | 61 const size_t chunk_size = min(kMockHttpFetcherChunkSize, in SendData() local 64 delegate_->ReceivedBytes(this, &data_[sent_size_], chunk_size); in SendData() 70 sent_size_ += chunk_size; in SendData()
|
/system/extras/pagecache/ |
D | pagecache.py | 120 def __init__(self, file_object, output_queue, text_file, chunk_size=-1): argument 137 self._chunk_size = chunk_size 138 assert text_file or chunk_size > 0 157 def set_chunk_size(self, chunk_size): argument 170 assert chunk_size > 0 171 self._chunk_size = chunk_size 291 text_file=True, chunk_size=64)
|
/system/update_engine/scripts/ |
D | update_device.py | 61 chunk_size = buffer_size 63 chunk_size = min(chunk_size, copy_length - copied) 64 if not chunk_size: 66 buf = fsrc.read(chunk_size)
|
/system/tpm/tpm_manager/server/ |
D | tpm_nvram_impl.cc | 280 uint32_t chunk_size = std::min(nvram_size - offset, kMaxDataSize); in ReadSpace() local 283 Tspi_NV_ReadValue(nv_handle, offset, &chunk_size, space_data.ptr()); in ReadSpace() 295 CHECK_LE((offset + chunk_size), data->size()); in ReadSpace() 296 data->replace(offset, chunk_size, in ReadSpace() 297 reinterpret_cast<char*>(space_data.value()), chunk_size); in ReadSpace() 298 offset += chunk_size; in ReadSpace()
|
/system/update_engine/payload_consumer/ |
D | extent_writer_unittest.cc | 61 void WriteAlignedExtents(size_t chunk_size, size_t first_chunk_size); 110 void ExtentWriterTest::WriteAlignedExtents(size_t chunk_size, in WriteAlignedExtents() argument 123 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents()
|
D | bzip_extent_writer_unittest.cc | 52 void WriteAlignedExtents(size_t chunk_size, size_t first_chunk_size);
|
D | delta_performer_integration_test.cc | 310 ssize_t chunk_size, in GenerateDeltaFile() argument 508 payload_config.hard_chunk_size = chunk_size; in GenerateDeltaFile() 929 ssize_t chunk_size, in DoSmallImageTest() argument 934 GenerateDeltaFile(full_kernel, full_rootfs, noop, chunk_size, in DoSmallImageTest()
|
/system/update_engine/payload_generator/ |
D | generate_delta_main.cc | 325 DEFINE_int32(chunk_size, 200 * 1024 * 1024, in Main()
|