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.cc571 for (std::unique_ptr<File>& vdex_file : vdex_files_) { in ~Dex2Oat()
572 vdex_file.release(); // NOLINT in ~Dex2Oat()
1280 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_filename.c_str())); in OpenFile() local
1281 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1283 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_filename.c_str())); in OpenFile() local
1284 if (vdex_file == nullptr) { in OpenFile()
1288 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
1290 vdex_file->Erase(); in OpenFile()
1293 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1337 std::unique_ptr<File> vdex_file(new File(DupCloexec(output_vdex_fd_), in OpenFile() local
[all …]
Ddex2oat_image_test.cc98 std::string vdex_file = filename_prefix + ".vdex"; in CompileImageAndGetSizes() local
101 int64_t vdex_size = OS::GetFileSizeBytes(vdex_file.c_str()); in CompileImageAndGetSizes()
104 CHECK_GT(vdex_size, 0u) << vdex_file; in CompileImageAndGetSizes()
Ddex2oat_test.cc1458 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_location.c_str())); in TEST_F() local
1459 ASSERT_TRUE(vdex_file != nullptr); in TEST_F()
1460 ASSERT_GT(vdex_file->GetLength(), 0u); in TEST_F()
1470 write_all_bytes(vdex_file.get()); in TEST_F()
/art/runtime/
Dvdex_file.cc80 std::unique_ptr<File> vdex_file; in OpenAtAddress() local
82 vdex_file.reset(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenAtAddress()
84 vdex_file.reset(OS::OpenFileForReading(vdex_filename.c_str())); in OpenAtAddress()
86 if (vdex_file == nullptr) { in OpenAtAddress()
92 int64_t vdex_length = vdex_file->GetLength(); in OpenAtAddress()
101 vdex_file->Fd(), in OpenAtAddress()
170 std::unique_ptr<VdexFile> vdex_file = std::make_unique<VdexFile>(std::move(input_file)); in OpenFromDm() local
171 if (!vdex_file->IsValid()) { in OpenFromDm()
175 if (vdex_file->HasDexSection()) { in OpenFromDm()
180 return vdex_file; in OpenFromDm()
Ddex2oat_environment_test.h254 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex.c_str())); in CreateDexMetadata()
255 std::vector<uint8_t> data(vdex_file->GetLength()); in CreateDexMetadata()
256 ASSERT_TRUE(vdex_file->ReadFully(data.data(), data.size())); in CreateDexMetadata()
Dcommon_runtime_test.cc488 std::unique_ptr<File> vdex_file; in CompileBootImage() local
492 vdex_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".vdex").c_str())); in CompileBootImage()
495 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage()
517 if (vdex_file != nullptr) { in CompileBootImage()
518 CHECK_EQ(0, vdex_file->FlushClose()); in CompileBootImage()
Druntime_image.cc1094 VdexFile* vdex_file = oat_dex_file->GetOatFile()->GetVdexFile(); in WriteObjects() local
1098 size_t number_of_dex_files = vdex_file->GetNumberOfDexFiles(); in WriteObjects()
DAndroid.bp423 "vdex_file.cc",
/art/runtime/oat/
Doat_file.cc512 const VdexFile* vdex_file, in ComputeAndCheckTypeLookupTableData() argument
520 if (UNLIKELY(!vdex_file->Contains(type_lookup_table_start, sizeof(uint32_t)))) { in ComputeAndCheckTypeLookupTableData()
524 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
527 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData()
528 vdex_file->End()); in ComputeAndCheckTypeLookupTableData()
537 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
549 if (UNLIKELY(!vdex_file->Contains(*type_lookup_table_data, found_size))) { in ComputeAndCheckTypeLookupTableData()
553 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
556 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData()
557 vdex_file->End()); in ComputeAndCheckTypeLookupTableData()
[all …]
Doat_file_manager.cc556 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl() local
558 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl()
562 if (vdex_file == nullptr) { in OpenDexFilesFromOat_Impl()
564 } else if (!vdex_file->MatchesDexFileChecksums(dex_headers)) { in OpenDexFilesFromOat_Impl()
566 vdex_file.reset(nullptr); in OpenDexFilesFromOat_Impl()
579 /* verify= */ (vdex_file == nullptr) && Runtime::Current()->IsVerificationEnabled(), in OpenDexFilesFromOat_Impl()
593 if (vdex_file == nullptr || class_loader == nullptr || !error_msgs->empty()) { in OpenDexFilesFromOat_Impl()
611 std::move(vdex_file), in OpenDexFilesFromOat_Impl()
Doat_file.h172 std::unique_ptr<VdexFile>&& vdex_file,
179 std::unique_ptr<VdexFile>&& vdex_file,
Doat_file_assistant.cc1280 const VdexFile* vdex_file = oat_file->GetVdexFile(); in CheckDisableCompactDex() local
1281 return vdex_file != nullptr && vdex_file->HasDexSection() && in CheckDisableCompactDex()
1282 !vdex_file->HasOnlyStandardDexFiles(); in CheckDisableCompactDex()
Doat_file_assistant_test.cc850 ScratchFile vdex_file(vdex_location); in TEST_P() local
/art/dex2oat/linker/
Doat_writer_test.cc102 bool WriteElf(File* vdex_file, in WriteElf() argument
122 vdex_file, oat_file, oat_writer, key_value_store, verify, CopyOption::kOnlyIfCompressed); in WriteElf()
125 bool WriteElf(File* vdex_file, in WriteElf() argument
143 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
146 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()
204 if (!oat_writer.FinishVdexFile(vdex_file, /*verifier_deps=*/ nullptr)) { in DoWriteElf()
258 ScratchFile& vdex_file, in CheckOatWriteResult() argument
[all …]
Doat_writer.h153 const VdexFile& vdex_file,
162 bool WriteAndOpenDexFiles(File* vdex_file,
176 bool FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps);
Doat_writer.cc444 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, const char* location) { in AddVdexDexFilesSource() argument
446 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource()
447 auto container = std::make_shared<MemoryDexFileContainer>(vdex_file.Begin(), vdex_file.End()); in AddVdexDexFilesSource()
450 for (; i < vdex_file.GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource()
451 current_dex_data = vdex_file.GetNextDexFileData(current_dex_data, i); in AddVdexDexFilesSource()
466 vdex_file.GetLocationChecksum(i))) { in AddVdexDexFilesSource()
471 if (vdex_file.GetNextDexFileData(current_dex_data, i) != nullptr) { in AddVdexDexFilesSource()
521 File* vdex_file, in WriteAndOpenDexFiles() argument
538 if (!WriteDexFiles(vdex_file, verify, use_existing_vdex, copy_dex_files, &dex_files_map) || in WriteAndOpenDexFiles()
539 !OpenDexFiles(vdex_file, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles()
[all …]
Dimage_test.h143 for (ScratchFile& vdex_file : vdex_files) { in ~CompilationHelper()
144 vdex_file.Unlink(); in ~CompilationHelper()
/art/odrefresh/
Dodrefresh.cc583 std::unique_ptr<File> vdex_file(OS::OpenFileForReading(vdex_path.c_str())); in AddCompiledBootClasspathFdsIfAny() local
584 if (vdex_file != nullptr) { in AddCompiledBootClasspathFdsIfAny()
585 bcp_vdex_fds.push_back(std::to_string(vdex_file->Fd())); in AddCompiledBootClasspathFdsIfAny()
586 opened_files.push_back(std::move(vdex_file)); in AddCompiledBootClasspathFdsIfAny()
/art/artd/
Dartd.cc1072 std::unique_ptr<NewFile> vdex_file = in dexopt() local
1074 args.Add("--output-vdex-fd=%d", vdex_file->Fd()); in dexopt()
1075 fd_logger.Add(*vdex_file); in dexopt()
1077 std::vector<NewFile*> files_to_commit{oat_file.get(), vdex_file.get()}; in dexopt()
/art/oatdump/
Doatdump.cc639 std::unique_ptr<const VdexFile> vdex_file = OpenVdex(vdex_filename, in Dump() local
642 if (vdex_file.get() == nullptr) { in Dump()
815 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdex() local
816 if (!vdex_file->IsValid()) { in OpenVdex()
822 if (!vdex_file->OpenAllDexFiles(&tmp_dex_files, error_msg)) { in OpenVdex()
828 return vdex_file; in OpenVdex()