Home
last modified time | relevance | path

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

/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h36 struct Interval;
89 bool OverlapsWith(const Interval& interval) const;
91 Interval AsInterval() const;
169 struct Interval { struct
174 Interval(uint32_t device_index, uint64_t start, uint64_t end) in Interval() argument
180 bool operator<(const Interval& other) const { argument
188 static Interval Intersect(const Interval& a, const Interval& b);
191 static std::vector<Interval> Intersect(const std::vector<Interval>& a,
192 const std::vector<Interval>& b);
318 const std::vector<Interval>& free_region_hint = {});
[all …]
/system/core/fs_mgr/liblp/
Dbuilder_test.cpp892 bool operator==(const Interval& a, const Interval& b) { in operator ==()
898 TEST_F(BuilderTest, Interval) { in TEST_F() argument
899 EXPECT_EQ(0u, Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 100)).length()); in TEST_F()
900 EXPECT_EQ(Interval(0, 100, 150), in TEST_F()
901 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 150))); in TEST_F()
902 EXPECT_EQ(Interval(0, 100, 200), in TEST_F()
903 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 200))); in TEST_F()
904 EXPECT_EQ(Interval(0, 100, 200), in TEST_F()
905 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 250))); in TEST_F()
906 EXPECT_EQ(Interval(0, 100, 200), in TEST_F()
[all …]
Dbuilder.cpp78 bool LinearExtent::OverlapsWith(const Interval& interval) const { in OverlapsWith()
85 Interval LinearExtent::AsInterval() const { in AsInterval()
86 return Interval(device_index(), physical_sector(), end_sector()); in AsInterval()
590 void MetadataBuilder::ExtentsToFreeList(const std::vector<Interval>& extents, in ExtentsToFreeList()
591 std::vector<Interval>* free_regions) const { in ExtentsToFreeList()
595 const Interval& previous = extents[i - 1]; in ExtentsToFreeList()
596 const Interval& current = extents[i]; in ExtentsToFreeList()
617 auto MetadataBuilder::GetFreeRegions() const -> std::vector<Interval> { in GetFreeRegions()
618 std::vector<Interval> free_regions; in GetFreeRegions()
622 std::vector<std::vector<Interval>> device_extents(block_devices_.size()); in GetFreeRegions()
[all …]
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.h35 using Interval = android::fs_mgr::Interval; member
61 std::vector<Interval> cow_partition_usable_regions;
Dpartition_cow_creator.cpp27 using android::fs_mgr::Interval;
47 return Interval::Intersect(target_linear_extent->AsInterval(), in Intersect()
207 auto free_regions = Interval::Intersect(target_free_regions, current_free_regions); in Run()
Dsnapshot_test.cpp66 using android::fs_mgr::Interval;
1183 static std::vector<Interval> ToIntervals(const std::vector<std::unique_ptr<Extent>>& extents) { in ToIntervals()
1184 std::vector<Interval> ret; in ToIntervals()
1231 auto intersect = Interval::Intersect(cow_intervals, old_intervals); in TEST_F()