Home
last modified time | relevance | path

Searched refs:CommandType (Results 1 - 8 of 8) sorted by relevance

/base/update/updater/services/applypatch/
H A Dcommand.cpp39 CommandType Command::GetCommandType() const in GetCommandType()
77 CommandType Command::ParseCommandType(const std::string &firstCmd) in ParseCommandType()
80 return CommandType::ABORT; in ParseCommandType()
82 return CommandType::BSDIFF; in ParseCommandType()
84 return CommandType::ERASE; in ParseCommandType()
86 return CommandType::FREE; in ParseCommandType()
88 return CommandType::IMGDIFF; in ParseCommandType()
90 return CommandType::MOVE; in ParseCommandType()
92 return CommandType::NEW; in ParseCommandType()
94 return CommandType in ParseCommandType()
[all...]
H A Dtransfer_manager.cpp53 if (cmd.GetCommandType() == CommandType::NEW || in JudgeBlockVerifyCmdType()
54 cmd.GetCommandType() == CommandType::ERASE || in JudgeBlockVerifyCmdType()
55 cmd.GetCommandType() == CommandType::FREE || in JudgeBlockVerifyCmdType()
56 cmd.GetCommandType() == CommandType::ZERO) { in JudgeBlockVerifyCmdType()
112 if (cmd->GetCommandType() != CommandType::NEW) { in CommandsParser()
182 bool TransferManager::CheckResult(const CommandResult result, const std::string &cmd, const CommandType &type) in CheckResult()
186 if (type != CommandType::NEW) { in CheckResult()
H A Dcommand_process.cpp75 if (params.GetCommandType() == CommandType::ERASE) { in Execute()
106 CommandType type = params.GetCommandType(); in LoadTarget()
110 if (type != CommandType::MOVE) { in LoadTarget()
146 CommandType type = params.GetCommandType(); in WriteDiffToBlock()
147 return targetBlock.WriteDiffToBlock(params, srcBuffer, patchBuffer, patchLength, type == CommandType::IMGDIFF); in WriteDiffToBlock()
152 CommandType type = params.GetCommandType(); in Execute()
154 if (type == CommandType::MOVE) { in Execute()
169 if (type != CommandType::MOVE) { in Execute()
/base/update/updater/services/include/applypatch/
H A Dcommand.h37 CommandType GetCommandType() const;
45 CommandType ParseCommandType(const std::string &first_cmd);
47 CommandType type_ {LAST};
H A Dcommand_const.h18 enum CommandType { enum
H A Dtransfer_manager.h74 bool CheckResult(const CommandResult result, const std::string &cmd, const CommandType &type);
/base/update/updater/test/unittest/applypatch_test/
H A Dtransfer_manager_unittest.cpp55 bool reset = tm->CheckResult(CommandResult::NEED_RETRY, cmd, CommandType::ZERO); in HWTEST_F()
H A Dcommands_unittest.cpp62 EXPECT_EQ(type, CommandType::MOVE); in HWTEST_F()

Completed in 3 milliseconds