/system/extras/verity/ |
D | hash_tree_builder.cpp | 50 : block_size_(block_size), data_size_(0), md_(md) { in HashTreeBuilder() 60 CHECK_LT(hash_size_ * 2, block_size_); in HashTreeBuilder() 101 verity_tree_blocks(input_size, block_size_, hash_size_, levels); in CalculateSize() 106 return verity_blocks * block_size_; in CalculateSize() 114 if (data_size_ % block_size_ != 0) { in Initialize() 116 << " is not a multiple of block size " << block_size_; in Initialize() 122 verity_tree_blocks(data_size_, block_size_, hash_size_, 0); in Initialize() 124 base_level.reserve(base_level_blocks * block_size_); in Initialize() 128 std::vector<unsigned char> zero_block(block_size_, 0); in Initialize() 144 ret &= EVP_DigestUpdate(mdctx, block, block_size_); in HashBlock() [all …]
|
/system/update_engine/payload_generator/ |
D | block_mapping_unittest.cc | 42 size_t block_size_{1024}; member in chromeos_update_engine::BlockMappingTest 43 BlockMapping bm_{block_size_}; // BlockMapping under test. 47 brillo::Blob blob(block_size_); in TEST_F() 57 test_utils::WriteFileString(old_part_.path(), string(block_size_, 'a')); in TEST_F() 71 brillo::Blob block(block_size_, 'a'); in TEST_F() 89 string old_contents(10 * block_size_, '\0'); in TEST_F() 91 old_contents[i] = 4 + i / block_size_; in TEST_F() 96 string new_contents(6 * block_size_, '\0'); in TEST_F() 98 new_contents[i] = i / block_size_; in TEST_F() 106 block_size_, in TEST_F()
|
D | delta_diff_utils_unittest.cc | 116 block_size_, in SetUp() 117 block_size_ * kDefaultBlockCount); in SetUp() 120 block_size_, in SetUp() 121 block_size_ * kDefaultBlockCount); in SetUp() 144 old_part_.size / block_size_, in RunDeltaMovedAndZeroBlocks() 145 new_part_.size / block_size_, in RunDeltaMovedAndZeroBlocks() 164 size_t block_size_{kBlockSize}; member in chromeos_update_engine::DeltaDiffUtilsTest 347 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 5); in TEST_F() 348 InitializePartitionWithUniqueBlocks(new_part_, block_size_, 42); in TEST_F() 366 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 42); in TEST_F() [all …]
|
D | block_mapping.cc | 49 brillo::Blob blob(block_size_); in AddDiskBlock() 51 if (!utils::PReadAll(fd, blob.data(), block_size_, byte_offset, &bytes_read)) in AddDiskBlock() 53 if (static_cast<size_t>(bytes_read) != block_size_) in AddDiskBlock() 66 AddDiskBlock(fd, initial_byte_offset + block * block_size_); in AddManyDiskBlocks() 75 if (block_data.size() != block_size_) in AddBlock()
|
D | raw_filesystem.cc | 34 result->block_size_ = block_size; in Create() 40 return block_size_; in GetBlockSize()
|
D | fake_filesystem.cc | 24 : block_size_(block_size), block_count_(block_count) {} in FakeFilesystem() 27 return block_size_; in GetBlockSize()
|
D | block_mapping.h | 40 explicit BlockMapping(size_t block_size) : block_size_(block_size) {} in BlockMapping() 69 size_t block_size_; variable
|
D | raw_filesystem.h | 55 uint64_t block_size_; variable
|
D | fake_filesystem.h | 55 uint64_t block_size_; variable
|
/system/update_engine/payload_consumer/ |
D | extent_reader.cc | 36 block_size_ = block_size; in Init() 44 total_size_ += extent.num_blocks() * block_size_; in Init() 75 cur_extent_->num_blocks() * block_size_ - cur_extent_bytes_read_; in Read() 84 cur_extent_->start_block() * block_size_ + cur_extent_bytes_read_, in Read() 92 if (cur_extent_bytes_read_ == cur_extent_->num_blocks() * block_size_) { in Read()
|
D | extent_writer.cc | 40 cur_extent_->num_blocks() * block_size_ - extent_bytes_written_; in Write() 49 cur_extent_->start_block() * block_size_ + extent_bytes_written_; in Write() 59 CHECK_EQ(extent_bytes_written_, cur_extent_->num_blocks() * block_size_); in Write()
|
D | delta_performer.cc | 595 block_size_ = manifest_.block_size(); in Write() 871 install_part.block_size = block_size_; in ParseManifestPartitions() 874 install_part.hash_tree_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 875 install_part.hash_tree_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 877 install_part.hash_tree_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 878 install_part.hash_tree_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 894 install_part.fec_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 895 install_part.fec_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 897 install_part.fec_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 898 install_part.fec_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() [all …]
|
D | extent_writer.h | 61 block_size_ = block_size; in Init() 71 size_t block_size_{0};
|
D | partition_update_generator_android.cc | 45 block_size_(block_size) {} in PartitionUpdateGeneratorAndroid() 163 source_size % block_size_ != 0) { in CreatePartitionUpdate() 197 copy_extent.set_num_blocks(partition_size / block_size_); in CreatePartitionUpdate()
|
D | extent_reader.h | 61 size_t block_size_{0};
|
D | partition_update_generator_android.h | 72 size_t block_size_; variable
|
D | delta_performer.h | 402 uint32_t block_size_{0};
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 72 uint32_t block_size_; member in SparseWriter 255 : output_fd_(output_fd), image_fd_(image_fd), block_size_(block_size) {} in SparseWriter() 258 auto buffer = std::make_unique<uint8_t[]>(block_size_); in WriteExtent() 268 if (remaining_bytes < block_size_) { in WriteExtent() 272 if (!android::base::ReadFully(image_fd_, buffer.get(), block_size_)) { in WriteExtent() 279 remaining_bytes -= block_size_; in WriteExtent() 294 if (ShouldSkipChunk(data, block_size_)) { in WriteBlock() 295 hole_size_ += block_size_; in WriteBlock() 306 if (!android::base::WriteFully(output_fd_, data, block_size_)) { in WriteBlock()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 139 block_size_(block_size), in ImageBuilder() 173 SparsePtr file(sparse_file_new(block_size_, block_device.size), sparse_file_destroy); in ImageBuilder() 248 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock() 249 LERROR << "sector " << sector << " is not aligned to block size " << block_size_; in SectorToBlock() 252 *block = (sector * LP_SECTOR_SIZE) / block_size_; in SectorToBlock() 257 return (block * block_size_) / LP_SECTOR_SIZE; in BlockToSector() 381 uint32_t buffer[block_size_ / sizeof(uint32_t)]; in AddPartitionImage() 402 output_sector += block_size_ / LP_SECTOR_SIZE; in AddPartitionImage() 436 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
|
D | images.h | 60 uint32_t block_size_; variable
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | fiemap_writer.h | 87 uint64_t block_size() const { return block_size_; }; in block_size() 114 uint64_t block_size_; variable
|
/system/extras/verity/include/verity/ |
D | hash_tree_builder.h | 84 size_t block_size_; variable
|
/system/core/fs_mgr/libdm/ |
D | dm_target.cpp | 124 if (!block_size_) return target_string_; in GetParameterString() 125 return target_string_ + " 1 block_size:" + std::to_string(block_size_); in GetParameterString()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm_target.h | 178 void SetBlockSize(uint32_t block_size) { block_size_ = block_size; } in SetBlockSize() 185 uint32_t block_size_ = 0; variable
|
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer.cpp | 798 fmap->block_size_ = blocksz; in Open()
|