/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 | extent_ranges_unittest.cc | 61 EXPECT_TRUE(ExtentRanges::ExtentsOverlapOrTouch(ExtentForRange(a_start, in ExpectRangesOverlapOrTouch() 63 ExtentForRange(b_start, in ExpectRangesOverlapOrTouch() 65 EXPECT_TRUE(ExtentRanges::ExtentsOverlapOrTouch(ExtentForRange(b_start, in ExpectRangesOverlapOrTouch() 67 ExtentForRange(a_start, in ExpectRangesOverlapOrTouch() 73 EXPECT_FALSE(ExtentRanges::ExtentsOverlapOrTouch(ExtentForRange(a_start, in ExpectFalseRangesOverlapOrTouch() 75 ExtentForRange(b_start, in ExpectFalseRangesOverlapOrTouch() 77 EXPECT_FALSE(ExtentRanges::ExtentsOverlapOrTouch(ExtentForRange(b_start, in ExpectFalseRangesOverlapOrTouch() 79 ExtentForRange(a_start, in ExpectFalseRangesOverlapOrTouch() 81 EXPECT_FALSE(ExtentRanges::ExtentsOverlap(ExtentForRange(a_start, in ExpectFalseRangesOverlapOrTouch() 83 ExtentForRange(b_start, in ExpectFalseRangesOverlapOrTouch() [all …]
|
D | delta_diff_utils_unittest.cc | 169 vector<Extent> old_extents = { ExtentForRange(11, 1) }; in TEST_F() 170 vector<Extent> new_extents = { ExtentForRange(1, 1) }; in TEST_F() 212 ExtentForRange(20, 6), in TEST_F() 213 ExtentForRange(28, 2) }; in TEST_F() 215 ExtentForRange(18, 1), in TEST_F() 216 ExtentForRange(21, 2), in TEST_F() 217 ExtentForRange(20, 1), in TEST_F() 218 ExtentForRange(24, 3), in TEST_F() 219 ExtentForRange(29, 1) }; in TEST_F() 254 ExtentForRange(20, 1), in TEST_F() [all …]
|
D | ab_generator_unittest.cc | 84 *(op.add_dst_extents()) = ExtentForRange(op_ex1_start_block, in TestSplitReplaceOrReplaceBzOperation() 86 *(op.add_dst_extents()) = ExtentForRange(op_ex2_start_block, in TestSplitReplaceOrReplaceBzOperation() 239 *(first_op.add_dst_extents()) = ExtentForRange(0, first_op_num_blocks); in TestMergeReplaceOrReplaceBzOperations() 260 *(second_op.add_dst_extents()) = ExtentForRange(first_op_num_blocks, in TestMergeReplaceOrReplaceBzOperations() 340 *(op.add_src_extents()) = ExtentForRange(2, 3); in TEST_F() 341 *(op.add_src_extents()) = ExtentForRange(6, 1); in TEST_F() 342 *(op.add_src_extents()) = ExtentForRange(8, 4); in TEST_F() 343 *(op.add_dst_extents()) = ExtentForRange(10, 2); in TEST_F() 344 *(op.add_dst_extents()) = ExtentForRange(14, 3); in TEST_F() 345 *(op.add_dst_extents()) = ExtentForRange(18, 3); in TEST_F() [all …]
|
D | extent_ranges.cc | 58 AddExtent(ExtentForRange(block, 1)); in AddBlock() 62 SubtractExtent(ExtentForRange(block, 1)); in SubtractBlock() 73 return ExtentForRange(start, end - start); in UnionOverlappingExtents() 109 ret.insert(ExtentForRange(base.start_block(), in SubtractOverlappingExtents() 115 ret.insert(ExtentForRange(subtractee_end, base_end - subtractee_end)); in SubtractOverlappingExtents() 196 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1)); in ContainsBlock() 202 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0)); in ContainsBlock() 221 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks) { in ExtentForRange() function 271 ExtentForRange(extent.start_block() + extent.num_blocks(), 0)); in FilterExtentRanges() 283 extent = ExtentForRange(extent.start_block() + cut_blocks, in FilterExtentRanges() [all …]
|
D | inplace_generator_unittest.cc | 65 return vector<Extent>(1, ExtentForRange(start_block, num_blocks)); in VectOfExt() 610 StoreExtents({ExtentForRange(0, 1)}, aops.back().op.mutable_dst_extents()); in TEST_F() 616 StoreExtents({ExtentForRange(1 + i % (num_blocks - 1), 1)}, in TEST_F() 618 StoreExtents({ExtentForRange(i, 1)}, aop.op.mutable_dst_extents()); in TEST_F() 684 StoreExtents({ExtentForRange(0, 1)}, aops.back().op.mutable_dst_extents()); in TEST_F() 691 StoreExtents({ExtentForRange(1 + 2 * i, 2)}, aop.op.mutable_src_extents()); in TEST_F() 692 StoreExtents({ExtentForRange(1 + 2 * ((i + 1) % num_ops), 2)}, in TEST_F() 701 StoreExtents({ExtentForRange(8, 1)}, aop.op.mutable_src_extents()); in TEST_F() 702 StoreExtents({ExtentForRange(7, 1)}, aop.op.mutable_dst_extents()); in TEST_F()
|
D | raw_filesystem.cc | 48 file.extents = { ExtentForRange(0, block_count_) }; in GetFiles()
|
D | extent_ranges.h | 43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
|
D | graph_utils_unittest.cc | 78 vector<Extent>(1, ExtentForRange(5, 2))); in TEST()
|
D | extent_utils.cc | 152 result.push_back(ExtentForRange(new_start, new_num_blocks)); in ExtentsSublist()
|
D | delta_diff_utils.cc | 250 ExtentForRange(0, new_part.size / kBlockSize)}; in DeltaReadPartition() 257 old_unvisited.push_back(ExtentForRange(0, old_part.size / kBlockSize)); in DeltaReadPartition()
|
D | inplace_generator.cc | 396 ranges.SubtractExtent(ExtentForRange( in AssignBlockForAdjoiningCuts()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 346 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 365 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 389 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 409 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 429 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 451 *(aop.op.add_dst_extents()) = ExtentForRange(4, 2); in TEST_F() 452 *(aop.op.add_dst_extents()) = ExtentForRange(7, 1); in TEST_F() 467 *(aop.op.add_src_extents()) = ExtentForRange(0, 1); in TEST_F() 468 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 494 *(aop.op.add_src_extents()) = ExtentForRange(0, 1); in TEST_F() [all …]
|