Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dab_generator.cc113 Extent dst_ext = original_op.dst_extents(i); in SplitSourceCopy()
168 Extent dst_ext = original_op.dst_extents(i); in SplitAReplaceOp()
214 last_aop.op.dst_extents(last_dst_idx).start_block() + in MergeOperations()
215 last_aop.op.dst_extents(last_dst_idx).num_blocks(); in MergeOperations()
216 uint32_t curr_start_block = curr_aop.op.dst_extents(0).start_block(); in MergeOperations()
218 last_aop.op.dst_extents(last_dst_idx).num_blocks() + in MergeOperations()
219 curr_aop.op.dst_extents(0).num_blocks(); in MergeOperations()
243 curr_aop.op.dst_extents()); in MergeOperations()
277 vector<Extent> dst_extents; in AddDataAndSetType() local
278 ExtentsToVector(aop->op.dst_extents(), &dst_extents); in AddDataAndSetType()
[all …]
Dfull_update_generator_unittest.cc91 aops[i].op.dst_extents(0).start_block()) in TEST_F()
94 aops[i].op.dst_extents(0).num_blocks()); in TEST_F()
119 BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
121 BlocksInExtents(aops[1].op.dst_extents())); in TEST_F()
141 BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
Dab_generator_unittest.cc140 EXPECT_EQ(1, first_op.dst_extents().size()); in TestSplitReplaceOrReplaceBzOperation()
141 EXPECT_TRUE(ExtentEquals(first_op.dst_extents(0), op_ex1_start_block, in TestSplitReplaceOrReplaceBzOperation()
169 EXPECT_EQ(1, second_op.dst_extents().size()); in TestSplitReplaceOrReplaceBzOperation()
170 EXPECT_TRUE(ExtentEquals(second_op.dst_extents(0), op_ex2_start_block, in TestSplitReplaceOrReplaceBzOperation()
306 EXPECT_EQ(1, new_op.dst_extents().size()); in TestMergeReplaceOrReplaceBzOperations()
307 EXPECT_TRUE(ExtentEquals(new_op.dst_extents(0), 0, total_op_num_blocks)); in TestMergeReplaceOrReplaceBzOperations()
362 EXPECT_EQ(1, first_op.dst_extents().size()); in TEST_F()
363 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F()
364 EXPECT_EQ(2U, first_op.dst_extents(0).num_blocks()); in TEST_F()
378 EXPECT_EQ(1, second_op.dst_extents().size()); in TEST_F()
[all …]
Ddelta_diff_utils.cc110 vector<Extent>* dst_extents, in RemoveIdenticalBlockRanges() argument
118 while (src_idx < src_extents->size() && dst_idx < dst_extents->size()) { in RemoveIdenticalBlockRanges()
129 (*dst_extents)[dst_idx].start_block() + dst_offset); in RemoveIdenticalBlockRanges()
132 uint64_t dst_num_blocks = (*dst_extents)[dst_idx].num_blocks(); in RemoveIdenticalBlockRanges()
142 new_dst = ProcessExtentBlockRange(dst_extents, &dst_idx, do_remove, in RemoveIdenticalBlockRanges()
577 vector<Extent> dst_extents = new_extents; in ReadExtentsToDiff() local
654 << ExtentsToString(dst_extents); in ReadExtentsToDiff()
664 &src_extents, &dst_extents, new_data.size()); in ReadExtentsToDiff()
672 StoreExtents(dst_extents, operation.mutable_dst_extents()); in ReadExtentsToDiff()
727 ExpandExtents(op.src_extents()) == ExpandExtents(op.dst_extents())); in IsNoopOperation()
[all …]
Dinplace_generator_unittest.cc54 const vector<Extent>& dst_extents, in GenVertex() argument
60 StoreExtents(dst_extents, out->aop.op.mutable_dst_extents()); in GenVertex()
245 EXPECT_EQ(kTempBlockStart, graph.back().aop.op.dst_extents(0).start_block()); in TEST_F()
246 EXPECT_EQ(2U, graph.back().aop.op.dst_extents(0).num_blocks()); in TEST_F()
258 EXPECT_EQ(1U, graph[0].aop.op.dst_extents(0).start_block()); in TEST_F()
259 EXPECT_EQ(2U, graph[0].aop.op.dst_extents(0).num_blocks()); in TEST_F()
260 EXPECT_EQ(4U, graph[0].aop.op.dst_extents(1).start_block()); in TEST_F()
261 EXPECT_EQ(1U, graph[0].aop.op.dst_extents(1).num_blocks()); in TEST_F()
277 EXPECT_EQ(3U, graph[1].aop.op.dst_extents(0).start_block()); in TEST_F()
278 EXPECT_EQ(1U, graph[1].aop.op.dst_extents(0).num_blocks()); in TEST_F()
[all …]
Ddelta_diff_utils_unittest.cc196 BlocksInExtents(op.dst_extents())); in TEST_F()
197 EXPECT_EQ(1U, BlocksInExtents(op.dst_extents())); in TEST_F()
276 EXPECT_EQ(new_extents[i].start_block(), op.dst_extents(i).start_block()) in TEST_F()
278 EXPECT_EQ(new_extents[i].num_blocks(), op.dst_extents(i).num_blocks()) in TEST_F()
319 BlocksInExtents(op.dst_extents())); in TEST_F()
320 EXPECT_EQ(1U, BlocksInExtents(op.dst_extents())); in TEST_F()
368 EXPECT_EQ(1U, BlocksInExtents(op.dst_extents())); in TEST_F()
566 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F()
605 EXPECT_EQ(ExtentForRange(0, 50), aop.op.dst_extents(0)); in TEST_F()
662 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F()
[all …]
Dannotated_operation.cc70 OutputExtents(&os, aop.op.dst_extents()); in operator <<()
Dgraph_utils.cc134 DumpExtents(graph[i].aop.op.dst_extents(), 4); in DumpGraph()
Dinplace_generator.cc395 ranges.AddRepeatedExtents((*graph)[test_node].aop.op.dst_extents()); in AssignBlockForAdjoiningCuts()
532 if (TempBlocksExistInExtents(op.dst_extents()) || in NoTempBlocksRemain()
568 ExtentsToVector((*graph)[cut.old_dst].aop.op.dst_extents(), in ConvertCutToFullOp()
685 (field == READER) ? operation.src_extents() : operation.dst_extents(); in AddInstallOpToBlocksVector()
/system/update_engine/
Dupdate_metadata.proto58 // - REPLACE: Replace the dst_extents on the drive with the attached data,
61 // dst_extents on the drive, zero padding to block size.
62 // - MOVE: Copy the data in src_extents to dst_extents. Extents may overlap,
66 // dst_extents in the new partition. There's no overlapping of data because
69 // bspatch with attached data, write new data to dst_extents, zero padding
72 // bspatch with the attached data and write the new data to dst_extents in the
74 // - ZERO: Write zeros to the destination dst_extents.
75 // - DISCARD: Discard the destination dst_extents blocks on the physical medium.
77 // - REPLACE_XZ: Replace the dst_extents with the contents of the attached
184 repeated Extent dst_extents = 6; field
[all …]
/system/update_engine/payload_consumer/
Ddelta_performer.cc881 extents.push_back(operation.dst_extents(i)); in PerformReplaceOperation()
913 Extent extent = operation.dst_extents(i); in PerformZeroOrDiscardOperation()
946 blocks_to_write += operation.dst_extents(i).num_blocks(); in PerformMoveOperation()
971 const Extent& extent = operation.dst_extents(i); in PerformMoveOperation()
1032 uint64_t blocks_to_write = GetBlockCount(operation.dst_extents()); in PerformSourceCopyOperation()
1039 ExtentsToBlocks(operation.dst_extents(), &dst_blocks); in PerformSourceCopyOperation()
1119 TEST_AND_RETURN_FALSE(ExtentsToBsdiffPositionsString(operation.dst_extents(), in PerformBsdiffOperation()
1153 operation.dst_extents(operation.dst_extents_size() - 1); in PerformBsdiffOperation()
1205 TEST_AND_RETURN_FALSE(ExtentsToBsdiffPositionsString(operation.dst_extents(), in PerformSourceBsdiffOperation()