Lines Matching refs:input_oat
194 bool PatchOat::Patch(File* input_oat, const std::string& image_location, off_t delta, in Patch() argument
202 CHECK(input_oat != nullptr); in Patch()
204 CHECK_GE(input_oat->Fd(), 0); in Patch()
212 if (sizeof(elf_hdr) != input_oat->Read(reinterpret_cast<char*>(&elf_hdr), sizeof(elf_hdr), 0)) { in Patch()
274 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat, in Patch()
277 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg; in Patch()
288 if (!ReplaceOatFileWithSymlink(input_oat->GetPath(), in Patch()
305 LOG(ERROR) << "Failed to patch oat file " << input_oat->GetPath(); in Patch()
315 LOG(ERROR) << "Failed to write oat file " << input_oat->GetPath(); in Patch()
563 bool PatchOat::Patch(File* input_oat, off_t delta, File* output_oat, TimingLogger* timings, in Patch() argument
565 CHECK(input_oat != nullptr); in Patch()
567 CHECK_GE(input_oat->Fd(), 0); in Patch()
572 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat, in Patch()
575 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg; in Patch()
586 return ReplaceOatFileWithSymlink(input_oat->GetPath(), in Patch()
1171 std::unique_ptr<File> input_oat; in patchoat() local
1196 input_oat.reset(new File(input_oat_fd, input_oat_filename, false)); in patchoat()
1197 if (input_oat == nullptr) { in patchoat()
1203 input_oat.reset(OS::OpenFileForReading(input_oat_filename.c_str())); in patchoat()
1204 if (input_oat == nullptr) { in patchoat()
1254 if (have_oat_files && (input_oat.get() == nullptr || output_oat.get() == nullptr)) { in patchoat()
1284 ret = PatchOat::Patch(input_oat.get(), input_image_location, base_delta, in patchoat()
1294 ret = PatchOat::Patch(input_oat.get(), base_delta, output_oat.get(), &timings, in patchoat()