Home
last modified time | relevance | path

Searched refs:SortedRangeSet (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/otautil/
Drangeset.cpp188 SortedRangeSet::SortedRangeSet(std::vector<Range>&& pairs) : RangeSet(std::move(pairs)) { in SortedRangeSet() function in SortedRangeSet
192 void SortedRangeSet::Insert(const Range& to_insert) { in Insert()
193 SortedRangeSet rs({ to_insert }); in Insert()
198 void SortedRangeSet::Insert(const SortedRangeSet& rs) { in Insert()
224 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert()
229 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps()
244 size_t SortedRangeSet::GetOffsetInRangeSet(size_t old_offset) const { in GetOffsetInRangeSet()
/bootable/recovery/tests/unit/
Drangeset_test.cpp252 SortedRangeSet rs({ { 2, 3 }, { 4, 6 }, { 8, 14 } }); in TEST()
254 ASSERT_EQ(SortedRangeSet({ { 1, 3 }, { 4, 6 }, { 8, 14 } }), rs); in TEST()
257 ASSERT_EQ(SortedRangeSet({ { 1, 6 }, { 8, 14 } }), rs); in TEST()
260 SortedRangeSet r1({ { 20, 22 }, { 15, 18 } }); in TEST()
262 ASSERT_EQ(SortedRangeSet({ { 1, 6 }, { 8, 14 }, { 15, 18 }, { 20, 22 } }), rs); in TEST()
265 SortedRangeSet r2({ { 2, 7 }, { 15, 21 }, { 20, 25 } }); in TEST()
267 ASSERT_EQ(SortedRangeSet({ { 1, 7 }, { 8, 14 }, { 15, 25 } }), rs); in TEST()
272 SortedRangeSet rs; in TEST()
274 ASSERT_EQ(SortedRangeSet({ { 1, 2 } }), rs); in TEST()
277 ASSERT_EQ(SortedRangeSet({ { 1, 10 } }), rs); in TEST()
[all …]
/bootable/recovery/otautil/include/otautil/
Drangeset.h137 class SortedRangeSet : public RangeSet {
142 SortedRangeSet() {} in SortedRangeSet() function
145 explicit SortedRangeSet(std::vector<Range>&& pairs);
150 void Insert(const SortedRangeSet& rs);
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h132 void UpdateSourceOffset(const SortedRangeSet& src_range);
245 const std::vector<SortedRangeSet>& split_src_ranges,
254 std::vector<SortedRangeSet>* split_src_ranges);
266 std::vector<SortedRangeSet>& split_src_ranges,
273 const SortedRangeSet& split_src_ranges,
/bootable/recovery/applypatch/
Dimgdiff.cpp226 static bool RemoveUsedBlocks(size_t* start, size_t* length, const SortedRangeSet& used_ranges) { in RemoveUsedBlocks()
473 void PatchChunk::UpdateSourceOffset(const SortedRangeSet& src_range) { in UpdateSourceOffset()
908 std::vector<SortedRangeSet>* split_src_ranges) { in SplitZipModeImageWithLimit()
915 SortedRangeSet used_src_ranges; // ranges used for previous split source images. in SplitZipModeImageWithLimit()
923 SortedRangeSet src_ranges; in SplitZipModeImageWithLimit()
994 const SortedRangeSet& split_src_ranges, in AddSplitImageFromChunkList()
1065 std::vector<SortedRangeSet>& split_src_ranges, in ValidateSplitImages()
1089 SortedRangeSet used_src_ranges; in ValidateSplitImages()
1162 const std::vector<SortedRangeSet>& split_src_ranges, in GeneratePatches()
1578 std::vector<SortedRangeSet> split_src_ranges; in imgdiff()
/bootable/recovery/tests/component/
Dimgdiff_test.cpp774 std::vector<SortedRangeSet> split_src_ranges; in TEST()
870 std::vector<SortedRangeSet> split_src_ranges; in TEST()