Home
last modified time | relevance | path

Searched refs:SnoopLogger (Results 1 – 12 of 12) sorted by relevance

/system/bt/gd/hal/
Dsnoop_logger_test.cc53 using bluetooth::hal::SnoopLogger;
56 class TestSnoopLoggerModule : public SnoopLogger {
63 …: SnoopLogger(std::move(snoop_log_path), std::move(snooz_log_path), max_packets_per_file, btsnoop_… in TestSnoopLoggerModule()
114 temp_snoop_log_.string(), temp_snooz_log_.string(), 10, SnoopLogger::kBtSnoopLogModeFull); in TEST_F()
116 test_registry.InjectTestModule(&SnoopLogger::Factory, snoop_looger); in TEST_F()
122 ASSERT_EQ(std::filesystem::file_size(temp_snoop_log_), sizeof(SnoopLogger::FileHeaderType)); in TEST_F()
128 temp_snoop_log_.string(), temp_snooz_log_.string(), 10, SnoopLogger::kBtSnoopLogModeDisabled); in TEST_F()
130 test_registry.InjectTestModule(&SnoopLogger::Factory, snoop_looger); in TEST_F()
142 temp_snoop_log_.string(), temp_snooz_log_.string(), 10, SnoopLogger::kBtSnoopLogModeFull); in TEST_F()
144 test_registry.InjectTestModule(&SnoopLogger::Factory, snoop_looger); in TEST_F()
[all …]
Dhci_hal_android_hidl.cc67 …InternalHciCallbacks(activity_attribution::ActivityAttribution* btaa_logger_, SnoopLogger* btsnoop… in InternalHciCallbacks()
95 …btsnoop_logger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::Packe… in hciEventReceived()
97 btaa_logger_->Capture(received_hci_packet, SnoopLogger::PacketType::EVT); in hciEventReceived()
108 …btsnoop_logger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::Packe… in aclDataReceived()
110 btaa_logger_->Capture(received_hci_packet, SnoopLogger::PacketType::ACL); in aclDataReceived()
121 …btsnoop_logger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::Packe… in scoDataReceived()
123 btaa_logger_->Capture(received_hci_packet, SnoopLogger::PacketType::SCO); in scoDataReceived()
134 …btsnoop_logger_->Capture(received_hci_packet, SnoopLogger::Direction::INCOMING, SnoopLogger::Packe… in isoDataReceived()
145 SnoopLogger* btsnoop_logger_ = nullptr;
161 … btsnoop_logger_->Capture(command, SnoopLogger::Direction::OUTGOING, SnoopLogger::PacketType::CMD); in sendHciCommand()
[all …]
Dsnoop_logger.cc60 constexpr SnoopLogger::FileHeaderType kBtSnoopFileHeader = {
75 kDefaultBtSnoozMaxBytesPerPacket - sizeof(SnoopLogger::PacketHeaderType);
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()
162 const std::string SnoopLogger::kBtSnoopLogModeDisabled = "disabled";
163 const std::string SnoopLogger::kBtSnoopLogModeFiltered = "filtered";
[all …]
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()
310 list->add<SnoopLogger>(); in ListDependencies()
320 btsnoop_logger_ = GetDependency<SnoopLogger>(); in Start()
359 SnoopLogger* btsnoop_logger_ = nullptr;
425 …btsnoop_logger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketT… in incoming_packet_received()
454 …btsnoop_logger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketT… in incoming_packet_received()
478 …btsnoop_logger_->Capture(receivedHciPacket, SnoopLogger::Direction::INCOMING, SnoopLogger::PacketT… in incoming_packet_received()
[all …]
Dsnoop_logger.h31 class SnoopLogger : public ::bluetooth::Module {
95 SnoopLogger(
/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/gd/facade/
Dfacade_main.cc132 …::bluetooth::hal::SnoopLogger::kBtSnoopLogModeProperty, ::bluetooth::hal::SnoopLogger::kBtSnoopLog… in main()
/system/bt/gd/btaa/
Dactivity_attribution.h55 void Capture(const hal::HciPacket& packet, hal::SnoopLogger::PacketType type);
Dhci_processor.h52 …std::vector<BtaaHciPacket> OnHciPacket(hal::HciPacket packet, hal::SnoopLogger::PacketType type, u…
/system/bt/gd/rust/hal/src/
Dsnoop.rs142 let mut logger = SnoopLogger::new(config).await; in provide_snooped_hal()
217 struct SnoopLogger { struct
226 impl SnoopLogger { argument