Home
last modified time | relevance | path

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

/art/runtime/
Dvdex_file.cc47 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 …]
Dvdex_file_test.cc34 std::unique_ptr<VdexFile> vdex = VdexFile::Open(tmp.GetFd(), in TEST_F()
43 vdex = VdexFile::Open( in TEST_F()
Dvdex_file.h88 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);
Doat_file.h50 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_;
Doat_file_assistant.cc335 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()
Doat_file.cc183 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()
Doat_file_assistant.h393 bool DexChecksumUpToDate(const VdexFile& file, std::string* error_msg);
Doat_file_manager.cc478 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/
Ddex2oat_vdex_test.cc73 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_;
Ddex2oat.cc1206 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_;
Ddex2oat_test.cc1728 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/
Doat_writer.h51 class VdexFile; variable
153 const VdexFile& vdex_file,
Doat_writer.cc603 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/
Ddexdiag.cc330 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_name, in DisplayMappingIfFromVdexFile()
/art/dex2oat/driver/
Dcompiler_driver.h77 class VdexFile; variable
/art/dexoptanalyzer/
Ddexoptanalyzer.cc418 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp()
/art/oatdump/
Doatdump.cc572 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()