Lines Matching refs:location

481 static bool ValidateDexFileHeader(const uint8_t* raw_header, const char* location) {  in ValidateDexFileHeader()  argument
484 LOG(ERROR) << "Invalid magic number in dex file header. " << " File: " << location; in ValidateDexFileHeader()
488 LOG(ERROR) << "Invalid version number in dex file header. " << " File: " << location; in ValidateDexFileHeader()
494 << " File: " << location; in ValidateDexFileHeader()
502 const char* location) { in GetDexFileHeader() argument
506 << " File: " << location << " Output: " << file->GetPath(); in GetDexFileHeader()
509 if (!ValidateDexFileHeader(raw_header, location)) { in GetDexFileHeader()
517 const char* location, in AddDexFileSource() argument
526 return AddDexFileSource(std::move(fd), location, create_type_lookup_table); in AddDexFileSource()
532 const char* location, in AddDexFileSource() argument
538 LOG(ERROR) << "Failed to read magic number from dex file '" << location << "': " << error_msg; in AddDexFileSource()
543 const UnalignedDexFileHeader* header = GetDexFileHeader(&dex_file_fd, raw_header, location); in AddDexFileSource()
546 << location << "': " << error_msg; in AddDexFileSource()
551 raw_dex_files_.emplace_back(new File(dex_file_fd.Release(), location, /* checkUsage */ false)); in AddDexFileSource()
553 location, in AddDexFileSource()
559 zip_archives_.emplace_back(ZipArchive::OpenFromFd(dex_file_fd.Release(), location, &error_msg)); in AddDexFileSource()
562 LOG(ERROR) << "Failed to open zip from file descriptor for '" << location << "': " in AddDexFileSource()
573 zipped_dex_file_locations_.push_back(DexFileLoader::GetMultiDexLocation(i, location)); in AddDexFileSource()
584 LOG(ERROR) << "No dex files in zip file '" << location << "': " << error_msg; in AddDexFileSource()
588 LOG(ERROR) << "Expected valid zip or dex file: '" << location << "'"; in AddDexFileSource()
596 const char* location, in AddVdexDexFilesSource() argument
604 LOG(ERROR) << "Unexpected number of dex files in vdex " << location; in AddVdexDexFilesSource()
609 LOG(ERROR) << "Invalid magic in vdex file created from " << location; in AddVdexDexFilesSource()
613 zipped_dex_file_locations_.push_back(DexFileLoader::GetMultiDexLocation(i, location)); in AddVdexDexFilesSource()
625 LOG(ERROR) << "Unexpected number of dex files in vdex " << location; in AddVdexDexFilesSource()
630 LOG(ERROR) << "No dex files in vdex file created from " << location; in AddVdexDexFilesSource()
638 const char* location, in AddRawDexFileSource() argument
644 << data.size() << " File: " << location; in AddRawDexFileSource()
647 if (!ValidateDexFileHeader(data.data(), location)) { in AddRawDexFileSource()
653 << " file size from header: " << header->file_size_ << " File: " << location; in AddRawDexFileSource()
658 location, in AddRawDexFileSource()
3365 std::string location(oat_dex_file->GetLocation()); in LayoutDexFile() local
3373 mem_map = zip_entry->ExtractToMemMap(location.c_str(), "classes.dex", &error_msg); in LayoutDexFile()
3380 dex_file = dex_file_loader.Open(location, in LayoutDexFile()
3390 PLOG(ERROR) << "Failed to dup dex file descriptor (" << raw_file->Fd() << ") at " << location; in LayoutDexFile()
3394 dex_file = dex_file_loader.OpenDex(dup_fd, location, in LayoutDexFile()
3412 location, in LayoutDexFile()
3429 if (dex_layout.ProcessDexFile(location.c_str(), in LayoutDexFile()