Home
last modified time | relevance | path

Searched refs:ExtentForRange (Results 1 – 13 of 13) sorted by relevance

/system/update_engine/payload_generator/
Dextent_utils_unittest.cc58 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 …]
Dextent_ranges_unittest.cc61 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 …]
Ddelta_diff_utils_unittest.cc169 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 …]
Dab_generator_unittest.cc84 *(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 …]
Dextent_ranges.cc58 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 …]
Dinplace_generator_unittest.cc65 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()
Draw_filesystem.cc48 file.extents = { ExtentForRange(0, block_count_) }; in GetFiles()
Dextent_ranges.h43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
Dgraph_utils_unittest.cc78 vector<Extent>(1, ExtentForRange(5, 2))); in TEST()
Dextent_utils.cc152 result.push_back(ExtentForRange(new_start, new_num_blocks)); in ExtentsSublist()
Ddelta_diff_utils.cc250 ExtentForRange(0, new_part.size / kBlockSize)}; in DeltaReadPartition()
257 old_unvisited.push_back(ExtentForRange(0, old_part.size / kBlockSize)); in DeltaReadPartition()
Dinplace_generator.cc396 ranges.SubtractExtent(ExtentForRange( in AssignBlockForAdjoiningCuts()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc346 *(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 …]