Searched refs:LP_METADATA_GEOMETRY_SIZE (Results 1 – 7 of 7) sorted by relevance
44 if (s.st_size < LP_METADATA_GEOMETRY_SIZE) { in IsEmptySuperImage()71 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(LP_METADATA_GEOMETRY_SIZE); in ReadFromImageFile()76 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadFromImageFile()88 if (bytes < LP_METADATA_GEOMETRY_SIZE) { in ReadFromImageBlob()99 reinterpret_cast<const uint8_t*>(data) + LP_METADATA_GEOMETRY_SIZE; in ReadFromImageBlob()100 size_t metadata_buffer_size = bytes - LP_METADATA_GEOMETRY_SIZE; in ReadFromImageBlob()155 if (LP_METADATA_GEOMETRY_SIZE % block_size != 0) { in ImageBuilder()
76 static_assert(sizeof(*geometry) <= LP_METADATA_GEOMETRY_SIZE); in ParseGeometry()119 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(LP_METADATA_GEOMETRY_SIZE); in ReadPrimaryGeometry()124 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadPrimaryGeometry()125 PERROR << __PRETTY_FUNCTION__ << " read " << LP_METADATA_GEOMETRY_SIZE << " bytes failed"; in ReadPrimaryGeometry()132 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(LP_METADATA_GEOMETRY_SIZE); in ReadBackupGeometry()137 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadBackupGeometry()138 PERROR << __PRETTY_FUNCTION__ << " backup read " << LP_METADATA_GEOMETRY_SIZE in ReadBackupGeometry()
80 return GetPrimaryGeometryOffset() + LP_METADATA_GEOMETRY_SIZE; in GetBackupGeometryOffset()85 int64_t offset = LP_PARTITION_RESERVED_BYTES + (LP_METADATA_GEOMETRY_SIZE * 2) + in GetPrimaryMetadataOffset()92 int64_t start = LP_PARTITION_RESERVED_BYTES + (LP_METADATA_GEOMETRY_SIZE * 2) + in GetBackupMetadataOffset()99 (LP_METADATA_GEOMETRY_SIZE + metadata_max_size * max_slots) * 2; in GetTotalMetadataSize()
40 blob.resize(LP_METADATA_GEOMETRY_SIZE); in SerializeGeometry()102 uint64_t reserved_size = LP_METADATA_GEOMETRY_SIZE + in ValidateAndSerializeMetadata()
348 ((kMetadataSize * kMetadataSlots) + LP_METADATA_GEOMETRY_SIZE) * 2; in TEST_F()434 device_info.size += LP_PARTITION_RESERVED_BYTES + (LP_METADATA_GEOMETRY_SIZE * 2); in TEST_F()
327 char corruption[LP_METADATA_GEOMETRY_SIZE]; in TEST_F()
35 #define LP_METADATA_GEOMETRY_SIZE 4096 macro