Searched refs:block_size_ (Results 1 – 12 of 12) sorted by relevance
/system/update_engine/payload_generator/ |
D | block_mapping_unittest.cc | 60 size_t block_size_{1024}; member in chromeos_update_engine::BlockMappingTest 61 BlockMapping bm_{block_size_}; // BlockMapping under test. 65 brillo::Blob blob(block_size_); in TEST_F() 75 test_utils::WriteFileString(old_part_path_, string(block_size_, 'a')); in TEST_F() 89 brillo::Blob block(block_size_, 'a'); in TEST_F() 107 string old_contents(10 * block_size_, '\0'); in TEST_F() 109 old_contents[i] = 4 + i / block_size_; in TEST_F() 114 string new_contents(6 * block_size_, '\0'); in TEST_F() 116 new_contents[i] = i / block_size_; in TEST_F() 124 block_size_, in TEST_F()
|
D | delta_diff_utils_unittest.cc | 111 block_size_, block_size_ * kDefaultBlockCount); in SetUp() 113 block_size_, block_size_ * kDefaultBlockCount); in SetUp() 137 old_part_.size / block_size_, in RunDeltaMovedAndZeroBlocks() 138 new_part_.size / block_size_, in RunDeltaMovedAndZeroBlocks() 156 size_t block_size_{kBlockSize}; member in chromeos_update_engine::DeltaDiffUtilsTest 165 brillo::Blob data_blob(block_size_); in TEST_F() 480 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 5); in TEST_F() 481 InitializePartitionWithUniqueBlocks(new_part_, block_size_, 42); in TEST_F() 495 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 42); in TEST_F() 496 InitializePartitionWithUniqueBlocks(new_part_, block_size_, 42); in TEST_F() [all …]
|
D | block_mapping.cc | 48 brillo::Blob blob(block_size_); in AddDiskBlock() 50 if (!utils::PReadAll(fd, blob.data(), block_size_, byte_offset, &bytes_read)) in AddDiskBlock() 52 if (static_cast<size_t>(bytes_read) != block_size_) in AddDiskBlock() 65 fd, initial_byte_offset + block * block_size_); in AddManyDiskBlocks() 74 if (block_data.size() != block_size_) in AddBlock()
|
D | raw_filesystem.cc | 31 result->block_size_ = block_size; in Create() 37 return block_size_; in GetBlockSize()
|
D | fake_filesystem.cc | 24 block_size_(block_size), in FakeFilesystem() 29 return block_size_; in GetBlockSize()
|
D | block_mapping.h | 40 explicit BlockMapping(size_t block_size) : block_size_(block_size) {} in BlockMapping() 67 size_t block_size_; variable
|
D | raw_filesystem.h | 53 uint64_t block_size_; variable
|
D | fake_filesystem.h | 57 uint64_t block_size_; variable
|
/system/update_engine/payload_consumer/ |
D | extent_writer.h | 72 block_size_ = block_size; in Init() 82 size_t block_size_{0}; 105 block_size_ = block_size; in Init() 111 bytes_written_mod_block_size_ %= block_size_; in Write() 118 const size_t write_size = block_size_ - bytes_written_mod_block_size_; in EndImpl() 128 size_t block_size_{0};
|
D | extent_writer.cc | 40 extents_[next_extent_index_].num_blocks() * block_size_ - in Write() 50 extents_[next_extent_index_].start_block() * block_size_ + in Write() 62 extents_[next_extent_index_].num_blocks() * block_size_); in Write()
|
D | delta_performer.cc | 884 TEST_AND_RETURN_FALSE(writer->Init(target_fd_, extents, block_size_)); in PerformReplaceOperation() 914 const uint64_t start = extent.start_block() * block_size_; in PerformZeroOrDiscardOperation() 915 const uint64_t length = extent.num_blocks() * block_size_; in PerformZeroOrDiscardOperation() 921 zeros.resize(16 * block_size_); in PerformZeroOrDiscardOperation() 949 brillo::Blob buf(blocks_to_write * block_size_); in PerformMoveOperation() 956 const size_t bytes = extent.num_blocks() * block_size_; in PerformMoveOperation() 961 extent.start_block() * block_size_, in PerformMoveOperation() 972 const size_t bytes = extent.num_blocks() * block_size_; in PerformMoveOperation() 977 extent.start_block() * block_size_)); in PerformMoveOperation() 1027 TEST_AND_RETURN_FALSE(operation.src_length() % block_size_ == 0); in PerformSourceCopyOperation() [all …]
|
D | delta_performer.h | 363 uint32_t block_size_{0};
|