/system/update_engine/payload_generator/ |
D | extent_utils_unittest.cc | 58 extents.push_back(ExtentForRange(0, 1)); in TEST() 60 extents.push_back(ExtentForRange(23, 55)); in TEST() 62 extents.push_back(ExtentForRange(1, 2)); in TEST() 68 *extents.Add() = ExtentForRange(0, 1); in TEST() 70 *extents.Add() = ExtentForRange(23, 55); in TEST() 72 *extents.Add() = ExtentForRange(1, 2); in TEST() 79 *(first_op.add_src_extents()) = ExtentForRange(1, 1); in TEST() 80 *(first_op.add_src_extents()) = ExtentForRange(3, 1); in TEST() 83 *(second_op.add_src_extents()) = ExtentForRange(4, 2); in TEST() 84 *(second_op.add_src_extents()) = ExtentForRange(8, 2); in TEST() [all …]
|
D | deflate_utils_unittest.cc | 50 vector<Extent> base_extents = {ExtentForRange(10, 10), in TEST() 51 ExtentForRange(70, 10), in TEST() 52 ExtentForRange(50, 10), in TEST() 53 ExtentForRange(30, 10), in TEST() 54 ExtentForRange(90, 10)}; in TEST() 55 vector<Extent> over_extents = {ExtentForRange(2, 2), in TEST() 56 ExtentForRange(5, 2), in TEST() 57 ExtentForRange(7, 3), in TEST() 58 ExtentForRange(13, 10), in TEST() 59 ExtentForRange(25, 20), in TEST() [all …]
|
D | extent_ranges_unittest.cc | 65 ExtentForRange(a_start, a_num), ExtentForRange(b_start, b_num))); in ExpectRangesOverlapOrTouch() 67 ExtentForRange(b_start, b_num), ExtentForRange(a_start, a_num))); in ExpectRangesOverlapOrTouch() 75 ExtentForRange(a_start, a_num), ExtentForRange(b_start, b_num))); in ExpectFalseRangesOverlapOrTouch() 77 ExtentForRange(b_start, b_num), ExtentForRange(a_start, a_num))); in ExpectFalseRangesOverlapOrTouch() 78 EXPECT_FALSE(ExtentRanges::ExtentsOverlap(ExtentForRange(a_start, a_num), in ExpectFalseRangesOverlapOrTouch() 79 ExtentForRange(b_start, b_num))); in ExpectFalseRangesOverlapOrTouch() 80 EXPECT_FALSE(ExtentRanges::ExtentsOverlap(ExtentForRange(b_start, b_num), in ExpectFalseRangesOverlapOrTouch() 81 ExtentForRange(a_start, a_num))); in ExpectFalseRangesOverlapOrTouch() 88 EXPECT_TRUE(ExtentRanges::ExtentsOverlap(ExtentForRange(a_start, a_num), in ExpectRangesOverlap() 89 ExtentForRange(b_start, b_num))); in ExpectRangesOverlap() [all …]
|
D | delta_diff_utils_unittest.cc | 173 new_part_.verity.hash_tree_extent = ExtentForRange(20, 30); in TEST_F() 174 new_part_.verity.fec_extent = ExtentForRange(40, 50); in TEST_F() 199 vector<Extent> old_extents = {ExtentForRange(1, 1)}; in TEST_F() 200 vector<Extent> new_extents = {ExtentForRange(2, 1)}; in TEST_F() 255 vector<Extent> old_extents = {ExtentForRange(11, 1)}; in TEST_F() 256 vector<Extent> new_extents = {ExtentForRange(1, 1)}; in TEST_F() 287 vector<Extent> old_extents = {ExtentForRange(1, 1)}; in TEST_F() 288 vector<Extent> new_extents = {ExtentForRange(2, 1)}; in TEST_F() 315 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 370 vector<Extent> already_visited = {ExtentForRange(5, 5), in TEST_F() [all …]
|
D | mapfile_filesystem_unittest.cc | 98 (vector<Extent>{ExtentForRange(1, 1)})); in TEST_F() 100 (vector<Extent>{ExtentForRange(2, 3)})); in TEST_F() 104 ExtentForRange(5, 2), ExtentForRange(9, 1), ExtentForRange(11, 2)})); in TEST_F() 106 (vector<Extent>{ExtentForRange(14, 1), ExtentForRange(19, 1)})); in TEST_F() 107 EXPECT_EQ(map_files["/1234"].extents, (vector<Extent>{ExtentForRange(7, 1)})); in TEST_F()
|
D | ab_generator_unittest.cc | 85 ExtentForRange(op_ex1_start_block, op_ex1_num_blocks); in TestSplitReplaceOrReplaceXzOperation() 87 ExtentForRange(op_ex2_start_block, op_ex2_num_blocks); in TestSplitReplaceOrReplaceXzOperation() 235 *(first_op.add_dst_extents()) = ExtentForRange(0, first_op_num_blocks); in TestMergeReplaceOrReplaceXzOperations() 255 ExtentForRange(first_op_num_blocks, second_op_num_blocks); in TestMergeReplaceOrReplaceXzOperations() 331 *(op.add_src_extents()) = ExtentForRange(2, 3); in TEST_F() 332 *(op.add_src_extents()) = ExtentForRange(6, 1); in TEST_F() 333 *(op.add_src_extents()) = ExtentForRange(8, 4); in TEST_F() 334 *(op.add_dst_extents()) = ExtentForRange(10, 2); in TEST_F() 335 *(op.add_dst_extents()) = ExtentForRange(14, 3); in TEST_F() 336 *(op.add_dst_extents()) = ExtentForRange(18, 3); in TEST_F() [all …]
|
D | extent_ranges.cc | 59 AddExtent(ExtentForRange(block, 1)); in AddBlock() 63 SubtractExtent(ExtentForRange(block, 1)); in SubtractBlock() 74 return ExtentForRange(start, end - start); in UnionOverlappingExtents() 111 ret.insert(ExtentForRange(base.start_block(), in SubtractOverlappingExtents() 117 ret.insert(ExtentForRange(subtractee_end, base_end - subtractee_end)); in SubtractOverlappingExtents() 206 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1)); in ContainsBlock() 212 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0)); in ContainsBlock() 232 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks) { in ExtentForRange() function 244 return ExtentForRange(start_block, end_block - start_block); in ExtentForBytes() 291 ExtentForRange(extent.start_block() + extent.num_blocks(), 0)); in FilterExtentRanges() [all …]
|
D | payload_generation_config_android_unittest.cc | 153 EXPECT_EQ(ExtentForRange(0, 2), verity.hash_tree_data_extent); in TEST_F() 154 EXPECT_EQ(ExtentForRange(2, 1), verity.hash_tree_extent); in TEST_F() 158 EXPECT_EQ(ExtentForRange(0, 3), verity.fec_data_extent); in TEST_F() 159 EXPECT_EQ(ExtentForRange(3, 2), verity.fec_extent); in TEST_F() 172 EXPECT_EQ(ExtentForRange(0, 2), verity.hash_tree_data_extent); in TEST_F() 173 EXPECT_EQ(ExtentForRange(2, 1), verity.hash_tree_extent); in TEST_F()
|
D | mapfile_filesystem.cc | 103 mapped_file.extents.push_back(ExtentForRange(block_start, 1)); in GetFiles() 122 ExtentForRange(block_start, block_end - block_start + 1)); in GetFiles()
|
D | raw_filesystem.cc | 51 file.extents = {ExtentForRange(0, block_count_)}; in GetFiles()
|
D | payload_generation_config_android.cc | 193 ExtentForRange(0, num_data_blocks); in LoadVerityConfig() 207 ExtentForRange(hash_start_block, tree_size / block_size); in LoadVerityConfig() 213 part.verity.fec_data_extent = ExtentForRange(0, ecc_data.blocks); in LoadVerityConfig()
|
D | extent_ranges.h | 43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
|
D | deflate_utils.cc | 159 ExtentForRange(gap_blocks + over_ext->start_block(), new_blocks), in ShiftExtentsOverExtents() 160 ExtentForRange(over_ext->start_block() + new_blocks, in ShiftExtentsOverExtents()
|
D | extent_utils.cc | 145 result.push_back(ExtentForRange(new_start, new_num_blocks)); in ExtentsSublist()
|
D | delta_diff_utils.cc | 370 ExtentForRange(0, new_part.size / kBlockSize)}; in DeltaReadPartition() 375 old_unvisited.push_back(ExtentForRange(0, old_part.size / kBlockSize)); in DeltaReadPartition() 506 ExtentForRange(extent.start_block() + offset, num_blocks); in DeltaMovedAndZeroBlocks()
|
/system/update_engine/payload_consumer/ |
D | extent_reader_unittest.cc | 80 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 92 vector<Extent> extents = {ExtentForRange(1, 0)}; in TEST_F() 111 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 120 vector<Extent> extents = {ExtentForRange(1, 0)}; in TEST_F() 135 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 144 vector<Extent> extents = {ExtentForRange(0, 0), in TEST_F() 145 ExtentForRange(1, 1), in TEST_F() 146 ExtentForRange(3, 0), in TEST_F() 147 ExtentForRange(4, 2), in TEST_F() 148 ExtentForRange(7, 1)}; in TEST_F()
|
D | extent_writer_unittest.cc | 66 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 86 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 108 ExtentForRange(1, 1), ExtentForRange(0, 1), ExtentForRange(2, 1)}; in WriteAlignedExtents() 144 vector<Extent> extents = {ExtentForRange(1, 1), in TEST_F() 145 ExtentForRange(kSparseHole, 2), in TEST_F() 146 ExtentForRange(0, 1)}; in TEST_F()
|
D | delta_performer_unittest.cc | 258 *(aop.op.add_src_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload() 259 *(aop.op.add_dst_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload() 459 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 481 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 507 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 527 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 547 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 569 *(aop.op.add_dst_extents()) = ExtentForRange(4, 2); in TEST_F() 570 *(aop.op.add_dst_extents()) = ExtentForRange(7, 1); in TEST_F() 585 *(aop.op.add_src_extents()) = ExtentForRange(0, 1); in TEST_F() [all …]
|
D | bzip_extent_writer_unittest.cc | 56 vector<Extent> extents = {ExtentForRange(0, 1)}; in TEST_F()
|
D | file_descriptor_utils_unittest.cc | 45 *result.Add() = ExtentForRange(item.first, item.second); in CreateExtentList()
|