/system/update_engine/payload_generator/ |
D | ab_generator.cc | 119 const Extent& dst_ext = original_op.dst_extents(i); in SplitSourceCopy() 172 const Extent& dst_ext = original_op.dst_extents(i); in SplitAReplaceOp() 217 last_aop.op.dst_extents(last_dst_idx).start_block() + in MergeOperations() 218 last_aop.op.dst_extents(last_dst_idx).num_blocks(); in MergeOperations() 219 uint32_t curr_start_block = curr_aop.op.dst_extents(0).start_block(); in MergeOperations() 221 last_aop.op.dst_extents(last_dst_idx).num_blocks() + in MergeOperations() 222 curr_aop.op.dst_extents(0).num_blocks(); in MergeOperations() 242 curr_aop.op.dst_extents()); in MergeOperations() 272 vector<Extent> dst_extents; in AddDataAndSetType() local 273 ExtentsToVector(aop->op.dst_extents(), &dst_extents); in AddDataAndSetType() [all …]
|
D | full_update_generator_unittest.cc | 88 aops[i].op.dst_extents(0).start_block()) in TEST_F() 91 aops[i].op.dst_extents(0).num_blocks()); in TEST_F() 116 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F() 118 utils::BlocksInExtents(aops[1].op.dst_extents())); in TEST_F() 138 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
|
D | ab_generator_unittest.cc | 137 EXPECT_EQ(1, first_op.dst_extents().size()); in TestSplitReplaceOrReplaceXzOperation() 139 first_op.dst_extents(0), op_ex1_start_block, op_ex1_num_blocks)); in TestSplitReplaceOrReplaceXzOperation() 167 EXPECT_EQ(1, second_op.dst_extents().size()); in TestSplitReplaceOrReplaceXzOperation() 169 second_op.dst_extents(0), op_ex2_start_block, op_ex2_num_blocks)); in TestSplitReplaceOrReplaceXzOperation() 297 EXPECT_EQ(1, new_op.dst_extents().size()); in TestMergeReplaceOrReplaceXzOperations() 298 EXPECT_TRUE(ExtentEquals(new_op.dst_extents(0), 0, total_op_num_blocks)); in TestMergeReplaceOrReplaceXzOperations() 353 EXPECT_EQ(1, first_op.dst_extents().size()); in TEST_F() 354 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F() 355 EXPECT_EQ(2U, first_op.dst_extents(0).num_blocks()); in TEST_F() 369 EXPECT_EQ(1, second_op.dst_extents().size()); in TEST_F() [all …]
|
D | delta_diff_utils.cc | 726 vector<Extent> dst_extents = new_extents; in ReadExtentsToDiff() local 808 dst_extents, new_deflates, &dst_deflates)); in ReadExtentsToDiff() 868 StoreExtents(dst_extents, operation.mutable_dst_extents()); in ReadExtentsToDiff() 902 if (!first_aop.op.dst_extents().size() || !second_aop.op.dst_extents().size()) in CompareAopsByDestination() 903 return ((!first_aop.op.dst_extents().size()) < in CompareAopsByDestination() 904 (!second_aop.op.dst_extents().size())); in CompareAopsByDestination() 905 uint32_t first_dst_start = first_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination() 906 uint32_t second_dst_start = second_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination()
|
D | delta_diff_utils_unittest.cc | 187 new_visited_blocks_.AddRepeatedExtents(aop.op.dst_extents()); in TEST_F() 243 EXPECT_EQ(1U, utils::BlocksInExtents(op.dst_extents())); in TEST_F() 412 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F() 451 EXPECT_EQ(ExtentForRange(0, 50), aop.op.dst_extents(0)); in TEST_F() 508 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F() 547 EXPECT_EQ(ExtentForRange(0, permutation.size()), aop.op.dst_extents(0)); in TEST_F()
|
D | annotated_operation.cc | 70 OutputExtents(&os, aop.op.dst_extents()); in operator <<()
|
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.cpp | 74 const auto& dst_extents = operation.dst_extents(); in OptimizeSourceCopyOperation() local 77 if (src_extents.empty() && dst_extents.empty()) { in OptimizeSourceCopyOperation() 82 auto d_it = dst_extents.begin(); in OptimizeSourceCopyOperation() 87 while (s_it != src_extents.end() || d_it != dst_extents.end()) { in OptimizeSourceCopyOperation() 88 if (s_it == src_extents.end() || d_it == dst_extents.end()) { in OptimizeSourceCopyOperation() 121 while (d_it != dst_extents.end() && d_offset >= d_it->num_blocks()) { in OptimizeSourceCopyOperation() 163 for (const auto& de : written_op->dst_extents()) { in GetCowSize()
|
D | partition_cow_creator_test.cpp | 299 EXPECT_THAT(actual_output.dst_extents(), in TEST_P() 300 Pointwise(ExtentEqual(), GetParam().expected_output->dst_extents())); in TEST_P()
|
/system/core/fs_mgr/libsnapshot/corpus/ |
D | launch_device.txt | 55 dst_extents { 68 dst_extents { 81 dst_extents {
|
/system/update_engine/scripts/update_payload/ |
D | test_utils.py | 199 dst_extents=None, dst_length=None, data_sha256_hash=None): argument 217 self._AddExtents(op.dst_extents, dst_extents) 288 src_length=None, dst_extents=None, dst_length=None, argument 314 src_length=src_length, dst_extents=dst_extents,
|
D | applier.py | 258 for ex, ex_name in common.ExtentIter(op.dst_extents, 310 for ex, ex_name in common.ExtentIter(op.dst_extents, base_name): 338 _WriteExtents(new_part_file, in_data, op.dst_extents, block_size, 393 op.dst_extents, block_size, '%s.dst_extents' % op_name, 395 self._BytesInExtents(op.dst_extents, "%s.dst_extents")) 474 _WriteExtents(new_part_file, out_data, op.dst_extents, block_size,
|
D | checker_unittest.py | 464 dst_extents=[(16, 496), (0, 16)]) 467 dst_extents=[(8, 8), (0, 8)]) 831 self.AddToMessage(op.dst_extents, 834 self.AddToMessage(op.dst_extents, 903 dst_extents= 942 dst_extents=[(0, rootfs_part_size // block_size)], 1044 dst_extents=[(0, rootfs_op_size // block_size)], 1055 dst_extents=[(0, kernel_op_size // block_size)],
|
D | checker.py | 909 op.dst_extents, new_usable_size, new_block_counters, 919 if not op.dst_extents:
|
/system/update_engine/scripts/ |
D | payload_info.py | 157 if op.dst_extents: 158 _DisplayExtents(op.dst_extents, 'Destination') 174 written_blocks += sum([ext.num_blocks for ext in curr_op.dst_extents]) 175 for curr_ext in curr_op.dst_extents:
|
D | payload_info_unittest.py | 61 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument 63 self.dst_extents = dst_extents
|
/system/update_engine/ |
D | update_metadata.proto | 63 // - REPLACE: Replace the dst_extents on the drive with the attached data, 66 // dst_extents on the drive, zero padding to block size. 67 // - MOVE: Copy the data in src_extents to dst_extents. Extents may overlap, 71 // dst_extents in the new partition. There's no overlapping of data because 74 // bspatch with attached data, write new data to dst_extents, zero padding 77 // bspatch with the attached data and write the new data to dst_extents in the 79 // - ZERO: Write zeros to the destination dst_extents. 80 // - DISCARD: Discard the destination dst_extents blocks on the physical medium. 82 // - REPLACE_XZ: Replace the dst_extents with the contents of the attached 86 // puffpatch with the attached data and write the new data to dst_extents in [all …]
|
D | dynamic_partition_control_android_unittest.cc | 696 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 721 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 737 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 753 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 776 EXPECT_EQ(2u, optimized.dst_extents(0).start_block()); in TEST_P() 777 EXPECT_EQ(1u, optimized.dst_extents(0).num_blocks()); in TEST_P() 780 EXPECT_EQ(5u, optimized.dst_extents(1).start_block()); in TEST_P() 781 EXPECT_EQ(2u, optimized.dst_extents(1).num_blocks()); in TEST_P()
|
/system/update_engine/update_engine/ |
D | update_metadata.proto | 63 // - REPLACE: Replace the dst_extents on the drive with the attached data, 66 // dst_extents on the drive, zero padding to block size. 67 // - MOVE: Copy the data in src_extents to dst_extents. Extents may overlap, 71 // dst_extents in the new partition. There's no overlapping of data because 74 // bspatch with attached data, write new data to dst_extents, zero padding 77 // bspatch with the attached data and write the new data to dst_extents in the 79 // - ZERO: Write zeros to the destination dst_extents. 80 // - DISCARD: Discard the destination dst_extents blocks on the physical medium. 82 // - REPLACE_XZ: Replace the dst_extents with the contents of the attached 86 // puffpatch with the attached data and write the new data to dst_extents in [all …]
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android_unittest.cc | 93 ASSERT_EQ(0u, operation.dst_extents(0).start_block()); in CheckPartitionUpdate() 94 ASSERT_EQ(content.size() / 4096, operation.dst_extents(0).num_blocks()); in CheckPartitionUpdate()
|
D | delta_performer.cc | 1017 writer->Init(target_fd_, operation.dst_extents(), block_size_)); in PerformReplaceOperation() 1044 for (const Extent& extent : operation.dst_extents()) { in PerformZeroOrDiscardOperation() 1142 optimized.dst_extents(), in PerformSourceCopyOperation() 1149 operation.dst_extents(), in PerformSourceCopyOperation() 1176 optimized.dst_extents(), in PerformSourceCopyOperation() 1184 operation.dst_extents(), in PerformSourceCopyOperation() 1204 optimized.dst_extents(), in PerformSourceCopyOperation() 1212 optimized.dst_extents(), in PerformSourceCopyOperation() 1382 writer->Init(target_fd_, operation.dst_extents(), block_size_)); in PerformSourceBsdiffOperation() 1385 utils::BlocksInExtents(operation.dst_extents()) * block_size_); in PerformSourceBsdiffOperation() [all …]
|
/system/core/fs_mgr/libsnapshot/update_engine/ |
D | update_metadata.proto | 56 repeated Extent dst_extents = 6; field
|