/system/update_engine/payload_generator/ |
payload_file_unittest.cc | 59 vector<AnnotatedOperation> aops; local 63 aops.push_back(aop); 67 aops.push_back(aop); 68 payload_.part_vec_[0].aops = aops; 72 payload_.part_vec_[1].aops = {aop}; 76 const vector<AnnotatedOperation>& part0_aops = payload_.part_vec_[0].aops; 77 const vector<AnnotatedOperation>& part1_aops = payload_.part_vec_[1].aops;
|
full_update_generator_unittest.cc | 57 vector<AnnotatedOperation> aops; member in class:chromeos_update_engine::FullUpdateGeneratorTest 84 &aops)); 86 EXPECT_EQ(new_part_chunks, static_cast<int64_t>(aops.size())); 88 EXPECT_EQ(1, aops[i].op.dst_extents_size()); 91 aops[i].op.dst_extents(0).start_block()) 94 aops[i].op.dst_extents(0).num_blocks()); 95 if (aops[i].op.type() != InstallOperation::REPLACE) { 96 EXPECT_EQ(InstallOperation::REPLACE_BZ, aops[i].op.type()); 115 &aops)); 117 EXPECT_EQ(2U, aops.size()) [all...] |
ab_generator.h | 48 // order. The operations are stored in |aops| and should be executed in that 56 std::vector<AnnotatedOperation>* aops) override; 58 // Split the operations in the vector of AnnotatedOperations |aops| 60 // |aops| with the new list of operations. All kinds of operations are 63 // destination extents refer to. The blobs of the operations in |aops| should 66 std::vector<AnnotatedOperation>* aops, 70 // Takes a vector of AnnotatedOperations |aops| and sorts them by the first 71 // start block in their destination extents. Sets |aops| to a vector of the 74 std::vector<AnnotatedOperation>* aops); 98 // Takes a sorted (by first destination extent) vector of operations |aops| [all...] |
full_update_generator.h | 38 // Populates |aops|, with data about the update operations, and writes 45 std::vector<AnnotatedOperation>* aops) override;
|
operations_generator.h | 35 // |old_part| to |new_part| and stores the generated operations in |aops|. 42 // order as they appear in the |aops|. 48 std::vector<AnnotatedOperation>* aops) = 0;
|
ab_generator.cc | 42 vector<AnnotatedOperation>* aops) { 49 aops->clear(); 50 TEST_AND_RETURN_FALSE(diff_utils::DeltaReadPartition(aops, 60 FragmentOperations(config.version, aops, new_part.path, blob_file)); 61 SortOperationsByDestination(aops); 72 aops, config.version, merge_chunk_blocks, new_part.path, blob_file)); 75 TEST_AND_RETURN_FALSE(AddSourceHash(aops, old_part.path)); 81 vector<AnnotatedOperation>* aops) { 82 sort(aops->begin(), aops->end(), diff_utils::CompareAopsByDestination) [all...] |
payload_file.h | 42 // operations and partition info. The operations in |aops| 46 const std::vector<AnnotatedOperation>& aops); 92 std::vector<AnnotatedOperation> aops; member in struct:chromeos_update_engine::PayloadFile::Partition
|
ab_generator_unittest.cc | 231 vector<AnnotatedOperation> aops; local 254 aops.push_back(first_aop); 277 aops.push_back(second_aop); 296 ABGenerator::MergeOperations(&aops, version, 5, part_path, &blob_file)); 301 EXPECT_EQ(1U, aops.size()); 302 InstallOperation new_op = aops[0].op; 308 EXPECT_EQ("first,second", aops[0].name); 412 vector<AnnotatedOperation> aops; local 420 aops.push_back(first_aop); 427 aops.push_back(second_aop) 445 vector<AnnotatedOperation> aops; local 519 vector<AnnotatedOperation> aops; local 564 vector<AnnotatedOperation> aops; local [all...] |
delta_diff_utils.h | 34 // Create operations in |aops| to produce all the blocks in the |new_part| 44 bool DeltaReadPartition(std::vector<AnnotatedOperation>* aops, 52 // Create operations in |aops| for identical blocks that moved around in the old 62 bool DeltaMovedAndZeroBlocks(std::vector<AnnotatedOperation>* aops, 73 // For a given file |name| append operations to |aops| to produce it in the 78 // |old_extents|. The operations added to |aops| reference the data blob 80 bool DeltaReadFile(std::vector<AnnotatedOperation>* aops,
|
delta_diff_generator.cc | 109 vector<AnnotatedOperation> aops; local 115 &aops)); 120 diff_utils::FilterNoopOperations(&aops); 122 TEST_AND_RETURN_FALSE(payload.AddPartition(old_part, new_part, aops));
|
full_update_generator.cc | 121 vector<AnnotatedOperation>* aops) { 156 aops->resize(num_chunks); 169 AnnotatedOperation* aop = aops->data() + i; 198 for (const AnnotatedOperation& aop : *aops) {
|
payload_file.cc | 78 const vector<AnnotatedOperation>& aops) { 88 part.aops = aops; 116 for (const auto& aop : part.aops) { 143 for (const AnnotatedOperation& aop : part.aops) { 153 for (const AnnotatedOperation& aop : part.aops) 160 for (const AnnotatedOperation& aop : part.aops) 294 for (AnnotatedOperation& aop : part.aops) { 328 for (const AnnotatedOperation& aop : part.aops) {
|
inplace_generator_unittest.cc | 122 // Dump the list of operations |aops| in case of test failure. 123 void DumpAopsOnFailure(const vector<AnnotatedOperation>& aops) { 126 for (const auto& aop : aops) { 602 vector<AnnotatedOperation> aops; local 607 aops.emplace_back(); 608 aops.back().name = base::StringPrintf("<bz-block-0>"); 609 aops.back().op.set_type(InstallOperation::REPLACE_BZ); 610 StoreExtents({ExtentForRange(0, 1)}, aops.back().op.mutable_dst_extents()); 619 aops.push_back(aop); 634 vector<AnnotatedOperation> result_aops = aops; 673 vector<AnnotatedOperation> aops; local [all...] |
delta_diff_utils.cc | 174 bool DeltaReadPartition(vector<AnnotatedOperation>* aops, 185 aops, 242 TEST_AND_RETURN_FALSE(DeltaReadFile(aops, 272 TEST_AND_RETURN_FALSE(DeltaReadFile(aops, 285 bool DeltaMovedAndZeroBlocks(vector<AnnotatedOperation>* aops, 373 size_t num_ops = aops->size(); 376 TEST_AND_RETURN_FALSE(DeltaReadFile(aops, 386 LOG(INFO) << "Produced " << (aops->size() - num_ops) << " operations for " 390 num_ops = aops->size(); 401 aops->emplace_back() [all...] |
inplace_generator.h | 205 // Resolve all read-after-write dependencies in the operation list |aops|. The 206 // operations in |aops| are such that they generate the desired |new_part| if 212 // On success, stores the new operations in |aops| in the right order and 220 std::vector<AnnotatedOperation>* aops); 228 // The operations are stored in |aops|. All the offsets in the operations 235 std::vector<AnnotatedOperation>* aops) override;
|
inplace_generator.cc | 742 vector<AnnotatedOperation>* aops) { 747 for (const auto& aop : *aops) { 777 // Copy operations over to the |aops| vector in the final_order generated by 779 aops->clear(); 780 aops->reserve(final_order.size()); 783 aops->push_back(vertex.aop); 793 vector<AnnotatedOperation>* aops) { 806 TEST_AND_RETURN_FALSE(diff_utils::DeltaReadPartition(aops, 816 old_part, new_part, partition_size, config.block_size, blob_file, aops));
|
/system/update_engine/payload_consumer/ |
delta_performer_unittest.cc | 170 const vector<AnnotatedOperation>& aops, 172 return GeneratePayload(blob_data, aops, sign_payload, 178 const vector<AnnotatedOperation>& aops, 207 payload.AddPartition(old_part, new_part, aops); 394 vector<AnnotatedOperation> aops; local 400 aops.push_back(aop); 402 brillo::Blob payload_data = GeneratePayload(expected_data, aops, false, 413 vector<AnnotatedOperation> aops; local 419 aops.push_back(aop); 421 brillo::Blob payload_data = GeneratePayload(expected_data, aops, false 437 vector<AnnotatedOperation> aops; local 457 vector<AnnotatedOperation> aops; local 483 vector<AnnotatedOperation> aops = {aop}; local 504 vector<AnnotatedOperation> aops = {aop}; local [all...] |