Home
last modified time | relevance | path

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

/art/runtime/
Doat_file.cc481 const VdexFile* vdex_file, in ComputeAndCheckTypeLookupTableData() argument
496 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
501 if (UNLIKELY(!vdex_file->Contains(*type_lookup_table_data))) { in ComputeAndCheckTypeLookupTableData()
504 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
506 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData()
507 vdex_file->End()); in ComputeAndCheckTypeLookupTableData()
510 if (UNLIKELY(!vdex_file->Contains(*type_lookup_table_data + expected_table_size - 1))) { in ComputeAndCheckTypeLookupTableData()
513 vdex_file->GetName().c_str(), in ComputeAndCheckTypeLookupTableData()
515 vdex_file->Begin(), in ComputeAndCheckTypeLookupTableData()
516 vdex_file->End()); in ComputeAndCheckTypeLookupTableData()
[all …]
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()
Doat_file_manager.cc478 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()
Dcommon_runtime_test.cc462 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()
Doat_file.h160 std::unique_ptr<VdexFile>&& vdex_file,
166 std::unique_ptr<VdexFile>&& vdex_file,
DAndroid.bp251 "vdex_file.cc",
Doat_file_assistant_test.cc629 ScratchFile vdex_file(vdex_location.c_str()); in TEST_F() local
/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.h153 const VdexFile& vdex_file,
162 bool WriteAndOpenDexFiles(File* vdex_file,
176 bool FinishVdexFile(File* vdex_file, verifier::VerifierDeps* verifier_deps);
Doat_writer.cc603 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, const char* location) { in AddVdexDexFilesSource() argument
605 DCHECK(vdex_file.HasDexSection()); in AddVdexDexFilesSource()
608 for (; i < vdex_file.GetNumberOfDexFiles(); ++i) { in AddVdexDexFilesSource()
609 current_dex_data = vdex_file.GetNextDexFileData(current_dex_data, 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
700 if (!WriteDexFiles(vdex_file, update_input_vdex, copy_dex_files, &dex_files_map) || in WriteAndOpenDexFiles()
701 !OpenDexFiles(vdex_file, verify, &dex_files_map, &dex_files)) { in WriteAndOpenDexFiles()
3692 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/dex2oat/
Ddex2oat_vdex_test.cc119 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()
Ddex2oat.cc565 for (std::unique_ptr<File>& vdex_file : vdex_files_) { in ~Dex2Oat()
566 vdex_file.release(); // NOLINT in ~Dex2Oat()
1219 std::unique_ptr<File> vdex_file(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenFile() local
1220 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1222 std::unique_ptr<File> vdex_file(OS::CreateEmptyFile(vdex_filename.c_str())); in OpenFile() local
1223 if (vdex_file == nullptr) { in OpenFile()
1227 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
1229 vdex_file->Erase(); in OpenFile()
1232 vdex_files_.push_back(std::move(vdex_file)); in OpenFile()
1273 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.cc1755 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()
/art/dexoptanalyzer/
Ddexoptanalyzer.cc418 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp() local
419 if (vdex_file == nullptr || !vdex_file->IsValid()) { in ValidateBcp()
/art/oatdump/
Doatdump.cc615 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()