Home
last modified time | relevance | path

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

/bootable/recovery/tests/unit/
Drangeset_test.cpp112 TEST(RangeSetTest, Overlaps) { in TEST() argument
115 ASSERT_TRUE(r1.Overlaps(r2)); in TEST()
116 ASSERT_TRUE(r2.Overlaps(r1)); in TEST()
119 ASSERT_FALSE(r1.Overlaps(r2)); in TEST()
120 ASSERT_FALSE(r2.Overlaps(r1)); in TEST()
122 ASSERT_FALSE(RangeSet::Parse("2,3,5").Overlaps(RangeSet::Parse("2,5,7"))); in TEST()
123 ASSERT_FALSE(RangeSet::Parse("2,5,7").Overlaps(RangeSet::Parse("2,3,5"))); in TEST()
282 ASSERT_TRUE(rs.Overlaps(4096 * 2 - 1, 10)); in TEST()
283 ASSERT_FALSE(rs.Overlaps(4096 * 10, 4096 * 5)); in TEST()
/bootable/recovery/otautil/include/otautil/
Drangeset.h50 bool Overlaps(const RangeSet& other) const;
155 using RangeSet::Overlaps;
157 bool Overlaps(size_t start, size_t len) const;
/bootable/recovery/otautil/
Drangeset.cpp175 bool RangeSet::Overlaps(const RangeSet& other) const { in Overlaps() function in RangeSet
233 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps() function in SortedRangeSet
235 return Overlaps(rs); in Overlaps()
/bootable/recovery/applypatch/
Dimgdiff.cpp227 if (!used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks()
237 if (AlignHead(start, length) && !used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks()
240 if (AlignTail(start, length) && !used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks()
1091 CHECK(!used_src_ranges.Overlaps(split_src_ranges[i])) in ValidateSplitImages()