Home
last modified time | relevance | path

Searched refs:payloadSize (Results 1 – 25 of 36) sorted by relevance

12

/developtools/hdc/src/host/
Dhost_updater.cpp87 …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 …]
Dhost_updater.h27 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);
Dserver.h25 const int payloadSize) override;
55 uint8_t *payload, const int payloadSize) override;
60 bool ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize);
Dhost_app.cpp150 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()
Dserver.cpp466 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 …]
Dhost_unity.cpp133 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()
Dserver_for_client.h27 void EchoClientRaw(const HChannel hChannel, uint8_t *payload, const int payloadSize);
29 const int payloadSize);
Dhost_app.h24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
Dhost_unity.h24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
/developtools/hdc/src/common/
Dfile.h26 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);
Dusb.cpp173 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()
Dfile.cpp188 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()
Dsession.h72 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()
Dforward.h24 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);
Dtask.h25 virtual bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
/developtools/profiler/device/services/shared_memory/src/
Dshare_memory_block.cpp283 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/
Ddaemon.h34 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);
Ddaemon.cpp147 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 …]
Ddaemon_app.cpp45 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()
Ddaemon_unity.cpp247 …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()
Ddaemon_app.h24 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
/developtools/profiler/device/plugins/native_hook/src/
Dstack_writer.cpp75 …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()
Dhook_socket_client.cpp101 size_t payloadSize) in SendStackWithPayload() argument
110 bool ret = stackWriter_->WriteWithPayloadTimeout(data, size, payload, payloadSize, in SendStackWithPayload()
/developtools/profiler/device/services/shared_memory/include/
Dshare_memory_block.h36 …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/
Dusb_types.h35 uint32_t payloadSize; member

12