| /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 | 169 void ClassicPairingHandler::OnReceive(hci::ChangeConnectionLinkKeyCompleteView packet) { in OnReceive() 174 void ClassicPairingHandler::OnReceive(hci::CentralLinkKeyCompleteView packet) { in OnReceive() 179 void ClassicPairingHandler::OnReceive(hci::PinCodeRequestView packet) { in OnReceive() 190 void ClassicPairingHandler::OnReceive(hci::LinkKeyRequestView packet) { in OnReceive() 212 void ClassicPairingHandler::OnReceive(hci::LinkKeyNotificationView packet) { in OnReceive() 227 void ClassicPairingHandler::OnReceive(hci::IoCapabilityRequestView packet) { in OnReceive() 243 void ClassicPairingHandler::OnReceive(hci::IoCapabilityResponseView packet) { in OnReceive() 308 void ClassicPairingHandler::OnReceive(hci::SimplePairingCompleteView packet) { in OnReceive() 320 void ClassicPairingHandler::OnReceive(hci::ReturnLinkKeysView packet) { in OnReceive() 325 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 | 215 def LoopbackOf(packet): argument 219 def Exactly(packet): argument 252 def _is_matching_inquiry_result(packet, address): argument 263 def _is_matching_inquiry_result_with_rssi(packet, address): argument 274 def _is_matching_extended_inquiry_result(packet, address): argument 427 def _basic_frame(packet): argument 433 def _basic_frame_with_fcs(packet): argument 439 def _basic_frame_for(packet, scid): argument 446 def _basic_frame_with_fcs_for(packet, scid): argument 456 def _information_frame(packet): argument [all …]
|
| D | captures.py | 109 def _extract_connection_request(packet): argument 118 def _extract_connection_response(packet): argument 127 def _extract_configuration_request(packet): argument 137 def _extract_credit_based_connection_request(packet): argument 147 def _extract_credit_based_connection_response(packet): argument 156 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
|
| /packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
| D | MdnsSocketClientTests.java | 140 DatagramPacket packet = invocationOnMock.getArgument(0); in setup() local 191 DatagramPacket packet = invocationOnMock.getArgument(0); in setup() local 223 DatagramPacket packet = new DatagramPacket(buf, 0, 5); in testSendPackets_useSeparateSocketForUnicast() local 274 DatagramPacket packet = new DatagramPacket(buf, 0, 5); in testSendPackets_useSameSocketForMulticastAndUnicast() local 396 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSeparateSocketForUnicast() local 405 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSeparateSocketForUnicast() local 427 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSameSocketForMulticastAndUnicast() local 454 DatagramPacket packet = new DatagramPacket(buf, 0, 5); in testMulticastResponseIsNotReceived() local
|
| D | MdnsRecordTests.java | 67 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testInet4AddressRecord() local 101 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTypeAAAInet6AddressRecord() local 138 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTypeAAAInet4AddressRecord() local 180 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testPointerRecord() local 217 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testServiceRecord() local 254 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testAnyRecord() local 298 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testNsecRecord() local 337 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTextRecord() local 378 final DatagramPacket packet = writer.getPacket(MULTICAST_IPV4_ADDRESS); in toHex() local 392 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in textRecord_recordDoesNotHaveDataOfGivenLength_throwsEOFException() local [all …]
|
| D | MdnsRecordRepositoryTest.kt | 99 val packet = probingInfo.getPacket(0) in testAddServiceAndProbe() constant 164 val packet = exitAnnouncement.getPacket(0) in testExitAnnouncements() constant 193 val packet = exitAnnouncement.getPacket(0) in testExitAnnouncements_WithSubtype() constant 240 val packet = announcementInfo.getPacket(0) in testOnProbingSucceeded() constant 470 val packet = MdnsPacket( in testGetConflictingServices() constant 499 val packet = MdnsPacket( in testGetConflictingServices_IdenticalService() constant
|
| /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/Bluetooth/system/gd/hci/ |
| D | acl_manager_test.cc | 383 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in SetUp() local 474 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 519 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION_CANCEL); in TEST_F() local 552 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 594 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 808 auto packet = GetConnectionManagementCommand(OpCode::DISCONNECT); in TEST_F() local 838 auto packet = GetConnectionManagementCommand(OpCode::SWITCH_ROLE); in TEST_F() local 853 auto packet = GetConnectionManagementCommand(OpCode::WRITE_DEFAULT_LINK_POLICY_SETTINGS); in TEST_F() local 868 auto packet = GetConnectionManagementCommand(OpCode::AUTHENTICATION_REQUESTED); in TEST_F() local 880 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 | 56 RegisterEventChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 59 RegisterAclChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 62 RegisterScoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 65 RegisterIsoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
|
| /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/tools/rootcanal/model/hci/ |
| 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()
|
| D | hci_sniffer.cc | 47 const std::vector<uint8_t>& packet) { in AppendRecord() 115 void HciSniffer::SendEvent(const std::vector<uint8_t>& packet) { in SendEvent() 120 void HciSniffer::SendAcl(const std::vector<uint8_t>& packet) { in SendAcl() 125 void HciSniffer::SendSco(const std::vector<uint8_t>& packet) { in SendSco() 130 void HciSniffer::SendIso(const std::vector<uint8_t>& packet) { in SendIso()
|
| /packages/modules/NetworkStack/tests/unit/src/android/net/dhcp6/ |
| D | Dhcp6PacketTest.kt | 45 val packet = Dhcp6Packet.decodePacket(ByteBuffer.wrap(bytes)) in testDecodeDhcp6SolicitPacket() constant 122 val packet = Dhcp6Packet.decodePacket(ByteBuffer.wrap(bytes)) in testDecodeDhcp6AdvertisePacket() constant 145 val packet = Dhcp6Packet.decodePacket(ByteBuffer.wrap(bytes)) in testDecodeDhcp6SolicitPacket_unsupportedOption() constant
|
| /packages/modules/Bluetooth/system/gd/packet/ |
| D | raw_builder_unittest.cc | 35 namespace packet { namespace 57 std::vector<uint8_t> packet; in TEST() local 78 std::vector<uint8_t> packet; in TEST() local 100 std::vector<uint8_t> packet; in TEST() local
|
| /packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/ |
| D | FiraConnectorDataPacketTest.java | 59 FiraConnectorDataPacket packet = FiraConnectorDataPacket.fromBytes(TEST_BYTES); in fromBytes_succeedLastPacket() local 71 FiraConnectorDataPacket packet = FiraConnectorDataPacket.fromBytes(bytes); in fromBytes_succeedNotLastPacket() local 81 FiraConnectorDataPacket packet = in toBytes_succeed() 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()
|