• Home
  • Raw
  • Download

Lines Matching refs:error_msg

194                                                    std::string* error_msg) {  in Open()  argument
198 if (!InitAndReadMagic(&magic, error_msg) || !MapRootContainer(error_msg)) { in Open()
199 DCHECK(!error_msg->empty()); in Open()
211 error_msg, in Open()
216 bool DexFileLoader::InitAndReadMagic(uint32_t* magic, std::string* error_msg) { in InitAndReadMagic() argument
219 *error_msg = StringPrintf("Unable to open '%s' : Size is too small", location_.c_str()); in InitAndReadMagic()
229 *error_msg = StringPrintf("Unable to open '%s' : %s", filename_.c_str(), strerror(errno)); in InitAndReadMagic()
233 if (!ReadMagicAndReset(file_->Fd(), magic, error_msg)) { in InitAndReadMagic()
240 bool DexFileLoader::MapRootContainer(std::string* error_msg) { in MapRootContainer() argument
250 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", filename_.c_str(), strerror(errno)); in MapRootContainer()
254 *error_msg = StringPrintf("Attempt to mmap directory '%s'", filename_.c_str()); in MapRootContainer()
264 error_msg); in MapRootContainer()
266 DCHECK(!error_msg->empty()); in MapRootContainer()
277 std::string* error_msg, in Open() argument
284 if (!InitAndReadMagic(&magic, error_msg)) { in Open()
291 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in Open()
293 root_container_->Begin(), root_container_->Size(), location_.c_str(), error_msg)); in Open()
295 DCHECK(!error_msg->empty()); in Open()
307 error_msg, in Open()
325 if (!MapRootContainer(error_msg)) { in Open()
338 error_msg, in Open()
347 *error_msg = StringPrintf("Expected valid zip or dex file"); in Open()
359 std::string* error_msg, in OpenCommon() argument
377 *error_msg = StringPrintf("Invalid or truncated dex file '%s'", location.c_str()); in OpenCommon()
380 *error_msg = in OpenCommon()
381 StringPrintf("Failed to open dex file '%s': %s", location.c_str(), error_msg->c_str()); in OpenCommon()
384 if (!dex_file->Init(error_msg)) { in OpenCommon()
391 if (!dex::Verify(dex_file.get(), location.c_str(), verify_checksum, error_msg)) { in OpenCommon()
410 std::string* error_msg, in OpenFromZipEntry() argument
413 std::unique_ptr<ZipEntry> zip_entry(zip_archive.Find(entry_name, error_msg)); in OpenFromZipEntry()
419 *error_msg = StringPrintf("Dex file '%s' has zero length", location.c_str()); in OpenFromZipEntry()
436 map = zip_entry->MapDirectlyFromFile(location.c_str(), /*out*/ error_msg); in OpenFromZipEntry()
450 map = zip_entry->ExtractToMemMap(location.c_str(), entry_name, error_msg); in OpenFromZipEntry()
453 *error_msg = StringPrintf("Failed to extract '%s' from '%s': %s", entry_name, location.c_str(), in OpenFromZipEntry()
454 error_msg->c_str()); in OpenFromZipEntry()
461 *error_msg = StringPrintf("Failed to make dex file '%s' read only", location.c_str()); in OpenFromZipEntry()
474 error_msg, in OpenFromZipEntry()
492 std::string* error_msg, in Open() argument
503 error_msg, in Open()
517 std::string* error_msg, in OpenCommon() argument
541 error_msg, in OpenCommon()