Home
last modified time | relevance | path

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

/aosp14/system/core/fs_mgr/liblp/include/liblp/
H A 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()
47 : SuperImageExtent(offset, size, Type::PARTITION) { in SuperImageExtent()
52 SuperImageExtent& operator=(const SuperImageExtent& other) = default; argument
53 SuperImageExtent& operator=(SuperImageExtent&& other) = default; argument
56 bool operator==(const SuperImageExtent& other) const;
[all …]
/aosp14/system/core/fs_mgr/liblp/
H A 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 …]
H A Dsuper_layout_builder.cpp86 static bool AddGapExtents(std::vector<SuperImageExtent>* extents, SuperImageExtent::Type gap_type) { in AddGapExtents()
87 std::vector<SuperImageExtent> old = std::move(*extents); in AddGapExtents()
112 std::vector<SuperImageExtent> SuperLayoutBuilder::GetImageLayout() { in GetImageLayout()
118 std::vector<SuperImageExtent> extents; in GetImageLayout()
193 if (!AddGapExtents(&extents, SuperImageExtent::Type::DONTCARE)) { in GetImageLayout()
199 bool SuperImageExtent::operator==(const SuperImageExtent& other) const { in operator ==()
219 std::ostream& operator<<(std::ostream& stream, const SuperImageExtent& extent) { in operator <<()
222 case SuperImageExtent::Type::DATA: in operator <<()
225 case SuperImageExtent::Type::PARTITION: in operator <<()
228 case SuperImageExtent::Type::ZERO: in operator <<()
[all …]
/aosp14/system/core/fastboot/
H A 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()
H A Dsuper_flash_helper.h50 std::vector<android::fs_mgr::SuperImageExtent> extents_;