Lines Matching refs:oat_dex_file

119 const DexFile* OpenDexFile(const OatDexFile* oat_dex_file, std::string* error_msg) {  in OpenDexFile()  argument
120 DCHECK(oat_dex_file != nullptr); in OpenDexFile()
121 auto it = opened_dex_files.find(oat_dex_file); in OpenDexFile()
125 const DexFile* ret = oat_dex_file->OpenDexFile(error_msg).release(); in OpenDexFile()
126 opened_dex_files.emplace(oat_dex_file, std::unique_ptr<const DexFile>(ret)); in OpenDexFile()
236 const OatDexFile* oat_dex_file = oat_dex_files[i]; in Walk() local
237 CHECK(oat_dex_file != nullptr); in Walk()
238 WalkOatDexFile(oat_dex_file); in Walk()
242 void WalkOatDexFile(const OatDexFile* oat_dex_file) { in WalkOatDexFile() argument
244 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in WalkOatDexFile()
251 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in WalkOatDexFile()
510 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump() local
511 CHECK(oat_dex_file != nullptr); in Dump()
513 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in Dump()
515 os << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() << "': " in Dump()
520 const DexLayoutSections* const layout_sections = oat_dex_file->GetDexLayoutSections(); in Dump()
532 oat_dex_file->GetMethodBssMapping(), in Dump()
539 oat_dex_file->GetTypeBssMapping(), in Dump()
546 oat_dex_file->GetStringBssMapping(), in Dump()
583 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump() local
584 CHECK(oat_dex_file != nullptr); in Dump()
585 if (!DumpOatDexFile(os, *oat_dex_file)) { in Dump()
615 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump() local
616 CHECK(oat_dex_file != nullptr); in Dump()
664 if (!ExportDexFile(os, *oat_dex_file, dex.get(), /*used_dexlayout=*/ true)) { in Dump()
669 if (!ExportDexFile(os, *oat_dex_file, vdex_dex_file.get(), /*used_dexlayout=*/ false)) { in Dump()
708 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in GetQuickOatCode() local
709 CHECK(oat_dex_file != nullptr); in GetQuickOatCode()
711 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in GetQuickOatCode()
713 LOG(WARNING) << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() in GetQuickOatCode()
721 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in GetQuickOatCode()
843 const OatDexFile* oat_dex_file = oat_dex_files_[i]; in AddAllOffsets() local
844 CHECK(oat_dex_file != nullptr); in AddAllOffsets()
846 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); in AddAllOffsets()
848 LOG(WARNING) << "Failed to open dex file '" << oat_dex_file->GetDexFileLocation() in AddAllOffsets()
854 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(accessor.GetClassDefIndex()); in AddAllOffsets()
882 bool DumpOatDexFile(std::ostream& os, const OatDexFile& oat_dex_file) { in DumpOatDexFile() argument
886 os << StringPrintf("location: %s\n", oat_dex_file.GetDexFileLocation().c_str()); in DumpOatDexFile()
887 os << StringPrintf("checksum: 0x%08x\n", oat_dex_file.GetDexFileLocationChecksum()); in DumpOatDexFile()
889 const uint8_t* const oat_file_begin = oat_dex_file.GetOatFile()->Begin(); in DumpOatDexFile()
890 if (oat_dex_file.GetOatFile()->ContainsDexCode()) { in DumpOatDexFile()
891 const uint8_t* const vdex_file_begin = oat_dex_file.GetOatFile()->DexBegin(); in DumpOatDexFile()
894 const uint8_t* const dex_file_pointer = oat_dex_file.GetDexFilePointer(); in DumpOatDexFile()
899 dchecked_integral_cast<uint32_t>(dex_offset + oat_dex_file.FileSize() - 1)); in DumpOatDexFile()
906 const DexFile* const dex_file = OpenDexFile(&oat_dex_file, &error_msg); in DumpOatDexFile()
914 if (oat_dex_file.GetLookupTableData() != nullptr) { in DumpOatDexFile()
916 oat_dex_file.GetLookupTableData() - oat_file_begin); 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()
1911 for (const OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { in Dump() local
1912 CHECK(oat_dex_file != nullptr); in Dump()
1913 stats_.oat_dex_file_sizes.push_back(std::make_pair(oat_dex_file->GetDexFileLocation(), in Dump()
1914 oat_dex_file->FileSize())); in Dump()