/art/runtime/ |
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() 59 VdexFile::VdexFileHeader::VdexFileHeader(bool has_dex_section ATTRIBUTE_UNUSED) in VdexFileHeader() 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() 169 const uint8_t* VdexFile::GetNextDexFileData(const uint8_t* cursor, uint32_t dex_file_index) const { in GetNextDexFileData() [all …]
|
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()
|
D | vdex_file.h | 88 class VdexFile { 189 explicit VdexFile(MemMap&& mmap) : mmap_(std::move(mmap)) {} in VdexFile() function 193 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, 204 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, 216 static std::unique_ptr<VdexFile> Open(const std::string& vdex_filename, in Open() 232 static std::unique_ptr<VdexFile> Open(int file_fd, in Open() 325 DISALLOW_COPY_AND_ASSIGN(VdexFile);
|
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_;
|
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()
|
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() 1437 VdexFile* vdex_file, 1488 VdexFile* vdex_file, in InitializeFromElfFile() 1579 std::unique_ptr<VdexFile>&& vdex_file, in Open() 1591 std::unique_ptr<VdexFile>&& unique_vdex_file, in Open() 1594 VdexFile* vdex_file = unique_vdex_file.get(); in Open() 1835 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex() 1842 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex()
|
D | oat_file_assistant.h | 393 bool DexChecksumUpToDate(const VdexFile& file, std::string* error_msg);
|
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()
|
/art/dex2oat/ |
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_;
|
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_;
|
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()
|
/art/dex2oat/linker/ |
D | oat_writer.h | 51 class VdexFile; variable 153 const VdexFile& vdex_file,
|
D | oat_writer.cc | 603 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, const char* location) { in AddVdexDexFilesSource() 692 size_vdex_header_ = sizeof(VdexFile::VdexFileHeader) + in WriteAndOpenDexFiles() 693 VdexSection::kNumberOfSections * sizeof(VdexFile::VdexSectionHeader); in WriteAndOpenDexFiles() 695 vdex_size_ = size_vdex_header_ + oat_dex_files_.size() * sizeof(VdexFile::VdexChecksum); in WriteAndOpenDexFiles() 3756 off_t checksums_offset = VdexFile::GetChecksumsOffset(); in FinishVdexFile() 3757 VdexFile::VdexChecksum* checksums_data = in FinishVdexFile() 3758 reinterpret_cast<VdexFile::VdexChecksum*>(vdex_begin + checksums_offset); 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() [all …]
|
/art/dexlayout/ |
D | dexdiag.cc | 330 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_name, in DisplayMappingIfFromVdexFile()
|
/art/dex2oat/driver/ |
D | compiler_driver.h | 77 class VdexFile; variable
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer.cc | 418 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp()
|
/art/oatdump/ |
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()
|