/system/logging/logd/ |
D | SerializedLogChunkTest.cpp | 31 size_t chunk_size = 10 * 4096; in TEST() local 32 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 33 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST() 38 EXPECT_TRUE(chunk.CanLog(chunk_size)); in TEST() 39 EXPECT_FALSE(chunk.CanLog(chunk_size + 1)); in TEST() 54 EXPECT_FALSE(chunk.CanLog(chunk_size)); in TEST() 62 size_t chunk_size = individual_message_size * 3; in TEST() local 63 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 64 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST() 79 size_t chunk_size = 10 * 4096; in TEST() local [all …]
|
/system/update_engine/common/ |
D | mock_http_fetcher.cc | 73 const size_t chunk_size = in SendData() local 75 sent_offset_ += chunk_size; in SendData() 76 bytes_sent_ += chunk_size; in SendData() 79 this, &data_[sent_offset_ - chunk_size], chunk_size); in SendData()
|
/system/core/libsparse/ |
D | sparse_read.cpp | 174 static int process_raw_chunk(struct sparse_file* s, unsigned int chunk_size, in process_raw_chunk() argument 180 if (chunk_size % s->block_size != 0) { in process_raw_chunk() 184 if (chunk_size / s->block_size != blocks) { in process_raw_chunk() 205 static int process_fill_chunk(struct sparse_file* s, unsigned int chunk_size, in process_fill_chunk() argument 215 if (chunk_size != sizeof(fill_val)) { in process_fill_chunk() 246 static int process_skip_chunk(struct sparse_file* s, unsigned int chunk_size, in process_skip_chunk() argument 249 if (chunk_size != 0) { in process_skip_chunk() 267 static int process_crc32_chunk(SparseFileSource* source, unsigned int chunk_size, uint32_t* crc32) { in process_crc32_chunk() argument 270 if (chunk_size != sizeof(file_crc32)) { in process_crc32_chunk()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_fuzzer.cc | 83 auto chunk_size = data_provider.ConsumeIntegralInRange<size_t>(0, 100); in FuzzDeltaPerformer() local 84 auto data = data_provider.ConsumeBytes<uint8_t>(chunk_size); in FuzzDeltaPerformer()
|
D | extent_writer_unittest.cc | 59 void WriteAlignedExtents(size_t chunk_size, size_t first_chunk_size); 103 void ExtentWriterTest::WriteAlignedExtents(size_t chunk_size, in WriteAlignedExtents() argument 115 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents()
|
D | delta_performer_integration_test.cc | 397 ssize_t chunk_size, in GenerateDeltaFile() argument 556 payload_config.hard_chunk_size = chunk_size; in GenerateDeltaFile() 970 ssize_t chunk_size, in DoSmallImageTest() argument 978 chunk_size, in DoSmallImageTest()
|
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator_test.cpp | 143 const uint64_t chunk_size = kSnapshotChunkSize * dm::kSectorSize; in TEST_F() local 144 ASSERT_EQ(chunk_size, block_size); in TEST_F() 171 ASSERT_EQ(2 * chunk_size, cow_device_size(iopv, builder_a.get(), builder_b.get(), system_b)); in TEST_F() 178 ASSERT_EQ(2 * chunk_size, cow_device_size(iopv, builder_a.get(), builder_b.get(), system_b)); in TEST_F() 184 ASSERT_EQ(2 * chunk_size, cow_device_size(iopv, builder_a.get(), builder_b.get(), system_b)); in TEST_F() 191 ASSERT_EQ(3 * chunk_size, cow_device_size(iopv, builder_a.get(), builder_b.get(), system_b)); in TEST_F() 198 ASSERT_EQ(4 * chunk_size, cow_device_size(iopv, builder_a.get(), builder_b.get(), system_b)); in TEST_F() 205 ASSERT_EQ(6 * chunk_size, cow_device_size(iopv, builder_a.get(), builder_b.get(), system_b)); in TEST_F()
|
D | snapuserd_worker.cpp | 130 dh->chunk_size = CHUNK_SIZE; in ConstructKernelCowHeader()
|
/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/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapuserd_kernel.h | 70 uint32_t chunk_size; member
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 153 uint32_t chunk_size; in Next() local 154 if (!android::base::ParseUint(chunk_size_str, &chunk_size)) { in Next() 159 cow_device, mode, chunk_size); in Next() 172 uint32_t chunk_size; in Next() local 173 if (!android::base::ParseUint(chunk_size_str, &chunk_size)) { in Next() 178 cow_device, mode, chunk_size); in Next()
|
/system/update_engine/scripts/ |
D | update_device.py | 69 chunk_size = buffer_size 71 chunk_size = min(chunk_size, copy_length - copied) 72 if not chunk_size: 74 buf = fsrc.read(chunk_size)
|
/system/core/fastboot/device/ |
D | commands.cpp | 815 uint64_t chunk_size = std::min<uint64_t>(buf.size(), remaining); in Fetch() local 816 if (!android::base::ReadFully(handle_.fd(), buf.data(), chunk_size)) { in Fetch() 817 PLOG(ERROR) << std::hex << "Unable to read 0x" << chunk_size << " bytes from " in Fetch() 822 if (!device_->HandleData(false /* is read */, buf.data(), chunk_size)) { in Fetch() 823 PLOG(ERROR) << std::hex << "Unable to send 0x" << chunk_size << " bytes of " in Fetch() 828 current_offset += chunk_size; in Fetch()
|
/system/core/fs_mgr/libfiemap/ |
D | split_fiemap_writer.cpp | 104 uint64_t chunk_size = std::min(max_piece_size, remaining_bytes); in Create() local 106 auto status = FiemapWriter::Open(chunk_path, chunk_size, &writer, true, on_progress); in Create()
|
/system/core/fastboot/ |
D | fastboot_driver.cpp | 331 uint64_t chunk_size = std::min(buf_size, remaining); in RunAndReadBuffer() local 332 if ((ret = ReadBuffer(data.data(), chunk_size)) != SUCCESS) { in RunAndReadBuffer() 335 if ((ret = write_fn(data.data(), chunk_size)) != SUCCESS) { in RunAndReadBuffer() 338 current_offset += chunk_size; in RunAndReadBuffer()
|
D | fastboot.cpp | 1304 uint64_t chunk_size = std::min(fetch_size, partition_size - offset); in fetch_partition() local 1305 if (fb->FetchToFd(partition, fd, offset, chunk_size) != fastboot::RetCode::SUCCESS) { in fetch_partition() 1307 offset, chunk_size); in fetch_partition() 1309 offset += chunk_size; in fetch_partition()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm_target.h | 204 const std::string& cow_device, SnapshotStorageMode mode, uint64_t chunk_size) in DmTargetSnapshot() argument 209 chunk_size_(chunk_size) {} in DmTargetSnapshot()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | main.cpp | 691 uint64_t chunk_size = std::min(fetch_size, partition_size - offset); in TEST_F() local 692 auto ret = fb->FetchToFd(partition, fetched.fd, offset, chunk_size); in TEST_F() 695 << ", size=" << chunk_size << ")"; in TEST_F() 696 offset += chunk_size; in TEST_F()
|
/system/update_engine/payload_generator/ |
D | generate_delta_main.cc | 374 chunk_size, 200 * 1024 * 1024, "Payload chunk size (-1 for whole files)"); in Main()
|