Home
last modified time | relevance | path

Searched refs:aops (Results 1 – 15 of 15) sorted by relevance

/system/update_engine/payload_generator/
Dfull_update_generator_unittest.cc54 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 …]
Dpayload_file_unittest.cc52 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()
Dab_generator_unittest.cc228 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 …]
Dab_generator.cc42 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 …]
Dab_generator.h55 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,
Ddelta_diff_utils.cc177 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 …]
Dpayload_file.h46 std::vector<AnnotatedOperation> aops);
92 std::vector<AnnotatedOperation> aops; member
Ddelta_diff_utils.h46 bool DeltaReadPartition(std::vector<AnnotatedOperation>* aops,
64 bool DeltaMovedAndZeroBlocks(std::vector<AnnotatedOperation>* aops,
84 bool DeltaReadFile(std::vector<AnnotatedOperation>* aops,
Dfull_update_generator.cc118 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()
Dpayload_file.cc89 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()
Dpayload_properties_unittest.cc94 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()
Dfull_update_generator.h44 std::vector<AnnotatedOperation>* aops) override;
Doperations_generator.h47 std::vector<AnnotatedOperation>* aops) = 0;
Ddelta_diff_generator.cc61 std::vector<AnnotatedOperation>* aops, in PartitionProcessor() argument
67 aops_(aops), in PartitionProcessor()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc186 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 …]