/aosp12/art/runtime/ |
H A D | vdex_file.cc | 47 constexpr uint8_t VdexFile::VdexFileHeader::kVdexInvalidMagic[4]; 48 constexpr uint8_t VdexFile::VdexFileHeader::kVdexMagic[4]; 49 constexpr uint8_t VdexFile::VdexFileHeader::kVdexVersion[4]; 51 bool VdexFile::VdexFileHeader::IsMagicValid() const { in IsMagicValid() 55 bool VdexFile::VdexFileHeader::IsVdexVersionValid() const { in IsVdexVersionValid() 67 std::unique_ptr<VdexFile> VdexFile::OpenAtAddress(uint8_t* mmap_addr, in OpenAtAddress() 111 std::unique_ptr<VdexFile> VdexFile::OpenAtAddress(uint8_t* mmap_addr, in OpenAtAddress() 146 std::unique_ptr<VdexFile> vdex(new VdexFile(std::move(mmap))); in OpenAtAddress() 248 bool VdexFile::WriteToDisk(const std::string& path, in WriteToDisk() 273 sizeof(VdexFile::VdexChecksum) * dex_files.size(); in WriteToDisk() [all …]
|
H A D | vdex_file.h | 88 class VdexFile { 187 explicit VdexFile(MemMap&& mmap) : mmap_(std::move(mmap)) {} in VdexFile() function 191 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, 202 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, 214 static std::unique_ptr<VdexFile> Open(const std::string& vdex_filename, in Open() 230 static std::unique_ptr<VdexFile> Open(int file_fd, in Open() 326 DISALLOW_COPY_AND_ASSIGN(VdexFile);
|
H A D | vdex_file_test.cc | 34 std::unique_ptr<VdexFile> vdex = VdexFile::Open(tmp.GetFd(), in TEST_F() 43 vdex = VdexFile::Open( in TEST_F()
|
H A D | oat_file.h | 50 class VdexFile; variable 160 std::unique_ptr<VdexFile>&& vdex_file, 166 std::unique_ptr<VdexFile>&& vdex_file, 374 VdexFile* GetVdexFile() const { in GetVdexFile() 396 std::unique_ptr<VdexFile> vdex_;
|
H A D | oat_file_assistant.cc | 335 bool OatFileAssistant::DexChecksumUpToDate(const VdexFile& file, std::string* error_msg) { in DexChecksumUpToDate() 430 VdexFile* vdex = file.GetVdexFile(); in GivenOatFileStatus() 831 std::unique_ptr<VdexFile> vdex; in GetFile() 839 vdex = VdexFile::Open(vdex_fd_, in GetFile() 849 vdex = VdexFile::Open(filename_, in GetFile()
|
H A D | oat_file.cc | 183 void SetVdex(VdexFile* vdex) { in SetVdex() 297 vdex_ = VdexFile::OpenAtAddress(vdex_begin_, in LoadVdex() 325 vdex_ = VdexFile::OpenAtAddress( in LoadVdex() 481 const VdexFile* vdex_file, in ComputeAndCheckTypeLookupTableData() 1494 VdexFile* vdex_file, 1545 VdexFile* vdex_file, in InitializeFromElfFile() 1636 std::unique_ptr<VdexFile>&& vdex_file, in Open() 1652 std::unique_ptr<VdexFile>&& unique_vdex_file, in Open() 1655 VdexFile* vdex_file = unique_vdex_file.get(); in Open() 1921 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex() [all …]
|
H A D | oat_file_manager.cc | 478 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() 480 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl() 692 if (!VdexFile::WriteToDisk(vdex_path_, in Run()
|
H A D | oat_file_assistant.h | 393 bool DexChecksumUpToDate(const VdexFile& file, std::string* error_msg);
|
/aosp12/art/dex2oat/ |
H A D | dex2oat_vdex_test.cc | 73 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location.c_str(), in GetVerifierDeps() 84 VdexFile::VdexFileHeader vdex_header = vdex->GetVdexFileHeader(); in GetVerifierDeps() 155 std::vector<std::unique_ptr<VdexFile>> opened_vdex_files_;
|
H A D | dex2oat.cc | 1206 input_vdex_file_ = VdexFile::Open(input_vdex_, in OpenFile() 1256 input_vdex_file_ = VdexFile::Open(input_vdex_fd_, in OpenFile() 1299 if (!vdex_file->PwriteFully(&VdexFile::VdexFileHeader::kVdexInvalidMagic, in OpenFile() 1300 arraysize(VdexFile::VdexFileHeader::kVdexInvalidMagic), in OpenFile() 1329 std::unique_ptr<ZipEntry> zip_entry(dm_file_->Find(VdexFile::kVdexNameInDmFile, &error_msg)); in OpenFile() 1331 LOG(INFO) << "No " << VdexFile::kVdexNameInDmFile << " file in DexMetadata archive. " in OpenFile() 1335 VdexFile::kVdexNameInDmFile, in OpenFile() 1338 alignof(VdexFile)); in OpenFile() 1342 input_vdex_file_ = std::make_unique<VdexFile>(std::move(input_file)); in OpenFile() 2916 std::unique_ptr<VdexFile> input_vdex_file_;
|
H A D | dex2oat_test.cc | 1728 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location.c_str(), in TEST_F() 1766 writer.StartEntry(VdexFile::kVdexNameInDmFile, ZipWriter::kCompress); in TEST_F()
|
/aosp12/art/dex2oat/linker/ |
H A D | oat_writer.cc | 692 size_vdex_header_ = sizeof(VdexFile::VdexFileHeader) + in WriteAndOpenDexFiles() 3756 off_t checksums_offset = VdexFile::GetChecksumsOffset(); in FinishVdexFile() 3757 VdexFile::VdexChecksum* checksums_data = in FinishVdexFile() 3762 size_vdex_checksums_ += sizeof(VdexFile::VdexChecksum); in FinishVdexFile() 3766 uint8_t* ptr = vdex_begin + sizeof(VdexFile::VdexFileHeader); in FinishVdexFile() 3769 new (ptr) VdexFile::VdexSectionHeader(VdexSection::kChecksumSection, in FinishVdexFile() 3772 ptr += sizeof(VdexFile::VdexSectionHeader); in FinishVdexFile() 3775 new (ptr) VdexFile::VdexSectionHeader( in FinishVdexFile() 3779 ptr += sizeof(VdexFile::VdexSectionHeader); in FinishVdexFile() 3785 ptr += sizeof(VdexFile::VdexSectionHeader); in FinishVdexFile() [all …]
|
H A D | oat_writer.h | 51 class VdexFile; variable 153 const VdexFile& vdex_file,
|
/aosp12/art/dexlayout/ |
H A D | dexdiag.cc | 330 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_name, in DisplayMappingIfFromVdexFile()
|
/aosp12/art/dex2oat/driver/ |
H A D | compiler_driver.h | 77 class VdexFile; variable
|
/aosp12/art/dexoptanalyzer/ |
H A D | dexoptanalyzer.cc | 418 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp()
|
/aosp12/art/oatdump/ |
H A D | oatdump.cc | 572 VdexFile::VdexFileHeader vdex_header = oat_file_.GetVdexFile()->GetVdexFileHeader(); in Dump() 615 std::unique_ptr<const VdexFile> vdex_file = OpenVdex(vdex_filename, in Dump() 766 std::unique_ptr<const VdexFile> OpenVdex(const std::string& vdex_filename, in OpenVdex() 795 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdex()
|