diff options
author | Mark Salyzyn <salyzyn@google.com> | 2017-10-11 20:32:00 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-11 20:32:00 +0000 |
commit | 444e3a9f748f9cb30c2a9cc456544eece87aa858 (patch) | |
tree | 673657e951a5dc85e7b1ae128ad8bcf6645dbf3e | |
parent | d2c66b31a0619afa196e40682aeb6b862ebe2caa (diff) | |
parent | 243fa2980439856c829ba39f559e57a9aecd3f95 (diff) | |
download | system_core-444e3a9f748f9cb30c2a9cc456544eece87aa858.tar.gz system_core-444e3a9f748f9cb30c2a9cc456544eece87aa858.tar.bz2 system_core-444e3a9f748f9cb30c2a9cc456544eece87aa858.zip |
Merge "bootstat: Add some reserved sys.boot.reason values to enumeration"
-rw-r--r-- | bootstat/bootstat.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index ac66b7f51..f8eaa1cd3 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -207,6 +207,11 @@ const std::map<std::string, int32_t> kBootReasonMap = { {"reboot,adb", 67}, {"reboot,userrequested", 68}, {"shutdown,container", 69}, // Host OS asking Android Container to shutdown + {"cold,powerkey", 70}, + {"warm,s3_wakeup", 71}, + {"hard,hw_reset", 72}, + {"shutdown,suspend", 73}, // Suspend to RAM + {"shutdown,hibernate", 74}, // Suspend to DISK }; // Converts a string value representing the reason the system booted to an |