/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_BZ, 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 TestMergeReplaceOrReplaceBzOperations() local 250 aops.push_back(first_aop); in TestMergeReplaceOrReplaceBzOperations() 271 aops.push_back(second_aop); in TestMergeReplaceOrReplaceBzOperations() 287 &aops, version, 5, part_file.path(), &blob_file)); in TestMergeReplaceOrReplaceBzOperations() 292 EXPECT_EQ(1U, aops.size()); in TestMergeReplaceOrReplaceBzOperations() 293 InstallOperation new_op = aops[0].op; in TestMergeReplaceOrReplaceBzOperations() 299 EXPECT_EQ("first,second", aops[0].name); in TestMergeReplaceOrReplaceBzOperations() 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_generator.cc | 108 vector<AnnotatedOperation> aops; in GenerateUpdatePayloadFile() local 111 config, old_part, new_part, &blob_file, &aops)); in GenerateUpdatePayloadFile() 116 diff_utils::FilterNoopOperations(&aops); in GenerateUpdatePayloadFile() 118 TEST_AND_RETURN_FALSE(payload.AddPartition(old_part, new_part, aops)); in GenerateUpdatePayloadFile()
|
D | inplace_generator_unittest.cc | 125 void DumpAopsOnFailure(const vector<AnnotatedOperation>& aops) { in DumpAopsOnFailure() argument 128 for (const auto& aop : aops) { in DumpAopsOnFailure() 604 vector<AnnotatedOperation> aops; in TEST_F() local 609 aops.emplace_back(); in TEST_F() 610 aops.back().name = base::StringPrintf("<bz-block-0>"); in TEST_F() 611 aops.back().op.set_type(InstallOperation::REPLACE_BZ); in TEST_F() 612 StoreExtents({ExtentForRange(0, 1)}, aops.back().op.mutable_dst_extents()); in TEST_F() 621 aops.push_back(aop); in TEST_F() 636 vector<AnnotatedOperation> result_aops = aops; in TEST_F() 675 vector<AnnotatedOperation> aops; in TEST_F() local [all …]
|
D | payload_file.cc | 88 const vector<AnnotatedOperation>& aops) { in AddPartition() argument 98 part.aops = aops; in AddPartition() 125 for (const auto& aop : part.aops) { in WritePayload() 168 for (const AnnotatedOperation& aop : part.aops) { in WritePayload() 178 for (const AnnotatedOperation& aop : part.aops) in WritePayload() 185 for (const AnnotatedOperation& aop : part.aops) in WritePayload() 317 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs() 351 for (const AnnotatedOperation& aop : part.aops) { in ReportPayloadUsage() 357 total_op += part.aops.size(); in ReportPayloadUsage()
|
D | payload_file.h | 46 const 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 | delta_diff_utils.cc | 274 bool MergeOperation(vector<AnnotatedOperation>* aops); 334 bool FileDeltaProcessor::MergeOperation(vector<AnnotatedOperation>* aops) { in MergeOperation() argument 337 aops->reserve(aops->size() + file_aops_.size()); in MergeOperation() 338 std::move(file_aops_.begin(), file_aops_.end(), std::back_inserter(*aops)); in MergeOperation() 369 bool DeltaReadPartition(vector<AnnotatedOperation>* aops, in DeltaReadPartition() argument 392 TEST_AND_RETURN_FALSE(DeltaMovedAndZeroBlocks(aops, in DeltaReadPartition() 517 TEST_AND_RETURN_FALSE(processor.MergeOperation(aops)); in DeltaReadPartition() 523 bool DeltaMovedAndZeroBlocks(vector<AnnotatedOperation>* aops, in DeltaMovedAndZeroBlocks() argument 615 size_t num_ops = aops->size(); in DeltaMovedAndZeroBlocks() 628 aops->push_back({.name = "<zeros>", .op = operation}); in DeltaMovedAndZeroBlocks() [all …]
|
D | full_update_generator.h | 44 std::vector<AnnotatedOperation>* aops) override;
|
D | operations_generator.h | 47 std::vector<AnnotatedOperation>* aops) = 0;
|
D | inplace_generator.h | 218 std::vector<AnnotatedOperation>* aops); 232 std::vector<AnnotatedOperation>* aops) override;
|
D | inplace_generator.cc | 722 vector<AnnotatedOperation>* aops) { in ResolveReadAfterWriteDependencies() argument 727 for (const auto& aop : *aops) { in ResolveReadAfterWriteDependencies() 755 aops->clear(); in ResolveReadAfterWriteDependencies() 756 aops->reserve(final_order.size()); in ResolveReadAfterWriteDependencies() 759 aops->push_back(vertex.aop); in ResolveReadAfterWriteDependencies() 768 vector<AnnotatedOperation>* aops) { in GenerateOperations() argument 783 TEST_AND_RETURN_FALSE(diff_utils::DeltaReadPartition(aops, in GenerateOperations() 793 old_part, new_part, partition_size, config.block_size, blob_file, aops)); in GenerateOperations()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 179 const vector<AnnotatedOperation>& aops, in GeneratePayload() argument 183 aops, in GeneratePayload() 191 const vector<AnnotatedOperation>& aops, in GeneratePayload() argument 222 payload.AddPartition(*old_part, new_part, aops); in GeneratePayload() 448 vector<AnnotatedOperation> aops; in TEST_F() local 454 aops.push_back(aop); in TEST_F() 457 aops, in TEST_F() 470 vector<AnnotatedOperation> aops; in TEST_F() local 476 aops.push_back(aop); in TEST_F() 479 aops, in TEST_F() [all …]
|