Home
last modified time | relevance | path

Searched refs:image_header (Results 1 – 8 of 8) sorted by relevance

/art/compiler/
Dimage_test.cc113 ImageHeader image_header; in TEST_F() local
114 ASSERT_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in TEST_F()
115 ASSERT_TRUE(image_header.IsValid()); in TEST_F()
116 ASSERT_GE(image_header.GetImageBitmapOffset(), sizeof(image_header)); in TEST_F()
117 ASSERT_NE(0U, image_header.GetImageBitmapSize()); in TEST_F()
125 ASSERT_GE(sizeof(image_header) + space->Size(), static_cast<size_t>(file->GetLength())); in TEST_F()
207 ImageHeader image_header(image_begin, in TEST_F() local
218 ASSERT_TRUE(image_header.IsValid()); in TEST_F()
220 char* magic = const_cast<char*>(image_header.GetMagic()); in TEST_F()
222 ASSERT_FALSE(image_header.IsValid()); in TEST_F()
[all …]
Dimage_writer.cc162 ImageHeader* image_header = reinterpret_cast<ImageHeader*>(image_->Begin()); in Write() local
174 CHECK_EQ(image_end_, image_header->GetImageSize()); in Write()
182 CHECK_ALIGNED(image_header->GetImageBitmapOffset(), kPageSize); in Write()
184 image_header->GetImageBitmapSize(), in Write()
185 image_header->GetImageBitmapOffset())) { in Write()
940 ImageHeader image_header(PointerToLowMemUInt32(image_begin_), in CalculateNewObjectOffsets() local
951 memcpy(image_->Begin(), &image_header, sizeof(image_header)); in CalculateNewObjectOffsets()
1255 ImageHeader* image_header = reinterpret_cast<ImageHeader*>(image_->Begin()); in PatchOatCodeAndMethods() local
1256 image_header->SetOatChecksum(oat_header->GetChecksum()); in PatchOatCodeAndMethods()
/art/runtime/gc/space/
Dimage_space.cc238 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { in ReadSpecificImageHeader() argument
243 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader()
244 if (!success || !image_header->IsValid()) { in ReadSpecificImageHeader()
309 ImageHeader* image_header = ReadImageHeader(image_location, image_isa, &error_msg); in ReadImageHeaderOrDie() local
310 if (image_header == nullptr) { in ReadImageHeaderOrDie()
313 return image_header; in ReadImageHeaderOrDie()
641 ImageHeader image_header; in Init() local
642 bool success = file->ReadFully(&image_header, sizeof(image_header)); in Init()
643 if (!success || !image_header.IsValid()) { in Init()
649 std::unique_ptr<MemMap> map(MemMap::MapFileAtAddress(image_header.GetImageBegin(), in Init()
[all …]
/art/patchoat/
Dpatchoat.cc139 ImageHeader image_header; in Patch() local
140 if (sizeof(image_header) != input_image->Read(reinterpret_cast<char*>(&image_header), in Patch()
141 sizeof(image_header), 0)) { in Patch()
146 /*bool is_image_pic = */IsImagePic(image_header, input_image->GetPath()); in Patch()
235 ImageHeader image_header; in Patch() local
236 if (sizeof(image_header) != input_image->Read(reinterpret_cast<char*>(&image_header), in Patch()
237 sizeof(image_header), 0)) { in Patch()
241 /*bool is_image_pic = */IsImagePic(image_header, input_image->GetPath()); in Patch()
359 bool PatchOat::IsImagePic(const ImageHeader& image_header, const std::string& image_path) { in IsImagePic() argument
360 if (!image_header.CompilePic()) { in IsImagePic()
[all …]
Dpatchoat.h76 static bool IsImagePic(const ImageHeader& image_header, const std::string& image_path);
/art/runtime/
Dclass_linker.cc994 const ImageHeader& image_header = image_space->GetImageHeader(); in FindOatFileInOatLocationForDexFile() local
995 uint32_t expected_image_oat_checksum = image_header.GetOatChecksum(); in FindOatFileInOatLocationForDexFile()
1004 … uintptr_t expected_image_oat_offset = reinterpret_cast<uintptr_t>(image_header.GetOatDataBegin()); in FindOatFileInOatLocationForDexFile()
1012 int32_t expected_patch_delta = image_header.GetPatchDelta(); in FindOatFileInOatLocationForDexFile()
1077 const ImageHeader& image_header = image_space->GetImageHeader(); in VerifyOatImageChecksum() local
1078 image_oat_checksum = image_header.GetOatChecksum(); in VerifyOatImageChecksum()
1080 std::unique_ptr<ImageHeader> image_header(gc::space::ImageSpace::ReadImageHeaderOrDie( in VerifyOatImageChecksum() local
1082 image_oat_checksum = image_header->GetOatChecksum(); in VerifyOatImageChecksum()
1104 const ImageHeader& image_header = image_space->GetImageHeader(); in VerifyOatChecksums() local
1105 image_oat_checksum = image_header.GetOatChecksum(); in VerifyOatChecksums()
[all …]
/art/runtime/native/
Ddalvik_system_VMRuntime.cc538 std::unique_ptr<ImageHeader> image_header(gc::space::ImageSpace::ReadImageHeader( in VMRuntime_isBootClassPathOnDisk() local
540 return image_header.get() != nullptr; in VMRuntime_isBootClassPathOnDisk()
/art/oatdump/
Doatdump.cc967 const ImageHeader& image_header, OatDumperOptions* oat_dumper_options) in ImageDumper() argument
970 image_header_(image_header), in ImageDumper()
1825 const ImageHeader& image_header = image_space->GetImageHeader(); in oatdump() local
1826 if (!image_header.IsValid()) { in oatdump()
1830 ImageDumper image_dumper(os, *image_space, image_header, oat_dumper_options.release()); in oatdump()