Home
last modified time | relevance | path

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

/art/dex2oat/
Ddex2oat_cts_test.cc81 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_location.c_str())); in TEST_F() local
82 ASSERT_NE(vdex_file, nullptr) << vdex_location; in TEST_F()
83 args.emplace_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in TEST_F()
92 EXPECT_EQ(vdex_file->FlushCloseOrErase(), 0); in TEST_F()
Ddex2oat.cc572 for (std::unique_ptr<File>& vdex_file : vdex_files_) { in ~Dex2Oat()
573 vdex_file.release(); // NOLINT in ~Dex2Oat()
1300 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_filename.c_str())); in OpenFile() local
1301 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1303 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_filename.c_str())); in OpenFile() local
1304 if (vdex_file == nullptr) { in OpenFile()
1308 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
1310 vdex_file->Erase(); in OpenFile()
1313 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1357 std::unique_ptr<File> vdex_file(new File(DupCloexec(output_vdex_fd_), 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.cc1800 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_location.c_str())); in TEST_F() local
1801 ASSERT_TRUE(vdex_file != nullptr); in TEST_F()
1802 ASSERT_GT(vdex_file->GetLength(), 0u); in TEST_F()
1812 write_all_bytes(vdex_file.get()); in TEST_F()
/art/runtime/
Dvdex_file.cc81 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()
171 std::unique_ptr<VdexFile> vdex_file = std::make_unique<VdexFile>(std::move(input_file)); in OpenFromDm() local
172 if (!vdex_file->IsValid()) { in OpenFromDm()
176 if (vdex_file->HasDexSection()) { in OpenFromDm()
181 return vdex_file; in OpenFromDm()
Doat_file.cc465 const VdexFile* vdex_file, in ComputeAndCheckTypeLookupTableData() argument
473 if (UNLIKELY(!vdex_file->Contains(type_lookup_table_start, sizeof(uint32_t)))) { in ComputeAndCheckTypeLookupTableData()
477 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
480 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData()
481 vdex_file->End()); in ComputeAndCheckTypeLookupTableData()
490 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
502 if (UNLIKELY(!vdex_file->Contains(*type_lookup_table_data, found_size))) { in ComputeAndCheckTypeLookupTableData()
506 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
509 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData()
510 vdex_file->End()); in ComputeAndCheckTypeLookupTableData()
[all …]
Ddex2oat_environment_test.h244 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex.c_str())); in CreateDexMetadata()
245 std::vector<uint8_t> data(vdex_file->GetLength()); in CreateDexMetadata()
246 ASSERT_TRUE(vdex_file->ReadFully(data.data(), data.size())); in CreateDexMetadata()
Doat_file_manager.cc539 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() local
541 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl()
545 if (vdex_file == nullptr) { in OpenDexFilesFromOat_Impl()
547 } else if (!vdex_file->MatchesDexFileChecksums(dex_headers)) { in OpenDexFilesFromOat_Impl()
549 vdex_file.reset(nullptr); in OpenDexFilesFromOat_Impl()
562 /* verify= */ (vdex_file == nullptr) && Runtime::Current()->IsVerificationEnabled(), in OpenDexFilesFromOat_Impl()
576 if (vdex_file == nullptr || class_loader == nullptr || !error_msgs->empty()) { in OpenDexFilesFromOat_Impl()
594 std::move(vdex_file), in OpenDexFilesFromOat_Impl()
Dcommon_runtime_test.cc487 std::unique_ptr<File> vdex_file; in CompileBootImage() local
491 vdex_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".vdex").c_str())); in CompileBootImage()
494 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage()
516 if (vdex_file != nullptr) { in CompileBootImage()
517 CHECK_EQ(0, vdex_file->FlushClose()); in CompileBootImage()
Doat_file.h169 std::unique_ptr<VdexFile>&& vdex_file,
176 std::unique_ptr<VdexFile>&& vdex_file,
Doat_file_assistant.cc1285 const VdexFile* vdex_file = oat_file->GetVdexFile(); in CheckDisableCompactDexExperiment() local
1286 return vdex_file != nullptr && vdex_file->HasDexSection() && in CheckDisableCompactDexExperiment()
1287 !vdex_file->HasOnlyStandardDexFiles(); in CheckDisableCompactDexExperiment()
Druntime_image.cc1074 VdexFile* vdex_file = oat_dex_file->GetOatFile()->GetVdexFile(); in WriteObjects() local
1078 size_t number_of_dex_files = vdex_file->GetNumberOfDexFiles(); in WriteObjects()
DAndroid.bp301 "vdex_file.cc",
Doat_file_assistant_test.cc822 ScratchFile vdex_file(vdex_location); in TEST_P() local
/art/dex2oat/linker/
Doat_writer_test.cc102 bool WriteElf(File* vdex_file, in WriteElf() argument
125 vdex_file, oat_file, oat_writer, key_value_store, verify, CopyOption::kOnlyIfCompressed); in WriteElf()
128 bool WriteElf(File* vdex_file, in WriteElf() argument
147 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
150 bool WriteElf(File* vdex_file, in WriteElf() argument
168 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
171 bool DoWriteElf(File* vdex_file, in DoWriteElf() argument
185 vdex_file, in DoWriteElf()
209 if (!oat_writer.FinishVdexFile(vdex_file, /*verifier_deps=*/ nullptr)) { in DoWriteElf()
262 ScratchFile& vdex_file, in CheckOatWriteResult() argument
[all …]
Doat_writer.h155 const VdexFile& vdex_file,
164 bool WriteAndOpenDexFiles(File* vdex_file,
178 bool FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps);
Doat_writer.cc485 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, const char* location) { in AddVdexDexFilesSource() argument
487 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource()
490 for (; i < vdex_file.GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource()
491 current_dex_data = vdex_file.GetNextDexFileData(current_dex_data, i); in AddVdexDexFilesSource()
506 vdex_file.GetLocationChecksum(i))) { in AddVdexDexFilesSource()
511 if (vdex_file.GetNextDexFileData(current_dex_data, i) != nullptr) { in AddVdexDexFilesSource()
557 File* vdex_file, in WriteAndOpenDexFiles() argument
574 if (!WriteDexFiles(vdex_file, verify, use_existing_vdex, copy_dex_files, &dex_files_map) || in WriteAndOpenDexFiles()
575 !OpenDexFiles(vdex_file, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles()
3650 bool OatWriter::FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps) { in FinishVdexFile() argument
[all …]
Dimage_test.h132 for (ScratchFile& vdex_file : vdex_files) { in ~CompilationHelper()
133 vdex_file.Unlink(); in ~CompilationHelper()
/art/artd/
Dartd.cc868 std::unique_ptr<NewFile> vdex_file = in dexopt() local
870 args.Add("--output-vdex-fd=%d", vdex_file->Fd()); in dexopt()
871 fd_logger.Add(*vdex_file); in dexopt()
873 std::vector<NewFile*> files_to_commit{oat_file.get(), vdex_file.get()}; in dexopt()
/art/odrefresh/
Dodrefresh.cc566 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_path.c_str())); in AddCompiledBootClasspathFdsIfAny() local
567 if (vdex_file && vdex_file->IsValid()) { in AddCompiledBootClasspathFdsIfAny()
568 bcp_vdex_fds.push_back(std::to_string(vdex_file->Fd())); in AddCompiledBootClasspathFdsIfAny()
569 opened_files.push_back(std::move(vdex_file)); in AddCompiledBootClasspathFdsIfAny()
/art/oatdump/
Doatdump.cc620 std::unique_ptr<const VdexFile> vdex_file = OpenVdex(vdex_filename, in Dump() local
623 if (vdex_file.get() == nullptr) { in Dump()
665 std::unique_ptr<const DexFile> dex(dex_file_loader.Open(vdex_file->GetLocationChecksum(i), in Dump()
797 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdex() local
798 if (!vdex_file->IsValid()) { in OpenVdex()
804 if (!vdex_file->OpenAllDexFiles(&tmp_dex_files, error_msg)) { in OpenVdex()
810 return vdex_file; in OpenVdex()