Lines Matching refs:oat_file
675 for (std::unique_ptr<File>& oat_file : oat_files_) { in ~Dex2Oat()
676 oat_file.release(); in ~Dex2Oat()
1319 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename)); in OpenFile() local
1320 if (oat_file == nullptr) { in OpenFile()
1324 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile()
1326 oat_file->Erase(); in OpenFile()
1329 oat_files_.push_back(std::move(oat_file)); in OpenFile()
1363 std::unique_ptr<File> oat_file(new File(oat_fd_, oat_location_, /* check_usage */ true)); in OpenFile() local
1364 if (oat_file == nullptr) { in OpenFile()
1368 oat_file->DisableAutoClose(); in OpenFile()
1369 if (oat_file->SetLength(0) != 0) { in OpenFile()
1371 oat_file->Erase(); in OpenFile()
1374 oat_files_.push_back(std::move(oat_file)); in OpenFile()
2136 std::unique_ptr<File>& oat_file = oat_files_[i]; in WriteOutputFiles() local
2148 LOG(ERROR) << "Failed to write .rodata section to the ELF file " << oat_file->GetPath(); in WriteOutputFiles()
2156 LOG(ERROR) << "Failed to write .text section to the ELF file " << oat_file->GetPath(); in WriteOutputFiles()
2165 LOG(ERROR) << "Failed to write oat header to the ELF file " << oat_file->GetPath(); in WriteOutputFiles()
2180 LOG(ERROR) << "Failed to write ELF file " << oat_file->GetPath(); in WriteOutputFiles()
2541 for (const std::unique_ptr<File>& oat_file : oat_files_) { in CreateOatWriters() local
2545 oat_file.get())); in CreateOatWriters()
2711 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename)); in CreateImageFile() local
2712 if (oat_file.get() == nullptr) { in CreateImageFile()
2717 if (!linker::ElfWriter::Fixup(oat_file.get(), oat_data_begins[i])) { in CreateImageFile()
2718 oat_file->Erase(); in CreateImageFile()
2719 LOG(ERROR) << "Failed to fixup ELF file " << oat_file->GetPath(); in CreateImageFile()
2723 if (oat_file->FlushCloseOrErase()) { in CreateImageFile()
2724 PLOG(ERROR) << "Failed to flush and close fixed ELF file " << oat_file->GetPath(); in CreateImageFile()