Searched refs:system_boot_reason (Results 1 – 2 of 2) sorted by relevance
883 void BootReasonAddToHistory(const std::string& system_boot_reason) { in BootReasonAddToHistory() argument884 if (system_boot_reason.empty()) return; in BootReasonAddToHistory()885 LOG(INFO) << "Canonical boot reason: " << system_boot_reason; in BootReasonAddToHistory()887 if (!android::base::SetProperty(system_reboot_reason_property, system_boot_reason)) { in BootReasonAddToHistory()889 system_boot_reason.substr(0, PROPERTY_VALUE_MAX - 1)); in BootReasonAddToHistory()895 auto marked_system_boot_reason = system_boot_reason + mark_str; in BootReasonAddToHistory()1237 const std::string system_boot_reason(BootReasonStrToReason(bootloader_boot_reason)); in SetSystemBootReason() local1239 BootReasonAddToHistory(system_boot_reason); in SetSystemBootReason()1252 if (last_boot_reason.empty() || isKernelRebootReason(system_boot_reason)) { in SetSystemBootReason()1253 last_boot_reason = system_boot_reason; in SetSystemBootReason()[all …]
1233 local result=`adb_su stat -c %Y /data/misc/bootstat/system_boot_reason </dev/null 2>/dev/null`