Lines Matching refs:entry_name
732 status_t Dumpstate::AddZipEntryFromFd(const std::string& entry_name, int fd, in AddZipEntryFromFd() argument
736 entry_name.c_str()); in AddZipEntryFromFd()
739 std::string valid_name = entry_name; in AddZipEntryFromFd()
742 size_t idx = entry_name.rfind('.'); in AddZipEntryFromFd()
744 std::string extension = entry_name.substr(idx); in AddZipEntryFromFd()
747 valid_name = entry_name + ".renamed"; in AddZipEntryFromFd()
748 MYLOGI("Renaming entry %s to %s\n", entry_name.c_str(), valid_name.c_str()); in AddZipEntryFromFd()
777 MYLOGE("Error in poll while adding from fd to zip entry %s:%s", entry_name.c_str(), in AddZipEntryFromFd()
782 entry_name.c_str(), strerror(errno), timeout.count()); in AddZipEntryFromFd()
791 MYLOGE("read(%s): %s\n", entry_name.c_str(), strerror(errno)); in AddZipEntryFromFd()
810 bool Dumpstate::AddZipEntry(const std::string& entry_name, const std::string& entry_path) { in AddZipEntry() argument
818 return (AddZipEntryFromFd(entry_name, fd.get()) == OK); in AddZipEntry()
836 bool Dumpstate::AddTextZipEntry(const std::string& entry_name, const std::string& content) { in AddTextZipEntry() argument
839 entry_name.c_str()); in AddTextZipEntry()
842 MYLOGD("Adding zip text entry %s\n", entry_name.c_str()); in AddTextZipEntry()
843 … int32_t err = zip_writer_->StartEntryWithTime(entry_name.c_str(), ZipWriter::kCompress, ds.now_); in AddTextZipEntry()
845 MYLOGE("zip_writer_->StartEntryWithTime(%s): %s\n", entry_name.c_str(), in AddTextZipEntry()
852 MYLOGE("zip_writer_->WriteBytes(%s): %s\n", entry_name.c_str(), in AddTextZipEntry()
1711 std::string entry_name = base_name_ + "-" + name_ + ".txt"; in FinishZipFile() local
1712 MYLOGD("Adding main entry (%s) from %s to .zip bugreport\n", entry_name.c_str(), in FinishZipFile()
1721 if (!ds.AddZipEntry(entry_name, tmp_path_)) { in FinishZipFile()
1725 if (!AddTextZipEntry("main_entry.txt", entry_name)) { in FinishZipFile()