Searched refs:VBMETA_IMAGE_MAX_SIZE (Results 1 – 5 of 5) sorted by relevance
96 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()
43 return 2 * SUPER_VBMETA_TABLE_MAX_SIZE + vbmeta_index * VBMETA_IMAGE_MAX_SIZE; in IndexOffset()
41 #define VBMETA_IMAGE_MAX_SIZE 64 * 1024 macro
72 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()
81 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()