Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/tests/unit/
Drangeset_test.cpp28 RangeSet rs(std::vector<Range>{ Range{ 8, 10 }, Range{ 1, 5 } }); in TEST() local
29 ASSERT_TRUE(rs); in TEST()
39 RangeSet rs = RangeSet::Parse("2,1,10"); in TEST() local
40 ASSERT_EQ(static_cast<size_t>(1), rs.size()); in TEST()
41 ASSERT_EQ((Range{ 1, 10 }), rs[0]); in TEST()
42 ASSERT_EQ(static_cast<size_t>(9), rs.blocks()); in TEST()
51 ASSERT_EQ(rs, RangeSet::Parse(" 2, 1, 10")); in TEST()
76 RangeSet rs = RangeSet::Parse("2,1,6"); in TEST() local
77 ASSERT_TRUE(rs); in TEST()
78 rs.Clear(); in TEST()
[all …]
/bootable/recovery/otautil/
Drangeset.cpp193 SortedRangeSet rs({ to_insert }); in Insert() local
194 Insert(rs); in Insert()
198 void SortedRangeSet::Insert(const SortedRangeSet& rs) { in Insert() argument
199 if (rs.size() == 0) { in Insert()
204 std::copy(rs.begin(), rs.end(), std::back_inserter(temp)); in Insert()
230 RangeSet rs({ { start / kBlockSize, (start + len - 1) / kBlockSize + 1 } }); in Overlaps() local
231 return Overlaps(rs); in Overlaps()
/bootable/recovery/otautil/include/otautil/
Drangeset.h150 void Insert(const SortedRangeSet& rs);
/bootable/recovery/updater/
Dblockimg.cpp2090 RangeSet rs = RangeSet::Parse(ranges->data); in RangeSha1Fn() local
2091 CHECK(static_cast<bool>(rs)); in RangeSha1Fn()
2097 for (const auto& [begin, end] : rs) { in RangeSha1Fn()
2206 RangeSet rs = RangeSet::Parse(ranges->data); in BlockImageRecoverFn() local
2207 if (!rs) { in BlockImageRecoverFn()
2236 for (const auto& [begin, end] : rs) { in BlockImageRecoverFn()