Home
last modified time | relevance | path

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

/art/dex2oat/linker/
Doat_writer_test.cc102 bool WriteElf(File* vdex_file, in WriteElf() argument
124 vdex_file, oat_file, oat_writer, key_value_store, verify, CopyOption::kOnlyIfCompressed); in WriteElf()
127 bool WriteElf(File* vdex_file, in WriteElf() argument
145 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
148 bool WriteElf(File* vdex_file, in WriteElf() argument
165 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
168 bool DoWriteElf(File* vdex_file, in DoWriteElf() argument
182 vdex_file, in DoWriteElf()
215 if (!oat_writer.FinishVdexFile(vdex_file, /*verifier_deps=*/ nullptr)) { in DoWriteElf()
259 ScratchFile& vdex_file, in CheckOatWriteResult() argument
[all …]
Doat_writer.h162 const VdexFile& vdex_file,
172 bool WriteAndOpenDexFiles(File* vdex_file,
186 bool FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps);
Doat_writer.cc595 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, in AddVdexDexFilesSource() argument
599 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource()
601 for (size_t i = 0; i < vdex_file.GetVerifierDepsHeader().GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource()
602 current_dex_data = vdex_file.GetNextDexFileData(current_dex_data); in AddVdexDexFilesSource()
620 vdex_file.GetLocationChecksum(i), in AddVdexDexFilesSource()
624 if (vdex_file.GetNextDexFileData(current_dex_data) != nullptr) { in AddVdexDexFilesSource()
680 File* vdex_file, in WriteAndOpenDexFiles() argument
695 if (!WriteDexFiles(vdex_file, update_input_vdex, copy_dex_files, &dex_files_map) || in WriteAndOpenDexFiles()
696 !OpenDexFiles(vdex_file, verify, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles()
3746 bool OatWriter::FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps) { in FinishVdexFile() argument
[all …]
Dimage_test.h129 for (ScratchFile& vdex_file : vdex_files) { in ~CompilationHelper()
130 vdex_file.Unlink(); in ~CompilationHelper()
/art/runtime/
Doat_file_manager.cc497 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() local
499 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl()
504 if (vdex_file == nullptr) { in OpenDexFilesFromOat_Impl()
506 } else if (!vdex_file->MatchesDexFileChecksums(dex_headers)) { in OpenDexFilesFromOat_Impl()
508 vdex_file.reset(nullptr); in OpenDexFilesFromOat_Impl()
522 /* verify= */ (vdex_file == nullptr) && Runtime::Current()->IsVerificationEnabled(), in OpenDexFilesFromOat_Impl()
536 if (vdex_file == nullptr || class_loader == nullptr || !error_msgs->empty()) { in OpenDexFilesFromOat_Impl()
556 if (!vdex_file->MatchesBootClassPathChecksums() || in OpenDexFilesFromOat_Impl()
557 !vdex_file->MatchesClassLoaderContext(*context.get())) { in OpenDexFilesFromOat_Impl()
563 std::move(vdex_file), in OpenDexFilesFromOat_Impl()
Dvdex_file.cc112 std::unique_ptr<File> vdex_file; in OpenAtAddress() local
114 vdex_file.reset(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenAtAddress()
116 vdex_file.reset(OS::OpenFileForReading(vdex_filename.c_str())); in OpenAtAddress()
118 if (vdex_file == nullptr) { in OpenAtAddress()
124 int64_t vdex_length = vdex_file->GetLength(); in OpenAtAddress()
133 vdex_file->Fd(), in OpenAtAddress()
Dcommon_runtime_test.cc458 std::unique_ptr<File> vdex_file; in CompileBootImage() local
462 vdex_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".vdex").c_str())); in CompileBootImage()
465 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage()
487 if (vdex_file != nullptr) { in CompileBootImage()
488 CHECK_EQ(0, vdex_file->FlushClose()); in CompileBootImage()
Doat_file.cc1374 VdexFile* vdex_file,
1425 VdexFile* vdex_file, in InitializeFromElfFile() argument
1434 SetVdex(vdex_file); in InitializeFromElfFile()
1516 std::unique_ptr<VdexFile>&& vdex_file, in Open() argument
1519 if (!oat_file->Setup(dex_files, std::move(vdex_file))) { in Open()
1525 bool Setup(const std::vector<const DexFile*>& dex_files, std::unique_ptr<VdexFile>&& vdex_file) { in Setup() argument
1529 SetVdex(vdex_file.release()); in Setup()
1714 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex() argument
1717 return OatFileBackedByVdex::Open(dex_files, std::move(vdex_file), location); in OpenFromVdex()
Doat_file.h163 std::unique_ptr<VdexFile>&& vdex_file,
DAndroid.bp246 "vdex_file.cc",
Doat_file_assistant_test.cc558 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F() local
/art/dex2oat/
Ddex2oat.cc848 for (std::unique_ptr<File>& vdex_file : vdex_files_) { in ~Dex2Oat()
849 vdex_file.release(); // NOLINT in ~Dex2Oat()
1495 std::unique_ptr<File> vdex_file(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenFile() local
1496 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1498 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_filename.c_str())); in OpenFile() local
1499 if (vdex_file == nullptr) { in OpenFile()
1503 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
1505 vdex_file->Erase(); in OpenFile()
1508 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1549 std::unique_ptr<File> vdex_file(new File( in OpenFile() local
[all …]
Ddex2oat_image_test.cc99 std::string vdex_file = filename_prefix + ".vdex"; in CompileImageAndGetSizes() local
102 int64_t vdex_size = OS::GetFileSizeBytes(vdex_file.c_str()); in CompileImageAndGetSizes()
105 CHECK_GT(vdex_size, 0u) << vdex_file; in CompileImageAndGetSizes()
Ddex2oat_test.cc1947 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_location.c_str())); in TEST_F() local
1948 ASSERT_TRUE(vdex_file != nullptr); in TEST_F()
1949 ASSERT_GT(vdex_file->GetLength(), 0u); in TEST_F()
1959 write_all_bytes(vdex_file.get()); in TEST_F()
/art/oatdump/
Doatdump.cc600 std::unique_ptr<const VdexFile> vdex_file = OpenVdexUnquicken(vdex_filename, in Dump() local
603 if (vdex_file.get() == nullptr) { in Dump()
648 vdex_file->GetLocationChecksum(i), in Dump()
780 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdexUnquicken() local
781 if (!vdex_file->IsValid()) { in OpenVdexUnquicken()
787 if (!vdex_file->OpenAllDexFiles(&tmp_dex_files, error_msg)) { in OpenVdexUnquicken()
792 vdex_file->Unquicken(MakeNonOwningPointerVector(tmp_dex_files), in OpenVdexUnquicken()
796 return vdex_file; in OpenVdexUnquicken()