/system/update_engine/payload_generator/ |
D | delta_diff_utils_unittest.cc | 180 for (const auto& aop : aops_) { in TEST_F() local 181 new_visited_blocks_.AddRepeatedExtents(aop.op.dst_extents()); in TEST_F() 214 AnnotatedOperation aop; in TEST_F() local 215 InstallOperation& op = aop.op; in TEST_F() 226 &aop)); in TEST_F() 258 AnnotatedOperation aop; in TEST_F() local 269 &aop)); in TEST_F() 270 InstallOperation& op = aop.op; in TEST_F() 294 AnnotatedOperation aop; in TEST_F() local 305 &aop)); 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 | 53 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()
|
D | ab_generator.cc | 91 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() 265 bool ABGenerator::AddDataAndSetType(AnnotatedOperation* aop, in AddDataAndSetType() argument 269 TEST_AND_RETURN_FALSE(IsAReplaceOperation(aop->op.type())); in AddDataAndSetType() 272 ExtentsToVector(aop->op.dst_extents(), &dst_extents); in AddDataAndSetType() [all …]
|
D | payload_file.cc | 132 for (const auto& aop : part.aops) { in WritePayload() local 133 if (!aop.op.has_data_offset()) in WritePayload() 135 if (aop.op.data_offset() != next_blob_offset) { in WritePayload() 136 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() in WritePayload() 139 next_blob_offset += aop.op.data_length(); in WritePayload() 181 for (const AnnotatedOperation& aop : part.aops) { in WritePayload() local 182 *partition->add_operations() = aop.op; in WritePayload() 325 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs() 326 if (!aop.op.has_data_offset()) in ReorderDataBlobs() 328 CHECK(aop.op.has_data_length()); in ReorderDataBlobs() [all …]
|
D | full_update_generator.cc | 55 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()
|
D | merge_sequence_generator_unittest.cc | 91 AnnotatedOperation aop{"file1", op, {}}; in TEST_F() local 92 auto generator = MergeSequenceGenerator::Create({aop}); in TEST_F() 271 auto& aop = aops.emplace_back(); in TEST_F() local 272 aop.op.set_type(InstallOperation::SOURCE_BSDIFF); in TEST_F() 273 *aop.op.mutable_src_extents()->Add() = ExtentForRange(10, 5); in TEST_F() 274 *aop.op.mutable_dst_extents()->Add() = ExtentForRange(20, 5); in TEST_F() 275 auto& xor_map = aop.xor_ops; in TEST_F() 301 auto& aop = aops.emplace_back(); in TEST_F() local 302 aop.op.set_type(InstallOperation::SOURCE_BSDIFF); in TEST_F() 303 *aop.op.mutable_src_extents()->Add() = ExtentForRange(10, 10); in TEST_F() [all …]
|
D | delta_diff_utils.cc | 193 bool BestDiffGenerator::GenerateBestDiffOperation(AnnotatedOperation* aop, in GenerateBestDiffOperation() argument 201 return GenerateBestDiffOperation(diff_candidates, aop, data_blob); in GenerateBestDiffOperation() 212 AnnotatedOperation* aop, in GenerateBestDiffOperation() argument 214 CHECK(aop); in GenerateBestDiffOperation() 227 aop->op.set_type(op_type); in GenerateBestDiffOperation() 246 LOG(INFO) << op_type << " ignored, file " << aop->name in GenerateBestDiffOperation() 261 TryBsdiffAndUpdateOperation(op_type, aop, data_blob)); in GenerateBestDiffOperation() 264 TEST_AND_RETURN_FALSE(TryPuffdiffAndUpdateOperation(aop, data_blob)); in GenerateBestDiffOperation() 267 TEST_AND_RETURN_FALSE(TryZucchiniAndUpdateOperation(aop, data_blob)); in GenerateBestDiffOperation() 279 AnnotatedOperation* aop, in TryBsdiffAndUpdateOperation() argument [all …]
|
D | merge_sequence_generator.cc | 112 const AnnotatedOperation& aop) { in ProcessXorOps() argument 114 sequence->insert(sequence->end(), aop.xor_ops.begin(), aop.xor_ops.end()); in ProcessXorOps() 139 const AnnotatedOperation& aop) { in ProcessCopyOps() argument 140 CHECK_EQ(GetCowOpType(aop.op.type()), CowMergeOperation::COW_COPY); in ProcessCopyOps() 141 if (aop.op.dst_extents().size() != 1) { in ProcessCopyOps() 143 ExtentsToVector(aop.op.dst_extents(), &out_extents); in ProcessCopyOps() 151 for (const auto& src_extent : aop.op.src_extents()) { in ProcessCopyOps() 156 ExtentForRange(aop.op.dst_extents(0).start_block() + used_blocks, in ProcessCopyOps() 169 if (used_blocks != aop.op.dst_extents(0).num_blocks()) { in ProcessCopyOps() 172 << ", dst blocks " << aop.op.dst_extents(0).num_blocks(); in ProcessCopyOps() [all …]
|
D | delta_diff_utils.h | 156 bool PopulateXorOps(AnnotatedOperation* aop, const uint8_t* data, size_t size); 158 inline bool PopulateXorOps(AnnotatedOperation* aop, in PopulateXorOps() argument 160 return PopulateXorOps(aop, patch_data.data(), patch_data.size()); in PopulateXorOps() 214 bool GenerateBestDiffOperation(AnnotatedOperation* aop, 220 AnnotatedOperation* aop, 226 AnnotatedOperation* aop, 228 bool TryPuffdiffAndUpdateOperation(AnnotatedOperation* aop, 230 bool TryZucchiniAndUpdateOperation(AnnotatedOperation* aop,
|
D | annotated_operation.h | 51 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop);
|
D | ab_generator_unittest.cc | 104 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()
|
D | ab_generator.h | 125 static bool AddDataAndSetType(AnnotatedOperation* aop,
|
D | delta_diff_generator.cc | 127 for (const AnnotatedOperation& aop : *aops_) { in Run() 128 *operations.Add() = aop.op; in Run()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 260 AnnotatedOperation aop; in GenerateSourceCopyPayload() local 261 *(aop.op.add_src_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload() 262 *(aop.op.add_dst_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload() 263 aop.op.set_type(InstallOperation::SOURCE_COPY); in GenerateSourceCopyPayload() 267 aop.op.set_src_sha256_hash(src_hash.data(), src_hash.size()); in GenerateSourceCopyPayload() 269 return GeneratePayload(brillo::Blob(), {aop}, false, old_part); in GenerateSourceCopyPayload() 453 AnnotatedOperation aop; in TEST_F() local 454 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 455 aop.op.set_data_offset(0); in TEST_F() 456 aop.op.set_data_length(expected_data.size()); in TEST_F() [all …]
|
D | partition_writer_unittest.cc | 70 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()
|
D | install_operation_executor_unittest.cc | 248 AnnotatedOperation aop; in TEST_F() local 250 aop.name = "test.so"; in TEST_F() 252 {{InstallOperation::ZUCCHINI, 1024 * BLOCK_SIZE}}, &aop, &patch_data)); in TEST_F() 253 ASSERT_EQ(InstallOperation::ZUCCHINI, aop.op.type()); in TEST_F()
|