Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
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 <<()
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()
Dab_generator.cc92 for (const AnnotatedOperation& aop : *aops) { in FragmentOperations()
94 if (aop.op.dst_extents_size() > 1) { in FragmentOperations()
95 if (aop.op.type() == InstallOperation::SOURCE_COPY) { in FragmentOperations()
96 TEST_AND_RETURN_FALSE(SplitSourceCopy(aop, &fragmented_aops)); in FragmentOperations()
99 if (IsAReplaceOperation(aop.op.type())) { in FragmentOperations()
101 version, aop, target_part_path, &fragmented_aops, blob_file)); in FragmentOperations()
105 fragmented_aops.push_back(aop); in FragmentOperations()
266 bool ABGenerator::AddDataAndSetType(AnnotatedOperation* aop, in AddDataAndSetType() argument
270 TEST_AND_RETURN_FALSE(IsAReplaceOperation(aop->op.type())); in AddDataAndSetType()
273 ExtentsToVector(aop->op.dst_extents(), &dst_extents); in AddDataAndSetType()
[all …]
Dpayload_file.cc119 for (const auto& aop : part.aops) { in WritePayload() local
120 if (!aop.op.has_data_offset()) in WritePayload()
122 if (aop.op.data_offset() != next_blob_offset) { in WritePayload()
123 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() in WritePayload()
126 next_blob_offset += aop.op.data_length(); in WritePayload()
159 for (const AnnotatedOperation& aop : part.aops) { in WritePayload() local
160 *partition->add_operations() = aop.op; in WritePayload()
282 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs()
283 if (!aop.op.has_data_offset()) in ReorderDataBlobs()
285 CHECK(aop.op.has_data_length()); in ReorderDataBlobs()
[all …]
Ddelta_diff_utils_unittest.cc186 for (const auto& aop : aops_) { in TEST_F() local
187 new_visited_blocks_.AddRepeatedExtents(aop.op.dst_extents()); in TEST_F()
407 const AnnotatedOperation& aop = aops_[i]; in TEST_F() local
408 EXPECT_EQ(InstallOperation::SOURCE_COPY, aop.op.type()); in TEST_F()
409 EXPECT_EQ(1, aop.op.src_extents_size()); in TEST_F()
410 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F()
411 EXPECT_EQ(1, aop.op.dst_extents_size()); in TEST_F()
412 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F()
443 const AnnotatedOperation& aop = aops_[0]; in TEST_F() local
444 EXPECT_EQ(InstallOperation::SOURCE_COPY, aop.op.type()); in TEST_F()
[all …]
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()
195 for (const AnnotatedOperation& aop : *aops) { in GenerateOperations()
196 if (!aop.op.has_type()) in GenerateOperations()
Dannotated_operation.h45 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop);
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 …]
Dab_generator_unittest.cc105 AnnotatedOperation aop; in TestSplitReplaceOrReplaceXzOperation() local
106 aop.op = op; in TestSplitReplaceOrReplaceXzOperation()
107 aop.name = "SplitTestOp"; in TestSplitReplaceOrReplaceXzOperation()
124 version, aop, part_file.path(), &result_ops, &blob_file)); in TestSplitReplaceOrReplaceXzOperation()
338 AnnotatedOperation aop; in TEST_F() local
339 aop.op = op; in TEST_F()
340 aop.name = "SplitSourceCopyTestOp"; in TEST_F()
342 EXPECT_TRUE(ABGenerator::SplitSourceCopy(aop, &result_ops)); in TEST_F()
Dab_generator.h125 static bool AddDataAndSetType(AnnotatedOperation* aop,
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc257 AnnotatedOperation aop; in GenerateSourceCopyPayload() local
258 *(aop.op.add_src_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload()
259 *(aop.op.add_dst_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload()
260 aop.op.set_type(InstallOperation::SOURCE_COPY); in GenerateSourceCopyPayload()
264 aop.op.set_src_sha256_hash(src_hash.data(), src_hash.size()); in GenerateSourceCopyPayload()
266 return GeneratePayload(brillo::Blob(), {aop}, false, old_part); in GenerateSourceCopyPayload()
458 AnnotatedOperation aop; in TEST_F() local
459 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
460 aop.op.set_data_offset(0); in TEST_F()
461 aop.op.set_data_length(expected_data.size()); in TEST_F()
[all …]