Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dinplace_generator_unittest.cc53 const vector<Extent>& src_extents, in GenVertex() argument
59 StoreExtents(src_extents, out->aop.op.mutable_src_extents()); in GenVertex()
156 EXPECT_EQ(11U, op.src_extents(0).start_block()); in TEST_F()
157 EXPECT_EQ(1U, op.src_extents(0).num_blocks()); in TEST_F()
158 EXPECT_EQ(13U, op.src_extents(1).start_block()); in TEST_F()
159 EXPECT_EQ(1U, op.src_extents(1).num_blocks()); in TEST_F()
160 EXPECT_EQ(6U, op.src_extents(2).start_block()); in TEST_F()
161 EXPECT_EQ(1U, op.src_extents(2).num_blocks()); in TEST_F()
162 EXPECT_EQ(kSparseHole, op.src_extents(3).start_block()); in TEST_F()
163 EXPECT_EQ(4U, op.src_extents(3).num_blocks()); in TEST_F()
[all …]
Dab_generator.cc111 Extent curr_src_ext = original_op.src_extents(curr_src_ext_index); in SplitSourceCopy()
122 if (curr_src_ext_index + 1 < original_op.src_extents().size()) { in SplitSourceCopy()
123 curr_src_ext = original_op.src_extents(++curr_src_ext_index); in SplitSourceCopy()
150 if (curr_src_ext_index != original_op.src_extents().size() - 1) { in SplitSourceCopy()
237 curr_aop.op.src_extents()); in MergeOperations()
306 vector<Extent> src_extents; in AddSourceHash() local
307 ExtentsToVector(aop.op.src_extents(), &src_extents); in AddSourceHash()
312 : BlocksInExtents(aop.op.src_extents()) * kBlockSize; in AddSourceHash()
314 source_part_path, src_extents, &src_data, src_length, kBlockSize)); in AddSourceHash()
Dab_generator_unittest.cc358 EXPECT_EQ(1, first_op.src_extents().size()); in TEST_F()
359 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F()
360 EXPECT_EQ(2U, first_op.src_extents(0).num_blocks()); in TEST_F()
370 EXPECT_EQ(3, second_op.src_extents().size()); in TEST_F()
371 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F()
372 EXPECT_EQ(1U, second_op.src_extents(0).num_blocks()); in TEST_F()
373 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F()
374 EXPECT_EQ(1U, second_op.src_extents(1).num_blocks()); in TEST_F()
375 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F()
376 EXPECT_EQ(1U, second_op.src_extents(2).num_blocks()); in TEST_F()
[all …]
Ddelta_diff_utils.cc109 size_t RemoveIdenticalBlockRanges(vector<Extent>* src_extents, in RemoveIdenticalBlockRanges() argument
118 while (src_idx < src_extents->size() && dst_idx < dst_extents->size()) { in RemoveIdenticalBlockRanges()
128 do_remove = ((*src_extents)[src_idx].start_block() + src_offset == in RemoveIdenticalBlockRanges()
131 uint64_t src_num_blocks = (*src_extents)[src_idx].num_blocks(); in RemoveIdenticalBlockRanges()
140 new_src = ProcessExtentBlockRange(src_extents, &src_idx, do_remove, in RemoveIdenticalBlockRanges()
576 vector<Extent> src_extents = old_extents; in ReadExtentsToDiff() local
602 utils::ReadExtents(old_part, src_extents, &old_data, in ReadExtentsToDiff()
652 << ExtentsToString(src_extents) in ReadExtentsToDiff()
664 &src_extents, &dst_extents, new_data.size()); in ReadExtentsToDiff()
671 StoreExtents(src_extents, operation.mutable_src_extents()); in ReadExtentsToDiff()
[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()
Ddelta_diff_utils_unittest.cc195 EXPECT_EQ(BlocksInExtents(op.src_extents()), in TEST_F()
268 EXPECT_EQ(old_extents[i].start_block(), op.src_extents(i).start_block()) in TEST_F()
270 EXPECT_EQ(old_extents[i].num_blocks(), op.src_extents(i).num_blocks()) in TEST_F()
318 EXPECT_EQ(BlocksInExtents(op.src_extents()), in TEST_F()
564 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F()
601 EXPECT_EQ(ExtentForRange(0, 10), aop.op.src_extents(i)); in TEST_F()
697 ExtentsToVector(aop.op.src_extents(), &aop_src_extents); in TEST_F()
Dannotated_operation.cc66 OutputExtents(&os, aop.op.src_extents()); in operator <<()
Dgraph_utils.cc132 DumpExtents(graph[i].aop.op.src_extents(), 4); in DumpGraph()
Dinplace_generator.cc113 ExpandExtents(vertex->aop.op.src_extents()); in SubstituteBlocks()
398 ranges.SubtractRepeatedExtents((*graph)[test_node].aop.op.src_extents()); in AssignBlockForAdjoiningCuts()
533 TempBlocksExistInExtents(op.src_extents())) { in NoTempBlocksRemain()
685 (field == READER) ? operation.src_extents() : operation.dst_extents(); in AddInstallOpToBlocksVector()
/system/update_engine/
Dupdate_metadata.proto62 // - MOVE: Copy the data in src_extents to dst_extents. Extents may overlap,
63 // so it may be desirable to read all src_extents data into memory before
65 // - SOURCE_COPY: Copy the data in src_extents in the old partition to
68 // - BSDIFF: Read src_length bytes from src_extents into memory, perform
71 // - SOURCE_BSDIFF: Read the data in src_extents in the old partition, perform
177 repeated Extent src_extents = 4; field
178 // Byte length of src, equal to the number of blocks in src_extents *
196 // Indicates the SHA 256 hash of the source data referenced in src_extents at
/system/update_engine/payload_consumer/
Ddelta_performer.cc942 blocks_to_read += operation.src_extents(i).num_blocks(); in PerformMoveOperation()
955 const Extent& extent = operation.src_extents(i); in PerformMoveOperation()
1031 uint64_t blocks_to_read = GetBlockCount(operation.src_extents()); in PerformSourceCopyOperation()
1038 ExtentsToBlocks(operation.src_extents(), &src_blocks); in PerformSourceCopyOperation()
1114 TEST_AND_RETURN_FALSE(ExtentsToBsdiffPositionsString(operation.src_extents(), in PerformBsdiffOperation()
1180 for (const Extent& extent : operation.src_extents()) { in PerformSourceBsdiffOperation()
1200 TEST_AND_RETURN_FALSE(ExtentsToBsdiffPositionsString(operation.src_extents(), in PerformSourceBsdiffOperation()