Lines Matching refs:string
61 static FILE* fopen_path(const std::string& path, const char* mode, const selabel_handle* sehandle) { in fopen_path()
75 void check_and_fclose(FILE* fp, const std::string& name) { in check_and_fclose()
90 if (std::string(LAST_KMSG_FILTER).find(filename) != std::string::npos || in logbasename()
91 std::string(LAST_LOG_FILTER).find(filename) != std::string::npos) { in logbasename()
104 std::string name(filename); in logrotate()
106 std::string sub = name.substr(0, dot); in logrotate()
108 if (std::string(LAST_KMSG_FILTER).find(sub) == std::string::npos && in logrotate()
109 std::string(LAST_LOG_FILTER).find(sub) == std::string::npos) { in logrotate()
114 if (dot == std::string::npos) { in logrotate()
117 std::string number = name.substr(dot + 1); in logrotate()
145 std::string old_log = android::base::StringPrintf("%s", last_log_file); in rotate_logs()
149 std::string new_log = android::base::StringPrintf("%s.%d", last_log_file, i + 1); in rotate_logs()
153 std::string old_kmsg = android::base::StringPrintf("%s", last_kmsg_file); in rotate_logs()
157 std::string new_kmsg = android::base::StringPrintf("%s.%d", last_kmsg_file, i + 1); in rotate_logs()
163 static ssize_t __pmsg_write(const std::string& filename, const std::string& buf) { in __pmsg_write()
168 void copy_log_file_to_pmsg(const std::string& source, const std::string& destination) { in copy_log_file_to_pmsg()
169 std::string content; in copy_log_file_to_pmsg()
181 static void copy_log_file(const std::string& source, const std::string& destination, bool append) { in copy_log_file()
249 std::string buffer(klog_buf_len, 0); in save_kernel_log()
274 std::string path = android::base::StringPrintf("%s/%s", CACHE_LOG_DIR, de->d_name); in ReadLogFilesToMemory()
283 std::string data(read_size, '\0'); in ReadLogFilesToMemory()