Home
last modified time | relevance | path

Searched refs:vbmeta_index (Results 1 – 9 of 9) sorted by relevance

/system/core/fs_mgr/libvbmeta/
Dbuilder.cpp47 Result<uint8_t> vbmeta_index = AddVBMetaImage(vbmeta_name); in Build() local
48 if (!vbmeta_index.ok()) { in Build()
49 return vbmeta_index.error(); in Build()
53 ExportVBMetaImageToFile(vbmeta_index.value(), content.value()); in Build()
98 slot_number = desc->vbmeta_index; in AddVBMetaImage()
108 new_desc.vbmeta_index = slot_number; in AddVBMetaImage()
128 table_.header.in_use &= ~(1 << desc->vbmeta_index); in DeleteVBMetaImage()
174 Result<void> SuperVBMetaBuilder::ExportVBMetaImageToFile(const uint8_t vbmeta_index, in ExportVBMetaImageToFile() argument
177 WriteVBMetaImage(super_vbmeta_fd_, vbmeta_index, vbmeta_image); in ExportVBMetaImageToFile()
183 ValidateVBMetaImage(super_vbmeta_fd_, vbmeta_index, vbmeta_image); in ExportVBMetaImageToFile()
Dbuilder_test.cpp29 Result<uint8_t> vbmeta_index = builder->AddVBMetaImage("vbmeta" /* vbmeta_name */); in TEST() local
30 EXPECT_RESULT_OK(vbmeta_index); in TEST()
59 EXPECT_EQ(table->descriptors[0].vbmeta_index, 0); in TEST()
65 EXPECT_EQ(table->descriptors[1].vbmeta_index, 2); in TEST()
71 EXPECT_EQ(table->descriptors[2].vbmeta_index, 1); in TEST()
Dutility.cpp40 uint64_t IndexOffset(const uint8_t vbmeta_index) { in IndexOffset() argument
43 return 2 * SUPER_VBMETA_TABLE_MAX_SIZE + vbmeta_index * VBMETA_IMAGE_MAX_SIZE; in IndexOffset()
Dreader.h30 android::base::Result<void> ValidateVBMetaImage(int super_vbmeta_fd, int vbmeta_index,
Dutility.h34 uint64_t IndexOffset(const uint8_t vbmeta_index);
Dsuper_vbmeta_format_c.h115 uint8_t vbmeta_index; member
Dreader.cpp104 Result<void> ValidateVBMetaImage(int super_vbmeta_fd, int vbmeta_index, in ValidateVBMetaImage() argument
106 Result<std::string> content = ReadVBMetaImage(super_vbmeta_fd, vbmeta_index); in ValidateVBMetaImage()
Dsuper_vbmeta_test.cpp166 EXPECT_EQ(table.descriptors[0].vbmeta_index, 0); in TEST()
173 EXPECT_EQ(table.descriptors[1].vbmeta_index, 1); in TEST()
180 EXPECT_EQ(table.descriptors[2].vbmeta_index, 2); in TEST()
Dbuilder.h42 android::base::Result<void> ExportVBMetaImageToFile(const uint8_t vbmeta_index,