bootstat: add reboot,2sec

Test: system/core/bootreason/boot_reason_test.sh
Bug: 63736262
Change-Id: Ie2e5872adb14e0979ff87eb4d2f57ab2849facd4
This commit is contained in:
Mark Salyzyn 2017-10-23 13:52:39 -07:00
parent 2a8e5cce33
commit cabbe4ff35

View file

@ -223,6 +223,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
{"2sec_reboot", 83},
{"reboot,by_key", 84},
{"reboot,longkey", 85},
{"reboot,2sec", 86},
};
// Converts a string value representing the reason the system booted to an
@ -406,6 +407,7 @@ std::string BootReasonStrToReason(const std::string& boot_reason) {
{"shutdown,thermal", "thermal"},
{"warm,s3_wakeup", "s3_wakeup"},
{"hard,hw_reset", "hw_reset"},
{"reboot,2sec", "2sec_reboot"},
{"bootloader", ""},
};