Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dfull_update_generator_unittest.cc52 vector<AnnotatedOperation> aops; member in chromeos_update_engine::FullUpdateGeneratorTest
76 &aops)); in TEST_F()
78 EXPECT_EQ(new_part_chunks, static_cast<int64_t>(aops.size())); in TEST_F()
80 EXPECT_EQ(1, aops[i].op.dst_extents_size()); in TEST_F()
83 aops[i].op.dst_extents(0).start_block()) in TEST_F()
86 aops[i].op.dst_extents(0).num_blocks()); in TEST_F()
87 if (aops[i].op.type() != InstallOperation::REPLACE) { in TEST_F()
88 EXPECT_EQ(InstallOperation::REPLACE_XZ, aops[i].op.type()); in TEST_F()
107 &aops)); in TEST_F()
109 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.cc225 vector<AnnotatedOperation> aops; in TestMergeReplaceOrReplaceXzOperations() local
247 aops.push_back(first_aop); in TestMergeReplaceOrReplaceXzOperations()
268 aops.push_back(second_aop); in TestMergeReplaceOrReplaceXzOperations()
283 &aops, version, 5, part_file.path(), &blob_file)); in TestMergeReplaceOrReplaceXzOperations()
288 EXPECT_EQ(1U, aops.size()); in TestMergeReplaceOrReplaceXzOperations()
289 InstallOperation new_op = aops[0].op; in TestMergeReplaceOrReplaceXzOperations()
295 EXPECT_EQ("first,second", aops[0].name); in TestMergeReplaceOrReplaceXzOperations()
399 vector<AnnotatedOperation> aops; in TEST_F() local
407 aops.push_back(first_aop); in TEST_F()
414 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,
Dmerge_sequence_generator_unittest.cc54 std::vector<AnnotatedOperation> aops{{"file1", {}}, {"file2", {}}}; in TEST_F() local
55 aops[0].op.set_type(InstallOperation::SOURCE_COPY); in TEST_F()
56 *aops[0].op.add_src_extents() = ExtentForRange(10, 10); in TEST_F()
57 *aops[0].op.add_dst_extents() = ExtentForRange(30, 10); in TEST_F()
59 aops[1].op.set_type(InstallOperation::SOURCE_COPY); in TEST_F()
60 *aops[1].op.add_src_extents() = ExtentForRange(20, 10); in TEST_F()
61 *aops[1].op.add_dst_extents() = ExtentForRange(40, 10); in TEST_F()
63 auto generator = MergeSequenceGenerator::Create(aops); in TEST_F()
70 *aops[1].op.add_src_extents() = ExtentForRange(30, 5); in TEST_F()
71 *aops[1].op.add_dst_extents() = ExtentForRange(50, 5); in TEST_F()
[all …]
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_properties_unittest.cc83 vector<AnnotatedOperation> aops; in SetUp() local
89 config, old_part, new_part, &blob_file_writer, &aops)); in SetUp()
91 payload.AddPartition(old_part, new_part, aops, {}, 0); in SetUp()
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()
192 for (const AnnotatedOperation& aop : *aops) { in GenerateOperations()
Dpayload_file.cc97 vector<AnnotatedOperation> aops, in AddPartition() argument
103 part.aops = std::move(aops); in AddPartition()
130 for (const auto& aop : part.aops) { in WritePayload()
176 for (const AnnotatedOperation& aop : part.aops) { in WritePayload()
303 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs()
337 for (const AnnotatedOperation& aop : part.aops) { in ReportPayloadUsage()
343 total_op += part.aops.size(); in ReportPayloadUsage()
Dpayload_file.h46 std::vector<AnnotatedOperation> aops,
94 std::vector<AnnotatedOperation> aops; member
Dfull_update_generator.h44 std::vector<AnnotatedOperation>* aops) override;
Doperations_generator.h47 std::vector<AnnotatedOperation>* aops) = 0;
Dmerge_sequence_generator.h52 const std::vector<AnnotatedOperation>& aops);
Ddelta_diff_generator.cc77 std::vector<AnnotatedOperation>* aops, in PartitionProcessor() argument
85 aops_(aops), in PartitionProcessor()
Dmerge_sequence_generator.cc79 const std::vector<AnnotatedOperation>& aops) { in Create() argument
81 for (const auto& aop : aops) { in Create()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc194 const vector<AnnotatedOperation>& aops, in GeneratePayload() argument
198 aops, in GeneratePayload()
206 const vector<AnnotatedOperation>& aops, in GeneratePayload() argument
237 payload.AddPartition(*old_part, new_part, aops, {}, 0); in GeneratePayload()
456 vector<AnnotatedOperation> aops; in TEST_F() local
462 aops.push_back(aop); in TEST_F()
465 aops, in TEST_F()
478 vector<AnnotatedOperation> aops; in TEST_F() local
484 aops.push_back(aop); in TEST_F()
487 aops, in TEST_F()
[all …]