Home
last modified time | relevance | path

Searched refs:ExtentForRange (Results 1 – 23 of 23) 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.cc64 ExtentForRange(a_start, a_num), ExtentForRange(b_start, b_num))); in ExpectRangesOverlapOrTouch()
66 ExtentForRange(b_start, b_num), ExtentForRange(a_start, a_num))); in ExpectRangesOverlapOrTouch()
74 ExtentForRange(a_start, a_num), ExtentForRange(b_start, b_num))); in ExpectFalseRangesOverlapOrTouch()
76 ExtentForRange(b_start, b_num), ExtentForRange(a_start, a_num))); in ExpectFalseRangesOverlapOrTouch()
77 EXPECT_FALSE(ExtentRanges::ExtentsOverlap(ExtentForRange(a_start, a_num), in ExpectFalseRangesOverlapOrTouch()
78 ExtentForRange(b_start, b_num))); in ExpectFalseRangesOverlapOrTouch()
79 EXPECT_FALSE(ExtentRanges::ExtentsOverlap(ExtentForRange(b_start, b_num), in ExpectFalseRangesOverlapOrTouch()
80 ExtentForRange(a_start, a_num))); in ExpectFalseRangesOverlapOrTouch()
87 EXPECT_TRUE(ExtentRanges::ExtentsOverlap(ExtentForRange(a_start, a_num), in ExpectRangesOverlap()
88 ExtentForRange(b_start, b_num))); in ExpectRangesOverlap()
[all …]
Ddeflate_utils_unittest.cc50 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 …]
Ddelta_diff_utils_unittest.cc173 new_part_.verity.hash_tree_extent = ExtentForRange(20, 30); in TEST_F()
174 new_part_.verity.fec_extent = ExtentForRange(40, 50); in TEST_F()
202 vector<Extent> old_extents = {ExtentForRange(11, 1)}; in TEST_F()
203 vector<Extent> new_extents = {ExtentForRange(1, 1)}; in TEST_F()
246 vector<Extent> old_extents = {ExtentForRange(20, 6), ExtentForRange(28, 2)}; in TEST_F()
247 vector<Extent> new_extents = {ExtentForRange(18, 1), in TEST_F()
248 ExtentForRange(21, 2), in TEST_F()
249 ExtentForRange(20, 1), in TEST_F()
250 ExtentForRange(24, 3), in TEST_F()
251 ExtentForRange(29, 1)}; in TEST_F()
[all …]
Dmapfile_filesystem_unittest.cc98 (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()
Dab_generator_unittest.cc85 ExtentForRange(op_ex1_start_block, op_ex1_num_blocks); in TestSplitReplaceOrReplaceBzOperation()
87 ExtentForRange(op_ex2_start_block, op_ex2_num_blocks); in TestSplitReplaceOrReplaceBzOperation()
235 *(first_op.add_dst_extents()) = ExtentForRange(0, first_op_num_blocks); in TestMergeReplaceOrReplaceBzOperations()
255 ExtentForRange(first_op_num_blocks, second_op_num_blocks); in TestMergeReplaceOrReplaceBzOperations()
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 …]
Dextent_ranges.cc60 AddExtent(ExtentForRange(block, 1)); in AddBlock()
64 SubtractExtent(ExtentForRange(block, 1)); in SubtractBlock()
75 return ExtentForRange(start, end - start); in UnionOverlappingExtents()
112 ret.insert(ExtentForRange(base.start_block(), in SubtractOverlappingExtents()
118 ret.insert(ExtentForRange(subtractee_end, base_end - subtractee_end)); in SubtractOverlappingExtents()
207 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1)); in ContainsBlock()
213 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0)); in ContainsBlock()
233 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks) { in ExtentForRange() function
245 return ExtentForRange(start_block, end_block - start_block); in ExtentForBytes()
292 ExtentForRange(extent.start_block() + extent.num_blocks(), 0)); in FilterExtentRanges()
[all …]
Dpayload_generation_config_android_unittest.cc153 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()
Dmapfile_filesystem.cc103 mapped_file.extents.push_back(ExtentForRange(block_start, 1)); in GetFiles()
122 ExtentForRange(block_start, block_end - block_start + 1)); in GetFiles()
Draw_filesystem.cc51 file.extents = {ExtentForRange(0, block_count_)}; in GetFiles()
Dinplace_generator_unittest.cc66 return vector<Extent>(1, ExtentForRange(start_block, num_blocks)); in VectOfExt()
612 StoreExtents({ExtentForRange(0, 1)}, aops.back().op.mutable_dst_extents()); in TEST_F()
618 StoreExtents({ExtentForRange(1 + i % (num_blocks - 1), 1)}, in TEST_F()
620 StoreExtents({ExtentForRange(i, 1)}, aop.op.mutable_dst_extents()); in TEST_F()
686 StoreExtents({ExtentForRange(0, 1)}, aops.back().op.mutable_dst_extents()); in TEST_F()
693 StoreExtents({ExtentForRange(1 + 2 * i, 2)}, aop.op.mutable_src_extents()); in TEST_F()
694 StoreExtents({ExtentForRange(1 + 2 * ((i + 1) % num_ops), 2)}, in TEST_F()
703 StoreExtents({ExtentForRange(8, 1)}, aop.op.mutable_src_extents()); in TEST_F()
704 StoreExtents({ExtentForRange(7, 1)}, aop.op.mutable_dst_extents()); in TEST_F()
Dpayload_generation_config_android.cc191 ExtentForRange(0, num_data_blocks); in LoadVerityConfig()
205 ExtentForRange(hash_start_block, tree_size / block_size); in LoadVerityConfig()
210 part.verity.fec_data_extent = ExtentForRange(0, ecc_data.blocks); in LoadVerityConfig()
Dextent_ranges.h43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
Dgraph_utils_unittest.cc77 &graph[2], 1, vector<Extent>(1, ExtentForRange(5, 2))); in TEST()
Ddeflate_utils.cc150 ExtentForRange(gap_blocks + over_ext->start_block(), new_blocks), in ShiftExtentsOverExtents()
151 ExtentForRange(over_ext->start_block() + new_blocks, in ShiftExtentsOverExtents()
Dextent_utils.cc145 result.push_back(ExtentForRange(new_start, new_num_blocks)); in ExtentsSublist()
Ddelta_diff_utils.cc472 ExtentForRange(0, new_part.size / kBlockSize)}; in DeltaReadPartition()
477 old_unvisited.push_back(ExtentForRange(0, old_part.size / kBlockSize)); in DeltaReadPartition()
627 ExtentForRange(extent.start_block() + offset, num_blocks); in DeltaMovedAndZeroBlocks()
Dinplace_generator.cc391 ExtentForRange(kTempBlockStart, kSparseHole - kTempBlockStart)); in AssignBlockForAdjoiningCuts()
/system/update_engine/payload_consumer/
Dextent_reader_unittest.cc80 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()
Dextent_writer_unittest.cc66 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()
Ddelta_performer_unittest.cc251 *(aop.op.add_src_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload()
252 *(aop.op.add_dst_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload()
450 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
472 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
498 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
518 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
538 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
560 *(aop.op.add_dst_extents()) = ExtentForRange(4, 2); in TEST_F()
561 *(aop.op.add_dst_extents()) = ExtentForRange(7, 1); in TEST_F()
576 *(aop.op.add_src_extents()) = ExtentForRange(0, 1); in TEST_F()
[all …]
Dbzip_extent_writer_unittest.cc56 vector<Extent> extents = {ExtentForRange(0, 1)}; in TEST_F()
Dfile_descriptor_utils_unittest.cc45 *result.Add() = ExtentForRange(item.first, item.second); in CreateExtentList()