Home
last modified time | relevance | path

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

/system/core/bootstat/
Dbootstat.cpp312 int32_t BootReasonStrToEnum(const std::string& boot_reason) { in BootReasonStrToEnum() argument
313 auto mapping = kBootReasonMap.find(boot_reason); in BootReasonStrToEnum()
318 if (boot_reason.empty()) { in BootReasonStrToEnum()
329 if (std::regex_search(boot_reason, std::regex(exact))) return id; in BootReasonStrToEnum()
332 LOG(INFO) << "Unknown boot reason: " << boot_reason; in BootReasonStrToEnum()
789 std::string BootReasonStrToReason(const std::string& boot_reason) { in BootReasonStrToReason() argument
791 std::string reason(boot_reason); in BootReasonStrToReason()
1211 int32_t boot_reason = BootReasonStrToEnum(reason); in RecordBootReason() local
1213 boot_event_store.AddBootEventWithValue("boot_reason", boot_reason); in RecordBootReason()
Dbootstat.rc16 chown system log /data/misc/bootstat/boot_reason