Lines Matching refs:base
122 if (!android::base::ParseUint(number, &i)) { 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()
170 android::base::ReadFileToString(source, &content); in copy_log_file_to_pmsg()
257 android::base::WriteStringToFile(buffer, destination); in save_kernel_log()
275 std::string path = android::base::StringPrintf("%s/%s", CACHE_LOG_DIR, de->d_name); in ReadLogFilesToMemory()
286 android::base::unique_fd log_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY))); in ReadLogFilesToMemory()
287 if (log_fd == -1 || !android::base::ReadFully(log_fd, data.data(), read_size)) { in ReadLogFilesToMemory()
312 if (!android::base::WriteStringToFile(log.data, log.name, log.sb.st_mode, log.sb.st_uid, in RestoreLogFilesAfterFormat()