/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 | 83 aops[i].op.dst_extents(0).start_block()) in TEST_F() 86 aops[i].op.dst_extents(0).num_blocks()); in TEST_F() 111 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F() 113 utils::BlocksInExtents(aops[1].op.dst_extents())); in TEST_F() 133 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
|
D | ab_generator_unittest.cc | 135 EXPECT_EQ(1, first_op.dst_extents().size()); in TestSplitReplaceOrReplaceXzOperation() 137 first_op.dst_extents(0), op_ex1_start_block, op_ex1_num_blocks)); in TestSplitReplaceOrReplaceXzOperation() 165 EXPECT_EQ(1, second_op.dst_extents().size()); in TestSplitReplaceOrReplaceXzOperation() 167 second_op.dst_extents(0), op_ex2_start_block, op_ex2_num_blocks)); in TestSplitReplaceOrReplaceXzOperation() 293 EXPECT_EQ(1, new_op.dst_extents().size()); in TestMergeReplaceOrReplaceXzOperations() 294 EXPECT_TRUE(ExtentEquals(new_op.dst_extents(0), 0, total_op_num_blocks)); in TestMergeReplaceOrReplaceXzOperations() 349 EXPECT_EQ(1, first_op.dst_extents().size()); in TEST_F() 350 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F() 351 EXPECT_EQ(2U, first_op.dst_extents(0).num_blocks()); in TEST_F() 365 EXPECT_EQ(1, second_op.dst_extents().size()); in TEST_F() [all …]
|
D | merge_sequence_generator.cc | 86 if (aop.op.dst_extents().size() != 1) { in Create() 88 ExtentsToVector(aop.op.dst_extents(), &out_extents); in Create() 101 ExtentForRange(aop.op.dst_extents(0).start_block() + used_blocks, in Create() 114 if (used_blocks != aop.op.dst_extents(0).num_blocks()) { in Create() 117 << ", dst blocks " << aop.op.dst_extents(0).num_blocks(); in Create()
|
D | delta_diff_utils.cc | 726 vector<Extent> dst_extents = new_extents; in ReadExtentsToDiff() local 808 dst_extents, new_deflates, &dst_deflates)); in ReadExtentsToDiff() 864 StoreExtents(dst_extents, operation.mutable_dst_extents()); in ReadExtentsToDiff() 898 if (!first_aop.op.dst_extents().size() || !second_aop.op.dst_extents().size()) in CompareAopsByDestination() 899 return ((!first_aop.op.dst_extents().size()) < in CompareAopsByDestination() 900 (!second_aop.op.dst_extents().size())); in CompareAopsByDestination() 901 uint32_t first_dst_start = first_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination() 902 uint32_t second_dst_start = second_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination()
|
D | cow_size_estimator.cc | 39 for (const auto& extent : op.dst_extents()) { in PerformReplaceOp() 60 for (const auto& extent : op.dst_extents()) { in PerformZeroOp()
|
D | delta_diff_utils_unittest.cc | 177 new_visited_blocks_.AddRepeatedExtents(aop.op.dst_extents()); in TEST_F() 233 EXPECT_EQ(1U, utils::BlocksInExtents(op.dst_extents())); in TEST_F() 402 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F() 441 EXPECT_EQ(ExtentForRange(0, 50), aop.op.dst_extents(0)); in TEST_F() 498 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F() 537 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 | 79 const auto& dst_extents = operation.dst_extents(); in OptimizeSourceCopyOperation() local 82 if (src_extents.empty() && dst_extents.empty()) { in OptimizeSourceCopyOperation() 87 auto d_it = dst_extents.begin(); in OptimizeSourceCopyOperation() 92 while (s_it != src_extents.end() || d_it != dst_extents.end()) { in OptimizeSourceCopyOperation() 93 if (s_it == src_extents.end() || d_it == dst_extents.end()) { in OptimizeSourceCopyOperation() 126 while (d_it != dst_extents.end() && d_offset >= d_it->num_blocks()) { in OptimizeSourceCopyOperation() 184 for (const auto& de : written_op->dst_extents()) { in GetCowSize()
|
D | make_cow_from_ab_ota.cpp | 237 for (const auto& extent : op.dst_extents()) { in ProcessZero() 369 std::vector<uint8_t> dest(SizeOfAllExtents(op.dst_extents())); in ProcessDiff() 400 for (const auto& extent : op.dst_extents()) { in ProcessDiff() 502 ExtentIter dst_blocks(op.dst_extents()); in ProcessCopy() 536 for (const auto& extent : op.dst_extents()) { in ProcessReplace() 597 for (const auto& extent : op.dst_extents()) { in ProcessReplace()
|
/system/update_engine/common/ |
D | cow_operation_convert.cc | 67 const auto& dst_extents = operation.dst_extents(); in ConvertToCowOperations() local 69 BlockIterator it2{dst_extents}; in ConvertToCowOperations()
|
D | cow_operation_convert_unittest.cc | 61 dst_extent_set.AddRepeatedExtents(op.dst_extents()); in VerifyCowMergeOp() 89 std::initializer_list<std::array<int, 2>> dst_extents) { in AddOperation() argument 95 for (const auto& extent : dst_extents) { in AddOperation()
|
/system/core/fs_mgr/libsnapshot/corpus/ |
D | launch_device.txt | 55 dst_extents { 68 dst_extents { 81 dst_extents {
|
/system/update_engine/payload_consumer/ |
D | partition_writer.cc | 329 TEST_AND_RETURN_FALSE(writer->Init(operation.dst_extents(), block_size_)); in PerformReplaceOperation() 347 for (const Extent& extent : operation.dst_extents()) { in PerformZeroOrDiscardOperation() 402 optimized.dst_extents(), in PerformSourceCopyOperation() 409 operation.dst_extents(), in PerformSourceCopyOperation() 436 optimized.dst_extents(), in PerformSourceCopyOperation() 444 operation.dst_extents(), in PerformSourceCopyOperation() 464 optimized.dst_extents(), in PerformSourceCopyOperation() 472 optimized.dst_extents(), in PerformSourceCopyOperation() 495 TEST_AND_RETURN_FALSE(writer->Init(operation.dst_extents(), block_size_)); in PerformSourceBsdiffOperation() 498 utils::BlocksInExtents(operation.dst_extents()) * block_size_); in PerformSourceBsdiffOperation() [all …]
|
D | partition_update_generator_android_unittest.cc | 108 ASSERT_EQ(0u, operation.dst_extents(0).start_block()); in CheckPartitionUpdate() 109 ASSERT_EQ(content.size() / 4096, operation.dst_extents(0).num_blocks()); in CheckPartitionUpdate()
|
D | vabc_partition_writer.cc | 139 for (const auto& extent : operation.dst_extents()) { in PerformZeroOrDiscardOperation()
|
/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)],
|
/system/update_engine/scripts/ |
D | payload_info.py | 162 if op.dst_extents: 163 _DisplayExtents(op.dst_extents, 'Destination') 179 written_blocks += sum([ext.num_blocks for ext in curr_op.dst_extents]) 180 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 …]
|
/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/aosp/ |
D | dynamic_partition_control_android_unittest.cc | 791 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 816 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 832 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 848 EXPECT_TRUE(optimized.dst_extents().empty()); in TEST_P() 871 EXPECT_EQ(2u, optimized.dst_extents(0).start_block()); in TEST_P() 872 EXPECT_EQ(1u, optimized.dst_extents(0).num_blocks()); in TEST_P() 875 EXPECT_EQ(5u, optimized.dst_extents(1).start_block()); in TEST_P() 876 EXPECT_EQ(2u, optimized.dst_extents(1).num_blocks()); in TEST_P()
|
/system/core/fs_mgr/libsnapshot/update_engine/ |
D | update_metadata.proto | 56 repeated Extent dst_extents = 6; field
|