/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 198 brillo::Blob data_blob(block_size_); in TEST_F() 549 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 5); in TEST_F() 550 InitializePartitionWithUniqueBlocks(new_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 | 612 block_size_ = manifest_.block_size(); in Write() 883 install_part.block_size = block_size_; in ParseManifestPartitions() 886 install_part.hash_tree_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 887 install_part.hash_tree_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 889 install_part.hash_tree_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 890 install_part.hash_tree_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 906 install_part.fec_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 907 install_part.fec_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 909 install_part.fec_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 910 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 | extent_reader.h | 61 size_t block_size_{0};
|
D | delta_performer.h | 369 uint32_t block_size_{0};
|
D | delta_performer_unittest.cc | 720 performer_.block_size_ = 4096; in TEST_F()
|
/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 | 105 block_size_(block_size), in ImageBuilder() 139 SparsePtr file(sparse_file_new(block_size_, block_device.size), sparse_file_destroy); in ImageBuilder() 214 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock() 215 LERROR << "sector " << sector << " is not aligned to block size " << block_size_; in SectorToBlock() 218 *block = (sector * LP_SECTOR_SIZE) / block_size_; in SectorToBlock() 223 return (block * block_size_) / LP_SECTOR_SIZE; in BlockToSector() 347 uint32_t buffer[block_size_ / sizeof(uint32_t)]; in AddPartitionImage() 368 output_sector += block_size_ / LP_SECTOR_SIZE; in AddPartitionImage() 402 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
|
D | images.h | 62 uint32_t block_size_; variable
|
/system/core/fs_mgr/libfiemap_writer/include/libfiemap_writer/ |
D | fiemap_writer.h | 75 uint64_t block_size() const { return block_size_; }; in block_size() 102 uint64_t block_size_; variable
|
/system/extras/verity/include/verity/ |
D | hash_tree_builder.h | 80 size_t block_size_; variable
|
/system/core/fs_mgr/libfiemap_writer/ |
D | fiemap_writer.cpp | 674 fmap->block_size_ = blocksz; in Open()
|