Lines Matching refs:powerOffConfig
399 PowerRuleState getPowerOffPowerRuleState(const json& powerOffConfig) in getPowerOffPowerRuleState() argument
404 if (powerOffConfig.contains("state")) in getPowerOffPowerRuleState()
406 auto state = powerOffConfig.at("state").get<std::string>(); in getPowerOffPowerRuleState()
422 std::unique_ptr<PowerOffCause> getPowerOffCause(const json& powerOffConfig) in getPowerOffCause() argument
426 if (!powerOffConfig.contains("count") || !powerOffConfig.contains("cause")) in getPowerOffCause()
434 auto count = powerOffConfig.at("count").get<size_t>(); in getPowerOffCause()
435 auto powerOffCause = powerOffConfig.at("cause").get<std::string>(); in getPowerOffCause()
467 getPowerOffAction(const json& powerOffConfig, in getPowerOffAction() argument
472 if (!powerOffConfig.contains("type")) in getPowerOffAction()
479 auto type = powerOffConfig.at("type").get<std::string>(); in getPowerOffAction()
482 !powerOffConfig.contains("delay")) in getPowerOffAction()
489 (!powerOffConfig.contains("service_mode_delay") || in getPowerOffAction()
490 !powerOffConfig.contains("meltdown_delay"))) in getPowerOffAction()
501 powerOffConfig.at("delay").get<uint32_t>(), powerInterface, func); in getPowerOffAction()
506 powerOffConfig.at("delay").get<uint32_t>(), powerInterface, func); in getPowerOffAction()
511 powerOffConfig.at("service_mode_delay").get<uint32_t>(), in getPowerOffAction()
512 powerOffConfig.at("meltdown_delay").get<uint32_t>(), powerInterface, in getPowerOffAction()