Home
last modified time | relevance | path

Searched refs:block_data (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/payload_generator/
Dblock_mapping.cc43 BlockMapping::BlockId BlockMapping::AddBlock(const brillo::Blob& block_data) { in AddBlock() argument
44 return AddBlock(-1, 0, block_data); in AddBlock()
73 const brillo::Blob& block_data) { in AddBlock() argument
74 if (block_data.size() != block_size_) in AddBlock()
76 size_t h = HashValue(block_data); in AddBlock()
89 if (!existing_block.CompareData(block_data, &equals)) in AddBlock()
108 new_ublock->block_data = block_data; in AddBlock()
115 if (!block_data.empty()) { in CompareData()
116 *equals = block_data == other_block; in CompareData()
135 block_data = std::move(blob); in CompareData()
Dblock_mapping.h44 BlockId AddBlock(const brillo::Blob& block_data);
65 BlockId AddBlock(int fd, off_t byte_offset, const brillo::Blob& block_data);
74 brillo::Blob block_data; member
Dblock_mapping_unittest.cc85 EXPECT_TRUE(ublock.block_data.empty()); in TEST_F()
97 EXPECT_FALSE(ublock.block_data.empty()); in TEST_F()
Ddelta_diff_utils_unittest.cc95 brillo::Blob block_data(prefix.begin(), prefix.end()); in InitializePartitionWithUniqueBlocks() local
97 block_data.resize(block_size, 'X'); in InitializePartitionWithUniqueBlocks()
98 std::copy(block_data.begin(), block_data.end(), in InitializePartitionWithUniqueBlocks()