Lines Matching refs:input_oat

178 bool PatchOat::Patch(File* input_oat, const std::string& image_location, off_t delta,  in Patch()  argument
186 CHECK(input_oat != nullptr); in Patch()
188 CHECK_GE(input_oat->Fd(), 0); in Patch()
196 if (sizeof(elf_hdr) != input_oat->Read(reinterpret_cast<char*>(&elf_hdr), sizeof(elf_hdr), 0)) { in Patch()
258 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat, in Patch()
261 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg; in Patch()
272 if (!ReplaceOatFileWithSymlink(input_oat->GetPath(), in Patch()
289 LOG(ERROR) << "Failed to patch oat file " << input_oat->GetPath(); in Patch()
299 LOG(ERROR) << "Failed to write oat file " << input_oat->GetPath(); in Patch()
658 bool PatchOat::Patch(File* input_oat, off_t delta, File* output_oat, TimingLogger* timings, in Patch() argument
660 CHECK(input_oat != nullptr); in Patch()
662 CHECK_GE(input_oat->Fd(), 0); in Patch()
667 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat, in Patch()
670 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg; in Patch()
681 return ReplaceOatFileWithSymlink(input_oat->GetPath(), in Patch()
1194 std::unique_ptr<File> input_oat; in patchoat() local
1219 input_oat.reset(new File(input_oat_fd, input_oat_filename, false)); in patchoat()
1221 input_oat.get()->DisableAutoClose(); in patchoat()
1223 if (input_oat == nullptr) { in patchoat()
1229 input_oat.reset(OS::OpenFileForReading(input_oat_filename.c_str())); in patchoat()
1230 if (input_oat == nullptr) { in patchoat()
1280 if (have_oat_files && (input_oat.get() == nullptr || output_oat.get() == nullptr)) { in patchoat()
1310 ret = PatchOat::Patch(input_oat.get(), input_image_location, base_delta, in patchoat()
1320 ret = PatchOat::Patch(input_oat.get(), base_delta, output_oat.get(), &timings, in patchoat()