Lines Matching refs:cmd
73 bool HdcClient::StartKillServer(const char *cmd, bool startOrKill) in StartKillServer() argument
84 if (!strstr(cmd, " -r")) { in StartKillServer()
105 if (!strstr(cmd, " -r")) { in StartKillServer()
207 void HdcClient::RunCommandWin32(const string& cmd) in RunCommandWin32() argument
236 const char *msg = cmd.c_str(); in RunCommandWin32()
257 void HdcClient::RunCommand(const string& cmd) in RunCommand() argument
260 procFileInfo = popen(cmd.c_str(), "r"); in RunCommand()
276 void HdcClient::RunExecuteCommand(const string& cmd) in RunExecuteCommand() argument
279 RunCommandWin32(cmd); in RunExecuteCommand()
281 RunCommand(cmd); in RunExecuteCommand()
285 bool IsCaptureCommand(const string& cmd) in IsCaptureCommand() argument
288 int length = cmd.length(); in IsCaptureCommand()
291 if (cmd[index] == ' ') { in IsCaptureCommand()
295 if (!strncmp(cmd.c_str() + index, captureOption.c_str(), captureOption.size())) { in IsCaptureCommand()
441 char *cmd = hChannel->bufStd; in ReadStd() local
445 thisClass->Send(hChannel->channelId, reinterpret_cast<uint8_t *>(cmd), strlen(cmd)); in ReadStd()
578 uint16_t cmd = 0; in ReadChannel() local
581 cmd = *reinterpret_cast<uint16_t *>(buf); in ReadChannel()
582 bOffset = IsOffset(cmd); in ReadChannel()
584 if (cmd == CMD_CHECK_SERVER && isCheckVersionCmd) { in ReadChannel()
596 hTaskInfo->masterSlave = (cmd == CMD_FILE_INIT); in ReadChannel()
599 … if (!fileTask->CommandDispatch(cmd, buf + sizeof(uint16_t), bytesIO - sizeof(uint16_t))) { in ReadChannel()
607 hTaskInfo->masterSlave = (cmd == CMD_APP_INIT); in ReadChannel()
610 … if (!appTask->CommandDispatch(cmd, buf + sizeof(uint16_t), bytesIO - sizeof(uint16_t))) { in ReadChannel()
687 bool HdcClient::IsOffset(uint16_t cmd) in IsOffset() argument
689 return (cmd == CMD_CHECK_SERVER) || in IsOffset()
690 (cmd == CMD_FILE_INIT) || in IsOffset()
691 (cmd == CMD_FILE_CHECK) || in IsOffset()
692 (cmd == CMD_FILE_BEGIN) || in IsOffset()
693 (cmd == CMD_FILE_DATA) || in IsOffset()
694 (cmd == CMD_FILE_FINISH) || in IsOffset()
695 (cmd == CMD_FILE_MODE) || in IsOffset()
696 (cmd == CMD_DIR_MODE) || in IsOffset()
697 (cmd == CMD_APP_INIT) || in IsOffset()
698 (cmd == CMD_APP_CHECK) || in IsOffset()
699 (cmd == CMD_APP_BEGIN) || in IsOffset()
700 (cmd == CMD_APP_DATA) || in IsOffset()
701 (cmd == CMD_APP_FINISH); in IsOffset()