Home
last modified time | relevance | path

Searched refs:packets (Results 1 – 25 of 62) sorted by relevance

123

/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dbeacon.cc64 auto ad = model::packets::LeAdvertisementBuilder::Create( in TimerTick()
66 model::packets::AddressType::PUBLIC, in TimerTick()
67 static_cast<model::packets::AdvertisementType>( in TimerTick()
70 std::shared_ptr<model::packets::LinkLayerPacketBuilder> to_send = in TimerTick()
77 void Beacon::IncomingPacket(model::packets::LinkLayerPacketView packet) { in IncomingPacket()
79 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
80 auto scan_response = model::packets::LeScanResponseBuilder::Create( in IncomingPacket()
82 model::packets::AddressType::PUBLIC, in IncomingPacket()
83 model::packets::AdvertisementType::SCAN_RESPONSE, in IncomingPacket()
85 std::shared_ptr<model::packets::LinkLayerPacketBuilder> to_send = in IncomingPacket()
Dremote_loopback_device.cc26 using model::packets::LinkLayerPacketBuilder;
27 using model::packets::LinkLayerPacketView;
28 using model::packets::PageResponseBuilder;
46 model::packets::LinkLayerPacketView packet) { in IncomingPacket()
51 model::packets::PacketType type = packet.GetType(); in IncomingPacket()
53 case model::packets::PacketType::PAGE: in IncomingPacket()
Dloopback.cc69 void Loopback::IncomingPacket(model::packets::LinkLayerPacketView packet) { in IncomingPacket()
72 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
75 auto scan_response = model::packets::LeScanResponseBuilder::Create( in IncomingPacket()
77 model::packets::AddressType::PUBLIC, in IncomingPacket()
78 model::packets::AdvertisementType::SCAN_RESPONSE, in IncomingPacket()
80 std::shared_ptr<model::packets::LinkLayerPacketBuilder> to_send = in IncomingPacket()
Dscripted_beacon.cc169 auto ad = model::packets::LeAdvertisementBuilder::Create( in TimerTick()
171 model::packets::AddressType::RANDOM, in TimerTick()
172 model::packets::AdvertisementType::ADV_NONCONN_IND, next_ad_.ad); in TimerTick()
197 model::packets::LinkLayerPacketView packet) { in IncomingPacket()
200 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
201 auto scan_response = model::packets::LeScanResponseBuilder::Create( in IncomingPacket()
203 static_cast<model::packets::AddressType>( in IncomingPacket()
205 model::packets::AdvertisementType::SCAN_RESPONSE, in IncomingPacket()
Ddevice.h80 virtual void IncomingPacket(model::packets::LinkLayerPacketView){}; in IncomingPacket()
83 std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet,
85 virtual void SendLinkLayerPacket(model::packets::LinkLayerPacketView packet,
Dsniffer.cc42 void Sniffer::IncomingPacket(model::packets::LinkLayerPacketView packet) { in IncomingPacket()
53 model::packets::PacketTypeText(packet.GetType()).c_str()); in IncomingPacket()
Dlink_layer_socket_device.h46 model::packets::LinkLayerPacketView packet) override;
60 std::vector<model::packets::LinkLayerPacketView> packet_queue_;
Dcar_kit.cc43 [this](std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet, in CarKit()
99 void CarKit::IncomingPacket(model::packets::LinkLayerPacketView packet) { in IncomingPacket()
Ddevice.cc59 std::shared_ptr<model::packets::LinkLayerPacketBuilder> to_send, in SendLinkLayerPacket()
68 void Device::SendLinkLayerPacket(model::packets::LinkLayerPacketView to_send, in SendLinkLayerPacket()
Dlink_layer_socket_device.cc59 auto packet = model::packets::LinkLayerPacketView::Create( in TimerTick()
67 model::packets::LinkLayerPacketView packet) { in IncomingPacket()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.h102 void IncomingPacket(model::packets::LinkLayerPacketView incoming);
129 std::shared_ptr<model::packets::LinkLayerPacketBuilder>, Phy::Type)>&
342 std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet);
344 std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet);
345 void IncomingAclPacket(model::packets::LinkLayerPacketView packet);
346 void IncomingDisconnectPacket(model::packets::LinkLayerPacketView packet);
347 void IncomingEncryptConnection(model::packets::LinkLayerPacketView packet);
349 model::packets::LinkLayerPacketView packet);
350 void IncomingInquiryPacket(model::packets::LinkLayerPacketView packet);
352 model::packets::LinkLayerPacketView packet);
[all …]
Dlink_layer_controller.cc30 using namespace model::packets;
31 using model::packets::PacketType;
48 std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet) { in SendLeLinkLayerPacket()
49 std::shared_ptr<model::packets::LinkLayerPacketBuilder> shared_packet = in SendLeLinkLayerPacket()
57 std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet) { in SendLinkLayerPacket()
58 std::shared_ptr<model::packets::LinkLayerPacketBuilder> shared_packet = in SendLinkLayerPacket()
71 model::packets::LeReadRemoteFeaturesBuilder::Create(local, remote)); in SendLeCommandToRemoteByAddress()
90 SendLinkLayerPacket(model::packets::ReadRemoteLmpFeaturesBuilder::Create( in SendCommandToRemoteByAddress()
92 SendLinkLayerPacket(model::packets::RemoteNameRequestBuilder::Create( in SendCommandToRemoteByAddress()
97 model::packets::ReadRemoteSupportedFeaturesBuilder::Create( in SendCommandToRemoteByAddress()
[all …]
Dle_advertiser.cc25 model::packets::AdvertisementType type, in Initialize()
41 model::packets::AdvertisementType type, in InitializeExtended()
57 type_ = model::packets::AdvertisementType::ADV_IND; in Clear()
99 std::unique_ptr<model::packets::LeAdvertisementBuilder>
115 return model::packets::LeAdvertisementBuilder::Create( in GetAdvertisement()
117 static_cast<model::packets::AddressType>(address_.GetAddressType()), in GetAdvertisement()
121 std::unique_ptr<model::packets::LeScanResponseBuilder>
141 return model::packets::LeScanResponseBuilder::Create( in GetScanResponse()
143 static_cast<model::packets::AddressType>(address_.GetAddressType()), in GetScanResponse()
144 model::packets::AdvertisementType::SCAN_RESPONSE, scan_response_); in GetScanResponse()
Dle_advertiser.h38 model::packets::AdvertisementType type,
46 model::packets::AdvertisementType type,
53 std::unique_ptr<model::packets::LeAdvertisementBuilder> GetAdvertisement(
56 std::unique_ptr<model::packets::LeScanResponseBuilder> GetScanResponse(
77 model::packets::AdvertisementType type_{};
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dphy_layer_factory.h42 const std::function<void(model::packets::LinkLayerPacketView)>&
56 std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet,
58 virtual void Send(model::packets::LinkLayerPacketView packet, uint32_t id);
70 const std::function<void(model::packets::LinkLayerPacketView)>&
76 std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet) override;
77 void Send(model::packets::LinkLayerPacketView packet) override;
78 void Receive(model::packets::LinkLayerPacketView packet) override;
Dphy_layer.h27 const std::function<void(model::packets::LinkLayerPacketView)>& in PhyLayer()
36 std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet) = 0;
37 virtual void Send(model::packets::LinkLayerPacketView packet) = 0;
39 virtual void Receive(model::packets::LinkLayerPacketView packet) = 0;
65 const std::function<void(model::packets::LinkLayerPacketView)>
Dphy_layer_factory.cc34 const std::function<void(model::packets::LinkLayerPacketView)>& in GetPhyLayer()
62 const std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet, in Send()
72 model::packets::LinkLayerPacketView::Create(packet_view); in Send()
78 void PhyLayerFactory::Send(model::packets::LinkLayerPacketView packet, in Send()
115 const std::function<void(model::packets::LinkLayerPacketView)>& in PhyLayerImpl()
124 const std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet) { in Send()
128 void PhyLayerImpl::Send(model::packets::LinkLayerPacketView packet) { in Send()
140 void PhyLayerImpl::Receive(model::packets::LinkLayerPacketView packet) { in Receive()
/system/bt/gd/l2cap/classic/cert/
Dl2cap_performance_test.py38 def _basic_mode_tx(self, mtu, packets): argument
46 for _ in range(packets):
49 L2capMatchers.Data(b'a' * mtu), at_least_times=packets, timeout=timedelta(seconds=60))
76 def _basic_mode_rx(self, mtu, packets): argument
83 for _ in range(packets):
86 … L2capMatchers.PacketPayloadRawData(data), at_least_times=packets, timeout=timedelta(seconds=60))
92 def _ertm_mode_tx(self, mtu, packets, tx_window_size=10): argument
97 packets = packets // tx_window_size * tx_window_size
110 for i in range(packets):
123 def _ertm_mode_rx(self, mtu, packets, tx_window_size=10): argument
[all …]
/system/bt/packet/tests/fuzzers/
DAndroid.bp32 "lib-bt-packets",
62 "lib-bt-packets",
92 "lib-bt-packets",
122 "lib-bt-packets",
152 "lib-bt-packets",
182 "lib-bt-packets",
212 "lib-bt-packets",
242 "lib-bt-packets",
272 "lib-bt-packets",
302 "lib-bt-packets",
[all …]
/system/bt/packet/
DAndroid.bp11 name: "lib-bt-packets",
19 "lib-bt-packets-base",
20 "lib-bt-packets-avrcp",
66 "lib-bt-packets",
/system/bt/profile/sdp/
DAndroid.bp24 "lib-bt-packets",
46 "lib-bt-packets",
/system/bt/profile/avrcp/
DAndroid.bp30 "lib-bt-packets",
66 "lib-bt-packets",
102 "lib-bt-packets",
/system/bt/packet/avrcp/
DAndroid.bp11 name: "lib-bt-packets-avrcp",
42 "lib-bt-packets-base",
/system/bt/vendor_libs/test_vendor_lib/test/
Dlink_layer_socket_device_test.cc40 using test_vendor_lib::packets::CommandBuilder;
41 using test_vendor_lib::packets::CommandView;
42 using test_vendor_lib::packets::LinkLayerPacketBuilder;
43 using test_vendor_lib::packets::LinkLayerPacketView;
44 using test_vendor_lib::packets::PacketView;
45 using test_vendor_lib::packets::View;
/system/netd/bpf_progs/
Dnetd.c110 uint64_t packets = 1; \
118 packets = (payload + mss - 1) / mss; \
119 bytes = tcp_overhead * packets + payload; \
122 __sync_fetch_and_add(&value->txPackets, packets); \
125 __sync_fetch_and_add(&value->rxPackets, packets); \

123