Home
last modified time | relevance | path

Searched refs:command (Results 1 – 14 of 14) sorted by relevance

/bootable/recovery/tests/unit/
Dcommands_test.cpp172 Command command = Command::Parse(input, 0, &err); in TEST() local
173 ASSERT_TRUE(command); in TEST()
175 ASSERT_EQ(TargetInfo(), command.target()); in TEST()
176 ASSERT_EQ(SourceInfo(), command.source()); in TEST()
177 ASSERT_EQ(StashInfo(), command.stash()); in TEST()
178 ASSERT_EQ(PatchInfo(), command.patch()); in TEST()
184 Command command = Command::Parse(input, 0, &err); in TEST() local
185 ASSERT_FALSE(command); in TEST()
196 Command command = Command::Parse(input, 1, &err); in TEST() local
197 ASSERT_TRUE(command); in TEST()
[all …]
Dbootloader_message_test.cpp35 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST()
66 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST()
85 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST()
111 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST()
Duncrypt_test.cpp136 ASSERT_EQ("boot-recovery", std::string(boot.command)); in SetupOrClearBcb()
Dupdater_test.cpp560 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F()
575 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
/bootable/recovery/minadbd/
Dminadbd_services.cpp220 MinadbdCommand command; in RebootHostService() local
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()
232 if (!WriteCommandToFd(command, minadbd_socket)) { in RebootHostService()
Dminadbd_services_test.cpp109 void ExecuteCommandAndWaitForExit(const std::string& command) { in ExecuteCommandAndWaitForExit() argument
110 unique_fd fd = daemon_service_to_fd(command, nullptr); in ExecuteCommandAndWaitForExit()
146 auto test_body = [&](const std::string& command) { in TEST_F() argument
147 unique_fd fd = daemon_service_to_fd(command, nullptr); in TEST_F()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp209 memset(boot->command, 0, sizeof(boot->command)); in update_bootloader_message_in_struct()
212 strlcpy(boot->command, "boot-recovery", sizeof(boot->command)); in update_bootloader_message_in_struct()
230 if (boot.command[0] != '\0') { in write_reboot_bootloader()
234 strlcpy(boot.command, "bootonce-bootloader", sizeof(boot.command)); in write_reboot_bootloader()
/bootable/recovery/
Drecovery_main.cpp107 if (boot.command[0] != 0) { in get_args()
108 if (memchr(boot.command, '\0', sizeof(boot.command))) { in get_args()
109 boot_command = std::string(boot.command); in get_args()
111 boot_command = std::string(boot.command, sizeof(boot.command)); in get_args()
528 strlcpy(boot.command, "boot-rescue", sizeof(boot.command)); in main()
/bootable/recovery/install/
Dinstall.cpp448 std::string command(line.substr(0, space)); in TryUpdateBinary() local
449 if (command.empty()) continue; in TryUpdateBinary()
454 if (command == "progress") { in TryUpdateBinary()
464 } else if (command == "set_progress") { in TryUpdateBinary()
472 } else if (command == "ui_print") { in TryUpdateBinary()
475 } else if (command == "wipe_cache") { in TryUpdateBinary()
477 } else if (command == "clear_display") { in TryUpdateBinary()
479 } else if (command == "enable_reboot") { in TryUpdateBinary()
484 } else if (command == "retry_update") { in TryUpdateBinary()
486 } else if (command == "log") { in TryUpdateBinary()
[all …]
Dadb_install.cpp127 static auto AdbRebootHandler(MinadbdCommand command, InstallResult* result, in AdbRebootHandler() argument
132 switch (command) { in AdbRebootHandler()
/bootable/recovery/updater/
Dcommands.cpp375 std::ostream& operator<<(std::ostream& os, const Command& command) { in operator <<() argument
376 os << command.index() << ": " << command.cmdline(); in operator <<()
443 Command command = Command::Parse(line, cmdindex, &parsing_error); in Parse() local
444 if (!command) { in Parse()
449 result.commands_.push_back(command); in Parse()
Dinstall.cpp728 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn()
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h68 char command[32]; member
/bootable/recovery/updater/include/private/
Dcommands.h408 std::ostream& operator<<(std::ostream& os, const Command& command);