/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 | 88 aops[i].op.dst_extents(0).start_block()) in TEST_F() 91 aops[i].op.dst_extents(0).num_blocks()); in TEST_F() 116 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F() 118 utils::BlocksInExtents(aops[1].op.dst_extents())); in TEST_F() 138 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
|
D | ab_generator_unittest.cc | 137 EXPECT_EQ(1, first_op.dst_extents().size()); in TestSplitReplaceOrReplaceBzOperation() 139 first_op.dst_extents(0), op_ex1_start_block, op_ex1_num_blocks)); in TestSplitReplaceOrReplaceBzOperation() 167 EXPECT_EQ(1, second_op.dst_extents().size()); in TestSplitReplaceOrReplaceBzOperation() 169 second_op.dst_extents(0), op_ex2_start_block, op_ex2_num_blocks)); in TestSplitReplaceOrReplaceBzOperation() 297 EXPECT_EQ(1, new_op.dst_extents().size()); in TestMergeReplaceOrReplaceBzOperations() 298 EXPECT_TRUE(ExtentEquals(new_op.dst_extents(0), 0, total_op_num_blocks)); in TestMergeReplaceOrReplaceBzOperations() 353 EXPECT_EQ(1, first_op.dst_extents().size()); in TEST_F() 354 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F() 355 EXPECT_EQ(2U, first_op.dst_extents(0).num_blocks()); in TEST_F() 369 EXPECT_EQ(1, second_op.dst_extents().size()); in TEST_F() [all …]
|
D | inplace_generator_unittest.cc | 56 const vector<Extent>& dst_extents, in GenVertex() argument 62 StoreExtents(dst_extents, out->aop.op.mutable_dst_extents()); in GenVertex() 258 EXPECT_EQ(kTempBlockStart, graph.back().aop.op.dst_extents(0).start_block()); in TEST_F() 259 EXPECT_EQ(2U, graph.back().aop.op.dst_extents(0).num_blocks()); in TEST_F() 271 EXPECT_EQ(1U, graph[0].aop.op.dst_extents(0).start_block()); in TEST_F() 272 EXPECT_EQ(2U, graph[0].aop.op.dst_extents(0).num_blocks()); in TEST_F() 273 EXPECT_EQ(4U, graph[0].aop.op.dst_extents(1).start_block()); in TEST_F() 274 EXPECT_EQ(1U, graph[0].aop.op.dst_extents(1).num_blocks()); in TEST_F() 290 EXPECT_EQ(3U, graph[1].aop.op.dst_extents(0).start_block()); in TEST_F() 291 EXPECT_EQ(1U, graph[1].aop.op.dst_extents(0).num_blocks()); in TEST_F() [all …]
|
D | delta_diff_utils.cc | 140 vector<Extent>* dst_extents, in RemoveIdenticalBlockRanges() argument 147 while (src_idx < src_extents->size() && dst_idx < dst_extents->size()) { in RemoveIdenticalBlockRanges() 149 (*dst_extents)[dst_idx].start_block() + dst_offset); in RemoveIdenticalBlockRanges() 152 uint64_t dst_num_blocks = (*dst_extents)[dst_idx].num_blocks(); in RemoveIdenticalBlockRanges() 163 dst_extents, &dst_idx, do_remove, prev_dst_offset, dst_offset); in RemoveIdenticalBlockRanges() 850 vector<Extent> dst_extents = new_extents; in ReadExtentsToDiff() local 937 dst_extents, new_deflates, &dst_deflates)); in ReadExtentsToDiff() 982 RemoveIdenticalBlockRanges(&src_extents, &dst_extents, new_data.size()); in ReadExtentsToDiff() 1006 StoreExtents(dst_extents, operation.mutable_dst_extents()); in ReadExtentsToDiff() 1028 ExpandExtents(op.src_extents()) == ExpandExtents(op.dst_extents())); in IsNoopOperation() [all …]
|
D | delta_diff_utils_unittest.cc | 187 new_visited_blocks_.AddRepeatedExtents(aop.op.dst_extents()); in TEST_F() 231 utils::BlocksInExtents(op.dst_extents())); in TEST_F() 232 EXPECT_EQ(1U, utils::BlocksInExtents(op.dst_extents())); in TEST_F() 306 EXPECT_EQ(new_extents[i].start_block(), op.dst_extents(i).start_block()) in TEST_F() 308 EXPECT_EQ(new_extents[i].num_blocks(), op.dst_extents(i).num_blocks()) in TEST_F() 351 utils::BlocksInExtents(op.dst_extents())); in TEST_F() 352 EXPECT_EQ(1U, utils::BlocksInExtents(op.dst_extents())); in TEST_F() 402 EXPECT_EQ(1U, utils::BlocksInExtents(op.dst_extents())); in TEST_F() 637 EXPECT_EQ(expected_op_extents[i], aop.op.dst_extents(0)); in TEST_F() 676 EXPECT_EQ(ExtentForRange(0, 50), aop.op.dst_extents(0)); in TEST_F() [all …]
|
D | annotated_operation.cc | 70 OutputExtents(&os, aop.op.dst_extents()); in operator <<()
|
D | graph_utils.cc | 135 DumpExtents(graph[i].aop.op.dst_extents(), 4); in DumpGraph()
|
D | inplace_generator.cc | 389 ranges.AddRepeatedExtents((*graph)[test_node].aop.op.dst_extents()); in AssignBlockForAdjoiningCuts() 518 if (TempBlocksExistInExtents(op.dst_extents()) || in NoTempBlocksRemain() 554 ExtentsToVector((*graph)[cut.old_dst].aop.op.dst_extents(), &new_extents); in ConvertCutToFullOp() 665 (field == READER) ? operation.src_extents() : operation.dst_extents(); in AddInstallOpToBlocksVector()
|
/system/update_engine/scripts/update_payload/ |
D | test_utils.py | 196 dst_extents=None, dst_length=None, data_sha256_hash=None): argument 210 self._AddExtents(op.dst_extents, dst_extents) 281 src_length=None, dst_extents=None, dst_length=None, argument 307 src_length=src_length, dst_extents=dst_extents, 354 dst_extents=[(common.PSEUDO_EXTENT_MARKER,
|
D | checker_unittest.py | 434 dst_extents=[(16, 496), (0, 16)]) 437 dst_extents=[(8, 8), (0, 8)]) 680 self.AddToMessage(op.dst_extents, 693 self.AddToMessage(op.dst_extents, 707 self.AddToMessage(op.dst_extents, 721 self.AddToMessage(op.dst_extents, 735 self.AddToMessage(op.dst_extents, 742 self.AddToMessage(op.dst_extents, 756 self.AddToMessage(op.dst_extents, 770 self.AddToMessage(op.dst_extents, [all …]
|
D | applier.py | 271 for ex, ex_name in common.ExtentIter(op.dst_extents, 330 _WriteExtents(part_file, in_data, op.dst_extents, block_size, 349 for ex, ex_name in common.ExtentIter(op.dst_extents, base_name): 379 _WriteExtents(new_part_file, in_data, op.dst_extents, block_size, 434 op.dst_extents, block_size, '%s.dst_extents' % op_name, 436 self._BytesInExtents(op.dst_extents, "%s.dst_extents")) 509 _WriteExtents(new_part_file, out_data, op.dst_extents, block_size,
|
D | checker.py | 836 dst_extent_iter = iter(op.dst_extents) 1016 op.dst_extents, new_usable_size, new_block_counters, 1028 if not op.dst_extents:
|
/system/update_engine/scripts/ |
D | payload_info.py | 160 if op.dst_extents: 161 _DisplayExtents(op.dst_extents, 'Destination') 182 written_blocks += sum([ext.num_blocks for ext in curr_op.dst_extents]) 183 for curr_ext in curr_op.dst_extents:
|
D | payload_info_unittest.py | 53 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument 55 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/payload_consumer/ |
D | delta_performer.cc | 1029 writer->Init(target_fd_, operation.dst_extents(), block_size_)); in PerformReplaceOperation() 1056 for (const Extent& extent : operation.dst_extents()) { in PerformZeroOrDiscardOperation() 1089 blocks_to_write += operation.dst_extents(i).num_blocks(); in PerformMoveOperation() 1114 const Extent& extent = operation.dst_extents(i); in PerformMoveOperation() 1187 operation.dst_extents(), in PerformSourceCopyOperation() 1209 operation.dst_extents(), in PerformSourceCopyOperation() 1227 operation.dst_extents(), in PerformSourceCopyOperation() 1235 operation.dst_extents(), in PerformSourceCopyOperation() 1331 TEST_AND_RETURN_FALSE(ExtentsToBsdiffPositionsString(operation.dst_extents(), in PerformBsdiffOperation() 1348 operation.dst_extents(operation.dst_extents_size() - 1); in PerformBsdiffOperation() [all …]
|