Home
last modified time | relevance | path

Searched refs:SuperImageExtent (Results 1 – 5 of 5) sorted by relevance

/system/core/fs_mgr/liblp/include/liblp/
Dsuper_layout_builder.h32 struct SuperImageExtent { struct
35 SuperImageExtent(const SuperImageExtent& other) = default; argument
36 SuperImageExtent(SuperImageExtent&& other) = default;
37 SuperImageExtent(uint64_t offset, uint64_t size, Type type) in SuperImageExtent() function
40 SuperImageExtent(uint64_t offset, std::shared_ptr<std::string> blob) in SuperImageExtent() argument
41 : SuperImageExtent(offset, blob->size(), Type::DATA) { in SuperImageExtent()
45 SuperImageExtent(uint64_t offset, uint64_t size, const std::string& image_name, in SuperImageExtent() argument
47 : SuperImageExtent(offset, size, Type::PARTITION) { in SuperImageExtent()
52 SuperImageExtent& operator=(const SuperImageExtent& other) = default; argument
53 SuperImageExtent& operator=(SuperImageExtent&& other) = default; argument
[all …]
/system/core/fs_mgr/liblp/
Dsuper_layout_builder_test.cpp54 EXPECT_EQ(extents[0], SuperImageExtent(0, 4096, SuperImageExtent::Type::ZERO)); in TEST()
55 EXPECT_EQ(extents[1], SuperImageExtent(4096, geometry_blob)); in TEST()
56 EXPECT_EQ(extents[2], SuperImageExtent(8192, geometry_blob)); in TEST()
57 EXPECT_EQ(extents[3], SuperImageExtent(12288, metadata_blob)); in TEST()
58 EXPECT_EQ(extents[4], SuperImageExtent(16384, 4096, SuperImageExtent::Type::DONTCARE)); in TEST()
59 EXPECT_EQ(extents[5], SuperImageExtent(20480, metadata_blob)); in TEST()
60 EXPECT_EQ(extents[6], SuperImageExtent(24576, 4096, SuperImageExtent::Type::DONTCARE)); in TEST()
61 EXPECT_EQ(extents[7], SuperImageExtent(28672, metadata_blob)); in TEST()
62 EXPECT_EQ(extents[8], SuperImageExtent(32768, 4096, SuperImageExtent::Type::DONTCARE)); in TEST()
63 EXPECT_EQ(extents[9], SuperImageExtent(36864, metadata_blob)); in TEST()
[all …]
Dsuper_layout_builder.cpp88 static bool AddGapExtents(std::vector<SuperImageExtent>* extents, SuperImageExtent::Type gap_type) { in AddGapExtents()
89 std::vector<SuperImageExtent> old = std::move(*extents); in AddGapExtents()
114 std::vector<SuperImageExtent> SuperLayoutBuilder::GetImageLayout() { in GetImageLayout()
120 std::vector<SuperImageExtent> extents; in GetImageLayout()
126 extents.emplace_back(0, GetPrimaryGeometryOffset(), SuperImageExtent::Type::ZERO); in GetImageLayout()
195 if (!AddGapExtents(&extents, SuperImageExtent::Type::DONTCARE)) { in GetImageLayout()
201 bool SuperImageExtent::operator==(const SuperImageExtent& other) const { in operator ==()
221 std::ostream& operator<<(std::ostream& stream, const SuperImageExtent& extent) { in operator <<()
224 case SuperImageExtent::Type::DATA: in operator <<()
227 case SuperImageExtent::Type::PARTITION: in operator <<()
[all …]
/system/core/fastboot/
Dsuper_flash_helper.cpp25 using android::fs_mgr::SuperImageExtent;
97 case SuperImageExtent::Type::DONTCARE: in GetSparseLayout()
99 case SuperImageExtent::Type::ZERO: in GetSparseLayout()
102 case SuperImageExtent::Type::DATA: in GetSparseLayout()
105 case SuperImageExtent::Type::PARTITION: { in GetSparseLayout()
Dsuper_flash_helper.h50 std::vector<android::fs_mgr::SuperImageExtent> extents_;