Home
last modified time | relevance | path

Searched refs:record_path (Results 1 – 2 of 2) sorted by relevance

/system/core/bootstat/
Dboot_event_record_store.cpp70 std::string record_path = GetBootEventPath(event); in AddBootEventWithValue() local
71 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(), &times) == -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() local
104 if (!ParseRecordEventTime(record_path, &uptime)) { in GetBootEvent()
105 LOG(ERROR) << "Failed to parse boot time record: " << record_path; in GetBootEvent()
Dboot_event_record_store_test.cpp44 bool CreateEmptyBootEventRecord(const std::string& record_path, int32_t value) { in CreateEmptyBootEventRecord() argument
45 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()