Home
last modified time | relevance | path

Searched refs:payloadSize (Results 1 – 25 of 35) 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.cpp478 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake() argument
481 string s = string(reinterpret_cast<char *>(payload), payloadSize); in ServerSessionHandshake()
485 …OG_DEBUG, "handshake.banner:%s, payload:%s(%d)", handshake.banner.c_str(), s.c_str(), payloadSize); in ServerSessionHandshake()
528 const int payloadSize) in FetchCommand() argument
533 ret = ServerSessionHandshake(hSession, payload, payloadSize); in FetchCommand()
559 sfc->EchoClientRaw(hChannel, payload, payloadSize); in FetchCommand()
564 string s(reinterpret_cast<char *>(payload + 1), payloadSize - 1); in FetchCommand()
566 WRITE_LOG(LOG_INFO, "CMD_KERNEL_ECHO size:%d channelId:%u", payloadSize - 1, channelId); in FetchCommand()
612 sfc->SendCommandToClient(hChannel, command, payload, payloadSize); in FetchCommand()
621 ret = DispatchTaskData(hSessionByQuery, channelId, command, payload, payloadSize); in FetchCommand()
[all …]
Dhost_unity.cpp129 bool HdcHostUnity::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
148 AppendLocalLog(reinterpret_cast<const char *>(payload), payloadSize); in CommandDispatch()
150 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;
/developtools/profiler/device/services/shared_memory/src/
Dshare_memory_block.cpp269 const int8_t* payload, uint32_t payloadSize) in PutWithPayloadTimeout() argument
279 int8_t* rawMemory = GetFreeMemory(headerSize + payloadSize); in PutWithPayloadTimeout()
288 if (payloadSize > 0) { in PutWithPayloadTimeout()
289 if (memcpy_s(rawMemory + headerSize, payloadSize, payload, payloadSize) != EOK) { in PutWithPayloadTimeout()
294 UseFreeMemory(rawMemory, headerSize + payloadSize); in PutWithPayloadTimeout()
395 const int8_t* payload, uint32_t payloadSize) in PutWithPayloadSync() argument
399 int8_t* rawMemory = GetFreeMemory(headerSize + payloadSize); in PutWithPayloadSync()
406 rawMemory = GetFreeMemory(headerSize + payloadSize); in PutWithPayloadSync()
412 if (memcpy_s(rawMemory, headerSize + payloadSize, header, headerSize) != EOK) { in PutWithPayloadSync()
416 if (payloadSize > 0) { in PutWithPayloadSync()
[all …]
/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.cpp168 hUSB->payloadSize = header->dataSize; in CheckPacketOption()
171 return hUSB->payloadSize; in CheckPacketOption()
183 if (hUSB->payloadSize <= static_cast<uint32_t>(childRet)) { in SendToHdcStream()
186 dataSize, hUSB->payloadSize, childRet); in SendToHdcStream()
194 hUSB->payloadSize -= childRet; in SendToHdcStream()
195 return hUSB->payloadSize; in SendToHdcStream()
Dfile.cpp190 bool HdcFile::FileModeSync(const uint16_t cmd, uint8_t *payload, const int payloadSize) in FileModeSync() argument
209 string serialString(reinterpret_cast<char *>(payload), payloadSize); in FileModeSync()
247 bool HdcFile::SlaveCheck(uint8_t *payload, const int payloadSize) in SlaveCheck() argument
253 string serialString(reinterpret_cast<char *>(payload), payloadSize); in SlaveCheck()
313 bool HdcFile::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
315 HdcTransferBase::CommandDispatch(command, payload, payloadSize); in CommandDispatch()
320 string s = string(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch()
326 ret = SlaveCheck(payload, payloadSize); in CommandDispatch()
331 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;
94 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/hdc/src/daemon/
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.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_app.cpp43 bool HdcDaemonApp::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
45 if (!HdcTransferBase::CommandDispatch(command, payload, payloadSize)) { in CommandDispatch()
52 string bufString(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch()
76 string bufString(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch()
Dshell.cpp105 bool HdcShell::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
119 if (payloadSize == 1 && SpecialSignal(payload[0])) { in CommandDispatch()
121 childShell->Write(payload, payloadSize); in CommandDispatch()
Ddaemon_unity.cpp242 …ol HdcDaemonUnity::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
247 string strPayload = string(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch()
283 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
82 …einterpret_cast<const int8_t*>(data), size, reinterpret_cast<const int8_t*>(payload), payloadSize); in WriteWithPayloadTimeout()
85 …einterpret_cast<const int8_t*>(data), size, reinterpret_cast<const int8_t*>(payload), payloadSize); in WriteWithPayloadTimeout()
Dhook_socket_client.cpp100 size_t payloadSize) in SendStackWithPayload() argument
106 stackWriter_->WriteWithPayloadTimeout(data, size, payload, payloadSize); in SendStackWithPayload()
/developtools/profiler/device/services/shared_memory/include/
Dshare_memory_block.h35 …oadTimeout(const int8_t* header, uint32_t headerSize, const int8_t* payload, uint32_t payloadSize);
36 …ayloadSync(const int8_t* header, uint32_t headerSize, const int8_t* payload, uint32_t payloadSize);
/developtools/profiler/device/plugins/native_hook/include/
Dhook_socket_client.h42 size_t payloadSize);

12