Home
last modified time | relevance | path

Searched refs:CommandType (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/services/applypatch/
Dcommand.cpp37 CommandType Command::GetCommandType() const in GetCommandType()
65 CommandType Command::ParseCommandType(const std::string &firstCmd) in ParseCommandType()
68 return CommandType::ABORT; in ParseCommandType()
70 return CommandType::BSDIFF; in ParseCommandType()
72 return CommandType::ERASE; in ParseCommandType()
74 return CommandType::FREE; in ParseCommandType()
76 return CommandType::IMGDIFF; in ParseCommandType()
78 return CommandType::MOVE; in ParseCommandType()
80 return CommandType::NEW; in ParseCommandType()
82 return CommandType::STASH; in ParseCommandType()
[all …]
Dcommand_function.cpp20 std::unique_ptr<CommandFunction> CommandFunctionFactory::GetCommandFunction(const CommandType type) in GetCommandFunction()
23 case CommandType::ABORT: in GetCommandFunction()
25 case CommandType::NEW: in GetCommandFunction()
27 case CommandType::BSDIFF: in GetCommandFunction()
29 case CommandType::IMGDIFF: in GetCommandFunction()
31 case CommandType::ERASE: in GetCommandFunction()
33 case CommandType::ZERO: in GetCommandFunction()
35 case CommandType::FREE: in GetCommandFunction()
37 case CommandType::MOVE: in GetCommandFunction()
39 case CommandType::STASH: in GetCommandFunction()
Dtransfer_manager.cpp97 …if (!cmd->Init(*ct) || cmd->GetCommandType() == CommandType::LAST || globalParams->env == nullptr)… in CommandsParser()
104 if (cmd->GetCommandType() != CommandType::NEW) { in CommandsParser()
165 bool TransferManager::NeedSetProgress(const CommandType &type) in NeedSetProgress()
167 return type == CommandType::NEW || in NeedSetProgress()
168 type == CommandType::IMGDIFF || in NeedSetProgress()
169 type == CommandType::BSDIFF || in NeedSetProgress()
170 type == CommandType::ZERO; in NeedSetProgress()
173 …erManager::CheckResult(const CommandResult result, const std::string &cmd, const CommandType &type) in CheckResult()
177 if (type != CommandType::NEW) { in CheckResult()
Dcommand_process.cpp74 if (params.GetCommandType() == CommandType::ERASE) { in Execute()
105 CommandType type = params.GetCommandType(); in LoadTarget()
109 if (type != CommandType::MOVE) { in LoadTarget()
140 CommandType type = params.GetCommandType(); in Execute()
141 if (type != CommandType::MOVE && type != CommandType::BSDIFF && type != CommandType::IMGDIFF) { in Execute()
147 if (type == CommandType::MOVE) { in Execute()
149 } else if (type == CommandType::IMGDIFF) { in Execute()
162 if (type != CommandType::MOVE) { in Execute()
/base/update/updater/services/include/applypatch/
Dcommand.h28 enum CommandType { enum
53 CommandType GetCommandType() const;
59 CommandType ParseCommandType(const std::string &first_cmd);
61 CommandType type_ {LAST};
Dtransfer_manager.h76 bool CheckResult(const CommandResult result, const std::string &cmd, const CommandType &type);
77 bool NeedSetProgress(const CommandType &type);
Dcommand_function.h29 static std::unique_ptr<CommandFunction> GetCommandFunction(const CommandType type);
/base/update/updater/test/unittest/applypatch_test/
Dtransfer_manager_unittest.cpp55 tm->CheckResult(CommandResult::NEED_RETRY, cmd, CommandType::ZERO);
Dcommands_unittest.cpp60 EXPECT_EQ(type, CommandType::MOVE);