Lines Matching refs:oat_dex_file

510   for (const OatDexFile& oat_dex_file : oat_dex_files_) {  in GetSourceLocations()  local
511 locations.push_back(oat_dex_file.GetLocation()); in GetSourceLocations()
818 for (const OatDexFile& oat_dex_file : writer_->oat_dex_files_) { in InitOatClassesMethodVisitor() local
819 num_classes += oat_dex_file.class_offsets_.size(); in InitOatClassesMethodVisitor()
1967 for (OatDexFile& oat_dex_file : oat_dex_files_) { in InitClassOffsets()
1968 DCHECK_EQ(oat_dex_file.class_offsets_offset_, 0u); in InitClassOffsets()
1969 if (!oat_dex_file.class_offsets_.empty()) { in InitClassOffsets()
1972 oat_dex_file.class_offsets_offset_ = offset; in InitClassOffsets()
1973 offset += oat_dex_file.GetClassOffsetsRawSize(); in InitClassOffsets()
1989 for (OatDexFile& oat_dex_file : oat_dex_files_) { in InitOatClasses()
1990 for (uint32_t& class_offset : oat_dex_file.class_offsets_) { in InitOatClasses()
2237 for (OatDexFile& oat_dex_file : oat_dex_files_) { in InitOatDexFiles()
2238 oat_dex_file.offset_ = offset; in InitOatDexFiles()
2239 offset += oat_dex_file.SizeOf(); in InitOatDexFiles()
2766 for (OatDexFile& oat_dex_file : oat_dex_files_) { in WriteClassOffsets()
2767 if (oat_dex_file.class_offsets_offset_ != 0u) { in WriteClassOffsets()
2777 if (!oat_dex_file.WriteClassOffsets(this, out)) { in WriteClassOffsets()
2780 relative_offset += oat_dex_file.GetClassOffsetsRawSize(); in WriteClassOffsets()
3024 OatDexFile* oat_dex_file = &oat_dex_files_[i]; in WriteIndexBssMappings() local
3029 oat_dex_file->method_bss_mapping_offset_, in WriteIndexBssMappings()
3030 oat_dex_file->type_bss_mapping_offset_, in WriteIndexBssMappings()
3031 oat_dex_file->public_type_bss_mapping_offset_, in WriteIndexBssMappings()
3032 oat_dex_file->package_type_bss_mapping_offset_, in WriteIndexBssMappings()
3033 oat_dex_file->string_bss_mapping_offset_, in WriteIndexBssMappings()
3034 oat_dex_file->method_type_bss_mapping_offset_); in WriteIndexBssMappings()
3081 OatDexFile* oat_dex_file = &oat_dex_files_[i]; in WriteOatDexFiles() local
3082 DCHECK_EQ(relative_offset, oat_dex_file->offset_); in WriteOatDexFiles()
3086 if (!oat_dex_file->Write(this, out)) { in WriteOatDexFiles()
3089 relative_offset += oat_dex_file->SizeOf(); in WriteOatDexFiles()
3260 for (OatDexFile& oat_dex_file : oat_dex_files_) { in WriteDexFiles()
3261 const DexFileContainer* container = oat_dex_file.GetDexFile()->GetContainer().get(); in WriteDexFiles()
3276 for (OatDexFile& oat_dex_file : oat_dex_files_) { in WriteDexFiles()
3277 const DexFile* dex_file = oat_dex_file.GetDexFile(); in WriteDexFiles()
3297 for (OatDexFile& oat_dex_file : oat_dex_files_) { in WriteDexFiles()
3301 oat_dex_file.dex_file_offset_ = vdex_size_with_dex_files; in WriteDexFiles()
3303 if (oat_dex_file.dex_file_size_ < sizeof(DexFile::Header)) { in WriteDexFiles()
3304 LOG(ERROR) << "Dex file " << oat_dex_file.GetLocation() << " is too short: " in WriteDexFiles()
3305 << oat_dex_file.dex_file_size_ << " < " << sizeof(DexFile::Header); in WriteDexFiles()
3308 vdex_size_with_dex_files += oat_dex_file.dex_file_size_; in WriteDexFiles()
3315 for (const OatDexFile& oat_dex_file : oat_dex_files_) { in WriteDexFiles() local
3316 const DexFile* dex_file = oat_dex_file.GetDexFile(); in WriteDexFiles()
3374 for (OatDexFile& oat_dex_file : oat_dex_files_) { in WriteDexFiles()
3380 DCHECK_EQ(vdex_size_, oat_dex_file.dex_file_offset_); in WriteDexFiles()
3381 uint8_t* out = vdex_begin_ + oat_dex_file.dex_file_offset_; in WriteDexFiles()
3382 const DexFile* dex_file = oat_dex_file.GetDexFile(); in WriteDexFiles()
3383 DCHECK_EQ(oat_dex_file.dex_file_size_, dex_file->Size()); in WriteDexFiles()
3392 vdex_size_ += oat_dex_file.dex_file_size_; in WriteDexFiles()
3393 size_dex_file_ += oat_dex_file.dex_file_size_; in WriteDexFiles()
3412 for (OatDexFile& oat_dex_file : oat_dex_files_) { in WriteDexFiles()
3414 reinterpret_cast<DexFile::Header*>(vdex_begin_ + oat_dex_file.dex_file_offset_); in WriteDexFiles()
3419 CHECK_GT(vdex_dex_shared_data_offset_, oat_dex_file.dex_file_offset_); in WriteDexFiles()
3421 header->data_off_ = vdex_dex_shared_data_offset_ - oat_dex_file.dex_file_offset_; in WriteDexFiles()
3444 for (OatDexFile& oat_dex_file : oat_dex_files_) { in CloseSources()
3445 oat_dex_file.dex_file_.reset(); in CloseSources()
3463 for (OatDexFile& oat_dex_file : oat_dex_files_) { in OpenDexFiles()
3465 dex_files.emplace_back(std::move(oat_dex_file.dex_file_)); in OpenDexFiles()
3466 oat_dex_file.class_offsets_.resize(dex_files.back()->GetHeader().class_defs_size_); in OpenDexFiles()
3480 for (OatDexFile& oat_dex_file : oat_dex_files_) { in OpenDexFiles()
3481 const uint8_t* raw_dex_file = vdex_begin_ + oat_dex_file.dex_file_offset_; in OpenDexFiles()
3486 CHECK(ValidateDexFileHeader(raw_dex_file, oat_dex_file.GetLocation())) in OpenDexFiles()
3492 CHECK_EQ(header->file_size_, oat_dex_file.dex_file_size_) in OpenDexFiles()
3494 << oat_dex_file.dex_file_size_ << " Actual: " << header->file_size_ in OpenDexFiles()
3500 ArtDexFileLoader dex_file_loader(dex_container, oat_dex_file.GetLocation()); in OpenDexFiles()
3502 dex_files.emplace_back(dex_file_loader.OpenOne(oat_dex_file.dex_file_offset_, in OpenDexFiles()
3503 oat_dex_file.dex_file_location_checksum_, in OpenDexFiles()
3509 LOG(ERROR) << "Failed to open dex file from oat file. File: " << oat_dex_file.GetLocation() in OpenDexFiles()
3516 oat_dex_file.class_offsets_.resize(dex_files.back()->GetHeader().class_defs_size_); in OpenDexFiles()
3528 OatDexFile* oat_dex_file = &oat_dex_files_[i]; in InitializeTypeLookupTables() local
3529 DCHECK_EQ(oat_dex_file->lookup_table_offset_, 0u); in InitializeTypeLookupTables()
3531 size_t table_size = TypeLookupTable::RawDataLength(oat_dex_file->class_offsets_.size()); in InitializeTypeLookupTables()
3567 OatDexFile* oat_dex_file = &oat_dex_files_[i]; in WriteDexLayoutSections() local
3568 DCHECK_EQ(oat_dex_file->dex_sections_layout_offset_, 0u); in WriteDexLayoutSections()
3577 << " File: " << oat_dex_file->GetLocation() in WriteDexLayoutSections()
3588 DCHECK(oat_dex_file != nullptr); in WriteDexLayoutSections()
3589 if (!oat_rodata->WriteFully(&oat_dex_file->dex_sections_layout_, in WriteDexLayoutSections()
3590 sizeof(oat_dex_file->dex_sections_layout_))) { in WriteDexLayoutSections()
3592 << " File: " << oat_dex_file->GetLocation() in WriteDexLayoutSections()
3596 oat_dex_file->dex_sections_layout_offset_ = rodata_offset; in WriteDexLayoutSections()
3597 size_oat_dex_file_dex_layout_sections_ += sizeof(oat_dex_file->dex_sections_layout_); in WriteDexLayoutSections()
3598 rodata_offset += sizeof(oat_dex_file->dex_sections_layout_); in WriteDexLayoutSections()
3633 OatDexFile* oat_dex_file = &oat_dex_files_[i]; in WriteTypeLookupTables() local
3638 oat_dex_file->lookup_table_offset_ = 0u; in WriteTypeLookupTables()
3640 oat_dex_file->lookup_table_offset_ = vdex_size_ + sizeof(uint32_t); in WriteTypeLookupTables()
3724 OatDexFile* oat_dex_file = &oat_dex_files_[i]; in FinishVdexFile() local
3725 checksums_data[i] = oat_dex_file->dex_file_location_checksum_; in FinishVdexFile()
4113 const OatDexFile& oat_dex_file = oat_dex_files_[i]; in GetDebugInfo() local
4114 uint32_t dex_file_offset = oat_dex_file.dex_file_offset_; in GetDebugInfo()