/aosp12/art/runtime/ |
H A D | oat_file.cc | 506 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData() 507 vdex_file->End()); in ComputeAndCheckTypeLookupTableData() 515 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData() 516 vdex_file->End()); in ComputeAndCheckTypeLookupTableData() 1554 SetVdex(vdex_file); in InitializeFromElfFile() 1640 oat_file->SetVdex(vdex_file.release()); in Open() 1659 if (vdex_file->HasDexSection()) { in Open() 1671 vdex_file->Begin(), in Open() 1672 vdex_file->End()); in Open() 1680 vdex_file->Begin(), in Open() [all …]
|
H A D | vdex_file.cc | 81 std::unique_ptr<File> vdex_file; in OpenAtAddress() local 83 vdex_file.reset(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenAtAddress() 85 vdex_file.reset(OS::OpenFileForReading(vdex_filename.c_str())); in OpenAtAddress() 87 if (vdex_file == nullptr) { in OpenAtAddress() 93 int64_t vdex_length = vdex_file->GetLength(); in OpenAtAddress() 102 vdex_file->Fd(), in OpenAtAddress()
|
H A D | oat_file_manager.cc | 478 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() local 480 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl() 485 if (vdex_file == nullptr) { in OpenDexFilesFromOat_Impl() 487 } else if (!vdex_file->MatchesDexFileChecksums(dex_headers)) { in OpenDexFilesFromOat_Impl() 489 vdex_file.reset(nullptr); in OpenDexFilesFromOat_Impl() 503 /* verify= */ (vdex_file == nullptr) && Runtime::Current()->IsVerificationEnabled(), in OpenDexFilesFromOat_Impl() 517 if (vdex_file == nullptr || class_loader == nullptr || !error_msgs->empty()) { in OpenDexFilesFromOat_Impl() 535 std::move(vdex_file), in OpenDexFilesFromOat_Impl()
|
H A D | common_runtime_test.cc | 462 std::unique_ptr<File> vdex_file; in CompileBootImage() local 466 vdex_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".vdex").c_str())); in CompileBootImage() 469 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage() 491 if (vdex_file != nullptr) { in CompileBootImage() 492 CHECK_EQ(0, vdex_file->FlushClose()); in CompileBootImage()
|
H A D | oat_file.h | 160 std::unique_ptr<VdexFile>&& vdex_file, 166 std::unique_ptr<VdexFile>&& vdex_file,
|
H A D | Android.bp | 251 "vdex_file.cc",
|
H A D | oat_file_assistant_test.cc | 629 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F() local
|
/aosp12/art/dex2oat/linker/ |
H A D | oat_writer_test.cc | 102 bool WriteElf(File* vdex_file, in WriteElf() argument 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 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 295 int64_t actual_vdex_size = vdex_file.GetFile()->GetLength(); in CheckOatWriteResult() 875 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); in TestZipFileInputWithEmptyDex() local [all …]
|
H A D | oat_writer.h | 153 const VdexFile& vdex_file, 162 bool WriteAndOpenDexFiles(File* vdex_file, 176 bool FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps);
|
H A D | oat_writer.cc | 605 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource() 608 for (; i < vdex_file.GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource() 626 vdex_file.GetLocationChecksum(i), in AddVdexDexFilesSource() 630 if (vdex_file.GetNextDexFileData(current_dex_data, i) != nullptr) { in AddVdexDexFilesSource() 684 File* vdex_file, in WriteAndOpenDexFiles() argument 701 !OpenDexFiles(vdex_file, verify, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles() 3701 if (vdex_file->SetLength(vdex_size_) != 0) { in FinishVdexFile() 3722 vdex_file->Fd(), in FinishVdexFile() 3725 vdex_file->GetPath().c_str(), in FinishVdexFile() 3741 vdex_file->Fd(), in FinishVdexFile() [all …]
|
H A D | image_test.h | 129 for (ScratchFile& vdex_file : vdex_files) { in ~CompilationHelper() 130 vdex_file.Unlink(); in ~CompilationHelper()
|
/aosp12/art/dex2oat/ |
H A D | dex2oat.cc | 566 vdex_file.release(); // NOLINT in ~Dex2Oat() 1223 if (vdex_file == nullptr) { in OpenFile() 1229 vdex_file->Erase(); in OpenFile() 1273 std::unique_ptr<File> vdex_file(new File( in OpenFile() local 1275 if (!vdex_file->IsOpened()) { in OpenFile() 1282 if (vdex_file->SetLength(0) != 0) { in OpenFile() 1284 vdex_file->Erase(); in OpenFile() 1288 vdex_files_.push_back(std::move(vdex_file)); in OpenFile() 1298 File* vdex_file = vdex_files_.back().get(); in OpenFile() local 1306 if (vdex_file->Flush() != 0) { in OpenFile() [all …]
|
H A D | dex2oat_vdex_test.cc | 119 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex.c_str())); in CreateDexMetadata() local 120 std::vector<uint8_t> data(vdex_file->GetLength()); in CreateDexMetadata() 121 ASSERT_TRUE(vdex_file->ReadFully(data.data(), data.size())); in CreateDexMetadata()
|
H A 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()
|
H A D | dex2oat_test.cc | 1755 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_location.c_str())); in TEST_F() local 1756 ASSERT_TRUE(vdex_file != nullptr); in TEST_F() 1757 ASSERT_GT(vdex_file->GetLength(), 0u); in TEST_F() 1767 write_all_bytes(vdex_file.get()); in TEST_F()
|
/aosp12/art/dexoptanalyzer/ |
H A D | dexoptanalyzer.cc | 418 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp() local 419 if (vdex_file == nullptr || !vdex_file->IsValid()) { in ValidateBcp()
|
/aosp12/art/oatdump/ |
H A D | oatdump.cc | 615 std::unique_ptr<const VdexFile> vdex_file = OpenVdex(vdex_filename, in Dump() local 618 if (vdex_file.get() == nullptr) { in Dump() 663 vdex_file->GetLocationChecksum(i), in Dump() 795 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdex() local 796 if (!vdex_file->IsValid()) { in OpenVdex() 802 if (!vdex_file->OpenAllDexFiles(&tmp_dex_files, error_msg)) { in OpenVdex() 808 return vdex_file; in OpenVdex()
|