Lines Matching refs:command
147 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument
152 switch (command) { in RedirectToTask()
163 … ret = TaskCommandDispatch<HdcDaemonUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize); in RedirectToTask()
167 … ret = TaskCommandDispatch<HdcShell>(hTaskInfo, TYPE_SHELL, command, payload, payloadSize); in RedirectToTask()
176 ret = TaskCommandDispatch<HdcFile>(hTaskInfo, TASK_FILE, command, payload, payloadSize); in RedirectToTask()
182 … ret = TaskCommandDispatch<HdcDaemonApp>(hTaskInfo, TASK_APP, command, payload, payloadSize); in RedirectToTask()
191 …ret = TaskCommandDispatch<HdcDaemonForward>(hTaskInfo, TASK_FORWARD, command, payload, payloadSize… in RedirectToTask()
333 bool HdcDaemon::CheckControl(const uint16_t command) in CheckControl() argument
336 switch (command) { // this switch is match RedirectToTask function in CheckControl()
381 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() argument
386 if (!hSession->handshakeOK and command != CMD_KERNEL_HANDSHAKE) { in FetchCommand()
388 hSession->sessionId, command); in FetchCommand()
392 if (command != CMD_UNITY_BUGREPORT_DATA && in FetchCommand()
393 command != CMD_SHELL_DATA && in FetchCommand()
394 command != CMD_FORWARD_DATA && in FetchCommand()
395 command != CMD_FILE_DATA && in FetchCommand()
396 command != CMD_APP_DATA) { in FetchCommand()
397 WRITE_LOG(LOG_DEBUG, "FetchCommand channelId:%u command:%u", channelId, command); in FetchCommand()
399 switch (command) { in FetchCommand()
416 if (CheckControl(command)) { in FetchCommand()
417 ret = DispatchTaskData(hSession, channelId, command, payload, payloadSize); in FetchCommand()
459 …dcDaemon::ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, in ServerCommand() argument
462 return Send(sessionId, channelId, command, reinterpret_cast<uint8_t *>(bufPtr), size) > 0; in ServerCommand()