Searched refs:BlockMapping (Results 1 – 4 of 4) sorted by relevance
/system/update_engine/payload_generator/ |
D | block_mapping.cc | 44 BlockMapping::BlockId BlockMapping::AddBlock(const brillo::Blob& block_data) { in AddBlock() 48 BlockMapping::BlockId BlockMapping::AddDiskBlock(int fd, off_t byte_offset) { in AddDiskBlock() 58 bool BlockMapping::AddManyDiskBlocks(int fd, in AddManyDiskBlocks() 72 BlockMapping::BlockId BlockMapping::AddBlock(int fd, in AddBlock() 114 bool BlockMapping::UniqueBlock::CompareData(const brillo::Blob& other_block, in CompareData() 145 vector<BlockMapping::BlockId>* old_block_ids, in MapPartitionBlocks() 146 vector<BlockMapping::BlockId>* new_block_ids) { in MapPartitionBlocks() 147 BlockMapping mapping(block_size); in MapPartitionBlocks()
|
D | block_mapping_unittest.cc | 43 BlockMapping bm_{block_size_}; // BlockMapping under test. 66 for (const BlockMapping::UniqueBlock& ublock : it.second) { in TEST_F() 78 for (const BlockMapping::UniqueBlock& ublock : it.second) { in TEST_F() 101 vector<BlockMapping::BlockId> old_ids, new_ids; in TEST_F() 110 EXPECT_EQ((vector<BlockMapping::BlockId>{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}), in TEST_F() 112 EXPECT_EQ((vector<BlockMapping::BlockId>{0, 11, 12, 13, 1, 2}), new_ids); in TEST_F()
|
D | block_mapping.h | 36 class BlockMapping { 40 explicit BlockMapping(size_t block_size) : block_size_(block_size) {} in BlockMapping() function 109 std::vector<BlockMapping::BlockId>* old_block_ids, 110 std::vector<BlockMapping::BlockId>* new_block_ids);
|
D | delta_diff_utils.cc | 432 vector<BlockMapping::BlockId> old_block_ids; in DeltaMovedAndZeroBlocks() 433 vector<BlockMapping::BlockId> new_block_ids; in DeltaMovedAndZeroBlocks() 445 map<BlockMapping::BlockId, vector<uint64_t>> old_blocks_map; in DeltaMovedAndZeroBlocks()
|