Home
last modified time | relevance | path

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

/aosp12/system/update_engine/payload_consumer/
H A Ddelta_performer_unittest.cc457 AnnotatedOperation aop; in TEST_F() local
462 aops.push_back(aop); in TEST_F()
479 AnnotatedOperation aop; in TEST_F() local
484 aops.push_back(aop); in TEST_F()
505 AnnotatedOperation aop; in TEST_F() local
510 aops.push_back(aop); in TEST_F()
525 AnnotatedOperation aop; in TEST_F() local
530 aops.push_back(aop); in TEST_F()
545 AnnotatedOperation aop; in TEST_F() local
1098 aops.push_back(aop); in TEST_F()
[all …]
H A Dpartition_writer_unittest.cc70 AnnotatedOperation aop; in GenerateSourceCopyOp() local
71 *(aop.op.add_src_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyOp()
72 *(aop.op.add_dst_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyOp()
73 aop.op.set_type(InstallOperation::SOURCE_COPY); in GenerateSourceCopyOp()
77 aop.op.set_src_sha256_hash(src_hash.data(), src_hash.size()); in GenerateSourceCopyOp()
79 return aop; in GenerateSourceCopyOp()
/aosp12/system/update_engine/payload_generator/
H A Dannotated_operation.cc53 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop) { in operator <<() argument
58 os << InstallOperationTypeName(aop.op.type()) << " " << aop.op.data_length(); in operator <<()
59 if (aop.op.data_length() > 0) in operator <<()
60 os << " @" << aop.op.data_offset(); in operator <<()
61 if (!aop.name.empty()) { in operator <<()
62 os << std::endl << " name: " << aop.name; in operator <<()
64 if (aop.op.src_extents_size() != 0) { in operator <<()
66 OutputExtents(&os, aop.op.src_extents()); in operator <<()
68 if (aop.op.dst_extents_size() != 0) { in operator <<()
70 OutputExtents(&os, aop.op.dst_extents()); in operator <<()
H A Dpayload_file_unittest.cc53 AnnotatedOperation aop; in TEST_F() local
54 aop.op.set_data_offset(8); in TEST_F()
55 aop.op.set_data_length(3); in TEST_F()
56 aops.push_back(aop); in TEST_F()
58 aop.op.set_data_offset(7); in TEST_F()
59 aop.op.set_data_length(1); in TEST_F()
60 aops.push_back(aop); in TEST_F()
63 aop.op.set_data_offset(0); in TEST_F()
64 aop.op.set_data_length(6); in TEST_F()
65 payload_.part_vec_[1].aops = {aop}; in TEST_F()
H A Dab_generator.cc92 for (const AnnotatedOperation& aop : *aops) { in FragmentOperations()
94 if (aop.op.dst_extents_size() > 1) { in FragmentOperations()
99 if (IsAReplaceOperation(aop.op.type())) { in FragmentOperations()
105 fragmented_aops.push_back(aop); in FragmentOperations()
285 if (aop->op.type() != op_type || aop->op.data_length() != blob.size()) { in AddDataAndSetType()
286 aop->op.set_type(op_type); in AddDataAndSetType()
287 aop->SetOperationBlob(blob, blob_file); in AddDataAndSetType()
295 for (AnnotatedOperation& aop : *aops) { in AddSourceHash()
296 if (aop.op.src_extents_size() == 0) in AddSourceHash()
303 aop.op.has_src_length() in AddSourceHash()
[all …]
H A Dpayload_file.cc130 for (const auto& aop : part.aops) { in WritePayload() local
131 if (!aop.op.has_data_offset()) in WritePayload()
137 next_blob_offset += aop.op.data_length(); in WritePayload()
177 *partition->add_operations() = aop.op; in WritePayload()
303 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs()
304 if (!aop.op.has_data_offset()) in ReorderDataBlobs()
306 CHECK(aop.op.has_data_length()); in ReorderDataBlobs()
307 brillo::Blob buf(aop.op.data_length()); in ReorderDataBlobs()
314 aop.op.set_data_offset(out_file_size); in ReorderDataBlobs()
339 part_prefix + aop.name, aop.op.type(), aop.op.data_length()); in ReportPayloadUsage()
[all …]
H A Ddelta_diff_utils_unittest.cc176 for (const auto& aop : aops_) { in TEST_F() local
397 const AnnotatedOperation& aop = aops_[i]; in TEST_F() local
399 EXPECT_EQ(1, aop.op.src_extents_size()); in TEST_F()
401 EXPECT_EQ(1, aop.op.dst_extents_size()); in TEST_F()
433 const AnnotatedOperation& aop = aops_[0]; in TEST_F() local
435 EXPECT_EQ(5, aop.op.src_extents_size()); in TEST_F()
440 EXPECT_EQ(1, aop.op.dst_extents_size()); in TEST_F()
496 EXPECT_EQ(0, aop.op.src_extents_size()); in TEST_F()
497 EXPECT_EQ(1, aop.op.dst_extents_size()); in TEST_F()
530 const AnnotatedOperation& aop = aops_[0]; in TEST_F() local
[all …]
H A Dfull_update_generator.cc55 AnnotatedOperation* aop) in ChunkProcessor() argument
61 aop_(aop) {} in ChunkProcessor()
166 AnnotatedOperation* aop = aops->data() + i; in GenerateOperations() local
167 aop->name = base::StringPrintf( in GenerateOperations()
169 Extent* dst_extent = aop->op.add_dst_extents(); in GenerateOperations()
179 aop); in GenerateOperations()
192 for (const AnnotatedOperation& aop : *aops) { in GenerateOperations()
193 if (!aop.op.has_type()) in GenerateOperations()
H A Dmerge_sequence_generator.cc81 for (const auto& aop : aops) { in Create() local
83 if (aop.op.type() != InstallOperation::SOURCE_COPY) { in Create()
86 if (aop.op.dst_extents().size() != 1) { in Create()
88 ExtentsToVector(aop.op.dst_extents(), &out_extents); in Create()
96 for (const auto& src_extent : aop.op.src_extents()) { in Create()
101 ExtentForRange(aop.op.dst_extents(0).start_block() + used_blocks, in Create()
114 if (used_blocks != aop.op.dst_extents(0).num_blocks()) { in Create()
117 << ", dst blocks " << aop.op.dst_extents(0).num_blocks(); in Create()
H A Ddelta_diff_utils.cc537 AnnotatedOperation* aop = &aops->back(); in DeltaMovedAndZeroBlocks() local
538 aop->name = "<identical-blocks>"; in DeltaMovedAndZeroBlocks()
539 aop->op.set_type(InstallOperation::SOURCE_COPY); in DeltaMovedAndZeroBlocks()
551 aop->op.mutable_src_extents()); in DeltaMovedAndZeroBlocks()
553 Extent* op_dst_extent = aop->op.add_dst_extents(); in DeltaMovedAndZeroBlocks()
622 AnnotatedOperation aop; in DeltaReadFile() local
623 aop.name = name; in DeltaReadFile()
625 aop.name = base::StringPrintf( in DeltaReadFile()
628 aop.op = operation; in DeltaReadFile()
631 TEST_AND_RETURN_FALSE(aop.SetOperationBlob(data, blob_file)); in DeltaReadFile()
[all …]
H A Dab_generator_unittest.cc104 AnnotatedOperation aop; in TestSplitReplaceOrReplaceXzOperation() local
105 aop.op = op; in TestSplitReplaceOrReplaceXzOperation()
106 aop.name = "SplitTestOp"; in TestSplitReplaceOrReplaceXzOperation()
122 version, aop, part_file.path(), &result_ops, &blob_file)); in TestSplitReplaceOrReplaceXzOperation()
334 AnnotatedOperation aop; in TEST_F() local
335 aop.op = op; in TEST_F()
336 aop.name = "SplitSourceCopyTestOp"; in TEST_F()
338 EXPECT_TRUE(ABGenerator::SplitSourceCopy(aop, &result_ops)); in TEST_F()
H A Dannotated_operation.h45 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop);
H A Ddelta_diff_generator.cc131 for (const AnnotatedOperation& aop : *aops_) { in Run()
132 *operations.Add() = aop.op; in Run()
H A Dab_generator.h125 static bool AddDataAndSetType(AnnotatedOperation* aop,
H A Dmerge_sequence_generator_unittest.cc84 AnnotatedOperation aop{"file1", op}; in TEST_F() local
85 auto generator = MergeSequenceGenerator::Create({aop}); in TEST_F()