/packages/modules/NetworkStack/tests/unit/src/android/net/util/ |
D | ConnectivityPacketSummaryTest.java | 50 final String packet = in testParseICMPv6DADProbe() local 72 final String packet = in testParseICMPv6RS() local 94 final String packet = in testParseICMPv6RA() local 127 final String packet = in testParseICMPv6NS() local 150 final String packet = in testInvalidICMPv6NDLength() local 175 final String packet = in testParseICMPv6NA() local 196 final String packet = in testParseARPRequest() local 215 final String packet = in testParseARPReply() local 236 final String packet = in testParseDHCPv4Discover() local 282 final String packet = in testParseDHCPv4Offer() local [all …]
|
/packages/modules/Bluetooth/system/gd/security/pairing/ |
D | classic_pairing_handler.cc | 166 void ClassicPairingHandler::OnReceive(hci::ChangeConnectionLinkKeyCompleteView packet) { in OnReceive() 171 void ClassicPairingHandler::OnReceive(hci::CentralLinkKeyCompleteView packet) { in OnReceive() 176 void ClassicPairingHandler::OnReceive(hci::PinCodeRequestView packet) { in OnReceive() 184 void ClassicPairingHandler::OnReceive(hci::LinkKeyRequestView packet) { in OnReceive() 206 void ClassicPairingHandler::OnReceive(hci::LinkKeyNotificationView packet) { in OnReceive() 221 void ClassicPairingHandler::OnReceive(hci::IoCapabilityRequestView packet) { in OnReceive() 237 void ClassicPairingHandler::OnReceive(hci::IoCapabilityResponseView packet) { in OnReceive() 302 void ClassicPairingHandler::OnReceive(hci::SimplePairingCompleteView packet) { in OnReceive() 314 void ClassicPairingHandler::OnReceive(hci::ReturnLinkKeysView packet) { in OnReceive() 319 void ClassicPairingHandler::OnReceive(hci::EncryptionChangeView packet) { in OnReceive() [all …]
|
/packages/modules/Bluetooth/system/packet/tests/base/ |
D | iterator_test.cc | 59 auto packet = in TEST_F() local 71 auto packet = TestPacket::Make(test_l2cap_data); in TEST_F() local 81 auto packet = TestPacket::Make(test_l2cap_data); in TEST_F() local 91 auto packet = GetTestPacket(); in TEST_P() local 102 auto packet = GetTestPacket(); in TEST_P() local 119 auto packet = GetTestPacket(); in TEST_P() local 136 auto packet = GetTestPacket(); in TEST_P() local 149 auto packet = GetTestPacket(); in TEST_P() local 162 auto packet = GetTestPacket(); in TEST_P() local 172 auto packet = GetTestPacket(); in TEST_P() local [all …]
|
D | packet_test.cc | 31 auto packet = TestPacket::Make( in TEST() local 46 auto packet = TestPacket::Make(test_avctp_data); in TEST() local 56 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local 70 auto packet = in TEST() local 81 auto packet = TestPacket::Make( in TEST() local 103 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local 118 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | matchers.py | 201 def LoopbackOf(packet): argument 205 def Exactly(packet): argument 238 def _is_matching_inquiry_result(packet, address): argument 253 def _is_matching_inquiry_result_with_rssi(packet, address): argument 268 def _is_matching_extended_inquiry_result(packet, address): argument 424 def _basic_frame(packet): argument 430 def _basic_frame_with_fcs(packet): argument 436 def _basic_frame_for(packet, scid): argument 443 def _basic_frame_with_fcs_for(packet, scid): argument 453 def _information_frame(packet): argument [all …]
|
D | captures.py | 126 def _extract_connection_request(packet): argument 135 def _extract_connection_response(packet): argument 144 def _extract_configuration_request(packet): argument 154 def _extract_credit_based_connection_request(packet): argument 164 def _extract_credit_based_connection_response(packet): argument 173 def _extract_address(packet): argument
|
/packages/modules/Bluetooth/system/gd/security/channel/ |
D | security_manager_channel_unittest.cc | 88 void OnReceive(hci::AddressWithType device, hci::ChangeConnectionLinkKeyCompleteView packet) { in OnReceive() 92 void OnReceive(hci::AddressWithType device, hci::CentralLinkKeyCompleteView packet) { in OnReceive() 96 void OnReceive(hci::AddressWithType device, hci::PinCodeRequestView packet) { in OnReceive() 100 void OnReceive(hci::AddressWithType device, hci::LinkKeyRequestView packet) { in OnReceive() 104 void OnReceive(hci::AddressWithType device, hci::LinkKeyNotificationView packet) { in OnReceive() 108 void OnReceive(hci::AddressWithType device, hci::IoCapabilityRequestView packet) { in OnReceive() 112 void OnReceive(hci::AddressWithType device, hci::IoCapabilityResponseView packet) { in OnReceive() 116 void OnReceive(hci::AddressWithType device, hci::SimplePairingCompleteView packet) { in OnReceive() 120 void OnReceive(hci::AddressWithType device, hci::ReturnLinkKeysView packet) { in OnReceive() 124 void OnReceive(hci::AddressWithType device, hci::EncryptionChangeView packet) { in OnReceive() [all …]
|
/packages/modules/Bluetooth/system/gd/neighbor/ |
D | inquiry.cc | 109 auto packet = hci::InquiryCancelCompleteView::Create(view); in OnCommandComplete() local 115 auto packet = hci::PeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete() local 121 auto packet = hci::ExitPeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete() local 127 auto packet = hci::WriteInquiryModeCompleteView::Create(view); in OnCommandComplete() local 133 auto packet = hci::ReadInquiryModeCompleteView::Create(view); in OnCommandComplete() local 140 auto packet = hci::ReadInquiryResponseTransmitPowerLevelCompleteView::Create(view); in OnCommandComplete() local 147 auto packet = hci::WriteInquiryScanActivityCompleteView::Create(view); in OnCommandComplete() local 153 auto packet = hci::ReadInquiryScanActivityCompleteView::Create(view); in OnCommandComplete() local 161 auto packet = hci::WriteInquiryScanTypeCompleteView::Create(view); in OnCommandComplete() local 167 auto packet = hci::ReadInquiryScanTypeCompleteView::Create(view); in OnCommandComplete() local [all …]
|
D | page.cc | 66 auto packet = hci::WritePageScanActivityCompleteView::Create(view); in OnCommandComplete() local 72 auto packet = hci::ReadPageScanActivityCompleteView::Create(view); in OnCommandComplete() local 80 auto packet = hci::WritePageScanTypeCompleteView::Create(view); in OnCommandComplete() local 86 auto packet = hci::ReadPageScanTypeCompleteView::Create(view); in OnCommandComplete() local 93 auto packet = hci::WritePageTimeoutCompleteView::Create(view); in OnCommandComplete() local 99 auto packet = hci::ReadPageTimeoutCompleteView::Create(view); in OnCommandComplete() local
|
D | scan.cc | 66 auto packet = hci::ReadScanEnableCompleteView::Create(view); in OnCommandComplete() local 73 auto packet = hci::WriteScanEnableCompleteView::Create(view); in OnCommandComplete() local 98 …std::unique_ptr<hci::WriteScanEnableBuilder> packet = hci::WriteScanEnableBuilder::Create(scan_ena… in WriteScanEnable() local 103 std::unique_ptr<hci::ReadScanEnableBuilder> packet = hci::ReadScanEnableBuilder::Create(); in WriteScanEnable() local 154 std::unique_ptr<hci::ReadScanEnableBuilder> packet = hci::ReadScanEnableBuilder::Create(); in Start() local
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 178 ByteBuffer packet = new TestDhcpPacket(DHCP_MESSAGE_TYPE_OFFER) in assertDomainAndVendorInfoParses() local 224 ByteBuffer packet = testPacket.build(); in assertLeaseTimeParses() local 279 ByteBuffer packet = new TestDhcpPacket(type, clientIp, yourIp) in checkIpAddress() local 346 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1() local 379 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2() local 414 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runCapportOptionTest() local 459 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testCapportOption_Invalid() local 496 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runIPv6OnlyPreferredOption() local 733 private void checkMtu(ByteBuffer packet, int expectedMtu, byte[] mtuBytes) throws Exception { in checkMtu() 750 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testMtu() local [all …]
|
D | DhcpServerTest.java | 248 final DhcpOfferPacket packet = assertOffer(getPacket()); in testDiscover() local 267 final DhcpAckPacket packet = assertAck(getPacket()); in testDiscover_RapidCommit() local 286 final DhcpNakPacket packet = assertNak(getPacket()); in testDiscover_OutOfAddresses() local 315 final DhcpAckPacket packet = assertAck(getPacket()); in testRequest_Selecting_Ack() local 333 final DhcpNakPacket packet = assertNak(getPacket()); in testRequest_Selecting_Nak() local 441 final DhcpOfferPacket packet = assertOffer(getPacket()); in testChangePrefixOnDecline() local 451 private void assertMatchesLease(@NonNull DhcpPacket packet, @NonNull Inet4Address srvAddr, in assertMatchesLease() 462 private void assertMatchesTestLease(@NonNull DhcpPacket packet, @Nullable String hostname) { in assertMatchesTestLease() 466 private void assertMatchesTestLease(@NonNull DhcpPacket packet) { in assertMatchesTestLease() 470 private void assertMatchesClient(@NonNull DhcpPacket packet) { in assertMatchesClient() [all …]
|
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/ |
D | TetheringTester.java | 124 ByteBuffer packet = DhcpPacket.buildDiscoverPacket(DhcpPacket.ENCAP_L2, in sendDhcpDiscover() local 136 ByteBuffer packet = DhcpPacket.buildRequestPacket(DhcpPacket.ENCAP_L2, in sendDhcpRequest() local 161 private ArpPacket parseArpPacket(final byte[] packet) { in parseArpPacket() 169 private void maybeReplyArp(byte[] packet) { in maybeReplyArp() 219 public void sendPacket(ByteBuffer packet) throws Exception { in sendPacket() 234 public void verifyUpload(final RemoteResponder dst, final ByteBuffer packet, in verifyUpload() 246 public void sendPacket(ByteBuffer packet) throws Exception { in sendPacket() 254 public void verifyDownload(final TetheringTester dst, final ByteBuffer packet, in verifyDownload()
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | acl_manager_test.cc | 394 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in SetUp() local 479 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 523 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION_CANCEL); in TEST_F() local 556 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 587 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 736 auto packet = GetConnectionManagementCommand(OpCode::DISCONNECT); in TEST_F() local 766 auto packet = GetConnectionManagementCommand(OpCode::SWITCH_ROLE); in TEST_F() local 781 auto packet = GetConnectionManagementCommand(OpCode::WRITE_DEFAULT_LINK_POLICY_SETTINGS); in TEST_F() local 796 auto packet = GetConnectionManagementCommand(OpCode::AUTHENTICATION_REQUESTED); in TEST_F() local 808 auto packet = GetConnectionManagementCommand(OpCode::READ_CLOCK_OFFSET); in TEST_F() local [all …]
|
D | le_address_manager_test.cc | 33 …et::PacketView<packet::kLittleEndian> GetPacketView(std::unique_ptr<packet::BasePacketBuilder> pac… in GetPacketView() 102 auto packet = GetPacketView(std::move(event_builder)); in IncomingEvent() local 347 auto packet = test_hci_layer_->GetCommand(OpCode::LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST); in TEST_F() local 368 auto packet = test_hci_layer_->GetCommand(OpCode::LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST); in TEST_F() local 404 auto packet = test_hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 412 auto packet = test_hci_layer_->GetCommand(OpCode::LE_ADD_DEVICE_TO_RESOLVING_LIST); in TEST_F() local 423 auto packet = test_hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 453 auto packet = test_hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 461 auto packet = test_hci_layer_->GetCommand(OpCode::LE_REMOVE_DEVICE_FROM_RESOLVING_LIST); in TEST_F() local 470 auto packet = test_hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/devices/ |
D | hci_device.cc | 55 RegisterEventChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 58 RegisterAclChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 61 RegisterScoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 64 RegisterIsoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
|
/packages/modules/Bluetooth/tools/rootcanal/model/hci/ |
D | hci_sniffer.cc | 41 const std::vector<uint8_t>& packet) { in AppendRecord() 94 void HciSniffer::SendEvent(const std::vector<uint8_t>& packet) { in SendEvent() 99 void HciSniffer::SendAcl(const std::vector<uint8_t>& packet) { in SendAcl() 104 void HciSniffer::SendSco(const std::vector<uint8_t>& packet) { in SendSco() 109 void HciSniffer::SendIso(const std::vector<uint8_t>& packet) { in SendIso()
|
D | hci_socket_transport.cc | 63 const std::vector<uint8_t>& packet) { in SendHci() 73 void HciSocketTransport::SendEvent(const std::vector<uint8_t>& packet) { in SendEvent() 77 void HciSocketTransport::SendAcl(const std::vector<uint8_t>& packet) { in SendAcl() 81 void HciSocketTransport::SendSco(const std::vector<uint8_t>& packet) { in SendSco() 85 void HciSocketTransport::SendIso(const std::vector<uint8_t>& packet) { in SendIso()
|
/packages/modules/Bluetooth/system/profile/sdp/common/test/ |
D | data_element_reader_test.cc | 76 auto packet = ReaderPacket::Make(std::move(payload)); in CreateReader() local 194 auto packet = ReaderPacket::Make(std::get<0>(GetParam())); in TEST_P() local 221 auto packet = ReaderPacket::Make(payload); in TEST() local 252 auto packet = ReaderPacket::Make({}); in TEST() local 260 auto packet = ReaderPacket::Make({0xFF}); in TEST() local 400 auto packet = ReaderPacket::Make(GetParam()); in TEST_P() local 408 auto packet = ReaderPacket::Make({0x00, 0x00, 0x00, 0x00}); in TEST() local
|
/packages/modules/adb/ |
D | transport_benchmark.cpp | 67 … server->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Unidirectional() 82 std::unique_ptr<apacket> packet = std::make_unique<apacket>(); in BM_Connection_Unidirectional() local 124 … client->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Echo() 129 static const auto handle_packet = [](Connection* connection, std::unique_ptr<apacket> packet) { in BM_Connection_Echo() 133 server->SetReadCallback([](Connection* connection, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Echo() 137 std::unique_ptr<apacket> packet(raw_packet); in BM_Connection_Echo() local 156 std::unique_ptr<apacket> packet = std::make_unique<apacket>(); in BM_Connection_Echo() local
|
/packages/modules/Bluetooth/system/gd/packet/ |
D | raw_builder_unittest.cc | 38 namespace packet { namespace 60 std::vector<uint8_t> packet; in TEST() local 81 std::vector<uint8_t> packet; in TEST() local 103 std::vector<uint8_t> packet; in TEST() local
|
/packages/modules/Bluetooth/system/gd/hal/fuzz/ |
D | fuzz_hci_hal.h | 33 void sendAclData(HciPacket packet) override {} in sendAclData() 34 void sendScoData(HciPacket packet) override {} in sendScoData() 35 void sendIsoData(HciPacket packet) override {} in sendIsoData()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTest.java | 171 private void assertVerdict(int expected, byte[] program, byte[] packet, int filterAge) { in assertVerdict() 175 private void assertVerdict(int expected, byte[] program, byte[] packet) { in assertVerdict() 179 private void assertPass(byte[] program, byte[] packet, int filterAge) { in assertPass() 183 private void assertPass(byte[] program, byte[] packet) { in assertPass() 187 private void assertDrop(byte[] program, byte[] packet, int filterAge) { in assertDrop() 191 private void assertDrop(byte[] program, byte[] packet) { in assertDrop() 205 int expected, byte[] program, byte[] packet, byte[] data, byte[] expected_data) in assertDataMemoryContents() 218 private void assertVerdict(int expected, ApfGenerator gen, byte[] packet, int filterAge) in assertVerdict() 224 private void assertPass(ApfGenerator gen, byte[] packet, int filterAge) in assertPass() 229 private void assertDrop(ApfGenerator gen, byte[] packet, int filterAge) in assertDrop() [all …]
|
/packages/modules/Bluetooth/system/stack/test/a2dp/ |
D | a2dp_vendor_ldac_decoder_test.cc | 33 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data() 51 auto packet = AllocatePacket(data.size()); in AllocateL2capPacket() local 58 BT_HDR* packet = in AllocatePacket() local
|
/packages/modules/Bluetooth/tools/rootcanal/model/setup/ |
D | phy_layer_factory.cc | 59 const std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet, in Send() 75 void PhyLayerFactory::Send(model::packets::LinkLayerPacketView packet, in Send() 120 const std::shared_ptr<model::packets::LinkLayerPacketBuilder> packet) { in Send() 124 void PhyLayerImpl::Send(model::packets::LinkLayerPacketView packet) { in Send() 134 void PhyLayerImpl::Receive(model::packets::LinkLayerPacketView packet) { in Receive()
|