Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dinplace_generator_unittest.cc58 out->aop.op.set_type(type); in GenVertex()
59 out->aop.name = path; in GenVertex()
60 StoreExtents(src_extents, out->aop.op.mutable_src_extents()); in GenVertex()
61 StoreExtents(dst_extents, out->aop.op.mutable_dst_extents()); in GenVertex()
126 for (const auto& aop : aops) { in DumpAopsOnFailure() local
127 LOG(INFO) << aop; in DumpAopsOnFailure()
158 InstallOperation& op = vertex.aop.op; in TEST_F()
190 graph.back().aop.op.set_type(InstallOperation::MOVE); in TEST_F()
196 StoreExtents(extents, graph.back().aop.op.mutable_src_extents()); in TEST_F()
206 StoreExtents(extents, graph.back().aop.op.mutable_dst_extents()); in TEST_F()
[all …]
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.cc60 AnnotatedOperation aop; in TEST_F() local
61 aop.op.set_data_offset(8); in TEST_F()
62 aop.op.set_data_length(3); in TEST_F()
63 aops.push_back(aop); in TEST_F()
65 aop.op.set_data_offset(7); in TEST_F()
66 aop.op.set_data_length(1); in TEST_F()
67 aops.push_back(aop); in TEST_F()
70 aop.op.set_data_offset(0); in TEST_F()
71 aop.op.set_data_length(6); in TEST_F()
72 payload_.part_vec_[1].aops = {aop}; in TEST_F()
Dpayload_file.cc120 for (const auto& aop : part.aops) { in WritePayload() local
121 if (!aop.op.has_data_offset()) in WritePayload()
123 if (aop.op.data_offset() != next_blob_offset) { in WritePayload()
124 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() << " != " in WritePayload()
127 next_blob_offset += aop.op.data_length(); in WritePayload()
147 for (const AnnotatedOperation& aop : part.aops) { in WritePayload() local
148 *partition->add_operations() = aop.op; in WritePayload()
157 for (const AnnotatedOperation& aop : part.aops) in WritePayload() local
158 *manifest_.add_kernel_install_operations() = aop.op; in WritePayload()
164 for (const AnnotatedOperation& aop : part.aops) in WritePayload() local
[all …]
Dab_generator.cc91 for (const AnnotatedOperation& aop : *aops) { in FragmentOperations()
93 if (aop.op.dst_extents_size() > 1) { in FragmentOperations()
94 if (aop.op.type() == InstallOperation::SOURCE_COPY) { in FragmentOperations()
95 TEST_AND_RETURN_FALSE(SplitSourceCopy(aop, &fragmented_aops)); in FragmentOperations()
98 if (IsAReplaceOperation(aop.op.type())) { in FragmentOperations()
100 version, aop, target_part_path, &fragmented_aops, blob_file)); in FragmentOperations()
104 fragmented_aops.push_back(aop); in FragmentOperations()
267 bool ABGenerator::AddDataAndSetType(AnnotatedOperation* aop, in AddDataAndSetType() argument
271 TEST_AND_RETURN_FALSE(IsAReplaceOperation(aop->op.type())); in AddDataAndSetType()
274 ExtentsToVector(aop->op.dst_extents(), &dst_extents); in AddDataAndSetType()
[all …]
Dfull_update_generator.cc55 AnnotatedOperation* aop) in ChunkProcessor() argument
61 aop_(aop) {} in ChunkProcessor()
169 AnnotatedOperation* aop = aops->data() + i; in GenerateOperations() local
170 aop->name = base::StringPrintf("<%s-operation-%" PRIuS ">", in GenerateOperations()
172 Extent* dst_extent = aop->op.add_dst_extents(); in GenerateOperations()
182 aop); in GenerateOperations()
198 for (const AnnotatedOperation& aop : *aops) { in GenerateOperations()
199 if (!aop.op.has_type()) in GenerateOperations()
Dinplace_generator.cc91 return diff_utils::CompareAopsByDestination((*graph_)[a].aop, in operator ()()
92 (*graph_)[b].aop); in operator ()()
103 CHECK(v.aop.op.has_type()); in CheckGraph()
113 ExpandExtents(vertex->aop.op.src_extents()); in SubstituteBlocks()
134 vertex->aop.op.clear_src_extents(); in SubstituteBlocks()
136 StoreExtents(new_extents, vertex->aop.op.mutable_src_extents()); in SubstituteBlocks()
175 graph->back().aop.op.set_type(InstallOperation::MOVE); in CutEdges()
177 graph->back().aop.op.mutable_src_extents()); in CutEdges()
179 graph->back().aop.op.mutable_dst_extents()); in CutEdges()
180 graph->back().aop.op.set_src_length( in CutEdges()
[all …]
Ddelta_diff_utils_unittest.cc573 const AnnotatedOperation& aop = aops_[i]; in TEST_F() local
574 EXPECT_EQ(InstallOperation::SOURCE_COPY, aop.op.type()); in TEST_F()
575 EXPECT_EQ(1, aop.op.src_extents_size()); in TEST_F()
576 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F()
577 EXPECT_EQ(1, aop.op.dst_extents_size()); in TEST_F()
578 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F()
609 const AnnotatedOperation& aop = aops_[0]; in TEST_F() local
610 EXPECT_EQ(InstallOperation::SOURCE_COPY, aop.op.type()); in TEST_F()
611 EXPECT_EQ(5, aop.op.src_extents_size()); in TEST_F()
612 for (int i = 0; i < aop.op.src_extents_size(); ++i) { in TEST_F()
[all …]
Dgraph_utils.cc129 << ": " << graph[i].aop.name in DumpGraph()
130 << ": " << InstallOperationTypeName(graph[i].aop.op.type()); in DumpGraph()
132 DumpExtents(graph[i].aop.op.src_extents(), 4); in DumpGraph()
134 DumpExtents(graph[i].aop.op.dst_extents(), 4); in DumpGraph()
Ddelta_diff_utils.cc514 AnnotatedOperation* aop = &aops->back(); in DeltaMovedAndZeroBlocks() local
515 aop->name = "<identical-blocks>"; in DeltaMovedAndZeroBlocks()
516 aop->op.set_type(version.OperationAllowed(InstallOperation::SOURCE_COPY) in DeltaMovedAndZeroBlocks()
530 aop->op.mutable_src_extents()); in DeltaMovedAndZeroBlocks()
532 Extent* op_dst_extent = aop->op.add_dst_extents(); in DeltaMovedAndZeroBlocks()
602 AnnotatedOperation aop; in DeltaReadFile() local
603 aop.name = name; in DeltaReadFile()
605 aop.name = base::StringPrintf("%s:%" PRIu64, in DeltaReadFile()
608 aop.op = operation; in DeltaReadFile()
611 TEST_AND_RETURN_FALSE(aop.SetOperationBlob(data, blob_file)); in DeltaReadFile()
[all …]
Dannotated_operation.h45 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop);
Dab_generator_unittest.cc107 AnnotatedOperation aop; in TestSplitReplaceOrReplaceBzOperation() local
108 aop.op = op; in TestSplitReplaceOrReplaceBzOperation()
109 aop.name = "SplitTestOp"; in TestSplitReplaceOrReplaceBzOperation()
129 version, aop, part_path, &result_ops, &blob_file)); in TestSplitReplaceOrReplaceBzOperation()
347 AnnotatedOperation aop; in TEST_F() local
348 aop.op = op; in TEST_F()
349 aop.name = "SplitSourceCopyTestOp"; in TEST_F()
351 EXPECT_TRUE(ABGenerator::SplitSourceCopy(aop, &result_ops)); in TEST_F()
Dgraph_types.h75 AnnotatedOperation aop; member
Dab_generator.h126 static bool AddDataAndSetType(AnnotatedOperation* aop,
Dcycle_breaker_unittest.cc41 vertex.aop.op.set_type(InstallOperation::MOVE); in SetOpForNodes()
264 graph[n_a].aop.op.set_type(InstallOperation::REPLACE_BZ); in TEST()
265 graph[n_c].aop.op.set_type(InstallOperation::REPLACE); in TEST()
Dcycle_breaker.cc58 InstallOperation_Type op_type = graph[i].aop.op.type(); in BreakCycles()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc402 AnnotatedOperation aop; in TEST_F() local
403 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
404 aop.op.set_data_offset(0); in TEST_F()
405 aop.op.set_data_length(expected_data.size()); in TEST_F()
406 aop.op.set_type(InstallOperation::REPLACE); in TEST_F()
407 aops.push_back(aop); in TEST_F()
421 AnnotatedOperation aop; in TEST_F() local
422 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
423 aop.op.set_data_offset(0); in TEST_F()
424 aop.op.set_data_length(expected_data.size()); in TEST_F()
[all …]