Lines Matching refs:name
75 void check_and_fclose(FILE* fp, const std::string& name) { in check_and_fclose() argument
78 PLOG(ERROR) << "Failed to fsync " << name; in check_and_fclose()
81 PLOG(ERROR) << "Error in " << name; in check_and_fclose()
104 std::string name(filename); in logrotate() local
105 size_t dot = name.find_last_of('.'); in logrotate()
106 std::string sub = name.substr(0, dot); in logrotate()
115 name += ".1"; in logrotate()
117 std::string number = name.substr(dot + 1); in logrotate()
119 name += ".1"; in logrotate()
126 name = sub + "." + std::to_string(i + 1); in logrotate()
130 return __android_log_pmsg_file_write(id, prio, name.c_str(), buf, len); in logrotate()
311 if (!android::base::WriteStringToFile(log.data, log.name, log.sb.st_mode, log.sb.st_uid, in RestoreLogFilesAfterFormat()
313 PLOG(ERROR) << "Failed to write to " << log.name; in RestoreLogFilesAfterFormat()