Searched refs:Interval (Results 1 – 6 of 6) sorted by relevance
/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 36 struct Interval; 75 bool OverlapsWith(const Interval& interval) const; 77 Interval AsInterval() const; 153 struct Interval { struct 158 Interval(uint32_t device_index, uint64_t start, uint64_t end) in Interval() function 164 bool operator<(const Interval& other) const { argument 172 static Interval Intersect(const Interval& a, const Interval& b); 175 static std::vector<Interval> Intersect(const std::vector<Interval>& a, 176 const std::vector<Interval>& b); 294 const std::vector<Interval>& free_region_hint = {}); [all …]
|
/system/core/fs_mgr/liblp/ |
D | builder_test.cpp | 891 bool operator==(const Interval& a, const Interval& b) { in operator ==() 897 TEST_F(BuilderTest, Interval) { in TEST_F() argument 898 EXPECT_EQ(0u, Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 100)).length()); in TEST_F() 899 EXPECT_EQ(Interval(0, 100, 150), in TEST_F() 900 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 150))); in TEST_F() 901 EXPECT_EQ(Interval(0, 100, 200), in TEST_F() 902 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 200))); in TEST_F() 903 EXPECT_EQ(Interval(0, 100, 200), in TEST_F() 904 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 250))); in TEST_F() 905 EXPECT_EQ(Interval(0, 100, 200), in TEST_F() [all …]
|
D | builder.cpp | 50 bool LinearExtent::OverlapsWith(const Interval& interval) const { in OverlapsWith() 57 Interval LinearExtent::AsInterval() const { in AsInterval() 58 return Interval(device_index(), physical_sector(), end_sector()); in AsInterval() 545 void MetadataBuilder::ExtentsToFreeList(const std::vector<Interval>& extents, in ExtentsToFreeList() 546 std::vector<Interval>* free_regions) const { in ExtentsToFreeList() 550 const Interval& previous = extents[i - 1]; in ExtentsToFreeList() 551 const Interval& current = extents[i]; in ExtentsToFreeList() 568 auto MetadataBuilder::GetFreeRegions() const -> std::vector<Interval> { in GetFreeRegions() 569 std::vector<Interval> free_regions; in GetFreeRegions() 573 std::vector<std::vector<Interval>> device_extents(block_devices_.size()); in GetFreeRegions() [all …]
|
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.h | 35 using Interval = android::fs_mgr::Interval; member 61 std::vector<Interval> cow_partition_usable_regions;
|
D | partition_cow_creator.cpp | 27 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()
|
D | snapshot_test.cpp | 61 using android::fs_mgr::Interval; 1177 static std::vector<Interval> ToIntervals(const std::vector<std::unique_ptr<Extent>>& extents) { in ToIntervals() 1178 std::vector<Interval> ret; in ToIntervals() 1225 auto intersect = Interval::Intersect(cow_intervals, old_intervals); in TEST_F()
|