/art/dex2oat/linker/ |
D | oat_writer_test.cc | 102 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() 216 std::make_unique<BufferedOutputStream>(std::make_unique<FileOutputStream>(vdex_file)); in DoWriteElf() 267 ScratchFile& vdex_file, in CheckOatWriteResult() argument [all …]
|
D | oat_writer.h | 164 const VdexFile& vdex_file, 174 bool WriteAndOpenDexFiles(File* vdex_file,
|
D | image_test.h | 129 for (ScratchFile& vdex_file : vdex_files) { in ~CompilationHelper() 130 vdex_file.Unlink(); in ~CompilationHelper()
|
D | oat_writer.cc | 582 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, in AddVdexDexFilesSource() argument 586 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource() 588 for (size_t i = 0; i < vdex_file.GetVerifierDepsHeader().GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource() 589 current_dex_data = vdex_file.GetNextDexFileData(current_dex_data); in AddVdexDexFilesSource() 607 vdex_file.GetLocationChecksum(i), in AddVdexDexFilesSource() 611 if (vdex_file.GetNextDexFileData(current_dex_data) != nullptr) { in AddVdexDexFilesSource() 667 File* vdex_file, in WriteAndOpenDexFiles() argument 680 std::make_unique<BufferedOutputStream>(std::make_unique<FileOutputStream>(vdex_file)); in WriteAndOpenDexFiles() 684 if (!WriteDexFiles(vdex_out.get(), vdex_file, update_input_vdex, copy_dex_files) || in WriteAndOpenDexFiles() 685 !OpenDexFiles(vdex_file, verify, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles()
|
/art/runtime/ |
D | vdex_file.cc | 112 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()
|
D | oat_file_manager.cc | 772 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() local 774 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl() 779 if (vdex_file == nullptr) { in OpenDexFilesFromOat_Impl() 781 } else if (!vdex_file->MatchesDexFileChecksums(dex_headers)) { in OpenDexFilesFromOat_Impl() 783 vdex_file.reset(nullptr); in OpenDexFilesFromOat_Impl() 797 /* verify= */ (vdex_file == nullptr) && Runtime::Current()->IsVerificationEnabled(), in OpenDexFilesFromOat_Impl() 811 if (vdex_file == nullptr || class_loader == nullptr || !error_msgs->empty()) { in OpenDexFilesFromOat_Impl() 831 if (!vdex_file->MatchesBootClassPathChecksums() || in OpenDexFilesFromOat_Impl() 832 !vdex_file->MatchesClassLoaderContext(*context.get())) { in OpenDexFilesFromOat_Impl() 838 std::move(vdex_file), in OpenDexFilesFromOat_Impl()
|
D | common_runtime_test.cc | 481 std::unique_ptr<File> vdex_file; in CompileBootImage() local 485 vdex_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".vdex").c_str())); in CompileBootImage() 488 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage() 510 if (vdex_file != nullptr) { in CompileBootImage() 511 CHECK_EQ(0, vdex_file->FlushClose()); in CompileBootImage()
|
D | oat_file.cc | 1370 VdexFile* vdex_file, 1421 VdexFile* vdex_file, in InitializeFromElfFile() argument 1430 SetVdex(vdex_file); in InitializeFromElfFile() 1512 std::unique_ptr<VdexFile>&& vdex_file, in Open() argument 1515 oat_file->Initialize(dex_files, std::move(vdex_file)); in Open() 1520 std::unique_ptr<VdexFile>&& vdex_file) { in Initialize() argument 1524 SetVdex(vdex_file.release()); in Initialize() 1701 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex() argument 1704 return OatFileBackedByVdex::Open(dex_files, std::move(vdex_file), location); in OpenFromVdex()
|
D | oat_file.h | 163 std::unique_ptr<VdexFile>&& vdex_file,
|
D | Android.bp | 239 "vdex_file.cc",
|
D | oat_file_assistant_test.cc | 558 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F() local
|
/art/dex2oat/ |
D | dex2oat.cc | 833 for (std::unique_ptr<File>& vdex_file : vdex_files_) { in ~Dex2Oat() 834 vdex_file.release(); // NOLINT in ~Dex2Oat() 1479 std::unique_ptr<File> vdex_file(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenFile() local 1480 vdex_files_.push_back(std::move(vdex_file)); in OpenFile() 1482 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_filename.c_str())); in OpenFile() local 1483 if (vdex_file == nullptr) { in OpenFile() 1487 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile() 1489 vdex_file->Erase(); in OpenFile() 1492 vdex_files_.push_back(std::move(vdex_file)); in OpenFile() 1533 std::unique_ptr<File> vdex_file(new File( in OpenFile() local [all …]
|
D | dex2oat_image_test.cc | 99 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()
|
D | dex2oat_test.cc | 1958 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_location.c_str())); in TEST_F() local 1959 ASSERT_TRUE(vdex_file != nullptr); in TEST_F() 1960 ASSERT_GT(vdex_file->GetLength(), 0u); in TEST_F() 1970 write_all_bytes(vdex_file.get()); in TEST_F()
|
/art/oatdump/ |
D | oatdump.cc | 596 std::unique_ptr<const VdexFile> vdex_file = OpenVdexUnquicken(vdex_filename, in Dump() local 599 if (vdex_file.get() == nullptr) { in Dump() 644 vdex_file->GetLocationChecksum(i), in Dump() 776 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdexUnquicken() local 777 if (!vdex_file->IsValid()) { in OpenVdexUnquicken() 783 if (!vdex_file->OpenAllDexFiles(&tmp_dex_files, error_msg)) { in OpenVdexUnquicken() 788 vdex_file->Unquicken(MakeNonOwningPointerVector(tmp_dex_files), in OpenVdexUnquicken() 792 return vdex_file; in OpenVdexUnquicken()
|