Searched refs:LP_METADATA_GEOMETRY_SIZE (Results 1 – 7 of 7) sorted by relevance
74 return GetPrimaryGeometryOffset() + LP_METADATA_GEOMETRY_SIZE; in GetBackupGeometryOffset()79 int64_t offset = LP_PARTITION_RESERVED_BYTES + (LP_METADATA_GEOMETRY_SIZE * 2) + in GetPrimaryMetadataOffset()86 int64_t start = LP_PARTITION_RESERVED_BYTES + (LP_METADATA_GEOMETRY_SIZE * 2) + in GetBackupMetadataOffset()93 (LP_METADATA_GEOMETRY_SIZE + metadata_max_size * max_slots) * 2; in GetTotalMetadataSize()
72 static_assert(sizeof(*geometry) <= LP_METADATA_GEOMETRY_SIZE); in ParseGeometry()115 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(LP_METADATA_GEOMETRY_SIZE); in ReadPrimaryGeometry()120 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadPrimaryGeometry()121 PERROR << __PRETTY_FUNCTION__ << " read " << LP_METADATA_GEOMETRY_SIZE << " bytes failed"; in ReadPrimaryGeometry()128 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(LP_METADATA_GEOMETRY_SIZE); in ReadBackupGeometry()133 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadBackupGeometry()134 PERROR << __PRETTY_FUNCTION__ << " backup read " << LP_METADATA_GEOMETRY_SIZE in ReadBackupGeometry()
37 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(LP_METADATA_GEOMETRY_SIZE); in ReadFromImageFile()42 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadFromImageFile()54 if (bytes < LP_METADATA_GEOMETRY_SIZE) { in ReadFromImageBlob()65 reinterpret_cast<const uint8_t*>(data) + LP_METADATA_GEOMETRY_SIZE; in ReadFromImageBlob()66 size_t metadata_buffer_size = bytes - LP_METADATA_GEOMETRY_SIZE; in ReadFromImageBlob()121 if (LP_METADATA_GEOMETRY_SIZE % block_size != 0) { in ImageBuilder()
39 blob.resize(LP_METADATA_GEOMETRY_SIZE); in SerializeGeometry()100 uint64_t reserved_size = LP_METADATA_GEOMETRY_SIZE + in ValidateAndSerializeMetadata()
339 ((kMetadataSize * kMetadataSlots) + LP_METADATA_GEOMETRY_SIZE) * 2; in TEST_F()424 device_info.size += LP_PARTITION_RESERVED_BYTES + (LP_METADATA_GEOMETRY_SIZE * 2); in TEST_F()
324 char corruption[LP_METADATA_GEOMETRY_SIZE]; in TEST()
35 #define LP_METADATA_GEOMETRY_SIZE 4096 macro