Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 25 of 39) sorted by relevance

12

/developtools/hdc/src/host/
Dhost_updater.cpp87 bool HostUpdater::BeginTransfer(const std::string &function, const uint8_t *payload, int payloadSiz… in BeginTransfer() argument
90 if (payload[payloadSize - 1] != '\0') { in BeginTransfer()
94 std::string cmdParam(reinterpret_cast<const char *>(payload)); 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()
153 std::string cmdParam(reinterpret_cast<char *>(payload)); 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()
[all …]
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()
159 ret = BeginInstall(&ctxNow, (const char *)payload); in CommandDispatch()
163 AppModType mode = static_cast<AppModType>(payload[0]); in CommandDispatch()
164 bool result = static_cast<bool>(payload[1]); in CommandDispatch()
165 string s(reinterpret_cast<char *>(payload + cmdOffset), payloadSize - cmdOffset); in CommandDispatch()
170 SendToAnother(CMD_APP_UNINSTALL, payload, payloadSize); in CommandDispatch()
171 ctxNow.taskQueue.push_back(reinterpret_cast<char *>(payload)); // just compatible in CommandDispatch()
175 BeginSideload(&ctxNow, (const char *)payload); in CommandDispatch()
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);
Dhost_unity.cpp129 bool HdcHostUnity::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
135 if (strlen(reinterpret_cast<char *>(payload))) { // enable local log in CommandDispatch()
136 if (!InitLocalLog(reinterpret_cast<const char *>(payload))) { in CommandDispatch()
148 AppendLocalLog(reinterpret_cast<const char *>(payload), payloadSize); in CommandDispatch()
150 ServerCommand(CMD_KERNEL_ECHO_RAW, 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()
527 …FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload, in FetchCommand() argument
533 ret = ServerSessionHandshake(hSession, payload, payloadSize); in FetchCommand()
559 sfc->EchoClientRaw(hChannel, payload, payloadSize); in FetchCommand()
563 MessageLevel level = static_cast<MessageLevel>(*payload); in FetchCommand()
564 string s(reinterpret_cast<char *>(payload + 1), payloadSize - 1); in FetchCommand()
575 if (*payload != 0) { in FetchCommand()
576 --(*payload); in FetchCommand()
577 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, payload, 1); in FetchCommand()
[all …]
Dserver.h24 …FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload,
55 uint8_t *payload, const int payloadSize) override;
60 bool ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize);
Dserver_for_client.h27 void EchoClientRaw(const HChannel hChannel, uint8_t *payload, const int payloadSize);
28 void SendCommandToClient(const HChannel hChannel, const uint16_t commandFlag, uint8_t *payload,
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/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 …ret = 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()
381 …FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload, in FetchCommand() argument
402 ret = DaemonSessionHandshake(hSession, channelId, payload, payloadSize); in FetchCommand()
[all …]
Ddaemon.h33 …FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload,
47 uint8_t *payload, const int payloadSize) override;
53 …bool DaemonSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payload, int pay…
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_app.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);
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()
335 if (*payload) { // close-step3 in CommandDispatch()
[all …]
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);
95 bool CommandForwardCheckResult(HCtxForward ctx, uint8_t *payload);
Dsession.h72 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument
99 …atchTaskData(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload,
107 …FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload, in FetchCommand() argument
147 …askCommandDispatch(HTaskInfo hTaskInfo, uint8_t taskType, const uint16_t command, uint8_t *payload, in TaskCommandDispatch() argument
164 if (!ptrTask->CommandDispatch(command, payload, payloadSize)) { in TaskCommandDispatch()
Dforward.cpp721 bool HdcForwardBase::CommandForwardCheckResult(HCtxForward ctx, uint8_t *payload) in CommandForwardCheckResult() argument
724 bool bCheck = static_cast<bool>(payload); in CommandForwardCheckResult()
739 bool HdcForwardBase::ForwardCommandDispatch(const uint16_t command, uint8_t *payload, const int pay… in ForwardCommandDispatch() argument
746 FilterCommand(payload, &id, &pContent); in ForwardCommandDispatch()
754 ret = CommandForwardCheckResult(ctx, payload); in ForwardCommandDispatch()
789 bool HdcForwardBase::CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSiz… in CommandDispatch() argument
795 string strCommand(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch()
803 if (!SlaveConnect(payload, true, sError)) { in CommandDispatch()
810 if (!SlaveConnect(payload, false, sError)) { in CommandDispatch()
816 if (!ForwardCommandDispatch(command, payload, payloadSize)) { in CommandDispatch()
Dtask.h25 virtual bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
/developtools/profiler/device/plugins/native_hook/src/
Dstack_writer.cpp75 long StackWriter::WriteWithPayloadTimeout(const void* data, size_t size, const void* payload, size_… in WriteWithPayloadTimeout() argument
82 …reinterpret_cast<const int8_t*>(data), size, reinterpret_cast<const int8_t*>(payload), payloadSize… in WriteWithPayloadTimeout()
85 …reinterpret_cast<const int8_t*>(data), size, reinterpret_cast<const int8_t*>(payload), payloadSize… in WriteWithPayloadTimeout()
Dhook_socket_client.cpp99 bool HookSocketClient::SendStackWithPayload(const void* data, size_t size, const void* payload, in SendStackWithPayload() argument
106 stackWriter_->WriteWithPayloadTimeout(data, size, payload, payloadSize); in SendStackWithPayload()
/developtools/profiler/device/services/shared_memory/include/
Dshare_memory_block.h35 …bool PutWithPayloadTimeout(const int8_t* header, uint32_t headerSize, const int8_t* payload, uint3…
36 …bool PutWithPayloadSync(const int8_t* header, uint32_t headerSize, const int8_t* payload, uint32_t…
/developtools/profiler/device/plugins/arkts_plugin/src/
Darkts_plugin.cpp375 return wsFrame.payload.get(); in Decode()
423 wsFrame.payload = std::make_unique<char[]>(wsFrame.payloadLen + 1); in DecodeMessage()
435 wsFrame.payload.get()[i] = buf[i] ^ wsFrame.maskingKey[j]; in DecodeMessage()
438 if (!Recv(client_, wsFrame.payload.get(), wsFrame.payloadLen, 0)) { in DecodeMessage()
442 wsFrame.payload.get()[wsFrame.payloadLen] = '\0'; in DecodeMessage()
/developtools/profiler/device/plugins/native_hook/include/
Dhook_socket_client.h41 bool SendStackWithPayload(const void* data, size_t size, const void* payload,

12