Searched refs:part_size (Results 1 – 4 of 4) sorted by relevance
/system/update_engine/payload_generator/ |
D | ab_generator_unittest.cc | 63 const size_t part_size = part_num_blocks * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() local 66 part_data.resize(part_size); in TestSplitReplaceOrReplaceBzOperation() 71 for (uint32_t i = 0; i < part_size; i++) in TestSplitReplaceOrReplaceBzOperation() 74 ASSERT_EQ(part_size, part_data.size()); in TestSplitReplaceOrReplaceBzOperation() 75 ASSERT_TRUE(utils::WriteFile(part_path.c_str(), part_data.data(), part_size)); in TestSplitReplaceOrReplaceBzOperation() 216 const size_t part_size = part_num_blocks * kBlockSize; in TestMergeReplaceOrReplaceBzOperations() local 219 part_data.resize(part_size); in TestMergeReplaceOrReplaceBzOperations() 224 for (uint32_t i = 0; i < part_size; i++) in TestMergeReplaceOrReplaceBzOperations() 227 ASSERT_EQ(part_size, part_data.size()); in TestMergeReplaceOrReplaceBzOperations() 228 ASSERT_TRUE(utils::WriteFile(part_path.c_str(), part_data.data(), part_size)); in TestMergeReplaceOrReplaceBzOperations()
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 219 def _ApplyReplaceOperation(self, op, op_name, out_data, part_file, part_size): argument 253 if (start_block + num_blocks) * block_size > part_size: 257 part_size)) 441 new_part_file, part_size): argument 463 self._ApplyReplaceOperation(op, op_name, data, new_part_file, part_size)
|
D | test_utils.py | 167 def SetPartInfo(self, is_kernel, is_new, part_size, part_hash): argument 184 _SetMsgField(part_info, 'size', part_size)
|
/system/update_engine/payload_consumer/ |
D | delta_performer.cc | 139 uint64_t part_size = fd->BlockDevSize(); in DiscardPartitionTail() local 140 if (!part_size || part_size <= data_size) in DiscardPartitionTail() 156 if (fd->BlkIoctl(req.number, data_size, part_size - data_size, &error) && in DiscardPartitionTail() 161 << (part_size - data_size) / 1024 << " KiB using ioctl(" in DiscardPartitionTail()
|