summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2017-10-11 20:32:00 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-10-11 20:32:00 +0000
commit444e3a9f748f9cb30c2a9cc456544eece87aa858 (patch)
tree673657e951a5dc85e7b1ae128ad8bcf6645dbf3e
parentd2c66b31a0619afa196e40682aeb6b862ebe2caa (diff)
parent243fa2980439856c829ba39f559e57a9aecd3f95 (diff)
downloadsystem_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.cpp5
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