Lines Matching defs:input_oat
189 bool PatchOat::Patch(const File* input_oat, const std::string& image_location, off_t delta,
195 CHECK(input_oat != nullptr);
197 CHECK_GE(input_oat->Fd(), 0);
205 if (sizeof(elf_hdr) != input_oat->Read(reinterpret_cast<char*>(&elf_hdr), sizeof(elf_hdr), 0)) {
263 std::unique_ptr<ElfFile> elf(ElfFile::Open(const_cast<File*>(input_oat),
266 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg;
274 LOG(ERROR) << "Failed to patch oat file " << input_oat->GetPath();
444 bool PatchOat::Patch(File* input_oat, off_t delta, File* output_oat, TimingLogger* timings) {
445 CHECK(input_oat != nullptr);
447 CHECK_GE(input_oat->Fd(), 0);
452 std::unique_ptr<ElfFile> elf(ElfFile::Open(const_cast<File*>(input_oat),
455 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg;
1022 std::unique_ptr<File> input_oat;
1047 input_oat.reset(new File(input_oat_fd, input_oat_filename));
1050 input_oat.reset(OS::OpenFileForReading(input_oat_filename.c_str()));
1051 if (input_oat.get() == nullptr) {
1085 if ((have_oat_files && (input_oat.get() == nullptr || output_oat.get() == nullptr)) ||
1110 ret = PatchOat::Patch(input_oat.get(), input_image_location, base_delta,
1114 ret = PatchOat::Patch(input_oat.get(), base_delta, output_oat.get(), &timings);