Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dab_generator_unittest.cc65 const size_t part_size = part_num_blocks * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() local
68 part_data.resize(part_size); in TestSplitReplaceOrReplaceBzOperation()
73 for (uint32_t i = 0; i < part_size; i++) in TestSplitReplaceOrReplaceBzOperation()
76 ASSERT_EQ(part_size, part_data.size()); in TestSplitReplaceOrReplaceBzOperation()
77 ASSERT_TRUE(utils::WriteFile(part_path.c_str(), part_data.data(), part_size)); in TestSplitReplaceOrReplaceBzOperation()
219 const size_t part_size = part_num_blocks * kBlockSize; in TestMergeReplaceOrReplaceBzOperations() local
222 part_data.resize(part_size); in TestMergeReplaceOrReplaceBzOperations()
227 for (uint32_t i = 0; i < part_size; i++) in TestMergeReplaceOrReplaceBzOperations()
230 ASSERT_EQ(part_size, part_data.size()); in TestMergeReplaceOrReplaceBzOperations()
231 ASSERT_TRUE(utils::WriteFile(part_path.c_str(), part_data.data(), part_size)); in TestMergeReplaceOrReplaceBzOperations()
/system/update_engine/scripts/update_payload/
Dapplier.py218 def _ApplyReplaceOperation(self, op, op_name, out_data, part_file, part_size): argument
252 if (start_block + num_blocks) * block_size > part_size:
256 part_size))
490 new_part_file, part_size): argument
512 self._ApplyReplaceOperation(op, op_name, data, new_part_file, part_size)
Dtest_utils.py164 def SetPartInfo(self, is_kernel, is_new, part_size, part_hash): argument
179 _SetMsgField(part_info, 'size', part_size)
/system/update_engine/payload_consumer/
Ddelta_performer.cc148 uint64_t part_size = fd->BlockDevSize(); in DiscardPartitionTail() local
149 if (!part_size || part_size <= data_size) in DiscardPartitionTail()
165 if (fd->BlkIoctl(req.number, data_size, part_size - data_size, &error) && in DiscardPartitionTail()
170 << (part_size - data_size) / 1024 << " KiB using ioctl(" in DiscardPartitionTail()