Home
last modified time | relevance | path

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

/system/core/bootstat/
Dbootstat.cpp1241 std::string last_boot_reason; in SetSystemBootReason() local
1242 if (!android::base::ReadFileToString(last_reboot_reason_file, &last_boot_reason)) { in SetSystemBootReason()
1244 last_boot_reason = android::base::GetProperty(last_reboot_reason_property, ""); in SetSystemBootReason()
1245 LOG(INFO) << "Value of " << last_reboot_reason_property << " : " << last_boot_reason; in SetSystemBootReason()
1248 << last_boot_reason << ". Last reboot reason read from " in SetSystemBootReason()
1252 if (last_boot_reason.empty() || isKernelRebootReason(system_boot_reason)) { in SetSystemBootReason()
1253 last_boot_reason = system_boot_reason; in SetSystemBootReason()
1255 transformReason(last_boot_reason); in SetSystemBootReason()
1257 LOG(INFO) << "Normalized last reboot reason : " << last_boot_reason; in SetSystemBootReason()
1258 android::base::SetProperty(last_last_reboot_reason_property, last_boot_reason); in SetSystemBootReason()