/system/update_engine/payload_generator/ |
D | full_update_generator_unittest.cc | 54 vector<AnnotatedOperation> aops; member in chromeos_update_engine::FullUpdateGeneratorTest 81 &aops)); in TEST_F() 83 EXPECT_EQ(new_part_chunks, static_cast<int64_t>(aops.size())); in TEST_F() 85 EXPECT_EQ(1, aops[i].op.dst_extents_size()); in TEST_F() 88 aops[i].op.dst_extents(0).start_block()) in TEST_F() 91 aops[i].op.dst_extents(0).num_blocks()); in TEST_F() 92 if (aops[i].op.type() != InstallOperation::REPLACE) { in TEST_F() 93 EXPECT_EQ(InstallOperation::REPLACE_XZ, aops[i].op.type()); in TEST_F() 112 &aops)); in TEST_F() 114 EXPECT_EQ(2U, aops.size()); in TEST_F() [all …]
|
D | payload_file_unittest.cc | 52 vector<AnnotatedOperation> aops; in TEST_F() local 56 aops.push_back(aop); in TEST_F() 60 aops.push_back(aop); in TEST_F() 61 payload_.part_vec_[0].aops = aops; in TEST_F() 65 payload_.part_vec_[1].aops = {aop}; in TEST_F() 69 const vector<AnnotatedOperation>& part0_aops = payload_.part_vec_[0].aops; in TEST_F() 70 const vector<AnnotatedOperation>& part1_aops = payload_.part_vec_[1].aops; in TEST_F()
|
D | ab_generator_unittest.cc | 228 vector<AnnotatedOperation> aops; in TestMergeReplaceOrReplaceXzOperations() local 250 aops.push_back(first_aop); in TestMergeReplaceOrReplaceXzOperations() 271 aops.push_back(second_aop); in TestMergeReplaceOrReplaceXzOperations() 287 &aops, version, 5, part_file.path(), &blob_file)); in TestMergeReplaceOrReplaceXzOperations() 292 EXPECT_EQ(1U, aops.size()); in TestMergeReplaceOrReplaceXzOperations() 293 InstallOperation new_op = aops[0].op; in TestMergeReplaceOrReplaceXzOperations() 299 EXPECT_EQ("first,second", aops[0].name); in TestMergeReplaceOrReplaceXzOperations() 403 vector<AnnotatedOperation> aops; in TEST_F() local 411 aops.push_back(first_aop); in TEST_F() 418 aops.push_back(second_aop); in TEST_F() [all …]
|
D | ab_generator.cc | 42 vector<AnnotatedOperation>* aops) { in GenerateOperations() argument 51 aops->clear(); in GenerateOperations() 52 TEST_AND_RETURN_FALSE(diff_utils::DeltaReadPartition(aops, in GenerateOperations() 61 SortOperationsByDestination(aops); in GenerateOperations() 71 LOG(INFO) << "Merging " << aops->size() << " operations."; in GenerateOperations() 73 aops, config.version, merge_chunk_blocks, new_part.path, blob_file)); in GenerateOperations() 74 LOG(INFO) << aops->size() << " operations after merge."; in GenerateOperations() 77 TEST_AND_RETURN_FALSE(AddSourceHash(aops, old_part.path)); in GenerateOperations() 83 vector<AnnotatedOperation>* aops) { in SortOperationsByDestination() argument 84 sort(aops->begin(), aops->end(), diff_utils::CompareAopsByDestination); in SortOperationsByDestination() [all …]
|
D | ab_generator.h | 55 std::vector<AnnotatedOperation>* aops) override; 65 std::vector<AnnotatedOperation>* aops, 73 std::vector<AnnotatedOperation>* aops); 106 static bool MergeOperations(std::vector<AnnotatedOperation>* aops, 114 static bool AddSourceHash(std::vector<AnnotatedOperation>* aops,
|
D | delta_diff_utils.cc | 177 bool MergeOperation(vector<AnnotatedOperation>* aops); 235 bool FileDeltaProcessor::MergeOperation(vector<AnnotatedOperation>* aops) { in MergeOperation() argument 238 aops->reserve(aops->size() + file_aops_.size()); in MergeOperation() 239 std::move(file_aops_.begin(), file_aops_.end(), std::back_inserter(*aops)); in MergeOperation() 271 bool DeltaReadPartition(vector<AnnotatedOperation>* aops, in DeltaReadPartition() argument 294 TEST_AND_RETURN_FALSE(DeltaMovedAndZeroBlocks(aops, in DeltaReadPartition() 415 TEST_AND_RETURN_FALSE(processor.MergeOperation(aops)); in DeltaReadPartition() 421 bool DeltaMovedAndZeroBlocks(vector<AnnotatedOperation>* aops, in DeltaMovedAndZeroBlocks() argument 494 size_t num_ops = aops->size(); in DeltaMovedAndZeroBlocks() 507 aops->push_back({.name = "<zeros>", .op = operation}); in DeltaMovedAndZeroBlocks() [all …]
|
D | payload_file.h | 46 std::vector<AnnotatedOperation> aops); 92 std::vector<AnnotatedOperation> aops; member
|
D | delta_diff_utils.h | 46 bool DeltaReadPartition(std::vector<AnnotatedOperation>* aops, 64 bool DeltaMovedAndZeroBlocks(std::vector<AnnotatedOperation>* aops, 84 bool DeltaReadFile(std::vector<AnnotatedOperation>* aops,
|
D | full_update_generator.cc | 118 vector<AnnotatedOperation>* aops) { in GenerateOperations() argument 153 aops->resize(num_chunks); in GenerateOperations() 166 AnnotatedOperation* aop = aops->data() + i; in GenerateOperations() 195 for (const AnnotatedOperation& aop : *aops) { in GenerateOperations()
|
D | payload_file.cc | 89 vector<AnnotatedOperation> aops) { in AddPartition() argument 92 part.aops = std::move(aops); in AddPartition() 119 for (const auto& aop : part.aops) { in WritePayload() 159 for (const AnnotatedOperation& aop : part.aops) { in WritePayload() 282 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs() 316 for (const AnnotatedOperation& aop : part.aops) { in ReportPayloadUsage() 322 total_op += part.aops.size(); in ReportPayloadUsage()
|
D | payload_properties_unittest.cc | 94 vector<AnnotatedOperation> aops; in SetUp() local 99 config, old_part, new_part, &blob_file_writer, &aops)); in SetUp() 101 payload.AddPartition(old_part, new_part, aops); in SetUp()
|
D | full_update_generator.h | 44 std::vector<AnnotatedOperation>* aops) override;
|
D | operations_generator.h | 47 std::vector<AnnotatedOperation>* aops) = 0;
|
D | delta_diff_generator.cc | 61 std::vector<AnnotatedOperation>* aops, in PartitionProcessor() argument 67 aops_(aops), in PartitionProcessor()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 186 const vector<AnnotatedOperation>& aops, in GeneratePayload() argument 190 aops, in GeneratePayload() 198 const vector<AnnotatedOperation>& aops, in GeneratePayload() argument 229 payload.AddPartition(*old_part, new_part, aops); in GeneratePayload() 457 vector<AnnotatedOperation> aops; in TEST_F() local 463 aops.push_back(aop); in TEST_F() 466 aops, in TEST_F() 479 vector<AnnotatedOperation> aops; in TEST_F() local 485 aops.push_back(aop); in TEST_F() 488 aops, in TEST_F() [all …]
|