Home
last modified time | relevance | path

Searched refs:vdex_file (Results 1 – 14 of 14) sorted by relevance

/art/runtime/
Dvdex_file.cc110 std::unique_ptr<File> vdex_file; in OpenAtAddress() local
112 vdex_file.reset(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenAtAddress()
114 vdex_file.reset(OS::OpenFileForReading(vdex_filename.c_str())); in OpenAtAddress()
116 if (vdex_file == nullptr) { in OpenAtAddress()
122 int64_t vdex_length = vdex_file->GetLength(); in OpenAtAddress()
131 vdex_file->Fd(), in OpenAtAddress()
Doat_file_manager.cc732 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() local
734 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl()
739 if (vdex_file == nullptr) { in OpenDexFilesFromOat_Impl()
741 } else if (!vdex_file->MatchesDexFileChecksums(dex_headers)) { in OpenDexFilesFromOat_Impl()
743 vdex_file.reset(nullptr); in OpenDexFilesFromOat_Impl()
757 /* verify= */ (vdex_file == nullptr) && Runtime::Current()->IsVerificationEnabled(), in OpenDexFilesFromOat_Impl()
771 if (vdex_file == nullptr || class_loader == nullptr || !error_msgs->empty()) { in OpenDexFilesFromOat_Impl()
791 if (!vdex_file->MatchesBootClassPathChecksums() || in OpenDexFilesFromOat_Impl()
792 !vdex_file->MatchesClassLoaderContext(*context.get())) { in OpenDexFilesFromOat_Impl()
798 std::move(vdex_file), in OpenDexFilesFromOat_Impl()
Doat_file.cc1238 VdexFile* vdex_file,
1323 VdexFile* vdex_file, in InitializeFromElfFile() argument
1332 SetVdex(vdex_file); in InitializeFromElfFile()
1414 std::unique_ptr<VdexFile>&& vdex_file, in Open() argument
1417 oat_file->Initialize(dex_files, std::move(vdex_file)); in Open()
1422 std::unique_ptr<VdexFile>&& vdex_file) { in Initialize() argument
1426 SetVdex(vdex_file.release()); in Initialize()
1572 VdexFile* vdex_file, in OpenWithElfFile() argument
1577 return oat_file->InitializeFromElfFile(zip_fd, elf_file, vdex_file, abs_dex_location, error_msg) in OpenWithElfFile()
1711 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex() argument
[all …]
Doat_file.h81 VdexFile* vdex_file,
131 std::unique_ptr<VdexFile>&& vdex_file,
DAndroid.bp205 "vdex_file.cc",
Doat_file_assistant_test.cc531 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F() local
/art/dex2oat/linker/
Doat_writer_test.cc101 bool WriteElf(File* vdex_file, in WriteElf() argument
123 vdex_file, oat_file, oat_writer, key_value_store, verify, CopyOption::kOnlyIfCompressed); in WriteElf()
126 bool WriteElf(File* vdex_file, in WriteElf() argument
144 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
147 bool WriteElf(File* vdex_file, in WriteElf() argument
163 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
166 bool DoWriteElf(File* vdex_file, in DoWriteElf() argument
180 vdex_file, in DoWriteElf()
213 std::make_unique<BufferedOutputStream>(std::make_unique<FileOutputStream>(vdex_file)); in DoWriteElf()
840 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); in TestZipFileInputWithEmptyDex() local
[all …]
Doat_writer.h164 const VdexFile& vdex_file,
175 bool WriteAndOpenDexFiles(File* vdex_file,
Dimage_test.h130 for (ScratchFile& vdex_file : vdex_files) { in ~CompilationHelper()
131 vdex_file.Unlink(); in ~CompilationHelper()
Doat_writer.cc575 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, in AddVdexDexFilesSource() argument
579 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource()
581 for (size_t i = 0; i < vdex_file.GetVerifierDepsHeader().GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource()
582 current_dex_data = vdex_file.GetNextDexFileData(current_dex_data); in AddVdexDexFilesSource()
600 vdex_file.GetLocationChecksum(i), in AddVdexDexFilesSource()
604 if (vdex_file.GetNextDexFileData(current_dex_data) != nullptr) { in AddVdexDexFilesSource()
660 File* vdex_file, in WriteAndOpenDexFiles() argument
689 std::make_unique<BufferedOutputStream>(std::make_unique<FileOutputStream>(vdex_file)); in WriteAndOpenDexFiles()
693 if (!WriteDexFiles(vdex_out.get(), vdex_file, update_input_vdex, copy_dex_files) || in WriteAndOpenDexFiles()
694 !OpenDexFiles(vdex_file, verify, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles()
/art/dex2oat/
Ddex2oat_image_test.cc131 std::string vdex_file = scratch.GetFilename() + ".vdex"; in CompileImageAndGetSizes() local
134 int64_t vdex_size = OS::GetFileSizeBytes(vdex_file.c_str()); in CompileImageAndGetSizes()
137 CHECK_GT(vdex_size, 0u) << vdex_file; in CompileImageAndGetSizes()
Ddex2oat.cc706 for (std::unique_ptr<File>& vdex_file : vdex_files_) { in ~Dex2Oat()
707 vdex_file.release(); // NOLINT in ~Dex2Oat()
1288 std::unique_ptr<File> vdex_file(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenFile() local
1289 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1291 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_filename.c_str())); in OpenFile() local
1292 if (vdex_file == nullptr) { in OpenFile()
1296 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
1298 vdex_file->Erase(); in OpenFile()
1301 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1342 std::unique_ptr<File> vdex_file(new File( in OpenFile() local
[all …]
Ddex2oat_test.cc1927 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_location.c_str())); in TEST_F() local
1928 ASSERT_TRUE(vdex_file != nullptr); in TEST_F()
1929 ASSERT_GT(vdex_file->GetLength(), 0u); in TEST_F()
1939 write_all_bytes(vdex_file.get()); in TEST_F()
/art/oatdump/
Doatdump.cc597 std::unique_ptr<const VdexFile> vdex_file = OpenVdexUnquicken(vdex_filename, in Dump() local
600 if (vdex_file.get() == nullptr) { in Dump()
645 vdex_file->GetLocationChecksum(i), in Dump()
777 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdexUnquicken() local
778 if (!vdex_file->IsValid()) { in OpenVdexUnquicken()
784 if (!vdex_file->OpenAllDexFiles(&tmp_dex_files, error_msg)) { in OpenVdexUnquicken()
789 vdex_file->Unquicken(MakeNonOwningPointerVector(tmp_dex_files), in OpenVdexUnquicken()
793 return vdex_file; in OpenVdexUnquicken()