/system/update_engine/payload_consumer/ |
D | file_descriptor_utils.cc | 39 const RepeatedPtrField<Extent>& src_extents, in CommonHashExtents() argument 43 auto total_blocks = utils::BlocksInExtents(src_extents); in CommonHashExtents() 51 TEST_AND_RETURN_FALSE(reader.Init(source, src_extents, block_size)); in CommonHashExtents() 80 const RepeatedPtrField<Extent>& src_extents, in CopyAndHashExtents() argument 87 TEST_AND_RETURN_FALSE(utils::BlocksInExtents(src_extents) == in CopyAndHashExtents() 90 CommonHashExtents(source, src_extents, &writer, block_size, hash_out)); in CopyAndHashExtents()
|
D | file_descriptor_utils_unittest.cc | 82 auto src_extents = CreateExtentList({{1, 4}}); in TEST_F() local 86 source_, src_extents, target_, tgt_extents, 4, nullptr)); in TEST_F() 100 auto src_extents = CreateExtentList({{0, 2}}); in TEST_F() local 107 source_, src_extents, source_, tgt_extents, 4, nullptr)); in TEST_F() 126 auto src_extents = CreateExtentList({{1, 1}, {4, 1}, {2, 2}, {0, 1}}); in TEST_F() local 130 source_, src_extents, target_, tgt_extents, 4, &hash_out)); in TEST_F() 142 auto src_extents = CreateExtentList({{1, 1}, {4, 1}, {2, 2}, {0, 1}}); in TEST_F() local 146 source_, src_extents, target_, tgt_extents, 4, &hash_out)); in TEST_F()
|
D | partition_writer.cc | 398 source_fd_, operation.src_extents(), block_size_, &source_hash) && in PerformSourceCopyOperation() 400 optimized.src_extents(), in PerformSourceCopyOperation() 407 operation.src_extents(), in PerformSourceCopyOperation() 431 source_ecc_fd_, operation.src_extents(), block_size_, &source_hash)); in PerformSourceCopyOperation() 434 optimized.src_extents(), in PerformSourceCopyOperation() 442 operation.src_extents(), in PerformSourceCopyOperation() 462 optimized.src_extents(), in PerformSourceCopyOperation() 470 optimized.src_extents(), in PerformSourceCopyOperation() 489 reader->Init(source_fd, operation.src_extents(), block_size_)); in PerformSourceBsdiffOperation() 492 utils::BlocksInExtents(operation.src_extents()) * block_size_); in PerformSourceBsdiffOperation() [all …]
|
D | file_descriptor_utils.h | 39 const google::protobuf::RepeatedPtrField<Extent>& src_extents,
|
D | partition_update_generator_android_unittest.cc | 104 ASSERT_EQ(0u, operation.src_extents(0).start_block()); in CheckPartitionUpdate() 105 ASSERT_EQ(content.size() / 4096, operation.src_extents(0).num_blocks()); in CheckPartitionUpdate()
|
/system/update_engine/common/ |
D | cow_operation_convert.cc | 66 const auto& src_extents = operation.src_extents(); in ConvertToCowOperations() local 68 BlockIterator it1{src_extents}; in ConvertToCowOperations()
|
D | cow_operation_convert_unittest.cc | 60 src_extent_set.AddRepeatedExtents(op.src_extents()); in VerifyCowMergeOp() 88 std::initializer_list<std::array<int, 2>> src_extents, in AddOperation() argument 92 for (const auto& extent : src_extents) { in AddOperation()
|
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.cpp | 78 const auto& src_extents = operation.src_extents(); in OptimizeSourceCopyOperation() local 82 if (src_extents.empty() && dst_extents.empty()) { in OptimizeSourceCopyOperation() 86 auto s_it = src_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() 122 while (s_it != src_extents.end() && s_offset >= s_it->num_blocks()) { in OptimizeSourceCopyOperation()
|
D | make_cow_from_ab_ota.cpp | 336 uint64_t src_length = SizeOfAllExtents(op.src_extents()); in ProcessDiff() 341 for (const auto& extent : op.src_extents()) { in ProcessDiff() 504 for (const auto& extent : op.src_extents()) { in ProcessCopy()
|
/system/update_engine/payload_generator/ |
D | ab_generator.cc | 117 Extent curr_src_ext = original_op.src_extents(curr_src_ext_index); in SplitSourceCopy() 128 if (curr_src_ext_index + 1 < original_op.src_extents().size()) { in SplitSourceCopy() 129 curr_src_ext = original_op.src_extents(++curr_src_ext_index); in SplitSourceCopy() 154 if (curr_src_ext_index != original_op.src_extents().size() - 1) { in SplitSourceCopy() 239 curr_aop.op.src_extents()); in MergeOperations() 299 vector<Extent> src_extents; in AddSourceHash() local 300 ExtentsToVector(aop.op.src_extents(), &src_extents); in AddSourceHash() 305 : utils::BlocksInExtents(aop.op.src_extents()) * kBlockSize; in AddSourceHash() 307 source_part_path, src_extents, &src_data, src_length, kBlockSize)); in AddSourceHash()
|
D | ab_generator_unittest.cc | 345 EXPECT_EQ(1, first_op.src_extents().size()); in TEST_F() 346 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F() 347 EXPECT_EQ(2U, first_op.src_extents(0).num_blocks()); in TEST_F() 357 EXPECT_EQ(3, second_op.src_extents().size()); in TEST_F() 358 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F() 359 EXPECT_EQ(1U, second_op.src_extents(0).num_blocks()); in TEST_F() 360 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F() 361 EXPECT_EQ(1U, second_op.src_extents(1).num_blocks()); in TEST_F() 362 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F() 363 EXPECT_EQ(1U, second_op.src_extents(2).num_blocks()); in TEST_F() [all …]
|
D | extent_utils.h | 102 const google::protobuf::RepeatedPtrField<Extent>& src_extents) in BlockIterator() 103 : src_extents_(src_extents) {} in BlockIterator()
|
D | extent_utils_unittest.cc | 86 ExtendExtents(first_op.mutable_src_extents(), second_op.src_extents()); in TEST() 88 ExtentsToVector(first_op.src_extents(), &first_op_vec); in TEST()
|
D | annotated_operation.cc | 66 OutputExtents(&os, aop.op.src_extents()); in operator <<()
|
D | delta_diff_utils.cc | 725 vector<Extent> src_extents = old_extents; in ReadExtentsToDiff() local 751 src_extents, in ReadExtentsToDiff() 760 operation, data_blob.size(), 0, src_extents.size())) { in ReadExtentsToDiff() 793 src_extents.size())) { in ReadExtentsToDiff() 804 src_extents, old_deflates, &src_deflates)); in ReadExtentsToDiff() 837 src_extents.size())) { in ReadExtentsToDiff() 861 StoreExtents(src_extents, operation.mutable_src_extents()); in ReadExtentsToDiff()
|
D | delta_diff_utils_unittest.cc | 400 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F() 437 EXPECT_EQ(ExtentForRange(0, 10), aop.op.src_extents(i)); in TEST_F() 533 ExtentsToVector(aop.op.src_extents(), &aop_src_extents); in TEST_F()
|
/system/update_engine/scripts/update_payload/ |
D | test_utils.py | 198 data_length=None, src_extents=None, src_length=None, argument 214 self._AddExtents(op.src_extents, src_extents) 287 def AddOperationWithData(self, part_name, op_type, src_extents=None, argument 313 data_length=data_length, src_extents=src_extents,
|
D | checker_unittest.py | 463 src_extents=[(0, 16), (16, 497)], 466 src_extents=[(0, 8), (8, 8)], 592 op.src_extents = [] 599 op.src_extents = ['bar'] 605 op.src_extents = [] 611 op.src_extents = ['bar'] 628 op.src_extents = [] 635 op.src_extents = ['bar'] 642 op.src_extents = [] 648 op.src_extents = [] [all …]
|
D | applier.py | 335 in_data = _ReadExtents(old_part_file, op.src_extents, block_size) 389 op.src_extents, block_size, '%s.src_extents' % op_name, 391 self._BytesInExtents(op.src_extents, "%s.src_extents")) 434 in_data = _ReadExtents(input_part_file, op.src_extents, block_size, 436 self._BytesInExtents(op.src_extents,
|
/system/update_engine/scripts/ |
D | payload_info.py | 160 if op.src_extents: 161 _DisplayExtents(op.src_extents, 'Source') 178 read_blocks += sum([ext.num_blocks for ext in curr_op.src_extents])
|
D | payload_info_unittest.py | 61 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument 62 self.src_extents = src_extents
|
/system/update_engine/ |
D | update_metadata.proto | 67 // - MOVE: Copy the data in src_extents to dst_extents. Extents may overlap, 68 // so it may be desirable to read all src_extents data into memory before 70 // - SOURCE_COPY: Copy the data in src_extents in the old partition to 73 // - BSDIFF: Read src_length bytes from src_extents into memory, perform 76 // - SOURCE_BSDIFF: Read the data in src_extents in the old partition, perform 85 // - PUFFDIFF: Read the data in src_extents in the old partition, perform 202 repeated Extent src_extents = 4; field 203 // Byte length of src, equal to the number of blocks in src_extents * 222 // Indicates the SHA 256 hash of the source data referenced in src_extents at
|
/system/update_engine/update_engine/ |
D | update_metadata.proto | 67 // - MOVE: Copy the data in src_extents to dst_extents. Extents may overlap, 68 // so it may be desirable to read all src_extents data into memory before 70 // - SOURCE_COPY: Copy the data in src_extents in the old partition to 73 // - BSDIFF: Read src_length bytes from src_extents into memory, perform 76 // - SOURCE_BSDIFF: Read the data in src_extents in the old partition, perform 85 // - PUFFDIFF: Read the data in src_extents in the old partition, perform 202 repeated Extent src_extents = 4; field 203 // Byte length of src, equal to the number of blocks in src_extents * 222 // Indicates the SHA 256 hash of the source data referenced in src_extents at
|
/system/update_engine/aosp/ |
D | dynamic_partition_control_android_unittest.cc | 790 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P() 815 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P() 831 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P() 847 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P() 869 EXPECT_EQ(1u, optimized.src_extents(0).start_block()); in TEST_P() 870 EXPECT_EQ(1u, optimized.src_extents(0).num_blocks()); in TEST_P() 873 EXPECT_EQ(7u, optimized.src_extents(1).start_block()); in TEST_P() 874 EXPECT_EQ(2u, optimized.src_extents(1).num_blocks()); in TEST_P()
|
/system/core/fs_mgr/libsnapshot/update_engine/ |
D | update_metadata.proto | 55 repeated Extent src_extents = 4; field
|