Home
last modified time | relevance | path

Searched refs:AftlImageHeader (Results 1 – 7 of 7) sorted by relevance

/external/avb/libavb_aftl/
Davb_aftl_types.h93 (AVB_AFTL_MAX_AFTL_IMAGE_SIZE - sizeof(AftlImageHeader))
188 typedef struct AftlImageHeader { struct
194 } AVB_ATTR_PACKED AftlImageHeader; argument
198 AftlImageHeader header;
Davb_aftl_util.c807 AftlImageHeader* image_header; in parse_aftl_image()
814 if (aftl_blob_size < sizeof(AftlImageHeader)) { in parse_aftl_image()
818 image_header = (AftlImageHeader*)aftl_blob; in parse_aftl_image()
826 if (image_size < sizeof(AftlImageHeader) || in parse_aftl_image()
837 avb_memcpy(&(image->header), aftl_blob, sizeof(AftlImageHeader)); in parse_aftl_image()
855 aftl_blob += sizeof(AftlImageHeader); in parse_aftl_image()
856 remaining_size = aftl_blob_size - sizeof(AftlImageHeader); in parse_aftl_image()
DREADME.md59 This structure contains the `AftlImageHeader` header that describes the number
/external/avb/test/
Davb_aftl_util_unittest.cc74 void TestAftlImageHeader(AftlImageHeader* aftl_header, uint16_t icp_count) { in TestAftlImageHeader()
112 AftlImageHeader* header; in TEST_F()
120 AftlImageHeader* header; in TEST_F()
/external/avb/
Daftltool_test.py515 self.assertIsInstance(d.image_header, aftltool.AftlImageHeader)
522 self.assertIsInstance(d.image_header, aftltool.AftlImageHeader)
654 self.test_header_valid = aftltool.AftlImageHeader()
657 self.test_header_invalid = aftltool.AftlImageHeader()
671 header = aftltool.AftlImageHeader()
677 self.assertEqual(header.aftl_image_size, aftltool.AftlImageHeader.SIZE)
682 header = aftltool.AftlImageHeader(self.test_header_bytes)
688 self.assertEqual(header.aftl_image_size, aftltool.AftlImageHeader.SIZE)
705 header = aftltool.AftlImageHeader()
709 header = aftltool.AftlImageHeader()
[all …]
Daftltool234 class AftlImageHeader(object): class
298 if self.magic != AftlImageHeader.MAGIC:
1328 image_header_bytes = data[0:AftlImageHeader.SIZE]
1329 self.image_header = AftlImageHeader(image_header_bytes)
1335 icp_index = AftlImageHeader.SIZE
1351 self.image_header = AftlImageHeader()
1600 tmp_header_bytes = image.read(AftlImageHeader.SIZE)
1601 if not tmp_header_bytes or len(tmp_header_bytes) != AftlImageHeader.SIZE:
1606 tmp_header = AftlImageHeader(tmp_header_bytes)
Daftltool.py234 class AftlImageHeader(object): class
298 if self.magic != AftlImageHeader.MAGIC:
1328 image_header_bytes = data[0:AftlImageHeader.SIZE]
1329 self.image_header = AftlImageHeader(image_header_bytes)
1335 icp_index = AftlImageHeader.SIZE
1351 self.image_header = AftlImageHeader()
1600 tmp_header_bytes = image.read(AftlImageHeader.SIZE)
1601 if not tmp_header_bytes or len(tmp_header_bytes) != AftlImageHeader.SIZE:
1606 tmp_header = AftlImageHeader(tmp_header_bytes)