Home
last modified time | relevance | path

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

/system/core/fs_mgr/libvbmeta/
Dreader.cpp96 const uint64_t offset = 2 * SUPER_VBMETA_TABLE_MAX_SIZE + slot * VBMETA_IMAGE_MAX_SIZE; in ReadVBMetaImage()
97 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImage()
98 if (!android::base::ReadFullyAtOffset(fd, buffer.get(), VBMETA_IMAGE_MAX_SIZE, offset)) { in ReadVBMetaImage()
101 return std::string(reinterpret_cast<char*>(buffer.get()), VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImage()
Dutility.cpp43 return 2 * SUPER_VBMETA_TABLE_MAX_SIZE + vbmeta_index * VBMETA_IMAGE_MAX_SIZE; in IndexOffset()
Dsuper_vbmeta_format_c.h41 #define VBMETA_IMAGE_MAX_SIZE 64 * 1024 macro
Dsuper_vbmeta_test.cpp81 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImageFromFile()
83 return std::string(reinterpret_cast<char*>(buffer.get()), VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImageFromFile()
143 SUPER_VBMETA_TABLE_MAX_SIZE * 2 + VBMETA_IMAGE_MAX_SIZE * 3); in TEST()
Dbuilder.cpp72 if (file_size.value() > VBMETA_IMAGE_MAX_SIZE) { in ReadVBMetaImageFromFile()
76 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImageFromFile()
81 return std::string(reinterpret_cast<const char*>(buffer.get()), VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImageFromFile()