/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 …]
|
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 | 560 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F() 575 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 220 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()
|
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 | 209 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/ |
D | recovery_main.cpp | 107 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/ |
D | install.cpp | 448 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 …]
|
D | adb_install.cpp | 127 static auto AdbRebootHandler(MinadbdCommand command, InstallResult* result, in AdbRebootHandler() argument 132 switch (command) { in AdbRebootHandler()
|
/bootable/recovery/updater/ |
D | commands.cpp | 375 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()
|
D | install.cpp | 728 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn()
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 68 char command[32]; member
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 408 std::ostream& operator<<(std::ostream& os, const Command& command);
|