Home
last modified time | relevance | path

Searched refs:MinadbdCommand (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/install/
Dadb_install.cpp63 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()
128 static auto AdbRebootHandler(MinadbdCommand command, InstallResult* result, in AdbRebootHandler()
134 case MinadbdCommand::kRebootBootloader: in AdbRebootHandler()
137 case MinadbdCommand::kRebootFastboot: in AdbRebootHandler()
140 case MinadbdCommand::kRebootRecovery: in AdbRebootHandler()
143 case MinadbdCommand::kRebootRescue: in AdbRebootHandler()
[all …]
/bootable/recovery/minadbd/
Dminadbd_services.cpp68 static bool WriteCommandToFd(MinadbdCommand cmd, int fd) { in WriteCommandToFd()
113 if (!WriteCommandToFd(MinadbdCommand::kInstall, minadbd_socket)) { in RunAdbFuseSideload()
247 if (!WriteCommandToFd(MinadbdCommand::kNoOp, minadbd_socket)) { in RescueGetpropHostService()
259 MinadbdCommand command; in RebootHostService()
261 command = MinadbdCommand::kRebootBootloader; in RebootHostService()
263 command = MinadbdCommand::kRebootRescue; in RebootHostService()
265 command = MinadbdCommand::kRebootRecovery; in RebootHostService()
267 command = MinadbdCommand::kRebootFastboot; in RebootHostService()
269 command = MinadbdCommand::kRebootAndroid; in RebootHostService()
294 WriteCommandToFd(MinadbdCommand::kWipeData, minadbd_socket); in WipeDeviceService()
Dminadbd_services_test.cpp65 void ReadAndCheckCommandMessage(int fd, MinadbdCommand expected_command) { in ReadAndCheckCommandMessage()
150 ReadAndCheckCommandMessage(recovery_socket_, MinadbdCommand::kInstall); in TEST_F()
191 ReadAndCheckCommandMessage(recovery_socket_, MinadbdCommand::kInstall); in TEST_F()
/bootable/recovery/minadbd/include/minadbd/
Dtypes.h46 enum class MinadbdCommand : uint32_t { enum
62 static_assert(kMinadbdMessageSize == sizeof(kMinadbdCommandPrefix) - 1 + sizeof(MinadbdCommand));