Lines Matching refs:reason
30 // Returns the string corresponding to |reason|. Values are hardcoded in
32 String16 ShutdownReasonToString16(ShutdownReason reason) {
33 switch (reason) {
39 LOG(ERROR) << "Unknown shutdown reason " << static_cast<int>(reason);
44 // Returns the string corresponding to |reason|. Values are hardcoded in
46 String16 RebootReasonToString16(RebootReason reason) {
47 switch (reason) {
53 LOG(ERROR) << "Unknown reboot reason " << static_cast<int>(reason);
97 SuspendReason reason,
101 event_uptime.InMilliseconds(), static_cast<int>(reason), flags);
109 bool PowerManagerClient::ShutDown(ShutdownReason reason) {
112 ShutdownReasonToString16(reason),
121 bool PowerManagerClient::Reboot(RebootReason reason) {
124 RebootReasonToString16(reason),