Home
last modified time | relevance | path

Searched refs:command (Results 1 – 16 of 16) 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 …]
/bootable/recovery/minadbd/
Dminadbd_services.cpp190 MinadbdCommand command; in RebootHostService() local
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()
202 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.cpp196 memset(boot->command, 0, sizeof(boot->command)); in update_bootloader_message_in_struct()
199 strlcpy(boot->command, "boot-recovery", sizeof(boot->command)); in update_bootloader_message_in_struct()
215 if (boot.command[0] != '\0') { in write_reboot_bootloader()
219 strlcpy(boot.command, "bootonce-bootloader", sizeof(boot.command)); in write_reboot_bootloader()
/bootable/recovery/tests/component/
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.cpp530 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F()
545 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
/bootable/recovery/
Drecovery_main.cpp101 if (boot.command[0] != 0) { in get_args()
102 if (memchr(boot.command, '\0', sizeof(boot.command))) { in get_args()
103 boot_command = std::string(boot.command); in get_args()
105 boot_command = std::string(boot.command, sizeof(boot.command)); in get_args()
498 strlcpy(boot.command, "boot-rescue", sizeof(boot.command)); in main()
/bootable/recovery/install/
Dinstall.cpp430 std::string command(line.substr(0, space)); in try_update_binary() local
431 if (command.empty()) continue; in try_update_binary()
436 if (command == "progress") { in try_update_binary()
446 } else if (command == "set_progress") { in try_update_binary()
454 } else if (command == "ui_print") { in try_update_binary()
457 } else if (command == "wipe_cache") { in try_update_binary()
459 } else if (command == "clear_display") { in try_update_binary()
461 } else if (command == "enable_reboot") { in try_update_binary()
466 } else if (command == "retry_update") { in try_update_binary()
468 } else if (command == "log") { in try_update_binary()
[all …]
Dadb_install.cpp123 static auto AdbRebootHandler(MinadbdCommand command, int* result, in AdbRebootHandler() argument
128 switch (command) { in AdbRebootHandler()
/bootable/recovery/updater/
Dcommands.cpp376 std::ostream& operator<<(std::ostream& os, const Command& command) { in operator <<() argument
377 os << command.index() << ": " << command.cmdline(); in operator <<()
444 Command command = Command::Parse(line, cmdindex, &parsing_error); in Parse() local
445 if (!command) { in Parse()
450 result.commands_.push_back(command); in Parse()
Dinstall.cpp775 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn()
/bootable/recovery/otautil/include/otautil/
Dsysutil.h106 bool reboot(const std::string& command);
/bootable/recovery/otautil/
Dsysutil.cpp217 bool reboot(const std::string& command) { in reboot() argument
218 std::string cmd = command; in reboot()
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h65 char command[32]; member
/bootable/recovery/updater/include/private/
Dcommands.h408 std::ostream& operator<<(std::ostream& os, const Command& command);