Home
last modified time | relevance | path

Searched refs:commandFlag (Results 1 – 18 of 18) sorted by relevance

/developtools/smartperf_host/ide/src/hdc/message/
DPayloadProtect.ts25 constructor(channelId: number, commandFlag: number, checkSum: number, vCode: number) {
28 this._commandFlag = commandFlag;
45 get commandFlag(): number { method in PayloadProtect
49 set commandFlag(value: number) { method in PayloadProtect
DDataMessage.ts50 this._commandFlag = payloadProtect.commandFlag;
51 if (payloadProtect.commandFlag === HdcCommand.CMD_KERNEL_CHANNEL_CLOSE) {
52 log(`commandFlag: ${payloadProtect.commandFlag}`);
115 get commandFlag(): number {
119 set commandFlag(value: number) {
/developtools/smartperf_host/ide/test/hdc/message/
DPayloadProtect.test.ts34 expect(payloadProtect.commandFlag).toBeUndefined();
38 payloadProtect.commandFlag = true;
39 expect(payloadProtect.commandFlag).toBeTruthy();
DDataMessage.test.ts63 expect(dataMessage.commandFlag).toBe(-1);
67 dataMessage.commandFlag = true;
68 expect(dataMessage.commandFlag).toBeTruthy();
/developtools/smartperf_host/ide/src/hdc/common/
DSerialize.ts45 let commandFlag = this.serializeU32(2, payloadProtect.commandFlag);
48 …let mergedArray = new Uint8Array(channelId.length + commandFlag.length + checkSum.length + vCode.l…
50 mergedArray.set(commandFlag, channelId.length);
51 mergedArray.set(checkSum, channelId.length + commandFlag.length);
52 mergedArray.set(vCode, channelId.length + commandFlag.length + checkSum.length);
274 let commandFlag = this.parseU32(commandDataView, 1);
290 return new PayloadProtect(channelId, commandFlag, checkSum, vCode);
/developtools/hdc/src/common/
Dchannel.cpp271 void HdcChannelBase::SendChannelWithCmd(HChannel hChannel, const uint16_t commandFlag, uint8_t *buf… in SendChannelWithCmd() argument
274 auto data = new uint8_t[size + sizeof(commandFlag)](); in SendChannelWithCmd()
279 if (memcpy_s(data, size + sizeof(commandFlag), &commandFlag, sizeof(commandFlag))) { in SendChannelWithCmd()
284 if (size > 0 && memcpy_s(data + sizeof(commandFlag), size, bufPtr, size)) { in SendChannelWithCmd()
289 SendChannel(hChannel, data, size + sizeof(commandFlag)); in SendChannelWithCmd()
293 void HdcChannelBase::SendWithCmd(const uint32_t channelId, const uint16_t commandFlag, uint8_t *buf… in SendWithCmd() argument
306 SendChannelWithCmd(hChannel, commandFlag, bufPtr, size); in SendWithCmd()
Dchannel.h32 …void SendWithCmd(const uint32_t channelId, const uint16_t commandFlag, uint8_t *bufPtr, const int …
51 …void SendChannelWithCmd(HChannel hChannel, const uint16_t commandFlag, uint8_t *bufPtr, const int …
Dsession.h55 uint32_t commandFlag; member
93 …int Send(const uint32_t sessionId, const uint32_t channelId, const uint16_t commandFlag, const uin…
Dserial_struct.h93 … Field<fieldTwo, &Hdc::HdcSessionBase::PayloadProtect::commandFlag>("commandFlag"),
Dsession.cpp815 …dcSessionBase::Send(const uint32_t sessionId, const uint32_t channelId, const uint16_t commandFlag, in Send() argument
826 protectBuf.commandFlag = commandFlag; in Send()
867 if (CMD_KERNEL_ECHO == commandFlag) { in Send()
891 if (!FetchCommand(hSession, protectBuf.channelId, protectBuf.commandFlag, data, dataSize)) { in DecryptPayload()
893 protectBuf.channelId, protectBuf.commandFlag); in DecryptPayload()
/developtools/hdc/src/host/
Dserver_for_client.h28 void SendCommandToClient(const HChannel hChannel, const uint16_t commandFlag, uint8_t *payload,
43 …bool SendToDaemon(HChannel hChannel, const uint16_t commandFlag, uint8_t *bufPtr, const int bufSiz…
Dserver_for_client.cpp195 void HdcServerForClient::SendCommandToClient(const HChannel hChannel, const uint16_t commandFlag, in SendCommandToClient() argument
198 SendChannelWithCmd(hChannel, commandFlag, payload, payloadSize); in SendCommandToClient()
201 bool HdcServerForClient::SendToDaemon(HChannel hChannel, const uint16_t commandFlag, uint8_t *bufPt… in SendToDaemon() argument
220 …if (ptrServer->Send(hdi->hSession->sessionId, hChannel->channelId, commandFlag, bufPtr, bufSize) <… in SendToDaemon()
/developtools/smartperf_host/ide/src/hdc/transmission/
DDataProcessing.ts84 commandFlag: number,
90 commandFlag,
/developtools/hdc/hdc_rust/src/cffi/
Dserial_struct.cpp54 .commandFlag = value.commandFlag, in SerializePayloadProtect()
174 .commandFlag = pp.commandFlag, in ParsePayloadProtect()
Dserial_struct.h51 uint32_t commandFlag; member
102 uint32_t commandFlag; member
235 Field<fieldTwo, &BaseStruct::PayloadProtect::commandFlag>("commandFlag"),
/developtools/smartperf_host/ide/test/hdc/common/
DSerialize.test.ts32 commandFlag: 1,
/developtools/smartperf_host/ide/src/hdc/hdcclient/
DHdcStream.ts121 if (fileCheckPayloadProtect.commandFlag === HdcCommand.CMD_FILE_CHECK) {
/developtools/smartperf_host/ide/src/hdc/
DHdcDeviceManager.ts317 if (dataMessage.commandFlag === HdcCommand.CMD_FILE_FINISH) {