Lines Matching refs:ImageHeader
131 oat_file_option_string += ImageHeader::GetOatLocationFromImageLocation(image_filename); in GenerateImage()
229 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { in ReadSpecificImageHeader()
234 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader()
310 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader()
311 std::unique_ptr<ImageHeader> hdr(new ImageHeader); in ReadSpecificImageHeader()
319 ImageHeader* ImageSpace::ReadImageHeader(const char* image_location, in ReadImageHeader()
332 std::unique_ptr<ImageHeader> sys_hdr(new ImageHeader); in ReadImageHeader()
333 std::unique_ptr<ImageHeader> cache_hdr(new ImageHeader); in ReadImageHeader()
362 std::unique_ptr<ImageHeader> system(ReadSpecificImageHeader(system_filename.c_str(), in ReadImageHeader()
364 std::unique_ptr<ImageHeader> cache(ReadSpecificImageHeader(cache_filename.c_str(), in ReadImageHeader()
387 ImageHeader hdr_a; in ChecksumsMatch()
388 ImageHeader hdr_b; in ChecksumsMatch()
441 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations()
571 ImageHeader temp_image_header; in Init()
572 ImageHeader* image_header = &temp_image_header; in Init()
583 if (image_file_size < sizeof(ImageHeader) + image_header->GetDataSize()) { in Init()
586 sizeof(ImageHeader) + image_header->GetDataSize()); in Init()
606 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Init()
607 const auto section_idx = static_cast<ImageHeader::ImageSections>(i); in Init()
618 const size_t image_bitmap_offset = RoundUp(sizeof(ImageHeader) + image_header->GetDataSize(), in Init()
657 DCHECK_EQ(0, memcmp(image_header, map->Begin(), sizeof(ImageHeader))); in Init()
674 image_header = reinterpret_cast<ImageHeader*>(map->Begin()); in Init()
748 image_header->GetImageMethod(ImageHeader::kResolutionMethod)); in Init()
750 image_header->GetImageMethod(ImageHeader::kImtConflictMethod)); in Init()
752 image_header->GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in Init()
754 image_header->GetImageMethod(ImageHeader::kSaveAllCalleeSavesMethod)); in Init()
756 image_header->GetImageMethod(ImageHeader::kSaveRefsOnlyMethod)); in Init()
758 image_header->GetImageMethod(ImageHeader::kSaveRefsAndArgsMethod)); in Init()
760 image_header->GetImageMethod(ImageHeader::kSaveEverythingMethod)); in Init()
762 image_header->GetImageMethod(ImageHeader::kSaveEverythingMethodForClinit)); in Init()
764 image_header->GetImageMethod(ImageHeader::kSaveEverythingMethodForSuspendCheck)); in Init()
767 runtime->SetResolutionMethod(image_header->GetImageMethod(ImageHeader::kResolutionMethod)); in Init()
768 runtime->SetImtConflictMethod(image_header->GetImageMethod(ImageHeader::kImtConflictMethod)); in Init()
770 image_header->GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in Init()
772 image_header->GetImageMethod(ImageHeader::kSaveAllCalleeSavesMethod), in Init()
775 image_header->GetImageMethod(ImageHeader::kSaveRefsOnlyMethod), in Init()
778 image_header->GetImageMethod(ImageHeader::kSaveRefsAndArgsMethod), in Init()
781 image_header->GetImageMethod(ImageHeader::kSaveEverythingMethod), in Init()
784 image_header->GetImageMethod(ImageHeader::kSaveEverythingMethodForClinit), in Init()
787 image_header->GetImageMethod(ImageHeader::kSaveEverythingMethodForSuspendCheck), in Init()
801 const ImageHeader& image_header, in LoadImageFile()
807 const ImageHeader::StorageMode storage_mode = image_header.GetStorageMode(); in LoadImageFile()
808 if (storage_mode == ImageHeader::kStorageModeUncompressed) { in LoadImageFile()
821 if (storage_mode != ImageHeader::kStorageModeLZ4 && in LoadImageFile()
822 storage_mode != ImageHeader::kStorageModeLZ4HC) { in LoadImageFile()
840 const size_t decompress_offset = sizeof(ImageHeader); // Skip the header. in LoadImageFile()
841 std::unique_ptr<MemMap> temp_map(MemMap::MapFile(sizeof(ImageHeader) + stored_size, in LoadImageFile()
853 memcpy(map->Begin(), &image_header, sizeof(ImageHeader)); in LoadImageFile()
858 reinterpret_cast<char*>(temp_map->Begin()) + sizeof(ImageHeader), in LoadImageFile()
867 if (decompressed_size + sizeof(ImageHeader) != image_header.GetImageSize()) { in LoadImageFile()
871 decompressed_size + sizeof(ImageHeader), in LoadImageFile()
1189 static bool RelocateInPlace(ImageHeader& image_header, in RelocateInPlace()
1294 auto* dex_caches = image_header.GetImageRoot<kWithoutReadBarrier>(ImageHeader::kDexCaches)-> in RelocateInPlace()
1416 const ImageHeader& image_header = image.GetImageHeader(); in OpenOatFile()
1417 std::string oat_filename = ImageHeader::GetOatLocationFromImageLocation(image_path); in OpenOatFile()
1980 const ImageHeader& header = GetImageHeader(); in DumpSections()
1981 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in DumpSections()
1982 auto section_type = static_cast<ImageHeader::ImageSections>(i); in DumpSections()