Lines Matching full:reason
50 char reason[REASON_MAX] = {0}; in RebootOrShutdown() local
52 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in RebootOrShutdown()
54 POWER_HILOGE(FEATURE_SHUTDOWN, "Get shutdown reason failed"); in RebootOrShutdown()
57 POWER_HILOGD(FEATURE_SHUTDOWN, "reboot: %{public}d, reason: %{public}s", isReboot, reason); in RebootOrShutdown()
59 g_powerMgrClient.RebootDeviceForDeprecated(std::string(reason)); in RebootOrShutdown()
61 g_powerMgrClient.ShutDownDevice(std::string(reason)); in RebootOrShutdown()
163 char reason[REASON_MAX] = {0}; in WakeupDevice() local
165 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in WakeupDevice()
167 POWER_HILOGE(FEATURE_WAKEUP, "Get wakeup reason failed"); in WakeupDevice()
170 POWER_HILOGD(FEATURE_WAKEUP, "Wakeup type: APPLICATION, reason: %{public}s", reason); in WakeupDevice()
171 g_powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION, std::string(reason)); in WakeupDevice()