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()
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()
[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()
178 if (!WriteCommandToFd(MinadbdCommand::kNoOp, minadbd_socket)) { in RescueGetpropHostService()
190 MinadbdCommand command; in RebootHostService()
192 command = MinadbdCommand::kRebootBootloader; in RebootHostService()
194 command = MinadbdCommand::kRebootRescue; in RebootHostService()
196 command = MinadbdCommand::kRebootRecovery; in RebootHostService()
198 command = MinadbdCommand::kRebootFastboot; in RebootHostService()
200 command = MinadbdCommand::kRebootAndroid; in RebootHostService()
225 WriteCommandToFd(MinadbdCommand::kWipeData, minadbd_socket); in WipeDeviceService()
Dminadbd_types.h46 enum class MinadbdCommand : uint32_t { enum
62 static_assert(kMinadbdMessageSize == sizeof(kMinadbdCommandPrefix) - 1 + sizeof(MinadbdCommand));
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()