Lines Matching refs:file
90 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); in Open() local
91 if (file.get() == NULL) { in Open()
95 ret.reset(OpenElfFile(file.get(), location, requested_base, oat_file_begin, false, executable, in Open()
105 OatFile* OatFile::OpenWritable(File* file, const std::string& location, std::string* error_msg) { in OpenWritable() argument
107 return OpenElfFile(file, location, nullptr, nullptr, true, false, error_msg); in OpenWritable()
110 OatFile* OatFile::OpenReadable(File* file, const std::string& location, std::string* error_msg) { in OpenReadable() argument
112 return OpenElfFile(file, location, nullptr, nullptr, false, false, error_msg); in OpenReadable()
127 OatFile* OatFile::OpenElfFile(File* file, in OpenElfFile() argument
135 bool success = oat_file->ElfFileOpen(file, requested_base, oat_file_begin, writable, executable, in OpenElfFile()
195 bool OatFile::ElfFileOpen(File* file, byte* requested_base, uint8_t* oat_file_begin, in ElfFileOpen() argument
199 elf_file_.reset(ElfFile::Open(file, writable, /*program_header_only*/true, error_msg, in ElfFileOpen()
212 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s'", file->GetPath().c_str()); in ElfFileOpen()
224 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s'", file->GetPath().c_str()); in ElfFileOpen()