Home
last modified time | relevance | path

Searched refs:src_extents (Results 1 – 24 of 24) sorted by relevance

/system/update_engine/payload_consumer/
Dfile_descriptor_utils.cc39 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()
Dfile_descriptor_utils_unittest.cc84 auto src_extents = CreateExtentList({{1, 4}}); in TEST_F() local
88 source_, src_extents, target_, tgt_extents, 4, nullptr)); in TEST_F()
102 auto src_extents = CreateExtentList({{0, 2}}); in TEST_F() local
109 source_, src_extents, source_, tgt_extents, 4, nullptr)); in TEST_F()
128 auto src_extents = CreateExtentList({{1, 1}, {4, 1}, {2, 2}, {0, 1}}); in TEST_F() local
132 source_, src_extents, target_, tgt_extents, 4, &hash_out)); in TEST_F()
144 auto src_extents = CreateExtentList({{1, 1}, {4, 1}, {2, 2}, {0, 1}}); in TEST_F() local
148 source_, src_extents, target_, tgt_extents, 4, &hash_out)); in TEST_F()
Dfile_descriptor_utils.h39 const google::protobuf::RepeatedPtrField<Extent>& src_extents,
Ddelta_performer.cc1085 for (const Extent& ext : operation.src_extents()) { in ValidateSourceHash()
1138 source_fd_, operation.src_extents(), block_size_, &source_hash) && in PerformSourceCopyOperation()
1140 optimized.src_extents(), in PerformSourceCopyOperation()
1147 operation.src_extents(), in PerformSourceCopyOperation()
1171 source_ecc_fd_, operation.src_extents(), block_size_, &source_hash)); in PerformSourceCopyOperation()
1174 optimized.src_extents(), in PerformSourceCopyOperation()
1182 operation.src_extents(), in PerformSourceCopyOperation()
1202 optimized.src_extents(), in PerformSourceCopyOperation()
1210 optimized.src_extents(), in PerformSourceCopyOperation()
1233 source_ecc_fd_, operation.src_extents(), block_size_, nullptr)) { in ChooseSourceFD()
[all …]
Dpartition_update_generator_android_unittest.cc89 ASSERT_EQ(0u, operation.src_extents(0).start_block()); in CheckPartitionUpdate()
90 ASSERT_EQ(content.size() / 4096, operation.src_extents(0).num_blocks()); in CheckPartitionUpdate()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp73 const auto& src_extents = operation.src_extents(); in OptimizeSourceCopyOperation() local
77 if (src_extents.empty() && dst_extents.empty()) { in OptimizeSourceCopyOperation()
81 auto s_it = src_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()
117 while (s_it != src_extents.end() && s_offset >= s_it->num_blocks()) { in OptimizeSourceCopyOperation()
Dpartition_cow_creator_test.cpp297 EXPECT_THAT(actual_output.src_extents(), in TEST_P()
298 Pointwise(ExtentEqual(), GetParam().expected_output->src_extents())); in TEST_P()
/system/update_engine/payload_generator/
Dab_generator.cc117 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()
Dab_generator_unittest.cc349 EXPECT_EQ(1, first_op.src_extents().size()); in TEST_F()
350 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F()
351 EXPECT_EQ(2U, first_op.src_extents(0).num_blocks()); in TEST_F()
361 EXPECT_EQ(3, second_op.src_extents().size()); in TEST_F()
362 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F()
363 EXPECT_EQ(1U, second_op.src_extents(0).num_blocks()); in TEST_F()
364 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F()
365 EXPECT_EQ(1U, second_op.src_extents(1).num_blocks()); in TEST_F()
366 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F()
367 EXPECT_EQ(1U, second_op.src_extents(2).num_blocks()); in TEST_F()
[all …]
Dextent_utils_unittest.cc86 ExtendExtents(first_op.mutable_src_extents(), second_op.src_extents()); in TEST()
88 ExtentsToVector(first_op.src_extents(), &first_op_vec); in TEST()
Dannotated_operation.cc66 OutputExtents(&os, aop.op.src_extents()); in operator <<()
Ddelta_diff_utils.cc725 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()
841 src_extents.size())) { in ReadExtentsToDiff()
865 StoreExtents(src_extents, operation.mutable_src_extents()); in ReadExtentsToDiff()
Ddelta_diff_utils_unittest.cc410 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F()
447 EXPECT_EQ(ExtentForRange(0, 10), aop.op.src_extents(i)); in TEST_F()
543 ExtentsToVector(aop.op.src_extents(), &aop_src_extents); in TEST_F()
/system/update_engine/scripts/update_payload/
Dtest_utils.py198 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,
Dchecker_unittest.py463 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 …]
Dapplier.py335 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,
Dchecker.py771 if op.src_extents:
801 if op.src_extents:
906 op.src_extents, old_usable_size, old_block_counters,
/system/update_engine/scripts/
Dpayload_info.py155 if op.src_extents:
156 _DisplayExtents(op.src_extents, 'Source')
173 read_blocks += sum([ext.num_blocks for ext in curr_op.src_extents])
Dpayload_info_unittest.py61 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument
62 self.src_extents = src_extents
/system/update_engine/
Ddynamic_partition_control_android_unittest.cc695 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P()
720 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P()
736 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P()
752 EXPECT_TRUE(optimized.src_extents().empty()); in TEST_P()
774 EXPECT_EQ(1u, optimized.src_extents(0).start_block()); in TEST_P()
775 EXPECT_EQ(1u, optimized.src_extents(0).num_blocks()); in TEST_P()
778 EXPECT_EQ(7u, optimized.src_extents(1).start_block()); in TEST_P()
779 EXPECT_EQ(2u, optimized.src_extents(1).num_blocks()); in TEST_P()
Dupdate_metadata.proto67 // - 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
Dupdate_attempter_android.cc504 operation.src_extents(), in VerifyPayloadApplicable()
/system/update_engine/update_engine/
Dupdate_metadata.proto67 // - 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/core/fs_mgr/libsnapshot/update_engine/
Dupdate_metadata.proto55 repeated Extent src_extents = 4; field