Home
last modified time | relevance | path

Searched refs:VdexFile (Results 1 – 17 of 17) sorted by relevance

/art/runtime/
Dvdex_file.cc52 constexpr uint8_t VdexFile::VdexFileHeader::kVdexInvalidMagic[4];
53 constexpr uint8_t VdexFile::VdexFileHeader::kVdexMagic[4];
54 constexpr uint8_t VdexFile::VdexFileHeader::kVdexVersion[4];
56 bool VdexFile::VdexFileHeader::IsMagicValid() const { in IsMagicValid()
60 bool VdexFile::VdexFileHeader::IsVdexVersionValid() const { in IsVdexVersionValid()
64 VdexFile::VdexFileHeader::VdexFileHeader(bool has_dex_section ATTRIBUTE_UNUSED) in VdexFileHeader()
72 std::unique_ptr<VdexFile> VdexFile::OpenAtAddress(uint8_t* mmap_addr, in OpenAtAddress()
114 std::unique_ptr<VdexFile> VdexFile::OpenAtAddress(uint8_t* mmap_addr, in OpenAtAddress()
148 std::unique_ptr<VdexFile> vdex(new VdexFile(std::move(mmap))); in OpenAtAddress()
157 std::unique_ptr<VdexFile> VdexFile::OpenFromDm(const std::string& filename, in OpenFromDm()
[all …]
Dvdex_file_test.cc34 std::unique_ptr<VdexFile> vdex = VdexFile::Open(tmp.GetFd(), in TEST_F()
42 vdex = VdexFile::Open( in TEST_F()
Dvdex_file.h88 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,
201 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr,
212 static std::unique_ptr<VdexFile> Open(const std::string& vdex_filename, in Open()
226 static std::unique_ptr<VdexFile> Open(int file_fd, in Open()
243 static std::unique_ptr<VdexFile> OpenFromDm(const std::string& filename,
323 DISALLOW_COPY_AND_ASSIGN(VdexFile);
Doat_file.h50 class VdexFile; variable
164 std::unique_ptr<VdexFile>&& vdex_file,
170 std::unique_ptr<VdexFile>&& vdex_file,
370 VdexFile* GetVdexFile() const { in GetVdexFile()
407 std::unique_ptr<VdexFile> vdex_;
Doat_file_assistant.cc348 bool OatFileAssistant::DexChecksumUpToDate(const VdexFile& file, std::string* error_msg) { in DexChecksumUpToDate()
430 VdexFile* vdex = file.GetVdexFile(); in GivenOatFileStatus()
854 std::unique_ptr<VdexFile> vdex; in GetFile()
862 vdex = VdexFile::Open(vdex_fd_, in GetFile()
871 vdex = VdexFile::Open(filename_, in GetFile()
889 std::unique_ptr<VdexFile> vdex(VdexFile::OpenFromDm(filename_, *dm_file)); in GetFile()
Doat_file.cc188 void SetVdex(VdexFile* vdex) { in SetVdex()
283 vdex_ = VdexFile::OpenAtAddress(vdex_begin_, in LoadVdex()
310 vdex_ = VdexFile::OpenAtAddress( in LoadVdex()
465 const VdexFile* vdex_file, in ComputeAndCheckTypeLookupTableData()
1551 VdexFile* vdex_file,
1602 VdexFile* vdex_file, in InitializeFromElfFile()
1693 std::unique_ptr<VdexFile>&& vdex_file, in Open()
1709 std::unique_ptr<VdexFile>&& unique_vdex_file, in Open()
1712 VdexFile* vdex_file = unique_vdex_file.get(); in Open()
1983 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex()
[all …]
Doat_file_manager.cc347 VdexFile* vdex_file = oat_file->GetVdexFile(); in OpenDexFilesFromOat()
495 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl()
497 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl()
708 if (!VdexFile::WriteToDisk(vdex_path_, in Run()
Doat_file_assistant.h393 bool DexChecksumUpToDate(const VdexFile& file, std::string* error_msg);
/art/dex2oat/
Ddex2oat_vdex_test.cc73 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location.c_str(), in GetVerifierDeps()
83 VdexFile::VdexFileHeader vdex_header = vdex->GetVdexFileHeader(); in GetVerifierDeps()
154 std::vector<std::unique_ptr<VdexFile>> opened_vdex_files_;
Ddex2oat.cc1254 input_vdex_file_ = VdexFile::Open(input_vdex_, in OpenFile()
1303 input_vdex_file_ = VdexFile::Open(input_vdex_fd_, in OpenFile()
1360 input_vdex_file_ = VdexFile::OpenFromDm(dm_file_location_, *dm_file_); in OpenFile()
2925 std::unique_ptr<VdexFile> input_vdex_file_;
Ddex2oat_test.cc1842 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location.c_str(), in TEST_F()
1879 writer.StartEntry(VdexFile::kVdexNameInDmFile, ZipWriter::kCompress); in TEST_F()
/art/dexlayout/
Ddexdiag.cc330 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_name, in DisplayMappingIfFromVdexFile()
/art/dex2oat/linker/
Doat_writer.h51 class VdexFile; variable
153 const VdexFile& vdex_file,
Doat_writer.cc605 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, const char* location) { in AddVdexDexFilesSource()
695 size_vdex_header_ = sizeof(VdexFile::VdexFileHeader) + in WriteAndOpenDexFiles()
696 VdexSection::kNumberOfSections * sizeof(VdexFile::VdexSectionHeader); in WriteAndOpenDexFiles()
697 size_vdex_checksums_ = oat_dex_files_.size() * sizeof(VdexFile::VdexChecksum); in WriteAndOpenDexFiles()
3971 off_t checksums_offset = VdexFile::GetChecksumsOffset(); in FinishVdexFile()
3972 VdexFile::VdexChecksum* checksums_data = in FinishVdexFile()
3973 reinterpret_cast<VdexFile::VdexChecksum*>(vdex_begin + checksums_offset); in FinishVdexFile()
3980 uint8_t* ptr = vdex_begin + sizeof(VdexFile::VdexFileHeader); in FinishVdexFile()
3983 new (ptr) VdexFile::VdexSectionHeader(VdexSection::kChecksumSection, in FinishVdexFile()
3986 ptr += sizeof(VdexFile::VdexSectionHeader); in FinishVdexFile()
[all …]
/art/dex2oat/driver/
Dcompiler_driver.h77 class VdexFile; variable
/art/dexoptanalyzer/
Ddexoptanalyzer.cc421 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp()
/art/oatdump/
Doatdump.cc578 VdexFile::VdexFileHeader vdex_header = oat_file_.GetVdexFile()->GetVdexFileHeader(); in Dump()
621 std::unique_ptr<const VdexFile> vdex_file = OpenVdex(vdex_filename, in Dump()
772 std::unique_ptr<const VdexFile> OpenVdex(const std::string& vdex_filename, in OpenVdex()
801 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdex()