/art/test/596-app-images/ |
D | app_images.cc | 42 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/ |
D | app_image_regions.cc | 42 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/ |
D | image_test.cc | 77 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()
|
D | image_write_read_test.cc | 35 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()
|
D | image_test.h | 141 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()
|
D | image_writer.cc | 381 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/ |
D | imgdiag.cc | 198 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/space/ |
D | image_space.cc | 277 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() argument 279 if (!image_file->ReadFully(image_header, sizeof(ImageHeader))) { in ReadSpecificImageHeader() 283 if (!image_header->IsValid()) { in ReadSpecificImageHeader() 291 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() argument 298 return ReadSpecificImageHeader(image_file.get(), filename, image_header, error_msg); in ReadSpecificImageHeader() 744 const ImageHeader& image_header = space->GetImageHeader(); in InitAppImage() local 748 const uint32_t image_oat_checksum = image_header.GetOatChecksum(); in InitAppImage() 758 image_header, in InitAppImage() 767 uint32_t expected_reservation_size = RoundUp(image_header.GetImageSize(), kPageSize); in InitAppImage() 775 const PointerSize pointer_size = image_header.GetPointerSize(); in InitAppImage() [all …]
|
D | image_space_test.cc | 154 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/runtime/gc/collector/ |
D | immune_spaces_test.cc | 214 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/dex2oat/ |
D | dex2oat_test.cc | 659 ImageHeader image_header; in GetImageObjectSectionSize() local 660 const bool success = file->ReadFully(&image_header, sizeof(image_header)); in GetImageObjectSectionSize() 662 CHECK(image_header.IsValid()); in GetImageObjectSectionSize() 664 return image_header.GetObjectsSection().Size(); in GetImageObjectSectionSize() 783 ImageHeader image_header; in CheckResult() local 784 bool success = file->ReadFully(&image_header, sizeof(image_header)); in CheckResult() 786 ASSERT_TRUE(image_header.IsValid()); in CheckResult() 787 EXPECT_GT(image_header.GetObjectsSection().Size(), 0u); in CheckResult()
|
/art/runtime/ |
D | runtime.cc | 1653 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()
|
D | class_linker.cc | 1163 const ImageHeader& image_header = spaces[0]->GetImageHeader(); in InitFromBootImage() local 1164 uint32_t pointer_size_unchecked = image_header.GetPointerSizeUnchecked(); in InitFromBootImage() 1169 image_pointer_size_ = image_header.GetPointerSize(); in InitFromBootImage() 1182 runtime->SetResolutionMethod(image_header.GetImageMethod(ImageHeader::kResolutionMethod)); in InitFromBootImage() 1183 runtime->SetImtConflictMethod(image_header.GetImageMethod(ImageHeader::kImtConflictMethod)); in InitFromBootImage() 1185 image_header.GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in InitFromBootImage() 1187 image_header.GetImageMethod(ImageHeader::kSaveAllCalleeSavesMethod), in InitFromBootImage() 1190 image_header.GetImageMethod(ImageHeader::kSaveRefsOnlyMethod), in InitFromBootImage() 1193 image_header.GetImageMethod(ImageHeader::kSaveRefsAndArgsMethod), in InitFromBootImage() 1196 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethod), in InitFromBootImage() [all …]
|
/art/oatdump/ |
D | oatdump.cc | 1789 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()
|
/art/runtime/gc/ |
D | heap.cc | 175 const ImageHeader& image_header = image_spaces[i]->GetImageHeader(); in VerifyBootImagesContiguity() local 176 uint32_t reservation_size = image_header.GetImageReservationSize(); in VerifyBootImagesContiguity() 177 uint32_t image_count = image_header.GetImageSpaceCount(); in VerifyBootImagesContiguity()
|