Home
last modified time | relevance | path

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

/art/test/596-app-images/
Dapp_images.cc42 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageLoaded() local
43 if (image_header.IsAppImage()) { in Java_Main_checkAppImageLoaded()
57 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageContains() local
58 if (image_header.IsAppImage()) { in Java_Main_checkAppImageContains()
/art/test/1001-app-image-regions/
Dapp_image_regions.cc42 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageSectionSize() local
43 if (image_header.IsAppImage() && image_space->HasAddress(klass_ptr.Ptr())) { in Java_Main_checkAppImageSectionSize()
44 return image_header.GetObjectsSection().Size(); in Java_Main_checkAppImageSectionSize()
/art/dex2oat/linker/
Dimage_test.cc77 ImageHeader image_header(image_reservation_size, in TEST_F() local
94 ASSERT_TRUE(image_header.IsValid()); in TEST_F()
95 ASSERT_TRUE(!image_header.IsAppImage()); in TEST_F()
97 char* magic = const_cast<char*>(image_header.GetMagic()); in TEST_F()
99 ASSERT_FALSE(image_header.IsValid()); in TEST_F()
101 ASSERT_FALSE(image_header.IsValid()); in TEST_F()
Dimage_write_read_test.cc35 ImageHeader image_header; in TestWriteRead() local
36 ASSERT_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in TestWriteRead()
37 ASSERT_TRUE(image_header.IsValid()); in TestWriteRead()
38 const auto& bitmap_section = image_header.GetImageBitmapSection(); in TestWriteRead()
39 ASSERT_GE(bitmap_section.Offset(), sizeof(image_header)); in TestWriteRead()
Dimage_test.h141 ImageHeader image_header; in GetImageObjectSectionSizes() local
142 CHECK_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in GetImageObjectSectionSizes()
143 CHECK(image_header.IsValid()); in GetImageObjectSectionSizes()
144 ret.push_back(image_header.GetObjectsSection().Size()); in GetImageObjectSectionSizes()
Dimage_writer.cc381 bool WriteHeaderAndClose(const std::string& image_filename, const ImageHeader* image_header) { in WriteHeaderAndClose() argument
383 if (!image_file_->PwriteFully(image_header, sizeof(ImageHeader), 0)) { in WriteHeaderAndClose()
471 ImageHeader* const image_header = reinterpret_cast<ImageHeader*>(image_info.image_.Begin()); in Write() local
489 add_blocks(sizeof(ImageHeader), image_header->GetImageSize() - sizeof(ImageHeader)); in Write()
494 reinterpret_cast<const uint8_t*>(image_header), in Write()
541 image_header->blocks_offset_ = out_offset; in Write()
542 image_header->blocks_count_ = blocks.size(); in Write()
547 image_header->data_size_ = out_offset - sizeof(ImageHeader); in Write()
551 ImageSection& bitmap_section = image_header->GetImageSection(ImageHeader::kSectionImageBitmap); in Write()
573 image_header->SetImageChecksum(image_checksum); in Write()
[all …]
/art/imgdiag/
Dimgdiag.cc198 const ImageHeader& image_header) in RemoteContentsPointerToLocal() argument
207 const uint8_t* local_ptr = reinterpret_cast<const uint8_t*>(&image_header) + boot_offset; in RemoteContentsPointerToLocal()
237 const ImageHeader& image_header) : in RegionCommon()
242 image_header_(image_header), in RegionCommon()
384 const ImageHeader& image_header, in RegionSpecializedBase() argument
386 : RegionCommon<mirror::Object>(os, remote_contents, zygote_contents, boot_map, image_header), in RegionSpecializedBase()
712 const ImageHeader& image_header, in RegionSpecializedBase() argument
714 : RegionCommon<ArtMethod>(os, remote_contents, zygote_contents, boot_map, image_header), in RegionSpecializedBase()
952 const ImageHeader& image_header, in RegionData() argument
958 image_header, in RegionData()
[all …]
/art/runtime/gc/collector/
Dimmune_spaces_test.cc214 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F() local
215 DummySpace space(image_header.GetOatFileEnd(), image_header.GetOatFileEnd() + kOtherSpaceSize); in TEST_F()
217 EXPECT_EQ(image_header.GetImageSize(), kImageSize); in TEST_F()
218 EXPECT_EQ(static_cast<size_t>(image_header.GetOatFileEnd() - image_header.GetOatFileBegin()), in TEST_F()
/art/runtime/gc/space/
Dimage_space_test.cc154 const ImageHeader& image_header = space->GetImageHeader(); in TEST_F() local
155 if (image_header.GetInternedStringsSection().Size() != 0u) { in TEST_F()
156 const uint8_t* data = space->Begin() + image_header.GetInternedStringsSection().Offset(); in TEST_F()
/art/dex2oat/
Ddex2oat_test.cc711 ImageHeader image_header; in GetImageObjectSectionSize() local
712 const bool success = file->ReadFully(&image_header, sizeof(image_header)); in GetImageObjectSectionSize()
714 CHECK(image_header.IsValid()); in GetImageObjectSectionSize()
716 return image_header.GetObjectsSection().Size(); in GetImageObjectSectionSize()
838 ImageHeader image_header; in CheckResult() local
839 bool success = file->ReadFully(&image_header, sizeof(image_header)); in CheckResult()
841 ASSERT_TRUE(image_header.IsValid()); in CheckResult()
842 EXPECT_GT(image_header.GetObjectsSection().Size(), 0u); in CheckResult()
/art/runtime/
Druntime.cc1653 const ImageHeader& image_header = GetHeap()->GetBootImageSpaces()[0]->GetImageHeader(); in Init() local
1656 image_header.GetImageRoot(ImageHeader::kBootImageLiveObjects)); in Init()
2252 const auto& image_header = image_space->GetImageHeader(); in VisitImageRoots() local
2253 for (int32_t i = 0, size = image_header.GetImageRoots()->GetLength(); i != size; ++i) { in VisitImageRoots()
2255 image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)).Ptr(); in VisitImageRoots()
/art/oatdump/
Doatdump.cc1789 const ImageHeader& image_header, in ImageDumper() argument
1795 image_header_(image_header), in ImageDumper()
2743 const ImageHeader& image_header = image_space->GetImageHeader(); in DumpImage() local
2744 if (!image_header.IsValid()) { in DumpImage()
2748 ImageDumper image_dumper(os, *image_space, image_header, options); in DumpImage()