Lines Matching refs:oat_dex_file
124 const DexFile* OpenDexFile(const OatDexFile* oat_dex_file, std::string* error_msg) { in OpenDexFile() argument
125 DCHECK(oat_dex_file != nullptr); in OpenDexFile()
126 auto it = opened_dex_files.find(oat_dex_file); in OpenDexFile()
130 const DexFile* ret = oat_dex_file->OpenDexFile(error_msg).release(); in OpenDexFile()
131 opened_dex_files.emplace(oat_dex_file, std::unique_ptr<const DexFile>(ret)); in OpenDexFile()
243 const OatDexFile* oat_dex_file = oat_dex_files[i]; in Walk() local
244 CHECK(oat_dex_file != nullptr); in Walk()
245 WalkOatDexFile(oat_dex_file); in Walk()
249 void WalkOatDexFile(const OatDexFile* oat_dex_file) { in WalkOatDexFile() argument
251 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in WalkOatDexFile()
258 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in WalkOatDexFile()
528 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump() local
529 CHECK(oat_dex_file != nullptr); in Dump()
531 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in Dump()
533 os << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() << "': " in Dump()
538 const DexLayoutSections* const layout_sections = oat_dex_file->GetDexLayoutSections(); in Dump()
548 oat_dex_file->GetMethodBssMapping(), in Dump()
549 oat_dex_file->GetTypeBssMapping(), in Dump()
550 oat_dex_file->GetPublicTypeBssMapping(), in Dump()
551 oat_dex_file->GetPackageTypeBssMapping(), in Dump()
552 oat_dex_file->GetStringBssMapping(), in Dump()
553 oat_dex_file->GetMethodTypeBssMapping()); in Dump()
622 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump() local
623 CHECK(oat_dex_file != nullptr); in Dump()
624 if (!DumpOatDexFile(os, *oat_dex_file)) { in Dump()
654 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump() local
655 CHECK(oat_dex_file != nullptr); in Dump()
663 if (!ExportDexFile(os, *oat_dex_file, vdex_dex_file.get(), /*used_dexlayout=*/ false)) { in Dump()
683 for (const OatDexFile* oat_dex_file : oat_dex_files_) { in DumpMethodAndOffsetAsJson() local
684 CHECK(oat_dex_file != nullptr); in DumpMethodAndOffsetAsJson()
687 const DexFile* const dex_file = art::OpenDexFile(oat_dex_file, &error_msg); in DumpMethodAndOffsetAsJson()
689 LOG(WARNING) << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() in DumpMethodAndOffsetAsJson()
700 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in DumpMethodAndOffsetAsJson()
743 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in GetQuickOatCode() local
744 CHECK(oat_dex_file != nullptr); in GetQuickOatCode()
746 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in GetQuickOatCode()
748 LOG(WARNING) << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() in GetQuickOatCode()
756 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in GetQuickOatCode()
842 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in AddAllOffsets() local
843 CHECK(oat_dex_file != nullptr); in AddAllOffsets()
845 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in AddAllOffsets()
847 LOG(WARNING) << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() in AddAllOffsets()
853 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(accessor.GetClassDefIndex()); in AddAllOffsets()
881 bool DumpOatDexFile(std::ostream& os, const OatDexFile& oat_dex_file) { in DumpOatDexFile() argument
885 os << StringPrintf("location: %s\n", oat_dex_file.GetDexFileLocation().c_str()); in DumpOatDexFile()
886 os << StringPrintf("checksum: 0x%08x\n", oat_dex_file.GetDexFileLocationChecksum()); in DumpOatDexFile()
888 if (oat_dex_file.GetOatFile()->ContainsDexCode()) { in DumpOatDexFile()
889 const uint8_t* const vdex_file_begin = oat_dex_file.GetOatFile()->DexBegin(); in DumpOatDexFile()
892 const uint8_t* const dex_file_pointer = oat_dex_file.GetDexFilePointer(); in DumpOatDexFile()
897 dchecked_integral_cast<uint32_t>(dex_offset + oat_dex_file.FileSize() - 1)); in DumpOatDexFile()
904 const DexFile* const dex_file = OpenDexFile(&oat_dex_file, &error_msg); in DumpOatDexFile()
912 if (oat_dex_file.GetLookupTableData() != nullptr) { in DumpOatDexFile()
914 oat_dex_file.GetLookupTableData() - oat_dex_file.GetOatFile()->DexBegin()); in DumpOatDexFile()
919 const TypeLookupTable& lookup = oat_dex_file.GetTypeLookupTable(); in DumpOatDexFile()
933 uint32_t oat_class_offset = oat_dex_file.GetOatClassOffset(class_def_index); in DumpOatDexFile()
934 const OatFile::OatClass oat_class = oat_dex_file.GetOatClass(class_def_index); in DumpOatDexFile()
964 const OatDexFile& oat_dex_file, in ExportDexFile() argument
968 std::string dex_file_location = oat_dex_file.GetDexFileLocation(); in ExportDexFile()
972 size_t fsize = dex_file == nullptr ? oat_dex_file.FileSize() : dex_file->Size(); in ExportDexFile()
982 dex_file = OpenDexFile(&oat_dex_file, &error_msg); in ExportDexFile()
1900 for (const OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { in Dump() local
1901 CHECK(oat_dex_file != nullptr); in Dump()
1902 stats_.oat_dex_file_sizes.push_back(std::make_pair(oat_dex_file->GetDexFileLocation(), in Dump()
1903 oat_dex_file->FileSize())); in Dump()