/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | packet.h | 36 typedef struct Packet Packet; typedef 41 * Packet is Buffer type linked list. 43 * @param headSize Packet headSize, could be 0 or positive integer. 44 * @param tailSize Packet tailSize, could be 0 or positive integer. 45 * @param payloadSize Packet payloadSize, could be 0 or positive integer. 46 * @return Packet pointer. 50 BTSTACK_API Packet *PacketMalloc(uint16_t headSize, uint16_t tailSize, uint32_t payloadSize); 56 * @return Packet pointer. 60 BTSTACK_API Packet *PacketRefMallo [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_profiler/unittest/ |
H A D | rs_profiler_packet_test.cpp | 35 * @tc.desc: Test Packet types 41 Packet p { Packet::BINARY }; in HWTEST_F() 44 p.SetType(Packet::COMMAND); in HWTEST_F() 51 * @tc.desc: Test Packet read/write different types 68 Packet p { Packet::BINARY }; in HWTEST_F() 94 * @tc.desc: Test Packet read/write different types 104 Packet p { Packet in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/ |
H A D | rs_profiler_packet.cpp | 20 Packet::Packet(PacketType type, uint32_t reserve) in Packet() function in OHOS::Rosen::Packet 26 bool Packet::IsBinary() const in IsBinary() 31 bool Packet::IsCommand() const in IsCommand() 36 char* Packet::Begin() in Begin() 41 char* Packet::End() in End() 46 Packet::PacketType Packet::GetType() const in GetType() 51 void Packet::SetType(Packet [all...] |
H A D | rs_profiler_packet.h | 56 class Packet { class 75 explicit Packet(PacketType type, uint32_t reserve = DEFAULT_RESERVED_SIZE); 76 Packet(const Packet&) = default; 77 Packet& operator=(const Packet&) = default; 78 Packet(Packet&&) = default; 79 Packet& operator=(Packet [all...] |
H A D | rs_profiler_network.cpp | 109 void Network::SendPacket(const Packet& packet) in SendPacket() 113 outgoing_.emplace(const_cast<Packet&>(packet).Release()); in SendPacket() 175 Packet packet { Packet::BINARY }; in SendRSTreeDumpJSON() 183 Packet packet { Packet::BINARY }; in SendRSTreePerfNodeList() 191 Packet packet { Packet::BINARY }; in SendRSTreeSingleNodePerf() 209 Packet packet { Packet in SendBinary() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/ |
H A D | avrcp_tg_vendor.h | 35 AVRC_TG_VENDOR_PACKET_TYPE_SIZE = 0x01, // The size of the "Packet Type". 40 AVRC_TG_VENDOR_PACKET_TYPE = 0x00, // The value of the "Packet type". 41 AVRC_TG_VENDOR_PACKET_TYPE_START = 0x01, // The value of the "Packet type - Start(01)". 42 AVRC_TG_VENDOR_PACKET_TYPE_CONTINUE = 0x02, // The value of the "Packet type - Continue(10)". 43 AVRC_TG_VENDOR_PACKET_TYPE_END = 0x03, // The value of the "Packet type - End(11)". 51 AVRC_TG_VENDOR_PACKET_TYPE_OFFSET = 0x07, // The offset of the "Packet Type". 89 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 94 virtual Packet *AssembleParameters(Packet *pkt); 101 const Packet *AssemblePacke [all...] |
H A D | avrcp_tg_vendor_player_application_settings.h | 64 AvrcTgLpasaPacket(Packet *pkt, uint8_t label); 82 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits 89 Packet *AssembleParameters(Packet *pkt) override; 92 * @brief Disassembles the operands behind the "Packet Type" of the frame. 101 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits 163 AvrcTgLpasvPacket(Packet *pkt, uint8_t label); 181 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 188 Packet *AssembleParameters(Packet *pk [all...] |
H A D | avrcp_tg_browse.h | 72 const Packet *AssemblePacket(void) override; 87 bool DisassemblePacket(Packet *pkt) override; 126 Packet *pkt_ {nullptr}; // The frame packet. 138 bool IsValidParameterLength(Packet *pkt); 182 AvrcTgSbpPacket(Packet *pkt, uint8_t label); 207 const Packet *AssemblePacket(void) override; 222 virtual bool DisassemblePacket(Packet *pkt) override; 284 AvrcTgCpPacket(Packet *pkt, uint32_t uidCounter, uint8_t label); 302 const Packet *AssemblePacket(void) override; 319 virtual bool DisassemblePacket(Packet *pk [all...] |
H A D | avrcp_tg_notification.h | 81 AvrcTgNotifyPacket(Packet *pkt, uint8_t label); 89 * @brief Assembles the operands behind the "Packet Type" of the frame. 98 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 102 Packet *AssembleParameters(Packet *pkt) override; 105 * @brief Disassembles the operands behind the "Packet Type" of the frame. 114 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 267 * @brief Disassembles the operands behind the "Packet Type" of the frame. 276 void AssemblePlaybackStatusChanged(Packet *pkt); 279 * @brief Disassembles the operands behind the "Packet Typ [all...] |
H A D | avrcp_tg_vendor_continuation.h | 58 AvrcTgRcrPacket(Packet *pkt, uint8_t label); 70 Packet *AssembleParameters(Packet *pkt) override; 73 * @brief Disassembles the operands behind the "Packet Type" of the frame. 83 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 147 AvrcTgAcrPacket(Packet *pkt, uint8_t label); 165 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 169 Packet *AssembleParameters(Packet *pkt) override; 172 * @brief Disassembles the operands behind the "Packet Typ [all...] |
H A D | avrcp_tg_profile.h | 980 uint8_t connectId, uint8_t label, uint8_t crType, uint8_t chType, Packet *pkt, void *context); 1077 void ReceivePassCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1119 void ReceiveUnitCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1128 void ReceiveSubUnitCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1150 void ReceiveGetCapabilitiesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1159 void ReceiveListPlayerApplicationSettingAttributesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1168 void ReceiveListPlayerApplicationSettingValuesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1177 void ReceiveGetCurrentPlayerApplicationSettingValueCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1186 void ReceiveSetPlayerApplicationSettingValueCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt); 1195 void ReceiveGetPlayerApplicationSettingAttributeTextCmd(const RawAddress &rawAddr, uint8_t label, Packet *pk [all...] |
H A D | avrcp_tg_unit_info.h | 59 AvrcTgUnitPacket(Packet *pkt, uint8_t label); 79 const Packet *AssemblePacket(void) override; 99 bool DisassemblePacket(Packet *pkt) override; 129 Packet *pkt_ {nullptr}; // The frame packet.
|
H A D | avrcp_tg_pass_through.h | 59 AvrcTgPassPacket(Packet *pkt, uint8_t label); 78 const Packet *AssemblePacket(void) override; 95 bool DisassemblePacket(Packet *pkt) override; 206 Packet *pkt_ {nullptr}; // The frame packet.
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_vendor.h | 33 AVRC_CT_VENDOR_PACKET_TYPE = 0x00, // The value of the "Packet type". 34 AVRC_CT_VENDOR_PACKET_TYPE_START = 0x01, // The value of the "Packet type - Start(01)". 35 AVRC_CT_VENDOR_PACKET_TYPE_CONTINUE = 0x02, // The value of the "Packet type - Continue(10)". 36 AVRC_CT_VENDOR_PACKET_TYPE_END = 0x03, // The value of the "Packet type - End(11)". 45 AVRC_CT_VENDOR_PACKET_TYPE_OFFSET = 0x07, // The offset of the "Packet Type". 75 * @brief Assembles the operands behind the "Packet Type" of the frame. 84 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 90 virtual Packet *AssembleParameters(Packet *pkt) = 0; 97 const Packet *AssemblePacke [all...] |
H A D | avrcp_ct_vendor_player_application_settings.h | 52 explicit AvrcCtLpasaPacket(Packet *pkt); 60 * @brief Assembles the operands behind the "Packet Type" of the frame. 69 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits 75 Packet *AssembleParameters(Packet *pkt) override; 87 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits 144 explicit AvrcCtLpasvPacket(Packet *pkt); 152 * @brief Assembles the operands behind the "Packet Type" of the frame. 161 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 167 Packet *AssembleParameter [all...] |
H A D | avrcp_ct_profile.h | 1006 uint8_t connectId, uint8_t label, uint8_t crType, uint8_t chType, Packet *pkt, void *context); 1077 void ReceivePassRsp(const RawAddress &rawAddr, Packet *pkt); 1124 void ReceiveUnitRsp(const RawAddress &rawAddr, Packet *pkt); 1132 void ReceiveSubUnitRsp(const RawAddress &rawAddr, Packet *pkt); 1190 void ReceiveGetCapabilitiesRsp(const RawAddress &rawAddr, Packet *pkt); 1198 void ReceiveListPlayerApplicationSettingAttributesRsp(const RawAddress &rawAddr, Packet *pkt); 1206 void ReceiveListPlayerApplicationSettingValuesRsp(const RawAddress &rawAddr, Packet *pkt); 1214 void ReceiveGetCurrentPlayerApplicationSettingValueRsp(const RawAddress &rawAddr, Packet *pkt); 1222 void ReceiveSetPlayerApplicationSettingValueRsp(const RawAddress &rawAddr, Packet *pkt); 1230 void ReceiveGetPlayerApplicationSettingAttributeTextRsp(const RawAddress &rawAddr, Packet *pk [all...] |
H A D | avrcp_ct_browse.h | 64 virtual const Packet *AssemblePacket(void) override; 79 bool DisassemblePacket(Packet *pkt) override; 107 Packet *pkt_; // The frame packet. 145 explicit AvrcCtSbpPacket(Packet *pkt); 162 const Packet *AssemblePacket(void) override; 185 virtual bool DisassemblePacket(Packet *pkt) override; 276 explicit AvrcCtCpPacket(Packet *pkt); 295 const Packet *AssemblePacket(void) override; 311 bool DisassemblePacket(Packet *pkt) override; 377 explicit AvrcCtGfiPacket(Packet *pk [all...] |
H A D | avrcp_ct_vendor_continuation.h | 68 Packet *AssembleParameters(Packet *pkt) override; 71 * @brief Disassembles the operands behind the "Packet Type" of the frame. 80 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 135 explicit AvrcCtAcrPacket(Packet *pkt); 143 * @brief Assembles the operands that behind the "Packet Type" of the frame. 152 * Reserved 7 bits 0 0 0 0 0 0 0 | 0 Packet Type 1 bits<br> 158 Packet *AssembleParameters(Packet *pkt) override; 161 * @brief Disassembles the operands that behind the "Packet Typ [all...] |
H A D | avrcp_ct_unit_info.h | 60 explicit AvrcCtUnitPacket(Packet *pkt); 82 const Packet *AssemblePacket(void) override; 100 bool DisassemblePacket(Packet *pkt) override; 130 Packet *pkt_ {nullptr}; // The frame packet.
|
H A D | avrcp_ct_vendor.cpp | 42 const Packet *AvrcCtVendorPacket::AssemblePacket(void) in AssemblePacket() 52 bool AvrcCtVendorPacket::DisassemblePacket(Packet *pkt) in DisassemblePacket() 96 Packet *AvrcCtVendorPacket::AssembleFixedOperands(void) in AssembleFixedOperands() 126 bool AvrcCtVendorPacket::IsValidParameterLength(Packet *pkt) in IsValidParameterLength() 167 AvrcCtGcPacket::AvrcCtGcPacket(Packet *pkt) : AvrcCtVendorPacket() in AvrcCtGcPacket() 185 Packet *AvrcCtGcPacket::AssembleParameters(Packet *pkt) in AssembleParameters() 267 AvrcCtLpasaPacket::AvrcCtLpasaPacket(Packet *pkt) : AvrcCtVendorPacket() in AvrcCtLpasaPacket() 284 Packet *AvrcCtLpasaPacket::AssembleParameters(Packet *pk [all...] |
H A D | avrcp_ct_pass_through.h | 62 explicit AvrcCtPassPacket(Packet *pkt); 81 const Packet *AssemblePacket(void) override; 98 bool DisassemblePacket(Packet *pkt) override; 189 Packet *pkt_ {nullptr}; // The frame packet.
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_message.h | 46 * Packet type 135 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 sigId); 137 uint16_t AvdtSendFragStart(uint16_t lcid, Packet *fragmentPacket, uint8_t signal, uint8_t number, uint8_t msgType, 140 uint16_t lcid, Packet *fragmentPacket, uint8_t pktType, uint8_t msgType, uint8_t label, uint16_t peerMtu); 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 *pk [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
H A D | packet.c | 33 typedef struct Packet { struct 68 Packet *PacketMalloc(uint16_t headSize, uint16_t tailSize, uint32_t payloadSize) in PacketMalloc() 70 Packet *packet = (Packet *)calloc(1, sizeof(Packet)); in PacketMalloc() 88 Packet *PacketRefMalloc(const Packet *pkt) in PacketRefMalloc() 90 Packet *refPacket = (Packet *)calloc(1, sizeof(Packet)); in PacketRefMalloc() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_connect.h | 36 uint16_t lcid, uint16_t transactionId, uint16_t maxCount, const Packet *searchPacket); 39 uint16_t lcid, SdpPduId pduId, uint16_t transactionId, uint16_t maxCount, const Packet *attributePacket); 41 uint16_t lcid, uint16_t transactionId, SdpPduId pduId, uint16_t maxCount, const Packet *packet); 43 const uint8_t *continuationState, Packet *packet);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/evt/ |
H A D | hci_evt.c | 42 typedef void (*HciEventFunc)(Packet *packet); 66 static void HciEventOnInquiryCompleteEvent(Packet *packet) in HciEventOnInquiryCompleteEvent() 85 static void HciEventOnInquiryResultEvent(Packet *packet) in HciEventOnInquiryResultEvent() 146 static void HciEventOnCommandStatusEvent(Packet *packet) in HciEventOnCommandStatusEvent() 174 static void HciEventOnConnectionCompleteEvent(Packet *packet) in HciEventOnConnectionCompleteEvent() 201 static void HciEventOnConnectionRequestEvent(Packet *packet) in HciEventOnConnectionRequestEvent() 224 static void HciEventOnRemoteNameRequestCompleteEvent(Packet *packet) in HciEventOnRemoteNameRequestCompleteEvent() 247 static void HciEventOnEncryptionChangeEvent(Packet *packet) in HciEventOnEncryptionChangeEvent() 270 static void HciEventOnReadRemoteSupportedFeaturesCompleteEvent(Packet *packet) in HciEventOnReadRemoteSupportedFeaturesCompleteEvent() 294 static void HciEventOnReadRemoteVersionInformationCompleteEvent(Packet *packe [all...] |