Lines Matching refs:entry_name
796 status_t Dumpstate::AddZipEntryFromFd(const std::string& entry_name, int fd, in AddZipEntryFromFd() argument
800 entry_name.c_str()); in AddZipEntryFromFd()
803 std::string valid_name = entry_name; in AddZipEntryFromFd()
806 size_t idx = entry_name.rfind('.'); in AddZipEntryFromFd()
808 std::string extension = entry_name.substr(idx); in AddZipEntryFromFd()
811 valid_name = entry_name + ".renamed"; in AddZipEntryFromFd()
812 MYLOGI("Renaming entry %s to %s\n", entry_name.c_str(), valid_name.c_str()); in AddZipEntryFromFd()
853 entry_name.c_str(), strerror(errno)); in AddZipEntryFromFd()
857 entry_name.c_str(), strerror(errno), timeout.count()); in AddZipEntryFromFd()
866 MYLOGE("read(%s): %s\n", entry_name.c_str(), strerror(errno)); in AddZipEntryFromFd()
886 bool Dumpstate::AddZipEntry(const std::string& entry_name, const std::string& entry_path) { in AddZipEntry() argument
894 return (AddZipEntryFromFd(entry_name, fd.get()) == OK); in AddZipEntry()
912 bool Dumpstate::AddTextZipEntry(const std::string& entry_name, const std::string& content) { in AddTextZipEntry() argument
915 entry_name.c_str()); in AddTextZipEntry()
918 MYLOGD("Adding zip text entry %s\n", entry_name.c_str()); in AddTextZipEntry()
919 … int32_t err = zip_writer_->StartEntryWithTime(entry_name.c_str(), ZipWriter::kCompress, ds.now_); in AddTextZipEntry()
921 MYLOGE("zip_writer_->StartEntryWithTime(%s): %s\n", entry_name.c_str(), in AddTextZipEntry()
928 MYLOGE("zip_writer_->WriteBytes(%s): %s\n", entry_name.c_str(), in AddTextZipEntry()
1932 std::string entry_name = base_name_ + "-" + name_ + ".txt"; in FinishZipFile() local
1933 MYLOGD("Adding main entry (%s) from %s to .zip bugreport\n", entry_name.c_str(), in FinishZipFile()
1942 if (!ds.AddZipEntry(entry_name, tmp_path_)) { in FinishZipFile()
1946 if (!AddTextZipEntry("main_entry.txt", entry_name)) { in FinishZipFile()