/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | NetworkTracePollerTest.cpp | 135 std::vector<PacketTrace> packets, unmatched; in TEST_F() local 144 packets.push_back(pkt); in TEST_F() 192 if (packets.size() >= 12) break; in TEST_F() 205 ASSERT_EQ(packets.size(), 12) in TEST_F() 206 << PacketPrinter{packets} in TEST_F() 210 EXPECT_THAT(packets, Each(Field(&PacketTrace::ipProto, Eq(IPPROTO_TCP)))); in TEST_F() 213 EXPECT_EQ(packets[0].egress, 1) << PacketPrinter{packets}; in TEST_F() 214 EXPECT_EQ(packets[0].dport, server_port) << PacketPrinter{packets}; in TEST_F() 215 EXPECT_EQ(packets[0].tag, kClientTag) << PacketPrinter{packets}; in TEST_F() 216 EXPECT_EQ(packets[0].tcpFlags, FlagToHost(TCP_FLAG_SYN)) in TEST_F() [all …]
|
D | NetworkTracePoller.cpp | 129 void NetworkTracePoller::TraceIfaces(const std::vector<PacketTrace>& packets) { in TraceIfaces() argument 130 if (packets.empty()) return; in TraceIfaces() 133 for (const PacketTrace& pkt : packets) { in TraceIfaces() 152 std::vector<PacketTrace> packets; in ConsumeAll() local 161 [&](const PacketTrace& pkt) { packets.push_back(pkt); }); in ConsumeAll() 168 ATRACE_INT("NetworkTracePackets", packets.size()); in ConsumeAll() 170 TraceIfaces(packets); in ConsumeAll() 171 mCallback(packets); in ConsumeAll()
|
/packages/modules/Bluetooth/tools/rootcanal/model/controller/ |
D | link_layer_controller.h | 147 void IncomingPacket(model::packets::LinkLayerPacketView incoming, int8_t rssi); 167 const std::function<void(std::shared_ptr<model::packets::LinkLayerPacketBuilder>, 600 void SendLinkLayerPacket(std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet, 602 void SendLeLinkLayerPacket(std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet, 605 void IncomingAclPacket(model::packets::LinkLayerPacketView incoming, int8_t rssi); 606 void IncomingScoPacket(model::packets::LinkLayerPacketView incoming); 607 void IncomingDisconnectPacket(model::packets::LinkLayerPacketView incoming); 608 void IncomingEncryptConnection(model::packets::LinkLayerPacketView incoming); 609 void IncomingEncryptConnectionResponse(model::packets::LinkLayerPacketView incoming); 610 void IncomingInquiryPacket(model::packets::LinkLayerPacketView incoming, uint8_t rssi); [all …]
|
D | link_layer_controller.cc | 54 using namespace model::packets; 452 SendLeLinkLayerPacket(model::packets::LlPhyReqBuilder::Create( in LeSetPhy() 479 void LinkLayerController::IncomingLlPhyReq(model::packets::LinkLayerPacketView incoming) { in IncomingLlPhyReq() 480 auto phy_req = model::packets::LlPhyReqView::Create(incoming); in IncomingLlPhyReq() 495 SendLeLinkLayerPacket(model::packets::LlPhyRspBuilder::Create( in IncomingLlPhyReq() 517 SendLeLinkLayerPacket(model::packets::LlPhyUpdateIndBuilder::Create( in IncomingLlPhyReq() 536 void LinkLayerController::IncomingLlPhyRsp(model::packets::LinkLayerPacketView incoming) { in IncomingLlPhyRsp() 537 auto phy_rsp = model::packets::LlPhyRspView::Create(incoming); in IncomingLlPhyRsp() 565 SendLeLinkLayerPacket(model::packets::LlPhyUpdateIndBuilder::Create( in IncomingLlPhyRsp() 583 void LinkLayerController::IncomingLlPhyUpdateInd(model::packets::LinkLayerPacketView incoming) { in IncomingLlPhyUpdateInd() [all …]
|
D | le_advertiser.cc | 1606 model::packets::LegacyAdvertisingType type; in LeAdvertising() 1610 type = model::packets::LegacyAdvertisingType::ADV_IND; in LeAdvertising() 1615 type = model::packets::LegacyAdvertisingType::ADV_DIRECT_IND; in LeAdvertising() 1618 type = model::packets::LegacyAdvertisingType::ADV_SCAN_IND; in LeAdvertising() 1621 type = model::packets::LegacyAdvertisingType::ADV_NONCONN_IND; in LeAdvertising() 1625 SendLeLinkLayerPacket(model::packets::LeLegacyAdvertisingPduBuilder::Create( in LeAdvertising() 1628 static_cast<model::packets::AddressType>( in LeAdvertising() 1630 static_cast<model::packets::AddressType>( in LeAdvertising() 1717 model::packets::LegacyAdvertisingType type; in LeAdvertising() 1724 type = model::packets::LegacyAdvertisingType::ADV_IND; in LeAdvertising() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/test/controller/le/ |
D | le_scanning_filter_duplicates_test.cc | 88 static model::packets::LinkLayerPacketView LeScanResponse(std::vector<uint8_t> const data = {}) { in LeScanResponse() 89 return FromBuilder(model::packets::LeScanResponseBuilder::Create( 90 Address::kEmpty, Address::kEmpty, model::packets::AddressType::PUBLIC, data)); 94 static model::packets::LinkLayerPacketView LeLegacyAdvertisingPdu( in LeLegacyAdvertisingPdu() 96 return FromBuilder(model::packets::LeLegacyAdvertisingPduBuilder::Create( 97 Address::kEmpty, Address::kEmpty, model::packets::AddressType::PUBLIC, 98 model::packets::AddressType::PUBLIC, model::packets::LegacyAdvertisingType::ADV_IND, 103 static model::packets::LinkLayerPacketView LeExtendedAdvertisingPdu( in LeExtendedAdvertisingPdu() 105 return FromBuilder(model::packets::LeExtendedAdvertisingPduBuilder::Create( 106 Address::kEmpty, Address::kEmpty, model::packets::AddressType::PUBLIC, [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsMultinetworkSocketClient.java | 224 private void sendMdnsPackets(@NonNull List<DatagramPacket> packets, in sendMdnsPackets() argument 231 if (packets.isEmpty()) { in sendMdnsPackets() 236 if (!MdnsUtils.checkAllPacketsWithSameAddress(packets)) { in sendMdnsPackets() 238 + CollectionUtils.map(packets, DatagramPacket::getSocketAddress)); in sendMdnsPackets() 242 final boolean isIpv6 = ((InetSocketAddress) packets.get(0).getSocketAddress()) in sendMdnsPackets() 244 final boolean isIpv4 = ((InetSocketAddress) packets.get(0).getSocketAddress()) in sendMdnsPackets() 251 for (DatagramPacket packet : packets) { in sendMdnsPackets() 284 public void sendPacketRequestingMulticastResponse(@NonNull List<DatagramPacket> packets, in sendPacketRequestingMulticastResponse() argument 286 mHandler.post(() -> sendMdnsPackets(packets, socketKey, onlyUseIpv6OnIpv6OnlyNetworks)); in sendPacketRequestingMulticastResponse() 291 @NonNull List<DatagramPacket> packets, boolean onlyUseIpv6OnIpv6OnlyNetworks) { in sendPacketRequestingMulticastResponse() [all …]
|
D | MdnsSocketClient.java | 212 public void sendPacketRequestingMulticastResponse(@NonNull List<DatagramPacket> packets, in sendPacketRequestingMulticastResponse() argument 214 sendMdnsPackets(packets, multicastPacketQueue, onlyUseIpv6OnIpv6OnlyNetworks); in sendPacketRequestingMulticastResponse() 218 public void sendPacketRequestingUnicastResponse(@NonNull List<DatagramPacket> packets, in sendPacketRequestingUnicastResponse() argument 221 sendMdnsPackets(packets, unicastPacketQueue, onlyUseIpv6OnIpv6OnlyNetworks); in sendPacketRequestingUnicastResponse() 223 sendMdnsPackets(packets, multicastPacketQueue, onlyUseIpv6OnIpv6OnlyNetworks); in sendPacketRequestingUnicastResponse() 244 private void sendMdnsPackets(List<DatagramPacket> packets, in sendMdnsPackets() argument 250 if (packets.isEmpty()) { in sendMdnsPackets() 255 if (!MdnsUtils.checkAllPacketsWithSameAddress(packets)) { in sendMdnsPackets() 257 + CollectionUtils.map(packets, DatagramPacket::getSocketAddress)); in sendMdnsPackets() 261 final boolean isIpv4 = ((InetSocketAddress) packets.get(0).getSocketAddress()) in sendMdnsPackets() [all …]
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | Android.bp | 30 "lib-bt-packets", 73 "lib-bt-packets", 74 "lib-bt-packets-avrcp", 75 "lib-bt-packets-base", 120 "lib-bt-packets", 121 "lib-bt-packets-avrcp", 122 "lib-bt-packets-base",
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/ |
D | RtcpXrEncoder.cpp | 139 bool RtcpXrEncoder::createRtcpXrReport(const uint32_t rtcpXrReport, std::list<RtpPacket*>* packets, in createRtcpXrReport() argument 154 tLossReport* lossReport = createLossAnalysisReport(packets, lostPackets, beginSeq, endSeq); in createRtcpXrReport() 155 tJitterReport* jitterReport = createJitterAnalysisReport(packets, beginSeq, endSeq); in createRtcpXrReport() 156 tTTLReport* ttlReport = createTTLAnalysisReport(packets, beginSeq, endSeq); in createRtcpXrReport() 158 createDuplicateAnalysisReport(packets, beginSeq, endSeq); in createRtcpXrReport() 203 tLossReport* RtcpXrEncoder::createLossAnalysisReport(std::list<RtpPacket*>* packets, in createLossAnalysisReport() argument 212 for (const auto& packet : *packets) in createLossAnalysisReport() 244 std::list<RtpPacket*>* packets, uint16_t beginSeq, uint16_t endSeq) in createJitterAnalysisReport() argument 256 for (const auto& packet : *packets) in createJitterAnalysisReport() 293 std::list<RtpPacket*>* packets, uint16_t beginSeq, uint16_t endSeq) in createTTLAnalysisReport() argument [all …]
|
/packages/modules/Bluetooth/system/packet/ |
D | Android.bp | 11 name: "lib-bt-packets", 19 "lib-bt-packets-avrcp", 20 "lib-bt-packets-base", 77 "lib-bt-packets", 78 "lib-bt-packets-avrcp", 79 "lib-bt-packets-base",
|
/packages/modules/adb/ |
D | types_test.cpp | 259 static std::vector<Block> packets_to_blocks(const std::vector<apacket>& packets) { in packets_to_blocks() argument 261 for (auto& p : packets) { in packets_to_blocks() 279 auto packets = reader.get_packets(); in TEST() local 280 ASSERT_EQ(packets.size(), (size_t)0); in TEST() 477 std::vector<apacket> packets; in chainSaw() local 478 packets.emplace_back(make_packet(A_CNXN)); in chainSaw() 479 packets.emplace_back(make_packet(A_OKAY, "12345")); in chainSaw() 480 packets.emplace_back(make_packet(A_WRTE, "6890")); in chainSaw() 481 packets.emplace_back(make_packet(A_CNXN)); in chainSaw() 482 packets.emplace_back(make_packet(A_AUTH, "abc")); in chainSaw() [all …]
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/ |
D | StructXfrmLifetimeCur.java | 48 public final BigInteger packets; field in StructXfrmLifetimeCur 58 @NonNull final BigInteger packets, in StructXfrmLifetimeCur() argument 62 this.packets = packets; in StructXfrmLifetimeCur()
|
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ |
D | ClatIngress6Value.java | 34 public final long packets; // Count of translated gso (large) packets field in ClatIngress6Value 39 public ClatIngress6Value(final int oif, final Inet4Address local4, final long packets, in ClatIngress6Value() argument 43 this.packets = packets; in ClatIngress6Value()
|
D | ClatEgress4Value.java | 40 public final long packets; // Count of translated gso (large) packets field in ClatEgress4Value 46 final short oifIsEthernet, final long packets, final long bytes) { in ClatEgress4Value() argument 51 this.packets = packets; in ClatEgress4Value()
|
/packages/modules/Bluetooth/tools/rootcanal/model/devices/ |
D | baseband_sniffer.cc | 92 void BaseBandSniffer::ReceiveLinkLayerPacket(model::packets::LinkLayerPacketView packet, in ReceiveLinkLayerPacket() 125 if (packet_type == model::packets::PacketType::PAGE) { in ReceiveLinkLayerPacket() 126 auto page_view = model::packets::PageView::Create(packet); in ReceiveLinkLayerPacket() 146 } else if (packet_type == model::packets::PacketType::LMP) { in ReceiveLinkLayerPacket() 147 auto lmp_view = model::packets::LmpView::Create(packet); in ReceiveLinkLayerPacket()
|
D | sniffer.cc | 39 void Sniffer::ReceiveLinkLayerPacket(model::packets::LinkLayerPacketView packet, Phy::Type /*type*/, in ReceiveLinkLayerPacket() 43 model::packets::PacketType packet_type = packet.GetType(); in ReceiveLinkLayerPacket() 52 model::packets::PacketTypeText(packet_type)); in ReceiveLinkLayerPacket()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/util/ |
D | MdnsUtilsTest.kt | 108 val packets = createQueryDatagramPackets( in <lambda>() constant 113 assertEquals(5, packets.size) in <lambda>() 114 assertTrue(packets.all { packet -> packet.length < bufferSize }) in <lambda>() 116 val mdnsPacket = createMdnsPacketFromMultipleDatagramPackets(packets) in <lambda>() 123 packets: List<DatagramPacket> in <lambda>() 128 for ((index, packet) in packets.withIndex()) { in <lambda>() 130 if (index != packets.size - 1) { in <lambda>()
|
/packages/modules/Bluetooth/tools/rootcanal/ |
D | Android.bp | 183 // packets/link_layer_packets.pdl. 191 "packets/link_layer_packets.pdl", 223 "packets/hci_packets.pdl", 410 "packets/hci_packets.pdl", 413 "packets/hci_packets.h", 426 " --namespace model::packets" + 431 "packets/link_layer_packets.pdl", 434 "packets/link_layer_packets.h", 441 srcs: ["packets/link_layer_packets.pdl"], 459 "packets/bredr_bb.pdl", [all …]
|
D | CMakeLists.txt | 112 INPUT ${ROOTCANAL_ROOT}/packets/hci_packets.pdl 113 OUTPUT packets/hci_packets.h 120 INPUT ${ROOTCANAL_ROOT}/packets/link_layer_packets.pdl 121 OUTPUT packets/link_layer_packets.h 123 NAMESPACE model::packets 129 INPUT ${ROOTCANAL_ROOT}/packets/link_layer_packets.pdl
|
D | README.md | 54 base-band packets exchanged between connection HCI hosts. The PCAP traces are 79 The physical channels use a custom protocol described in [packets/link_layer_packets.pdl](packets/l… 80 The protocol simplifies the LL and LMP protocol packets defined in the Bluetooth 86 Controllers can exchanges link layer packets only when they are part of the
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/audio/ |
D | RtcpXrEncoder.h | 200 bool createRtcpXrReport(const uint32_t nRtcpXrReport, std::list<RtpPacket*>* packets, 205 tLossReport* createLossAnalysisReport(std::list<RtpPacket*>* packets, 208 std::list<RtpPacket*>* packets, uint16_t beginSeq, uint16_t endSeq); 210 std::list<RtpPacket*>* packets, uint16_t beginSeq, uint16_t endSeq); 212 std::list<RtpPacket*>* packets, uint16_t beginSeq, uint16_t endSeq);
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/ |
D | features.rs | 18 use crate::packets::lmp; 67 feature: crate::packets::hci::LMPFeaturesPage1Bits, in supported_on_both_page1() 74 feature: crate::packets::hci::LMPFeaturesPage2Bits, in supported_on_both_page2()
|
/packages/modules/Bluetooth/system/btif/ |
D | Android.bp | 169 "lib-bt-packets", 170 "lib-bt-packets-avrcp", 171 "lib-bt-packets-base", 522 "lib-bt-packets", 523 "lib-bt-packets-avrcp", 524 "lib-bt-packets-base", 644 "lib-bt-packets", 645 "lib-bt-packets-avrcp", 646 "lib-bt-packets-base",
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/test/ |
D | sequence.rs | 20 use crate::packets::lmp::*; 40 use crate::packets::hci::*; 60 use crate::packets::hci::*; 78 use crate::packets::lmp::*;
|