Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 25 of 175) sorted by relevance

1234567

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
Dsmp_cmd.c23 static int SMP_SendData(uint16_t handle, Packet *pkt, SMP_SendDataCb cb);
27 Packet *pkt = NULL; in SMP_SendPairingRequest() local
32 pkt = PacketMalloc(0x00, 0x00, SMP_CMD_PAIR_REQ_DATA_LEN); in SMP_SendPairingRequest()
33 PacketPayloadWrite(pkt, &code, offset, sizeof(code)); in SMP_SendPairingRequest()
35 … PacketPayloadWrite(pkt, &pairReqParam->ioCapability, offset, sizeof(pairReqParam->ioCapability)); in SMP_SendPairingRequest()
37 PacketPayloadWrite(pkt, &pairReqParam->oobDataFlag, offset, sizeof(pairReqParam->oobDataFlag)); in SMP_SendPairingRequest()
39 PacketPayloadWrite(pkt, &pairReqParam->authReq, offset, sizeof(pairReqParam->authReq)); in SMP_SendPairingRequest()
41 …PacketPayloadWrite(pkt, &pairReqParam->maxEncKeySize, offset, sizeof(pairReqParam->maxEncKeySize)); in SMP_SendPairingRequest()
43 PacketPayloadWrite(pkt, &pairReqParam->initKeyDist, offset, sizeof(pairReqParam->initKeyDist)); in SMP_SendPairingRequest()
45 PacketPayloadWrite(pkt, &pairReqParam->respKeyDist, offset, sizeof(pairReqParam->respKeyDist)); in SMP_SendPairingRequest()
[all …]
/foundation/multimodalinput/input/util/network/test/
Dnet_packet_test.cpp40 NetPacket pkt(idMsg);
41 NetPacket packTmp(pkt);
42 size_t retResult = pkt.GetSize();
55 NetPacket pkt(idMsg);
56 NetPacket packTmp(pkt);
57 size_t retResult = pkt.GetSize();
70 NetPacket pkt(idMsg);
71 NetPacket packTmp(pkt);
72 size_t retResult = pkt.GetSize();
85 NetPacket pkt(idMsg);
[all …]
/foundation/multimodalinput/input/util/common/src/
Dinput_event_data_transformation.cpp31 const std::shared_ptr<KeyEvent> key, NetPacket &pkt) in KeyEventToNetPacket() argument
33 if (SerializeInputEvent(key, pkt) != RET_OK) { in KeyEventToNetPacket()
37 pkt << key->GetKeyCode() << key->GetKeyAction() << key->GetKeyIntention(); in KeyEventToNetPacket()
44 pkt << size; in KeyEventToNetPacket()
46 pkt << item.GetKeyCode() << item.GetDownTime() in KeyEventToNetPacket()
49 pkt << key->GetFunctionKey(KeyEvent::NUM_LOCK_FUNCTION_KEY) in KeyEventToNetPacket()
52 if (pkt.ChkRWError()) { in KeyEventToNetPacket()
59 int32_t InputEventDataTransformation::NetPacketToKeyEvent(NetPacket &pkt, std::shared_ptr<KeyEvent>… in NetPacketToKeyEvent() argument
61 if (DeserializeInputEvent(pkt, key) != RET_OK) { in NetPacketToKeyEvent()
66 pkt >> data; in NetPacketToKeyEvent()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
Davrcp_tg_packet.cpp21 uint16_t AvrcTgPacket::PushOctets1(uint8_t *pkt, uint8_t payload) in PushOctets1() argument
25 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_TG_OFFSET_ONE_BIT, payload); in PushOctets1()
28 uint16_t AvrcTgPacket::PushOctets2(uint8_t *pkt, uint16_t payload) in PushOctets2() argument
32 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_TG_OFFSET_TWO_BITS, payload); in PushOctets2()
35 uint16_t AvrcTgPacket::PushOctets3(uint8_t *pkt, uint32_t payload) in PushOctets3() argument
39 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_TG_OFFSET_THREE_BITS, payload); in PushOctets3()
42 uint16_t AvrcTgPacket::PushOctets4(uint8_t *pkt, uint32_t payload) in PushOctets4() argument
46 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_TG_OFFSET_FOUR_BITS, payload); in PushOctets4()
49 uint16_t AvrcTgPacket::PushOctets8(uint8_t *pkt, uint64_t payload) in PushOctets8() argument
53 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_TG_OFFSET_EIGHT_BITS, payload); in PushOctets8()
[all …]
Davrcp_tg_packet.h132 virtual uint16_t PushOctets1(uint8_t *pkt, uint8_t payload) final;
141 virtual uint16_t PushOctets2(uint8_t *pkt, uint16_t payload) final;
150 virtual uint16_t PushOctets3(uint8_t *pkt, uint32_t payload) final;
159 virtual uint16_t PushOctets4(uint8_t *pkt, uint32_t payload) final;
168 virtual uint16_t PushOctets8(uint8_t *pkt, uint64_t payload) final;
177 virtual uint16_t PushOctets(uint8_t *pkt, uint8_t *playload, uint16_t length) final;
186 virtual uint16_t PopOctets1(uint8_t *pkt, uint64_t &payload) final;
195 virtual uint16_t PopOctets2(uint8_t *pkt, uint64_t &payload) final;
204 virtual uint16_t PopOctets3(uint8_t *pkt, uint64_t &payload) final;
213 virtual uint16_t PopOctets4(uint8_t *pkt, uint64_t &payload) final;
[all …]
Davrcp_tg_notification.h81 AvrcTgNotifyPacket(Packet *pkt, uint8_t label);
102 Packet *AssembleParameters(Packet *pkt) override;
276 void AssemblePlaybackStatusChanged(Packet *pkt);
288 void AssembleTrackChanged(Packet *pkt);
300 void AssemblePlaybackPosChanged(Packet *pkt);
316 void AssemblePlayerApplicationSettingChanged(Packet *pkt);
329 void AssembleAddressedPlayerChanged(Packet *pkt);
341 void AssembleUidsChanged(Packet *pkt);
353 void AssembleVolumeChanged(Packet *pkt);
355 void AssembleCommonChanged(Packet *pkt);
Davrcp_tg_notification.cpp34 AvrcTgNotifyPacket::AvrcTgNotifyPacket(Packet *pkt, uint8_t label) in AvrcTgNotifyPacket() argument
46 DisassemblePacket(pkt); in AvrcTgNotifyPacket()
57 Packet *AvrcTgNotifyPacket::AssembleParameters(Packet *pkt) in AssembleParameters() argument
63 AssemblePlaybackStatusChanged(pkt); in AssembleParameters()
66 AssembleTrackChanged(pkt); in AssembleParameters()
69 AssemblePlaybackPosChanged(pkt); in AssembleParameters()
72 AssemblePlayerApplicationSettingChanged(pkt); in AssembleParameters()
75 AssembleAddressedPlayerChanged(pkt); in AssembleParameters()
78 AssembleUidsChanged(pkt); in AssembleParameters()
81 AssembleVolumeChanged(pkt); in AssembleParameters()
[all …]
Davrcp_tg_vendor.cpp47 for (auto &pkt : pkts_) { in ~AvrcTgVendorPacket() local
48 PacketFree(pkt); in ~AvrcTgVendorPacket()
49 pkt = nullptr; in ~AvrcTgVendorPacket()
54 Packet *AvrcTgVendorPacket::AssembleParameters(Packet *pkt) in AssembleParameters() argument
72 Packet *pkt = AssembleRejectPacket(); in AssemblePackets() local
73 if (pkt != nullptr) { in AssemblePackets()
86 pkt = AssembleMinOperands(); in AssemblePackets()
98 pkt = AssembleParameters(pkt); in AssemblePackets()
99 pkts_.push_back(pkt); in AssemblePackets()
103 bool AvrcTgVendorPacket::DisassemblePacket(Packet *pkt) in DisassemblePacket() argument
[all …]
Davrcp_tg_vendor.h94 virtual Packet *AssembleParameters(Packet *pkt);
136 bool DisassemblePacket(Packet *pkt) override;
295 bool IsValidParameterLength(Packet *pkt);
341 AvrcTgGcPacket(Packet *pkt, uint8_t label);
366 Packet *AssembleParameters(Packet *pkt) override;
439 void AssembleCompanies(Packet *pkt);
444 void AssembleEvents(Packet *pkt);
479 AvrcTgGeaPacket(Packet *pkt, uint8_t label);
507 Packet *AssembleParameters(Packet *pkt) override;
615 AvrcTgGpsPacket(Packet *pkt, uint8_t label);
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
Davrcp_ct_packet.cpp27 uint16_t AvrcCtPacket::PushOctets1(uint8_t *pkt, uint8_t payload) const in PushOctets1() argument
31 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_CT_UNIT8_NUM_1, payload); in PushOctets1()
34 uint16_t AvrcCtPacket::PushOctets2(uint8_t *pkt, uint16_t payload) const in PushOctets2() argument
38 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_CT_UNIT8_NUM_2, payload); in PushOctets2()
41 uint16_t AvrcCtPacket::PushOctets3(uint8_t *pkt, uint32_t payload) const in PushOctets3() argument
45 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_CT_UNIT8_NUM_3, payload); in PushOctets3()
48 uint16_t AvrcCtPacket::PushOctets4(uint8_t *pkt, uint32_t payload) const in PushOctets4() argument
52 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_CT_UNIT8_NUM_4, payload); in PushOctets4()
55 uint16_t AvrcCtPacket::PushOctets8(uint8_t *pkt, uint64_t payload) const in PushOctets8() argument
59 return PushOctetsUpto8(pkt, sizeof(uint8_t) * AVRC_CT_UNIT8_NUM_8, payload); in PushOctets8()
[all …]
Davrcp_ct_packet.h143 virtual uint16_t PushOctets1(uint8_t *pkt, uint8_t payload) const final;
152 virtual uint16_t PushOctets2(uint8_t *pkt, uint16_t payload) const final;
161 virtual uint16_t PushOctets3(uint8_t *pkt, uint32_t payload) const final;
170 virtual uint16_t PushOctets4(uint8_t *pkt, uint32_t payload) const final;
179 virtual uint16_t PushOctets8(uint8_t *pkt, uint64_t payload) const final;
188 virtual uint16_t PushOctets(uint8_t *pkt, uint8_t *playload, uint16_t length) final;
197 virtual uint16_t PopOctets1(uint8_t *pkt, uint64_t &payload) const final;
206 virtual uint16_t PopOctets2(uint8_t *pkt, uint64_t &payload) const final;
215 virtual uint16_t PopOctets3(uint8_t *pkt, uint64_t &payload) const final;
224 virtual uint16_t PopOctets4(uint8_t *pkt, uint64_t &payload) const final;
[all …]
Davrcp_ct_vendor.cpp52 bool AvrcCtVendorPacket::DisassemblePacket(Packet *pkt) in DisassemblePacket() argument
56 isValid_ = IsValidParameterLength(pkt); in DisassemblePacket()
58 auto buffer = static_cast<uint8_t *>(BufferPtr(PacketContinuousPayload(pkt))); in DisassemblePacket()
126 bool AvrcCtVendorPacket::IsValidParameterLength(Packet *pkt) in IsValidParameterLength() argument
132 size_t size = PacketPayloadSize(pkt); in IsValidParameterLength()
134 auto buffer = static_cast<uint8_t *>(BufferPtr(PacketContinuousPayload(pkt))); in IsValidParameterLength()
167 AvrcCtGcPacket::AvrcCtGcPacket(Packet *pkt) : AvrcCtVendorPacket() in AvrcCtGcPacket() argument
174 DisassemblePacket(pkt); in AvrcCtGcPacket()
185 Packet *AvrcCtGcPacket::AssembleParameters(Packet *pkt) in AssembleParameters() argument
192 return pkt; in AssembleParameters()
[all …]
Davrcp_ct_vendor.h90 virtual Packet *AssembleParameters(Packet *pkt) = 0;
115 bool DisassemblePacket(Packet *pkt) override;
217 bool IsValidParameterLength(Packet *pkt);
250 explicit AvrcCtGcPacket(Packet *pkt);
273 Packet *AssembleParameters(Packet *pkt) override;
360 explicit AvrcCtGeaPacket(Packet *pkt);
385 Packet *AssembleParameters(Packet *pkt) override;
519 explicit AvrcCtGpsPacket(Packet *pkt);
541 Packet *AssembleParameters(Packet *pkt) override;
631 explicit AvrcCtSapPacket(Packet *pkt);
[all …]
Davrcp_ct_profile.cpp354 …AvrcCtProfile::SendPassCmd(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtPassPacket> &pkt) in SendPassCmd() argument
364 cnManager->SetPassPacket(rawAddr, pkt); in SendPassCmd()
371 …std::bind(&AvrcCtProfile::PassTimeoutCallback, this, rawAddr, pkt->GetKeyOperation(), pkt->GetKeyS… in SendPassCmd()
376 InformPassRsp(rawAddr, pkt->GetKeyOperation(), pkt->GetKeyState(), RET_BAD_STATUS); in SendPassCmd()
380 cnManager->PushPassQueue(rawAddr, pkt); in SendPassCmd()
399 void AvrcCtProfile::ReceivePassRsp(const RawAddress &rawAddr, Packet *pkt) in ReceivePassRsp() argument
405 AvrcCtPassPacket packet(pkt); in ReceivePassRsp()
461 std::shared_ptr<AvrcCtUnitPacket> pkt = std::make_shared<AvrcCtUnitPacket>(); in SendUnitCmd() local
467 cnManager->SetUnitPacket(rawAddr, pkt); in SendUnitCmd()
481 cnManager->PushUnitQueue(rawAddr, pkt); in SendUnitCmd()
[all …]
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
Dcoap_adapter.c41 CoapPacket *pkt; member
130 static int32_t CoapParseOptionsAndPayloadEx(CoapPacket *pkt, const uint8_t *buf, uint32_t buflen) in CoapParseOptionsAndPayloadEx() argument
134 const uint8_t *dataPos = buf + HEADER_LEN + pkt->header.tokenLen; in CoapParseOptionsAndPayloadEx()
143 … int32_t ret = CoapParseOption(&((pkt->options)[optionIndex]), &delta, &dataPos, end - dataPos); in CoapParseOptionsAndPayloadEx()
154 pkt->optionsNum = optionIndex; in CoapParseOptionsAndPayloadEx()
156 pkt->payload.buffer = NULL; in CoapParseOptionsAndPayloadEx()
157 pkt->payload.len = 0; in CoapParseOptionsAndPayloadEx()
166 pkt->payload.buffer = dataPos + 1; in CoapParseOptionsAndPayloadEx()
167 pkt->payload.len = (uint32_t)(long)(end - (dataPos + 1)); in CoapParseOptionsAndPayloadEx()
171 static int32_t CoapParseOptionsAndPayload(CoapPacket *pkt, const uint8_t *buf, uint32_t buflen) in CoapParseOptionsAndPayload() argument
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
Dpacket.h60 BTSTACK_API Packet *PacketRefMalloc(const Packet *pkt);
74 BTSTACK_API Packet *PacketInheritMalloc(const Packet *pkt, uint16_t headSize, uint16_t tailSize);
83 BTSTACK_API void PacketFree(Packet *pkt);
93 BTSTACK_API Buffer *PacketHead(const Packet *pkt);
103 BTSTACK_API Buffer *PacketTail(const Packet *pkt);
114 BTSTACK_API Buffer *PacketContinuousPayload(Packet *pkt);
124 BTSTACK_API uint32_t PacketPayloadSize(const Packet *pkt);
137 BTSTACK_API uint32_t PacketPayloadRead(const Packet *pkt, uint8_t *dst, uint32_t offset, uint32_t s…
150 BTSTACK_API uint32_t PacketPayloadWrite(const Packet *pkt, const uint8_t *src, uint32_t offset, uin…
160 BTSTACK_API void PacketPayloadAddLast(const Packet *pkt, const Buffer *buf);
[all …]
/foundation/multimodalinput/input/util/common/include/
Dinput_event_data_transformation.h31 static int32_t KeyEventToNetPacket(const std::shared_ptr<KeyEvent> key, NetPacket &pkt);
32 static int32_t NetPacketToKeyEvent(NetPacket &pkt, std::shared_ptr<KeyEvent> key);
33 static int32_t SwitchEventToNetPacket(const std::shared_ptr<SwitchEvent> key, NetPacket &pkt);
34 static int32_t NetPacketToSwitchEvent(NetPacket &pkt, std::shared_ptr<SwitchEvent> key);
35 static int32_t SerializeInputEvent(std::shared_ptr<InputEvent> event, NetPacket &pkt);
36 static int32_t DeserializeInputEvent(NetPacket &pkt, std::shared_ptr<InputEvent> event);
37 static int32_t Marshalling(std::shared_ptr<PointerEvent> event, NetPacket &pkt);
38 static int32_t Unmarshalling(NetPacket &pkt, std::shared_ptr<PointerEvent> event);
40 static int32_t MarshallingEnhanceData(std::shared_ptr<PointerEvent> event, NetPacket &pkt);
41 static int32_t UnmarshallingEnhanceData(NetPacket &pkt, std::shared_ptr<PointerEvent> event);
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
Dpacket.c88 Packet *PacketRefMalloc(const Packet *pkt) in PacketRefMalloc() argument
94 refPacket->head = PayloadNewRef(pkt->head->buf); in PacketRefMalloc()
95 refPacket->tail = PayloadNewRef(pkt->tail->buf); in PacketRefMalloc()
98 Payload *srcPayload = pkt->payload; in PacketRefMalloc()
101 while (srcPayload != pkt->tail) { in PacketRefMalloc()
120 Packet *PacketInheritMalloc(const Packet *pkt, uint16_t headSize, uint16_t tailSize) in PacketInheritMalloc() argument
122 Packet *inheritPacket = PacketRefMalloc(pkt); in PacketInheritMalloc()
141 void PacketPayloadAddLast(const Packet *pkt, const Buffer *buf) in PacketPayloadAddLast() argument
143 Payload *last = pkt->payload; in PacketPayloadAddLast()
144 while (last != NULL && last->next != pkt->tail) { in PacketPayloadAddLast()
[all …]
/foundation/multimodalinput/input/frameworks/proxy/event_handler/include/
Dclient_msg_handler.h35 void OnMsgHandler(const UDSClient& client, NetPacket& pkt);
39 int32_t OnKeyEvent(const UDSClient& client, NetPacket& pkt);
40 int32_t OnKeyMonitor(const UDSClient& client, NetPacket& pkt);
43 int32_t OnPointerEvent(const UDSClient& client, NetPacket& pkt);
46 int32_t OnSubscribeKeyEventCallback(const UDSClient& client, NetPacket& pkt);
49 int32_t OnSubscribeSwitchEventCallback(const UDSClient& client, NetPacket& pkt);
53 int32_t ReportKeyEvent(const UDSClient& client, NetPacket& pkt);
57 int32_t ReportPointerEvent(const UDSClient& client, NetPacket& pkt);
59 int32_t OnInputDevice(const UDSClient& client, NetPacket& pkt);
60 int32_t OnInputDeviceIds(const UDSClient& client, NetPacket& pkt);
[all …]
/foundation/multimodalinput/input/frameworks/proxy/event_handler/src/
Dclient_msg_handler.cpp97 void ClientMsgHandler::OnMsgHandler(const UDSClient& client, NetPacket& pkt) in OnMsgHandler() argument
99 auto id = pkt.GetMsgId(); in OnMsgHandler()
106 auto ret = (*callback)(client, pkt); in OnMsgHandler()
114 int32_t ClientMsgHandler::OnKeyEvent(const UDSClient& client, NetPacket& pkt) in OnKeyEvent() argument
118 int32_t ret = InputEventDataTransformation::NetPacketToKeyEvent(pkt, key); in OnKeyEvent()
124 pkt >> fd; in OnKeyEvent()
125 if (pkt.ChkRWError()) { in OnKeyEvent()
140 int32_t ClientMsgHandler::OnPointerEvent(const UDSClient& client, NetPacket& pkt) in OnPointerEvent() argument
145 if (InputEventDataTransformation::Unmarshalling(pkt, pointerEvent) != ERR_OK) { in OnPointerEvent()
150 if (InputEventDataTransformation::UnmarshallingEnhanceData(pkt, pointerEvent) != ERR_OK) { in OnPointerEvent()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/
Davdtp_message.c71 void AvdtSendFragPacket(uint16_t lcid, Packet *pkt, uint16_t peerMtu) in AvdtSendFragPacket() argument
75 uint16_t PacketLen = PacketSize(pkt); in AvdtSendFragPacket()
78 Buffer *fragmentData = PacketContinuousPayload(pkt); in AvdtSendFragPacket()
80 uint8_t *p = (uint8_t *)BufferPtr(PacketHead(pkt)); in AvdtSendFragPacket()
303 Packet *pkt = PacketMalloc(AVDT_BUFFER_GENERAL_REJ, 0, 0); in AvdtMsgSendGeneralRej() local
304 Buffer *msgHeader = PacketHead(pkt); in AvdtMsgSendGeneralRej()
308 sigCtrl->currentMsg = pkt; in AvdtMsgSendGeneralRej()
330 Packet *pkt = PacketMalloc(AVDT_BUFFER_SINGLE, 0, (AVDT_BUFFER_SEID + AVDT_BUFFER_SINGLE)); in AvdtBuildDelayCmd() local
331 Buffer *msgHeader = PacketHead(pkt); in AvdtBuildDelayCmd()
336 PacketPayloadWrite(pkt, &data, offset, AVDT_1BYTE); in AvdtBuildDelayCmd()
[all …]
Davdtp_message.h135 void AvdtSendFragPacket(uint16_t lcid, Packet *pkt, uint16_t peerMtu);
136 uint16_t AvdtBuildCapability(const Packet *pkt, const AvdtSepConfig *cfg, uint8_t off, uint8_t sigI…
149 void AvdtBuildSeps(const Packet *pkt, const AvdtMsg *avdtMsgData);
160 void AvdtParseMsg(AvdtSigCtrl *sigCtrl, Packet *pkt);
161 void AvdtParseSingleMsg(AvdtSigCtrl *sigCtrl, Packet *pkt, uint8_t transLabel, uint8_t messageType);
162 void AvdtParseSignalInd(AvdtSigCtrl *sigCtrl, uint8_t sigId, uint8_t label, const Packet *pkt);
163 void AvdtParseCommonInd(AvdtSigCtrl *sigCtrl, uint8_t sigId, uint8_t label, const Packet *pkt, uint…
164 void AvdtParseReconfigInd(AvdtSigCtrl *sigCtrl, uint8_t label, const Packet *pkt, uint8_t event);
165 void AvdtParseSetconfigInd(AvdtSigCtrl *sigCtrl, uint8_t label, const Packet *pkt, uint8_t event);
166 void AvdtParseDelayRptInd(AvdtSigCtrl *sigCtrl, uint8_t label, const Packet *pkt, uint8_t event);
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
Dl2cap_cmn.c36 Packet *pkt; member
44 static void L2capProcessPacket(uint16_t handle, uint16_t cid, Packet *pkt) in L2capProcessPacket() argument
48 g_l2capBdr.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
53 g_l2capLe.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
61 g_l2capBdr.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
68 g_l2capLe.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
78 static void L2capRecombineStart(uint16_t handle, uint16_t length, uint16_t cid, const Packet *pkt) in L2capRecombineStart() argument
94 PacketFree(frag->pkt); in L2capRecombineStart()
102 tpkt = PacketRefMalloc(pkt); in L2capRecombineStart()
112 frag->pkt = tpkt; in L2capRecombineStart()
[all …]
/foundation/multimodalinput/input/service/module_loader/test/
Duds_server_test.cpp45 NetPacket pkt(msgId);
48 bool retResult = serObj.SendMsg(fd, pkt);
55 NetPacket pkt(msgId);
59 bool retResult = serObj.SendMsg(fd, pkt);
66 NetPacket pkt(msgId);
70 bool retResult = serObj.SendMsg(fd, pkt);
77 NetPacket pkt(msgId);
82 serObj.Multicast(fds, pkt);
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/
Drfcomm_frames.c43 static void RfcommParseHeaderTail(Packet *pkt, RfcommFrameHeaderTailInfo *headTailInfo);
52 … RfcommEventType RfcommParseUih(RfcommCheckFrameValidInfo checkInfo, uint8_t addrDlci, Packet *pkt,
54 static RfcommEventType RfcommParseUihCmd(Packet *pkt, RfcommParseFrameResult output);
55 static RfcommEventType RfcommSetPnInfo(Packet *pkt, uint8_t typeCr, RfcommParseFrameResult output);
56 static RfcommEventType RfcommSetMscInfo(Packet *pkt, uint8_t typeCr, RfcommParseFrameResult output);
57 static RfcommEventType RfcommSetRpnInfo(Packet *pkt, uint8_t typeCr, RfcommParseFrameResult output);
58 static RfcommEventType RfcommSetRlsInfo(Packet *pkt, uint8_t typeCr, RfcommParseFrameResult output);
59 static RfcommEventType RfcommSetTestInfo(Packet *pkt, uint8_t typeCr, RfcommParseFrameResult output…
60 static RfcommEventType RfcommSetFcOnOffInfo(Packet *pkt, uint8_t typeCr, uint8_t type, RfcommParseF…
61 static RfcommEventType RfcommSetNscInfo(Packet *pkt, RfcommParseFrameResult output);
[all …]

1234567