Searched refs:Command (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 29 ASSERT_EQ(Command::Type::ZERO, Command::ParseType("zero")); in TEST() 30 ASSERT_EQ(Command::Type::NEW, Command::ParseType("new")); in TEST() 31 ASSERT_EQ(Command::Type::ERASE, Command::ParseType("erase")); in TEST() 32 ASSERT_EQ(Command::Type::MOVE, Command::ParseType("move")); in TEST() 33 ASSERT_EQ(Command::Type::BSDIFF, Command::ParseType("bsdiff")); in TEST() 34 ASSERT_EQ(Command::Type::IMGDIFF, Command::ParseType("imgdiff")); in TEST() 35 ASSERT_EQ(Command::Type::STASH, Command::ParseType("stash")); in TEST() 36 ASSERT_EQ(Command::Type::FREE, Command::ParseType("free")); in TEST() 37 ASSERT_EQ(Command::Type::COMPUTE_HASH_TREE, Command::ParseType("compute_hash_tree")); in TEST() 41 ASSERT_EQ(Command::Type::LAST, Command::ParseType("foo")); in TEST() [all …]
|
D | updater_test.cpp | 215 Command::abort_allowed_ = true; in SetUp() 1027 Command::abort_allowed_ = true; in SetUp()
|
/bootable/recovery/updater/ |
D | commands.cpp | 38 bool Command::abort_allowed_ = false; 40 Command::Command(Type type, size_t index, std::string cmdline, HashTreeInfo hash_tree_info) in Command() function in Command 48 Command::Type Command::ParseType(const std::string& type_str) { in ParseType() 77 bool Command::ParseTargetInfoAndSourceInfo(const std::vector<std::string>& tokens, in ParseTargetInfoAndSourceInfo() 178 Command Command::Parse(const std::string& line, size_t index, std::string* err) { in Parse() 302 return Command(op, index, line, std::move(hash_tree_info)); in Parse() 308 return Command(op, index, line, patch_info, target_info, source_info, stash_info); in Parse() 375 std::ostream& operator<<(std::ostream& os, const Command& command) { in operator <<() 443 Command command = Command::Parse(line, cmdindex, &parsing_error); in Parse()
|
D | blockimg.cpp | 1587 using CommandMap = std::unordered_map<Command::Type, CommandFunction>; 1837 Command::Type cmd_type = Command::ParseType(params.cmdname); in PerformBlockImageUpdate() 1838 if (cmd_type == Command::Type::LAST) { in PerformBlockImageUpdate() 1855 cmd_type != Command::Type::NEW) { in PerformBlockImageUpdate() 1863 if (cmd_type == Command::Type::COMPUTE_HASH_TREE && failure_type == kNoCause) { in PerformBlockImageUpdate() 1874 if ((cmd_type == Command::Type::MOVE || cmd_type == Command::Type::BSDIFF || in PerformBlockImageUpdate() 1875 cmd_type == Command::Type::IMGDIFF) && in PerformBlockImageUpdate() 2029 { Command::Type::ABORT, PerformCommandAbort }, in BlockImageVerifyFn() 2030 { Command::Type::BSDIFF, PerformCommandDiff }, in BlockImageVerifyFn() 2031 { Command::Type::COMPUTE_HASH_TREE, nullptr }, in BlockImageVerifyFn() [all …]
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 287 class Command { 303 Command() = default; 305 Command(Type type, size_t index, std::string cmdline, PatchInfo patch, TargetInfo target, in Command() function 315 Command(Type type, size_t index, std::string cmdline, HashTreeInfo hash_tree_info); 320 static Command Parse(const std::string& line, size_t index, std::string* err); 408 std::ostream& operator<<(std::ostream& os, const Command& command); 455 const std::vector<Command>& commands() const { in commands() 474 std::vector<Command> commands_;
|