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()
127 static auto AdbRebootHandler(MinadbdCommand command, InstallResult* result, in AdbRebootHandler()
133 case MinadbdCommand::kRebootBootloader: in AdbRebootHandler()
136 case MinadbdCommand::kRebootFastboot: in AdbRebootHandler()
139 case MinadbdCommand::kRebootRecovery: in AdbRebootHandler()
142 case MinadbdCommand::kRebootRescue: in AdbRebootHandler()
[all …]
/bootable/recovery/minadbd/
Dminadbd_services.cpp67 static bool WriteCommandToFd(MinadbdCommand cmd, int fd) { in WriteCommandToFd()
112 if (!WriteCommandToFd(MinadbdCommand::kInstall, minadbd_socket)) { in RunAdbFuseSideload()
208 if (!WriteCommandToFd(MinadbdCommand::kNoOp, minadbd_socket)) { in RescueGetpropHostService()
220 MinadbdCommand command; in RebootHostService()
222 command = MinadbdCommand::kRebootBootloader; in RebootHostService()
224 command = MinadbdCommand::kRebootRescue; in RebootHostService()
226 command = MinadbdCommand::kRebootRecovery; in RebootHostService()
228 command = MinadbdCommand::kRebootFastboot; in RebootHostService()
230 command = MinadbdCommand::kRebootAndroid; in RebootHostService()
255 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));