Home
last modified time | relevance | path

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

/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h35 class LinearExtent; variable
57 virtual LinearExtent* AsLinearExtent() { return nullptr; } in AsLinearExtent()
73 class LinearExtent final : public Extent {
75 LinearExtent(uint64_t num_sectors, uint32_t device_index, uint64_t physical_sector) in LinearExtent() function
79 LinearExtent* AsLinearExtent() override { return this; } in AsLinearExtent()
88 bool OverlapsWith(const LinearExtent& other) const;
407 const LinearExtent& candidate) const;
408 bool IsAnyRegionAllocated(const LinearExtent& candidate) const;
412 std::unique_ptr<LinearExtent> ExtendFinalExtent(Partition* partition,
/system/core/fs_mgr/liblp/
Dbuilder.cpp41 auto linear_extent = static_cast<const LinearExtent*>(&extent); in operator <<()
50 bool LinearExtent::AddTo(LpMetadata* out) const { in AddTo()
60 bool LinearExtent::operator==(const android::fs_mgr::Extent& other) const { in operator ==()
65 auto other_ptr = static_cast<const LinearExtent*>(&other); in operator ==()
71 bool LinearExtent::OverlapsWith(const LinearExtent& other) const { in OverlapsWith()
78 bool LinearExtent::OverlapsWith(const Interval& interval) const { in OverlapsWith()
85 Interval LinearExtent::AsInterval() const { in AsInterval()
104 if (LinearExtent* new_extent = extent->AsLinearExtent()) { in AddExtent()
106 LinearExtent* prev_extent = extents_.back()->AsLinearExtent(); in AddExtent()
111 extent = std::make_unique<LinearExtent>( in AddExtent()
[all …]
Dutility_test.cpp99 bool operator==(const LinearExtent& l, const LinearExtent& r) { in operator ==()
106 static std::vector<LinearExtent> GetPartitionExtents(Partition* p) { in GetPartitionExtents()
107 std::vector<LinearExtent> extents; in GetPartitionExtents()
Dbuilder_test.cpp72 LinearExtent* extent = system->extents()[0]->AsLinearExtent(); in TEST_F()
285 LinearExtent* system1 = system->extents()[0]->AsLinearExtent(); in TEST_F()
286 LinearExtent* system2 = system->extents()[1]->AsLinearExtent(); in TEST_F()
287 LinearExtent* vendor1 = vendor->extents()[0]->AsLinearExtent(); in TEST_F()
366 LinearExtent* original_extent = original->extents()[i]->AsLinearExtent(); in TEST_F()
403 LinearExtent* system1 = system->extents()[0]->AsLinearExtent(); in TEST_F()
404 LinearExtent* system2 = system->extents()[1]->AsLinearExtent(); in TEST_F()
405 LinearExtent* vendor1 = vendor->extents()[0]->AsLinearExtent(); in TEST_F()
938 if (LinearExtent* le = extent->AsLinearExtent()) { in ToInterval()
1003 LinearExtent extent(20, 0, 10); in TEST_F()
[all …]