/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 172 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/ |
D | minadbd_services.cpp | 190 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()
|
D | minadbd_services_test.cpp | 109 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/ |
D | bootloader_message.cpp | 196 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/ |
D | bootloader_message_test.cpp | 35 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()
|
D | uncrypt_test.cpp | 136 ASSERT_EQ("boot-recovery", std::string(boot.command)); in SetupOrClearBcb()
|
D | updater_test.cpp | 530 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F() 545 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
|
/bootable/recovery/ |
D | recovery_main.cpp | 101 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/ |
D | install.cpp | 430 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 …]
|
D | adb_install.cpp | 123 static auto AdbRebootHandler(MinadbdCommand command, int* result, in AdbRebootHandler() argument 128 switch (command) { in AdbRebootHandler()
|
/bootable/recovery/updater/ |
D | commands.cpp | 376 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()
|
D | install.cpp | 775 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn()
|
/bootable/recovery/otautil/include/otautil/ |
D | sysutil.h | 106 bool reboot(const std::string& command);
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 217 bool reboot(const std::string& command) { in reboot() argument 218 std::string cmd = command; in reboot()
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 65 char command[32]; member
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 408 std::ostream& operator<<(std::ostream& os, const Command& command);
|