Home
last modified time | relevance | path

Searched refs:Range (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/otautil/include/otautil/
Drangeset.h25 using Range = std::pair<size_t, size_t>; variable
31 explicit RangeSet(std::vector<Range>&& pairs);
38 bool PushBack(Range range);
70 std::vector<Range>::const_iterator cbegin() const { in cbegin()
74 std::vector<Range>::const_iterator cend() const { in cend()
78 std::vector<Range>::iterator begin() { in begin()
82 std::vector<Range>::iterator end() { in end()
86 std::vector<Range>::const_iterator begin() const { in begin()
90 std::vector<Range>::const_iterator end() const { in end()
95 std::vector<Range>::const_reverse_iterator crbegin() const { in crbegin()
[all …]
/bootable/recovery/tests/unit/
Drangeset_test.cpp28 RangeSet rs(std::vector<Range>{ Range{ 8, 10 }, Range{ 1, 5 } }); in TEST()
31 RangeSet rs2(std::vector<Range>{}); in TEST()
34 RangeSet rs3(std::vector<Range>{ Range{ 8, 10 }, Range{ 5, 1 } }); in TEST()
41 ASSERT_EQ((Range{ 1, 10 }), rs[0]); in TEST()
46 ASSERT_EQ((Range{ 15, 20 }), rs2[0]); in TEST()
47 ASSERT_EQ((Range{ 1, 10 }), rs2[1]); in TEST()
229 std::vector<Range> ranges; in TEST()
233 ASSERT_EQ((std::vector<Range>{ Range{ 1, 5 }, Range{ 8, 10 } }), ranges); in TEST()
241 ASSERT_EQ((std::vector<Range>{ Range{ 8, 10 }, Range{ 1, 5 } }), ranges); in TEST()
Dsysutil_test.cpp45 ASSERT_EQ(RangeSet(std::vector<Range>{ in TEST()
/bootable/recovery/otautil/
Drangeset.cpp32 RangeSet::RangeSet(std::vector<Range>&& pairs) { in RangeSet()
72 std::vector<Range> pairs; in Parse()
85 bool RangeSet::PushBack(Range range) { in PushBack()
122 Range range = *it; in Split()
188 SortedRangeSet::SortedRangeSet(std::vector<Range>&& pairs) : RangeSet(std::move(pairs)) { in SortedRangeSet()
192 void SortedRangeSet::Insert(const Range& to_insert) { in Insert()
203 std::vector<Range> temp = std::move(ranges_); in Insert()
209 Range to_insert = temp.front(); in Insert()
225 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert()
/bootable/recovery/updater/
Dblockimg.cpp300 const Range& range = tgt_[next_range_]; in SeekToOutputRange()
589 locs = RangeSet(std::vector<Range>{ Range{ 0, src.blocks() } }); in PrintHashForCorruptedSourceBlocks()
2154 RangeSet blk0(std::vector<Range>{ Range{ 0, 1 } }); in CheckFirstBlockFn()
Dcommands.cpp363 const RangeSet& location = location_ ? location_ : RangeSet({ Range{ 0, ranges_.blocks() } }); in DumpBuffer()
/bootable/recovery/tests/component/
Dupdater_test.cpp1171 ::testing::Range(static_cast<size_t>(0),