/developtools/hdc/src/host/ |
D | host_updater.cpp | 87 …BeginTransfer(const std::string &function, const uint8_t *payload, int payloadSize, size_t minPara… in BeginTransfer() argument 90 if (payload[payloadSize - 1] != '\0') { in BeginTransfer() 147 bool HostUpdater::CheckCmd(HdcCommand command, uint8_t *payload, int payloadSize, size_t paramCount) in CheckCmd() argument 149 if (payloadSize < 1 || payload[payloadSize - 1] != '\0') { in CheckCmd() 164 SendToAnother(command, payload, payloadSize); in CheckCmd() 169 bool HostUpdater::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument 172 if (!HdcTransferBase::CommandDispatch(command, payload, payloadSize)) { in CommandDispatch() 181 if (payload == nullptr || payloadSize <= 0) { in CommandDispatch() 185 if (!HdcTransferBase::CommandDispatch(command, payload, payloadSize)) { in CommandDispatch() 191 …ret = BeginTransfer(CMDSTR_FLASHD_UPDATE, payload, payloadSize, UPDATE_PARAM_MIN_COUNT, UPDATE_FIL… in CommandDispatch() [all …]
|
D | host_updater.h | 27 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override; 35 …bool BeginTransfer(const std::string &function, const uint8_t *payload, int payloadSize, size_t mi… 37 bool CheckUpdateContinue(const uint16_t command, const uint8_t *payload, int payloadSize); 41 bool CheckCmd(HdcCommand command, uint8_t *payload, int payloadSize, size_t paramCount);
|
D | server.h | 25 const int payloadSize) override; 55 uint8_t *payload, const int payloadSize) override; 60 bool ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize);
|
D | host_app.cpp | 150 bool HdcHostApp::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument 152 if (!HdcTransferBase::CommandDispatch(command, payload, payloadSize)) { in CommandDispatch() 165 string s(reinterpret_cast<char *>(payload + cmdOffset), payloadSize - cmdOffset); in CommandDispatch() 170 SendToAnother(CMD_APP_UNINSTALL, payload, payloadSize); in CommandDispatch()
|
D | server.cpp | 466 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake() argument 469 string s = string(reinterpret_cast<char *>(payload), payloadSize); in ServerSessionHandshake() 473 …OG_DEBUG, "handshake.banner:%s, payload:%s(%d)", handshake.banner.c_str(), s.c_str(), payloadSize); in ServerSessionHandshake() 516 const int payloadSize) in FetchCommand() argument 521 ret = ServerSessionHandshake(hSession, payload, payloadSize); in FetchCommand() 548 sfc->EchoClientRaw(hChannel, payload, payloadSize); in FetchCommand() 553 string s(reinterpret_cast<char *>(payload + 1), payloadSize - 1); in FetchCommand() 555 WRITE_LOG(LOG_INFO, "CMD_KERNEL_ECHO size:%d channelId:%u", payloadSize - 1, channelId); in FetchCommand() 598 sfc->SendCommandToClient(hChannel, command, payload, payloadSize); in FetchCommand() 607 ret = DispatchTaskData(hSessionByQuery, channelId, command, payload, payloadSize); in FetchCommand() [all …]
|
D | host_unity.cpp | 133 bool HdcHostUnity::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument 152 AppendLocalLog(reinterpret_cast<const char *>(payload), payloadSize); in CommandDispatch() 154 ServerCommand(CMD_KERNEL_ECHO_RAW, payload, payloadSize); in CommandDispatch()
|
D | server_for_client.h | 27 void EchoClientRaw(const HChannel hChannel, uint8_t *payload, const int payloadSize); 29 const int payloadSize);
|
D | host_app.h | 24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
|
D | host_unity.h | 24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
|
/developtools/hdc/src/common/ |
D | file.h | 26 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override; 31 bool SlaveCheck(uint8_t *payload, const int payloadSize); 37 bool FileModeSync(const uint16_t cmd, uint8_t *payload, const int payloadSize);
|
D | usb.cpp | 173 hUSB->payloadSize = header->dataSize; in CheckPacketOption() 176 return hUSB->payloadSize; in CheckPacketOption() 188 if (hUSB->payloadSize <= static_cast<uint32_t>(childRet)) { in SendToHdcStream() 191 dataSize, hUSB->payloadSize, childRet); in SendToHdcStream() 199 hUSB->payloadSize -= childRet; in SendToHdcStream() 200 return hUSB->payloadSize; in SendToHdcStream()
|
D | file.cpp | 188 bool HdcFile::FileModeSync(const uint16_t cmd, uint8_t *payload, const int payloadSize) in FileModeSync() argument 207 string serialString(reinterpret_cast<char *>(payload), payloadSize); in FileModeSync() 245 bool HdcFile::SlaveCheck(uint8_t *payload, const int payloadSize) in SlaveCheck() argument 251 string serialString(reinterpret_cast<char *>(payload), payloadSize); in SlaveCheck() 309 bool HdcFile::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument 311 HdcTransferBase::CommandDispatch(command, payload, payloadSize); in CommandDispatch() 316 string s = string(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch() 322 ret = SlaveCheck(payload, payloadSize); in CommandDispatch() 327 ret = FileModeSync(command, payload, payloadSize); in CommandDispatch()
|
D | session.h | 72 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument 100 int payloadSize); 108 int payloadSize) in FetchCommand() argument 148 const int payloadSize) in TaskCommandDispatch() argument 164 if (!ptrTask->CommandDispatch(command, payload, payloadSize)) { in TaskCommandDispatch()
|
D | forward.h | 24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override; 100 bool ForwardCommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize);
|
D | task.h | 25 virtual bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
|
/developtools/profiler/device/services/shared_memory/src/ |
D | share_memory_block.cpp | 283 const int8_t* payload, uint32_t payloadSize) in PutWithPayloadTimeout() argument 293 int8_t* rawMemory = GetFreeMemory(headerSize + payloadSize); in PutWithPayloadTimeout() 302 if (payloadSize > 0) { in PutWithPayloadTimeout() 303 if (memcpy_s(rawMemory + headerSize, payloadSize, payload, payloadSize) != EOK) { in PutWithPayloadTimeout() 308 UseFreeMemory(rawMemory, headerSize + payloadSize); in PutWithPayloadTimeout() 412 const int8_t* payload, uint32_t payloadSize, const std::function<bool()>& callback) in PutWithPayloadSync() argument 416 int8_t* rawMemory = GetFreeMemory(headerSize + payloadSize); in PutWithPayloadSync() 427 rawMemory = GetFreeMemory(headerSize + payloadSize); in PutWithPayloadSync() 433 if (memcpy_s(rawMemory, headerSize + payloadSize, header, headerSize) != EOK) { in PutWithPayloadSync() 437 if (payloadSize > 0) { in PutWithPayloadSync() [all …]
|
/developtools/hdc/src/daemon/ |
D | daemon.h | 34 const int payloadSize) override; 47 uint8_t *payload, const int payloadSize) override; 53 …onSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payload, int payloadSize);
|
D | daemon.cpp | 147 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument 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 …et = TaskCommandDispatch<HdcDaemonForward>(hTaskInfo, TASK_FORWARD, command, payload, payloadSize); in RedirectToTask() 248 …monSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payload, int payloadSize) in DaemonSessionHandshake() argument 252 string s = string(reinterpret_cast<char *>(payload), payloadSize); in DaemonSessionHandshake() 382 const int payloadSize) in FetchCommand() argument 402 ret = DaemonSessionHandshake(hSession, channelId, payload, payloadSize); in FetchCommand() [all …]
|
D | daemon_app.cpp | 45 bool HdcDaemonApp::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument 47 if (!HdcTransferBase::CommandDispatch(command, payload, payloadSize)) { in CommandDispatch() 56 string bufString(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch() 80 string bufString(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch()
|
D | daemon_unity.cpp | 247 …ol HdcDaemonUnity::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument 252 string strPayload = string(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch() 288 if (payloadSize != 0 && !strcmp(strPayload.c_str(), "r")) { in CommandDispatch()
|
D | daemon_app.h | 24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | stack_writer.cpp | 75 …er::WriteWithPayloadTimeout(const void* data, size_t size, const void* payload, size_t payloadSize, in WriteWithPayloadTimeout() argument 86 payloadSize, in WriteWithPayloadTimeout() 90 …einterpret_cast<const int8_t*>(data), size, reinterpret_cast<const int8_t*>(payload), payloadSize); in WriteWithPayloadTimeout()
|
D | hook_socket_client.cpp | 101 size_t payloadSize) in SendStackWithPayload() argument 110 bool ret = stackWriter_->WriteWithPayloadTimeout(data, size, payload, payloadSize, in SendStackWithPayload()
|
/developtools/profiler/device/services/shared_memory/include/ |
D | share_memory_block.h | 36 …oadTimeout(const int8_t* header, uint32_t headerSize, const int8_t* payload, uint32_t payloadSize); 37 …PayloadSync(const int8_t* header, uint32_t headerSize, const int8_t* payload, uint32_t payloadSize,
|
/developtools/hdc/hdc_rust/src/cffi/ |
D | usb_types.h | 35 uint32_t payloadSize; member
|