/system/update_engine/payload_generator/ |
D | inplace_generator_unittest.cc | 57 out->aop.op.set_type(type); in GenVertex() 58 out->aop.name = path; in GenVertex() 59 StoreExtents(src_extents, out->aop.op.mutable_src_extents()); in GenVertex() 60 StoreExtents(dst_extents, out->aop.op.mutable_dst_extents()); in GenVertex() 147 InstallOperation& op = vertex.aop.op; in TEST_F() 179 graph.back().aop.op.set_type(InstallOperation::MOVE); in TEST_F() 185 StoreExtents(extents, graph.back().aop.op.mutable_src_extents()); in TEST_F() 195 StoreExtents(extents, graph.back().aop.op.mutable_dst_extents()); in TEST_F() 202 graph.back().aop.op.set_type(InstallOperation::MOVE); in TEST_F() 208 StoreExtents(extents, graph.back().aop.op.mutable_src_extents()); in TEST_F() [all …]
|
D | annotated_operation.cc | 53 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 <<()
|
D | payload_file_unittest.cc | 60 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()
|
D | payload_file.cc | 116 for (const auto& aop : part.aops) { in WritePayload() local 117 if (!aop.op.has_data_offset()) in WritePayload() 119 if (aop.op.data_offset() != next_blob_offset) { in WritePayload() 120 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() << " != " in WritePayload() 123 next_blob_offset += aop.op.data_length(); in WritePayload() 142 for (const AnnotatedOperation& aop : part.aops) { in WritePayload() local 143 *partition->add_operations() = aop.op; in WritePayload() 152 for (const AnnotatedOperation& aop : part.aops) in WritePayload() local 153 *manifest_.add_kernel_install_operations() = aop.op; in WritePayload() 159 for (const AnnotatedOperation& aop : part.aops) in WritePayload() local [all …]
|
D | ab_generator.cc | 90 for (const AnnotatedOperation& aop : *aops) { in FragmentOperations() 91 if (aop.op.type() == InstallOperation::SOURCE_COPY) { in FragmentOperations() 92 TEST_AND_RETURN_FALSE(SplitSourceCopy(aop, &fragmented_aops)); in FragmentOperations() 93 } else if (IsAReplaceOperation(aop.op.type())) { in FragmentOperations() 95 version, aop, target_part_path, &fragmented_aops, blob_file)); in FragmentOperations() 97 fragmented_aops.push_back(aop); in FragmentOperations() 270 bool ABGenerator::AddDataAndSetType(AnnotatedOperation* aop, in AddDataAndSetType() argument 274 TEST_AND_RETURN_FALSE(IsAReplaceOperation(aop->op.type())); in AddDataAndSetType() 276 brillo::Blob data(aop->op.dst_length()); in AddDataAndSetType() 278 ExtentsToVector(aop->op.dst_extents(), &dst_extents); in AddDataAndSetType() [all …]
|
D | inplace_generator.cc | 91 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 …]
|
D | full_update_generator.cc | 55 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()
|
D | delta_diff_utils_unittest.cc | 561 const AnnotatedOperation& aop = aops_[i]; in TEST_F() local 562 EXPECT_EQ(InstallOperation::SOURCE_COPY, aop.op.type()); in TEST_F() 563 EXPECT_EQ(1, aop.op.src_extents_size()); in TEST_F() 564 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F() 565 EXPECT_EQ(1, aop.op.dst_extents_size()); in TEST_F() 566 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F() 597 const AnnotatedOperation& aop = aops_[0]; in TEST_F() local 598 EXPECT_EQ(InstallOperation::SOURCE_COPY, aop.op.type()); in TEST_F() 599 EXPECT_EQ(5, aop.op.src_extents_size()); in TEST_F() 600 for (int i = 0; i < aop.op.src_extents_size(); ++i) { in TEST_F() [all …]
|
D | delta_diff_utils.cc | 390 AnnotatedOperation* aop = &aops->back(); in DeltaMovedAndZeroBlocks() local 391 aop->name = "<identical-blocks>"; in DeltaMovedAndZeroBlocks() 392 aop->op.set_type(version.OperationAllowed(InstallOperation::SOURCE_COPY) in DeltaMovedAndZeroBlocks() 406 aop->op.mutable_src_extents()); in DeltaMovedAndZeroBlocks() 408 Extent* op_dst_extent = aop->op.add_dst_extents(); in DeltaMovedAndZeroBlocks() 474 AnnotatedOperation aop; in DeltaReadFile() local 475 aop.name = name; in DeltaReadFile() 477 aop.name = base::StringPrintf("%s:%" PRIu64, in DeltaReadFile() 480 aop.op = operation; in DeltaReadFile() 483 TEST_AND_RETURN_FALSE(aop.SetOperationBlob(data, blob_file)); in DeltaReadFile() [all …]
|
D | graph_utils.cc | 129 << ": " << 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()
|
D | annotated_operation.h | 45 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop);
|
D | ab_generator_unittest.cc | 106 AnnotatedOperation aop; in TestSplitReplaceOrReplaceBzOperation() local 107 aop.op = op; in TestSplitReplaceOrReplaceBzOperation() 108 aop.name = "SplitTestOp"; in TestSplitReplaceOrReplaceBzOperation() 128 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()
|
D | graph_types.h | 75 AnnotatedOperation aop; member
|
D | ab_generator.h | 126 static bool AddDataAndSetType(AnnotatedOperation* aop,
|
D | cycle_breaker_unittest.cc | 41 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()
|
D | cycle_breaker.cc | 58 InstallOperation_Type op_type = graph[i].aop.op.type(); in BreakCycles()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 345 AnnotatedOperation aop; in TEST_F() local 346 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 347 aop.op.set_data_offset(0); in TEST_F() 348 aop.op.set_data_length(expected_data.size()); in TEST_F() 349 aop.op.set_type(InstallOperation::REPLACE); in TEST_F() 350 aops.push_back(aop); in TEST_F() 364 AnnotatedOperation aop; in TEST_F() local 365 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 366 aop.op.set_data_offset(0); in TEST_F() 367 aop.op.set_data_length(expected_data.size()); in TEST_F() [all …]
|