Home
last modified time | relevance | path

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

/bootable/recovery/otautil/include/otautil/
Drangeset.h26 using Range = std::pair<size_t, size_t>; variable
32 explicit RangeSet(std::vector<Range>&& pairs);
39 bool PushBack(Range range);
77 std::vector<Range>::const_iterator cbegin() const { in cbegin()
81 std::vector<Range>::const_iterator cend() const { in cend()
85 std::vector<Range>::iterator begin() { in begin()
89 std::vector<Range>::iterator end() { in end()
93 std::vector<Range>::const_iterator begin() const { in begin()
97 std::vector<Range>::const_iterator end() const { in end()
102 std::vector<Range>::const_reverse_iterator crbegin() const { in crbegin()
[all …]
/bootable/recovery/tests/unit/
Drangeset_test.cpp29 RangeSet rs(std::vector<Range>{ Range{ 8, 10 }, Range{ 1, 5 } }); in TEST()
32 RangeSet rs2(std::vector<Range>{}); in TEST()
35 RangeSet rs3(std::vector<Range>{ Range{ 8, 10 }, Range{ 5, 1 } }); in TEST()
42 ASSERT_EQ((Range{ 1, 10 }), rs[0]); in TEST()
47 ASSERT_EQ((Range{ 15, 20 }), rs2[0]); in TEST()
48 ASSERT_EQ((Range{ 1, 10 }), rs2[1]); in TEST()
230 std::vector<Range> ranges; in TEST()
234 ASSERT_EQ((std::vector<Range>{ Range{ 1, 5 }, Range{ 8, 10 } }), ranges); in TEST()
242 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()
Dupdater_test.cpp1173 ::testing::Range(static_cast<size_t>(0),
/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()
240 SortedRangeSet::SortedRangeSet(std::vector<Range>&& pairs) : RangeSet(std::move(pairs)) { in SortedRangeSet()
244 void SortedRangeSet::Insert(const Range& to_insert) { in Insert()
255 std::vector<Range> temp = std::move(ranges_); in Insert()
261 Range to_insert = temp.front(); in Insert()
277 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert()
/bootable/recovery/updater/
Dblockimg.cpp305 const Range& range = tgt_[next_range_]; in SeekToOutputRange()
594 locs = RangeSet(std::vector<Range>{ Range{ 0, src.blocks() } }); in PrintHashForCorruptedSourceBlocks()
2177 RangeSet blk0(std::vector<Range>{ Range{ 0, 1 } }); in CheckFirstBlockFn()
Dcommands.cpp363 const RangeSet& location = location_ ? location_ : RangeSet({ Range{ 0, ranges_.blocks() } }); in DumpBuffer()