Lines Matching defs:rebootTarget
199 bool SetRebootMisc(const std::string& rebootTarget, const std::string &extData, struct UpdateMessage &msg)
203 if (rebootTarget == "updater" && strcmp(msg.command, "boot_updater") != 0) {
205 } else if (rebootTarget == "flashd" && strcmp(msg.command, "flashd") != 0) {
207 } else if (rebootTarget == "bootloader" && strcmp(msg.command, "boot_loader") != 0) {
227 void UpdaterDoReboot(const std::string& rebootTarget, const std::string &rebootReason, const std::string &extData)
229 LOG(INFO) << ", rebootTarget: " << rebootTarget;
233 if (rebootTarget.empty()) {
241 if (!SetRebootMisc(rebootTarget, extData, msg)) {
250 DoRebootExt(rebootTarget.c_str(), rebootReason.c_str());