Searched refs:record_path (Results 1 – 2 of 2) sorted by relevance
70 std::string record_path = GetBootEventPath(event); in AddBootEventWithValue() local71 int record_fd = creat(record_path.c_str(), S_IRUSR | S_IWUSR); in AddBootEventWithValue()73 PLOG(ERROR) << "Failed to create " << record_path; in AddBootEventWithValue()80 if (stat(record_path.c_str(), &file_stat) == -1) { in AddBootEventWithValue()81 PLOG(ERROR) << "Failed to read " << record_path; in AddBootEventWithValue()89 if (utime(record_path.c_str(), ×) == -1) { in AddBootEventWithValue()90 PLOG(ERROR) << "Failed to set mtime for " << record_path; in AddBootEventWithValue()102 const std::string record_path = GetBootEventPath(event); in GetBootEvent() local104 if (!ParseRecordEventTime(record_path, &uptime)) { in GetBootEvent()105 LOG(ERROR) << "Failed to parse boot time record: " << record_path; in GetBootEvent()
44 bool CreateEmptyBootEventRecord(const std::string& record_path, int32_t value) { in CreateEmptyBootEventRecord() argument45 android::base::unique_fd record_fd(creat(record_path.c_str(), S_IRUSR | S_IWUSR)); in CreateEmptyBootEventRecord()55 if (utimes(record_path.c_str(), times) != 0) { in CreateEmptyBootEventRecord()