Searched refs:Interval (Results 1 – 7 of 7) sorted by relevance
/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 36 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/ |
D | builder_test.cpp | 889 bool operator==(const Interval& a, const Interval& b) { in operator ==() 895 TEST_F(BuilderTest, Interval) { in TEST_F() argument 896 EXPECT_EQ(0u, Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 100)).length()); in TEST_F() 897 EXPECT_EQ(Interval(0, 100, 150), in TEST_F() 898 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 150))); in TEST_F() 899 EXPECT_EQ(Interval(0, 100, 200), in TEST_F() 900 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 200))); in TEST_F() 901 EXPECT_EQ(Interval(0, 100, 200), in TEST_F() 902 Interval::Intersect(Interval(0, 100, 200), Interval(0, 50, 250))); in TEST_F() 903 EXPECT_EQ(Interval(0, 100, 200), in TEST_F() [all …]
|
D | builder.cpp | 78 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() 585 void MetadataBuilder::ExtentsToFreeList(const std::vector<Interval>& extents, in ExtentsToFreeList() 586 std::vector<Interval>* free_regions) const { in ExtentsToFreeList() 590 const Interval& previous = extents[i - 1]; in ExtentsToFreeList() 591 const Interval& current = extents[i]; in ExtentsToFreeList() 612 auto MetadataBuilder::GetFreeRegions() const -> std::vector<Interval> { in GetFreeRegions() 613 std::vector<Interval> free_regions; in GetFreeRegions() 617 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 76 std::vector<Interval> cow_partition_usable_regions;
|
D | partition_cow_creator.cpp | 28 using android::fs_mgr::Interval; 52 return Interval::Intersect(target_linear_extent->AsInterval(), in Intersect() 246 auto free_regions = Interval::Intersect(target_free_regions, current_free_regions); in Run()
|
D | snapshot_test.cpp | 87 using android::fs_mgr::Interval; 1734 static std::vector<Interval> ToIntervals(const std::vector<std::unique_ptr<Extent>>& extents) { in ToIntervals() 1735 std::vector<Interval> ret; in ToIntervals() 1791 auto intersect = Interval::Intersect(cow_intervals, old_intervals); in TEST_F()
|
/system/core/fs_mgr/liblp/fuzzer/ |
D | liblp_builder_fuzzer.cpp | 380 Interval::Intersect( in invokeBuilderAPIs() 381 Interval(mFdp.ConsumeIntegral<uint64_t>() /* device _index */, in invokeBuilderAPIs() 384 Interval(mFdp.ConsumeIntegral<uint64_t>() /* device _index */, in invokeBuilderAPIs() 389 vector<Interval> intervalVectorA; in invokeBuilderAPIs() 394 Interval(mFdp.ConsumeIntegral<uint64_t>() /* device _index */, in invokeBuilderAPIs() 399 vector<Interval> intervalVectorB; in invokeBuilderAPIs() 404 Interval(mFdp.ConsumeIntegral<uint64_t>() /* device _index */, in invokeBuilderAPIs() 409 Interval::Intersect(intervalVectorA, intervalVectorB); in invokeBuilderAPIs()
|