Searched refs:cmdFlag (Results 1 – 5 of 5) sorted by relevance
/base/update/updater/services/flashd/host/ |
D | translate.cpp | 61 outCmd->cmdFlag = CMD_KERNEL_TARGET_DISCONNECT; in TargetConnect() 63 outCmd->cmdFlag = CMD_KERNEL_TARGET_CONNECT; in TargetConnect() 88 outCmd->cmdFlag = CMD_FORWARD_LIST; in ForwardPort() 90 outCmd->cmdFlag = CMD_FORWARD_REMOVE; in ForwardPort() 107 outCmd->cmdFlag = CMD_FORWARD_INIT; in ForwardPort() 116 outCmd->cmdFlag = CMD_UNITY_RUNMODE; in RunMode() 135 outCmd->cmdFlag = CMD_UNITY_REBOOT; in TargetReboot() 156 outCmd->cmdFlag = CMD_KERNEL_HELP; in String2FormatCommand() 160 outCmd->cmdFlag = CMD_KERNEL_HELP; in String2FormatCommand() 164 outCmd->cmdFlag = CMD_KERNEL_TARGET_DISCOVER; in String2FormatCommand() [all …]
|
D | server_for_client.cpp | 347 switch (formatCommand->cmdFlag) { in DoCommandLocal() 409 string cmdFlag; in TaskCommand() local 411 if (CMD_FILE_INIT == formatCommand->cmdFlag) { in TaskCommand() 412 cmdFlag = "send "; in TaskCommand() 414 } else if (CMD_FORWARD_INIT == formatCommand->cmdFlag) { in TaskCommand() 415 cmdFlag = "fport "; in TaskCommand() 417 } else if (CMD_APP_INIT == formatCommand->cmdFlag) { in TaskCommand() 418 cmdFlag = "install "; in TaskCommand() 420 } else if (CMD_APP_UNINSTALL == formatCommand->cmdFlag) { in TaskCommand() 421 cmdFlag = "uninstall "; in TaskCommand() [all …]
|
D | host_updater.cpp | 261 std::string &stringError, uint16_t &cmdFlag, bool &bJumpDo) in CheckMatchUpdate() argument 266 cmdFlag = CMD_UPDATER_UPDATE_INIT; in CheckMatchUpdate() 269 cmdFlag = CMD_UPDATER_FLASH_INIT; in CheckMatchUpdate() 272 cmdFlag = CMD_UPDATER_ERASE; in CheckMatchUpdate() 275 cmdFlag = CMD_UPDATER_FORMAT; in CheckMatchUpdate()
|
D | host_updater.h | 33 …kMatchUpdate(const std::string &input, std::string &stringError, uint16_t &cmdFlag, bool &bJumpDo);
|
/base/update/updater/test/unittest/flashd_test/ |
D | flash_host_unittest.cpp | 175 uint16_t cmdFlag = 0; variable 177 bool ret = HostUpdater::CheckMatchUpdate("update updater.zip", stringError, cmdFlag, bJumpDo); 179 EXPECT_EQ(cmdFlag, CMD_UPDATER_UPDATE_INIT); 182 ret = HostUpdater::CheckMatchUpdate("flash updater.zip", stringError, cmdFlag, bJumpDo); 184 EXPECT_EQ(cmdFlag, CMD_UPDATER_FLASH_INIT); 187 ret = HostUpdater::CheckMatchUpdate("erase -f updater", stringError, cmdFlag, bJumpDo); 189 EXPECT_EQ(cmdFlag, CMD_UPDATER_ERASE); 192 ret = HostUpdater::CheckMatchUpdate("format -f updater ", stringError, cmdFlag, bJumpDo); 194 EXPECT_EQ(cmdFlag, CMD_UPDATER_FORMAT); 198 ret = HostUpdater::CheckMatchUpdate("install aaa.hap", stringError, cmdFlag, bJumpDo);
|