Home
last modified time | relevance | path

Searched refs:PacketType (Results 1 – 25 of 35) sorted by relevance

12

/system/bt/packet/tests/
Dpacket_test_helper.h27 template <class PacketType>
28 class TestPacketType : public PacketType {
30 using PacketType::PacketType;
32 static std::shared_ptr<TestPacketType<PacketType>> Make() { in Make()
33 return std::shared_ptr<TestPacketType<PacketType>>( in Make()
34 new TestPacketType<PacketType>()); in Make()
37 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
39 return std::shared_ptr<TestPacketType<PacketType>>( in Make()
40 new TestPacketType<PacketType>(packet)); in Make()
43 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dh4_packetizer.cc29 size_t H4Packetizer::HciGetPacketLengthForType(PacketType type, in HciGetPacketLengthForType()
32 packet_length_offset[static_cast<size_t>(PacketType::ISO) + 1] = { in HciGetPacketLengthForType()
43 if (type == PacketType::ACL) { in HciGetPacketLengthForType()
46 if (type == PacketType::ISO) { in HciGetPacketLengthForType()
83 case PacketType::COMMAND: in OnPacketReady()
86 case PacketType::ACL: in OnPacketReady()
89 case PacketType::SCO: in OnPacketReady()
92 case PacketType::EVENT: in OnPacketReady()
95 case PacketType::ISO: in OnPacketReady()
103 hci_packet_type_ = PacketType::UNKNOWN; in OnPacketReady()
[all …]
Dh4_packetizer.h29 enum class PacketType : uint8_t { enum
84 size_t HciGetPacketLengthForType(PacketType type,
87 PacketType hci_packet_type_{PacketType::UNKNOWN};
Dhci_socket_device.cc103 SendHci(PacketType::EVENT, packet); in HciSocketDevice()
106 SendHci(PacketType::ACL, packet); in HciSocketDevice()
109 SendHci(PacketType::SCO, packet); in HciSocketDevice()
112 SendHci(PacketType::ISO, packet); in HciSocketDevice()
122 PacketType packet_type, in SendHci()
Dremote_loopback_device.cc51 model::packets::PacketType type = packet.GetType(); in IncomingPacket()
53 case model::packets::PacketType::PAGE: in IncomingPacket()
Dhci_socket_device.h42 void SendHci(PacketType packet_type,
/system/bt/gd/hal/
Dhci_hal_android_hidl.cc95 …ger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::EVT); in hciEventReceived()
97 btaa_logger_->Capture(received_hci_packet, SnoopLogger::PacketType::EVT); in hciEventReceived()
108 …ger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::ACL); in aclDataReceived()
110 btaa_logger_->Capture(received_hci_packet, SnoopLogger::PacketType::ACL); in aclDataReceived()
121 …ger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::SCO); in scoDataReceived()
123 btaa_logger_->Capture(received_hci_packet, SnoopLogger::PacketType::SCO); in scoDataReceived()
134 …ger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::ISO); in isoDataReceived()
161 … btsnoop_logger_->Capture(command, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in sendHciCommand()
163 btaa_logger_->Capture(command, SnoopLogger::PacketType::CMD); in sendHciCommand()
169 … btsnoop_logger_->Capture(packet, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::ACL); in sendAclData()
[all …]
Dsnoop_logger.cc110 size_t get_btsnooz_packet_length_to_write(const HciPacket& packet, SnoopLogger::PacketType type) { in get_btsnooz_packet_length_to_write()
124 case SnoopLogger::PacketType::CMD: in get_btsnooz_packet_length_to_write()
125 case SnoopLogger::PacketType::EVT: in get_btsnooz_packet_length_to_write()
129 case SnoopLogger::PacketType::ACL: { in get_btsnooz_packet_length_to_write()
151 case SnoopLogger::PacketType::ISO: in get_btsnooz_packet_length_to_write()
152 case SnoopLogger::PacketType::SCO: in get_btsnooz_packet_length_to_write()
250 void SnoopLogger::Capture(const HciPacket& packet, Direction direction, PacketType type) { in Capture()
256 case PacketType::CMD: in Capture()
260 case PacketType::ACL: in Capture()
261 case PacketType::SCO: in Capture()
[all …]
Dsnoop_logger_test.cc146 …oger->Capture(kInformationRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in TEST_F()
165 …oger->Capture(kInformationRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in TEST_F()
185 …er->Capture(kSdpConnectionRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::ACL); in TEST_F()
205 …snoop_looger->Capture(kAvdtpSuspend, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::AC… in TEST_F()
225 …snoop_looger->Capture(kHfpAtNrec0, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::ACL); in TEST_F()
245 …oger->Capture(kInformationRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in TEST_F()
262 …oger->Capture(kInformationRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in TEST_F()
263 …oger->Capture(kInformationRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in TEST_F()
286 …oger->Capture(kInformationRequest, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in TEST_F()
Dsnoop_logger.h70 enum PacketType { enum
83 void Capture(const HciPacket& packet, Direction direction, PacketType type);
Dhci_hal_host.cc276 … btsnoop_logger_->Capture(packet, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in sendHciCommand()
285 … btsnoop_logger_->Capture(packet, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::ACL); in sendAclData()
294 … btsnoop_logger_->Capture(packet, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::SCO); in sendScoData()
303 … btsnoop_logger_->Capture(packet, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::ISO); in sendIsoData()
425 …ogger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::EVT); in incoming_packet_received()
454 …ogger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::ACL); in incoming_packet_received()
478 …ogger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::SCO); in incoming_packet_received()
502 …ogger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketType::ISO); in incoming_packet_received()
/system/bt/packet/avrcp/
Dvendor_packet.h29 CType ctype, CommandPdu pdu, PacketType packet_type,
38 PacketType packet_type_;
48 VendorPacketBuilder(CType ctype, CommandPdu pdu, PacketType packet_type) in VendorPacketBuilder()
77 PacketType GetPacketType() const;
Dvendor_packet.cc23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder()
91 PacketType VendorPacket::GetPacketType() const { in GetPacketType()
93 return static_cast<PacketType>(value); in GetPacketType()
Dcapabilities_packet.h42 PacketType::SINGLE), in GetCapabilitiesRequestBuilder()
101 PacketType::SINGLE), in GetCapabilitiesResponseBuilder()
Dregister_notification_packet.h95 PacketType::SINGLE), in RegisterNotificationResponseBuilder()
150 PacketType::SINGLE), in RegisterNotificationRequestBuilder()
Davrcp_reject_packet.h39 : VendorPacketBuilder(CType::REJECTED, pdu, PacketType::SINGLE), in RejectBuilder()
Dset_addressed_player.h40 PacketType::SINGLE), in SetAddressedPlayerResponseBuilder()
Dset_absolute_volume.h46 PacketType::SINGLE), in SetAbsoluteVolumeRequestBuilder()
Dplay_item.h39 PacketType::SINGLE), in PlayItemResponseBuilder()
/system/bt/gd/btaa/android/
Dactivity_attribution.cc106 void on_hci_packet(hal::HciPacket packet, hal::SnoopLogger::PacketType type, uint16_t length) { in on_hci_packet()
142 void ActivityAttribution::Capture(const hal::HciPacket& packet, hal::SnoopLogger::PacketType type) { in Capture()
147 case hal::SnoopLogger::PacketType::CMD: in Capture()
148 case hal::SnoopLogger::PacketType::EVT: in Capture()
151 case hal::SnoopLogger::PacketType::ACL: in Capture()
152 case hal::SnoopLogger::PacketType::SCO: in Capture()
153 case hal::SnoopLogger::PacketType::ISO: in Capture()
/system/bt/gd/btaa/linux/
Dactivity_attribution.cc28 void on_hci_packet(hal::HciPacket packet, hal::SnoopLogger::PacketType type, uint16_t length) {} in on_hci_packet()
33 void ActivityAttribution::Capture(const hal::HciPacket& packet, hal::SnoopLogger::PacketType type) … in Capture()
/system/bt/gd/btaa/linux_generic/
Dhci_processor.cc244 hal::HciPacket packet, hal::SnoopLogger::PacketType type, uint16_t length) { in OnHciPacket()
248 case hal::SnoopLogger::PacketType::CMD: in OnHciPacket()
251 case hal::SnoopLogger::PacketType::EVT: in OnHciPacket()
254 case hal::SnoopLogger::PacketType::ACL: in OnHciPacket()
257 case hal::SnoopLogger::PacketType::SCO: in OnHciPacket()
260 case hal::SnoopLogger::PacketType::ISO: in OnHciPacket()
/system/bt/profile/avrcp/tests/
Davrcp_test_helper.h113 template <class PacketType>
123 auto packet1 = TestPacketType<PacketType>::Make(); in MatchAndExplain()
126 auto packet2 = TestPacketType<PacketType>::Make(); in MatchAndExplain()
/system/bt/packet/tests/avrcp/
Dvendor_packet_test.cc72 CType::STATUS, CommandPdu::GET_CAPABILITIES, PacketType::SINGLE, in TEST()
119 ASSERT_EQ(test_packet->GetPacketType(), PacketType::SINGLE); in TEST_P()
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h88 inline std::string PacketTypeText(const PacketType& type) { in PacketTypeText()
90 CASE_RETURN_TEXT(PacketType::SINGLE); in PacketTypeText()
96 inline std::ostream& operator<<(std::ostream& os, const PacketType& type) {

12