Lines Matching refs:RestartCause
626 enum class RestartCause enum
636 static boost::container::flat_set<RestartCause> causeSet;
637 static std::string getRestartCause(RestartCause cause) in getRestartCause()
641 case RestartCause::command: in getRestartCause()
644 case RestartCause::resetButton: in getRestartCause()
647 case RestartCause::powerButton: in getRestartCause()
650 case RestartCause::watchdog: in getRestartCause()
653 case RestartCause::powerPolicyOn: in getRestartCause()
656 case RestartCause::powerPolicyRestore: in getRestartCause()
659 case RestartCause::softReset: in getRestartCause()
667 static void addRestartCause(const RestartCause cause) in addRestartCause()
686 if ((causeSet.contains(RestartCause::command)) || in resetACBootProperty()
687 (causeSet.contains(RestartCause::softReset))) in resetACBootProperty()
710 if (causeSet.contains(RestartCause::watchdog)) in setRestartCause()
712 restartCause = getRestartCause(RestartCause::watchdog); in setRestartCause()
714 else if (causeSet.contains(RestartCause::command)) in setRestartCause()
716 restartCause = getRestartCause(RestartCause::command); in setRestartCause()
718 else if (causeSet.contains(RestartCause::resetButton)) in setRestartCause()
720 restartCause = getRestartCause(RestartCause::resetButton); in setRestartCause()
722 else if (causeSet.contains(RestartCause::powerButton)) in setRestartCause()
724 restartCause = getRestartCause(RestartCause::powerButton); in setRestartCause()
726 else if (causeSet.contains(RestartCause::powerPolicyOn)) in setRestartCause()
728 restartCause = getRestartCause(RestartCause::powerPolicyOn); in setRestartCause()
730 else if (causeSet.contains(RestartCause::powerPolicyRestore)) in setRestartCause()
732 restartCause = getRestartCause(RestartCause::powerPolicyRestore); in setRestartCause()
734 else if (causeSet.contains(RestartCause::softReset)) in setRestartCause()
743 restartCause = getRestartCause(RestartCause::softReset); in setRestartCause()
1120 setRestartCauseProperty(getRestartCause(RestartCause::powerPolicyOn)); in invoke()
1130 getRestartCause(RestartCause::powerPolicyRestore)); in invoke()
1712 addRestartCause(RestartCause::softReset); in powerStateOn()
1727 addRestartCause(RestartCause::softReset); in powerStateOn()
2063 addRestartCause(RestartCause::powerButton); in powerButtonHandler()
2092 addRestartCause(RestartCause::resetButton); in resetButtonHandler()
3045 addRestartCause(RestartCause::command); in main()
3061 addRestartCause(RestartCause::command); in main()
3077 addRestartCause(RestartCause::command); in main()
3094 addRestartCause(RestartCause::command); in main()
3111 addRestartCause(RestartCause::command); in main()
3153 addRestartCause(RestartCause::command); in main()
3169 addRestartCause(RestartCause::command); in main()
3185 addRestartCause(RestartCause::command); in main()
3227 addRestartCause(RestartCause::command); in main()
3549 addRestartCause(RestartCause::watchdog); in main()