Lines Matching refs:MinadbdCommand
63 static MinadbdCommand ParseMinadbdCommand(const std::string& message) { in ParseMinadbdCommand()
66 return MinadbdCommand::kError; in ParseMinadbdCommand()
71 if (cmd_code >= static_cast<uint32_t>(MinadbdCommand::kError)) { in ParseMinadbdCommand()
73 return MinadbdCommand::kError; in ParseMinadbdCommand()
76 return static_cast<MinadbdCommand>(cmd_code); in ParseMinadbdCommand()
123 static auto AdbRebootHandler(MinadbdCommand command, int* result, in AdbRebootHandler()
129 case MinadbdCommand::kRebootBootloader: in AdbRebootHandler()
132 case MinadbdCommand::kRebootFastboot: in AdbRebootHandler()
135 case MinadbdCommand::kRebootRecovery: in AdbRebootHandler()
138 case MinadbdCommand::kRebootRescue: in AdbRebootHandler()
141 case MinadbdCommand::kRebootAndroid: in AdbRebootHandler()
153 const std::map<MinadbdCommand, CommandFunction>& command_map) { in HandleMessageFromMinadbd() argument
162 if (command_type == MinadbdCommand::kError) { in HandleMessageFromMinadbd()
186 const std::map<MinadbdCommand, CommandFunction>& command_map) { in ListenAndExecuteMinadbdCommands() argument
275 RecoveryUI* ui, const std::map<MinadbdCommand, CommandFunction>& command_map, in CreateMinadbdServiceAndExecuteCommands() argument
346 std::map<MinadbdCommand, CommandFunction> command_map{ in ApplyFromAdb()
347 { MinadbdCommand::kInstall, std::bind(&AdbInstallPackageHandler, ui, &install_result) }, in ApplyFromAdb()
348 { MinadbdCommand::kRebootAndroid, std::bind(&AdbRebootHandler, MinadbdCommand::kRebootAndroid, in ApplyFromAdb()
350 { MinadbdCommand::kRebootBootloader, in ApplyFromAdb()
351 std::bind(&AdbRebootHandler, MinadbdCommand::kRebootBootloader, &install_result, in ApplyFromAdb()
353 { MinadbdCommand::kRebootFastboot, std::bind(&AdbRebootHandler, MinadbdCommand::kRebootFastboot, in ApplyFromAdb()
355 { MinadbdCommand::kRebootRecovery, std::bind(&AdbRebootHandler, MinadbdCommand::kRebootRecovery, in ApplyFromAdb()
357 { MinadbdCommand::kRebootRescue, in ApplyFromAdb()
358 std::bind(&AdbRebootHandler, MinadbdCommand::kRebootRescue, &install_result, reboot_action) }, in ApplyFromAdb()
366 command_map.emplace(MinadbdCommand::kWipeData, [&device]() { in ApplyFromAdb()
370 command_map.emplace(MinadbdCommand::kNoOp, []() { return std::make_pair(true, true); }); in ApplyFromAdb()