/system/update_engine/payload_generator/ |
D | full_update_generator_unittest.cc | 52 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 …]
|
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 | 225 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 …]
|
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 | merge_sequence_generator_unittest.cc | 54 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 …]
|
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_properties_unittest.cc | 83 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()
|
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() 192 for (const AnnotatedOperation& aop : *aops) { in GenerateOperations()
|
D | payload_file.cc | 97 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()
|
D | payload_file.h | 46 std::vector<AnnotatedOperation> aops, 94 std::vector<AnnotatedOperation> aops; member
|
D | full_update_generator.h | 44 std::vector<AnnotatedOperation>* aops) override;
|
D | operations_generator.h | 47 std::vector<AnnotatedOperation>* aops) = 0;
|
D | merge_sequence_generator.h | 52 const std::vector<AnnotatedOperation>& aops);
|
D | delta_diff_generator.cc | 77 std::vector<AnnotatedOperation>* aops, in PartitionProcessor() argument 85 aops_(aops), in PartitionProcessor()
|
D | merge_sequence_generator.cc | 79 const std::vector<AnnotatedOperation>& aops) { in Create() argument 81 for (const auto& aop : aops) { in Create()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 194 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 …]
|