/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 | 84 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()
|
D | file_descriptor_utils.h | 39 const google::protobuf::RepeatedPtrField<Extent>& src_extents,
|
D | delta_performer.cc | 1085 blocks_to_read += operation.src_extents(i).num_blocks(); in PerformMoveOperation() 1098 const Extent& extent = operation.src_extents(i); in PerformMoveOperation() 1148 for (const Extent& ext : operation.src_extents()) { in ValidateSourceHash() 1185 operation.src_extents(), in PerformSourceCopyOperation() 1207 operation.src_extents(), in PerformSourceCopyOperation() 1225 operation.src_extents(), in PerformSourceCopyOperation() 1233 operation.src_extents(), in PerformSourceCopyOperation() 1256 source_ecc_fd_, operation.src_extents(), block_size_, nullptr)) { in ChooseSourceFD() 1266 source_fd_, operation.src_extents(), block_size_, &source_hash) && in ChooseSourceFD() 1286 source_ecc_fd_, operation.src_extents(), block_size_, &source_hash) && in ChooseSourceFD() [all …]
|
/system/update_engine/payload_generator/ |
D | inplace_generator_unittest.cc | 55 const vector<Extent>& src_extents, in GenVertex() argument 61 StoreExtents(src_extents, out->aop.op.mutable_src_extents()); in GenVertex() 169 EXPECT_EQ(11U, op.src_extents(0).start_block()); in TEST_F() 170 EXPECT_EQ(1U, op.src_extents(0).num_blocks()); in TEST_F() 171 EXPECT_EQ(13U, op.src_extents(1).start_block()); in TEST_F() 172 EXPECT_EQ(1U, op.src_extents(1).num_blocks()); in TEST_F() 173 EXPECT_EQ(6U, op.src_extents(2).start_block()); in TEST_F() 174 EXPECT_EQ(1U, op.src_extents(2).num_blocks()); in TEST_F() 175 EXPECT_EQ(kSparseHole, op.src_extents(3).start_block()); in TEST_F() 176 EXPECT_EQ(4U, op.src_extents(3).num_blocks()); in TEST_F() [all …]
|
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 | 349 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 …]
|
D | delta_diff_utils.cc | 139 size_t RemoveIdenticalBlockRanges(vector<Extent>* src_extents, in RemoveIdenticalBlockRanges() argument 147 while (src_idx < src_extents->size() && dst_idx < dst_extents->size()) { in RemoveIdenticalBlockRanges() 148 do_remove = ((*src_extents)[src_idx].start_block() + src_offset == in RemoveIdenticalBlockRanges() 151 uint64_t src_num_blocks = (*src_extents)[src_idx].num_blocks(); in RemoveIdenticalBlockRanges() 161 src_extents, &src_idx, do_remove, prev_src_offset, src_offset); in RemoveIdenticalBlockRanges() 849 vector<Extent> src_extents = old_extents; in ReadExtentsToDiff() local 875 src_extents, in ReadExtentsToDiff() 886 operation, data_blob.size(), 0, src_extents.size())) { in ReadExtentsToDiff() 922 src_extents.size())) { in ReadExtentsToDiff() 933 src_extents, old_deflates, &src_deflates)); in ReadExtentsToDiff() [all …]
|
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_unittest.cc | 230 EXPECT_EQ(utils::BlocksInExtents(op.src_extents()), in TEST_F() 298 EXPECT_EQ(old_extents[i].start_block(), op.src_extents(i).start_block()) in TEST_F() 300 EXPECT_EQ(old_extents[i].num_blocks(), op.src_extents(i).num_blocks()) in TEST_F() 350 EXPECT_EQ(utils::BlocksInExtents(op.src_extents()), in TEST_F() 635 EXPECT_EQ(expected_op_extents[i], aop.op.src_extents(0)); in TEST_F() 672 EXPECT_EQ(ExtentForRange(0, 10), aop.op.src_extents(i)); in TEST_F() 769 ExtentsToVector(aop.op.src_extents(), &aop_src_extents); in TEST_F()
|
D | graph_utils.cc | 133 DumpExtents(graph[i].aop.op.src_extents(), 4); in DumpGraph()
|
D | inplace_generator.cc | 113 vector<uint64_t> read_blocks = ExpandExtents(vertex->aop.op.src_extents()); in SubstituteBlocks() 392 ranges.SubtractRepeatedExtents((*graph)[test_node].aop.op.src_extents()); in AssignBlockForAdjoiningCuts() 519 TempBlocksExistInExtents(op.src_extents())) { in NoTempBlocksRemain() 665 (field == READER) ? operation.src_extents() : operation.dst_extents(); in AddInstallOpToBlocksVector()
|
/system/update_engine/scripts/update_payload/ |
D | checker_unittest.py | 433 src_extents=[(0, 16), (16, 497)], 436 src_extents=[(0, 8), (8, 8)], 578 op.src_extents = [] 585 op.src_extents = ['bar'] 591 op.src_extents = [] 597 op.src_extents = ['bar'] 613 op.src_extents = [] 620 op.src_extents = ['bar'] 626 op.src_extents = [] 632 op.src_extents = [] [all …]
|
D | test_utils.py | 195 data_length=None, src_extents=None, src_length=None, argument 207 self._AddExtents(op.src_extents, src_extents) 280 def AddOperationWithData(self, is_kernel, op_type, src_extents=None, argument 306 data_length=data_length, src_extents=src_extents,
|
D | applier.py | 327 in_data = _ReadExtents(part_file, op.src_extents, block_size) 376 in_data = _ReadExtents(old_part_file, op.src_extents, block_size) 430 op.src_extents, block_size, '%s.src_extents' % op_name, 432 self._BytesInExtents(op.src_extents, "%s.src_extents")) 468 in_data = _ReadExtents(input_part_file, op.src_extents, block_size, 470 self._BytesInExtents(op.src_extents,
|
D | checker.py | 790 if op.src_extents: 835 src_extent_iter = iter(op.src_extents) 903 if op.src_extents: 1011 op.src_extents, old_usable_size, old_block_counters,
|
/system/update_engine/scripts/ |
D | payload_info.py | 158 if op.src_extents: 159 _DisplayExtents(op.src_extents, 'Source') 181 read_blocks += sum([ext.num_blocks for ext in curr_op.src_extents])
|
D | payload_info_unittest.py | 53 def __init__(self, src_extents, dst_extents, op_type, **kwargs): argument 54 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 193 repeated Extent src_extents = 4; field 194 // Byte length of src, equal to the number of blocks in src_extents * 213 // Indicates the SHA 256 hash of the source data referenced in src_extents at
|
D | update_attempter_android.cc | 436 operation.src_extents(), in VerifyPayloadApplicable()
|
/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 193 repeated Extent src_extents = 4; field 194 // Byte length of src, equal to the number of blocks in src_extents * 213 // Indicates the SHA 256 hash of the source data referenced in src_extents at
|