Lines Matching defs:oat_file

559       for (std::unique_ptr<File>& oat_file : oat_files_) {
560 oat_file.release();
1198 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename));
1199 if (oat_file.get() == nullptr) {
1203 if (create_file && fchmod(oat_file->Fd(), 0644) != 0) {
1205 oat_file->Erase();
1208 oat_files_.push_back(std::move(oat_file));
1211 std::unique_ptr<File> oat_file(new File(oat_fd_, oat_location_, true));
1212 oat_file->DisableAutoClose();
1213 if (oat_file->SetLength(0) != 0) {
1216 if (oat_file.get() == nullptr) {
1220 if (create_file && fchmod(oat_file->Fd(), 0644) != 0) {
1222 oat_file->Erase();
1226 oat_files_.push_back(std::move(oat_file));
1723 std::unique_ptr<File>& oat_file = oat_files_[i];
1736 LOG(ERROR) << "Failed to write .rodata section to the ELF file " << oat_file->GetPath();
1744 LOG(ERROR) << "Failed to write .text section to the ELF file " << oat_file->GetPath();
1753 LOG(ERROR) << "Failed to write oat header to the ELF file " << oat_file->GetPath();
1769 LOG(ERROR) << "Failed to write ELF file " << oat_file->GetPath();
2006 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile());
2007 if (oat_file == nullptr) {
2012 oat_file_assistant.LoadDexFiles(*oat_file, location.c_str());
2013 opened_oat_files->push_back(std::move(oat_file));
2141 for (const std::unique_ptr<File>& oat_file : oat_files_) {
2145 oat_file.get()));
2286 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename));
2287 if (oat_file.get() == nullptr) {
2292 if (!ElfWriter::Fixup(oat_file.get(), oat_data_begins[i])) {
2293 oat_file->Erase();
2294 LOG(ERROR) << "Failed to fixup ELF file " << oat_file->GetPath();
2298 if (oat_file->FlushCloseOrErase()) {
2299 PLOG(ERROR) << "Failed to flush and close fixed ELF file " << oat_file->GetPath();