/system/bt/packet/tests/ |
D | packet_test_helper.h | 27 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/ |
D | h4_packetizer.cc | 29 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 …]
|
D | h4_packetizer.h | 29 enum class PacketType : uint8_t { enum 84 size_t HciGetPacketLengthForType(PacketType type, 87 PacketType hci_packet_type_{PacketType::UNKNOWN};
|
D | hci_socket_device.cc | 103 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()
|
D | remote_loopback_device.cc | 51 model::packets::PacketType type = packet.GetType(); in IncomingPacket() 53 case model::packets::PacketType::PAGE: in IncomingPacket()
|
D | hci_socket_device.h | 42 void SendHci(PacketType packet_type,
|
/system/bt/gd/hal/ |
D | hci_hal_android_hidl.cc | 95 …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 …]
|
D | snoop_logger.cc | 110 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 …]
|
D | snoop_logger_test.cc | 146 …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()
|
D | snoop_logger.h | 70 enum PacketType { enum 83 void Capture(const HciPacket& packet, Direction direction, PacketType type);
|
D | hci_hal_host.cc | 276 … 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/ |
D | vendor_packet.h | 29 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;
|
D | vendor_packet.cc | 23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder() 91 PacketType VendorPacket::GetPacketType() const { in GetPacketType() 93 return static_cast<PacketType>(value); in GetPacketType()
|
D | capabilities_packet.h | 42 PacketType::SINGLE), in GetCapabilitiesRequestBuilder() 101 PacketType::SINGLE), in GetCapabilitiesResponseBuilder()
|
D | register_notification_packet.h | 95 PacketType::SINGLE), in RegisterNotificationResponseBuilder() 150 PacketType::SINGLE), in RegisterNotificationRequestBuilder()
|
D | avrcp_reject_packet.h | 39 : VendorPacketBuilder(CType::REJECTED, pdu, PacketType::SINGLE), in RejectBuilder()
|
D | set_addressed_player.h | 40 PacketType::SINGLE), in SetAddressedPlayerResponseBuilder()
|
D | set_absolute_volume.h | 46 PacketType::SINGLE), in SetAbsoluteVolumeRequestBuilder()
|
D | play_item.h | 39 PacketType::SINGLE), in PlayItemResponseBuilder()
|
/system/bt/gd/btaa/android/ |
D | activity_attribution.cc | 106 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/ |
D | activity_attribution.cc | 28 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/ |
D | hci_processor.cc | 244 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/ |
D | avrcp_test_helper.h | 113 template <class PacketType> 123 auto packet1 = TestPacketType<PacketType>::Make(); in MatchAndExplain() 126 auto packet2 = TestPacketType<PacketType>::Make(); in MatchAndExplain()
|
/system/bt/packet/tests/avrcp/ |
D | vendor_packet_test.cc | 72 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/ |
D | avrcp_logging_helper.h | 88 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) {
|