Home
last modified time | relevance | path

Searched defs:packet (Results 1 – 25 of 268) sorted by relevance

1234567891011

/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DConnectivityPacketSummaryTest.java50 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/
Dclassic_pairing_handler.cc179 void ClassicPairingHandler::OnReceive(hci::ChangeConnectionLinkKeyCompleteView packet) { in OnReceive()
184 void ClassicPairingHandler::OnReceive(hci::CentralLinkKeyCompleteView packet) { in OnReceive()
189 void ClassicPairingHandler::OnReceive(hci::PinCodeRequestView packet) { in OnReceive()
201 void ClassicPairingHandler::OnReceive(hci::LinkKeyRequestView packet) { in OnReceive()
224 void ClassicPairingHandler::OnReceive(hci::LinkKeyNotificationView packet) { in OnReceive()
240 void ClassicPairingHandler::OnReceive(hci::IoCapabilityRequestView packet) { in OnReceive()
257 void ClassicPairingHandler::OnReceive(hci::IoCapabilityResponseView packet) { in OnReceive()
323 void ClassicPairingHandler::OnReceive(hci::SimplePairingCompleteView packet) { in OnReceive()
336 void ClassicPairingHandler::OnReceive(hci::ReturnLinkKeysView packet) { in OnReceive()
341 void ClassicPairingHandler::OnReceive(hci::EncryptionChangeView packet) { in OnReceive()
[all …]
/packages/modules/Bluetooth/system/packet/tests/base/
Diterator_test.cc59 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 …]
Dpacket_test.cc31 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/NetworkStack/tests/unit/src/android/net/dhcp6/
DDhcp6PacketTest.kt45 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket() constant
122 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6AdvertisePacket() constant
145 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6SolicitPacket_unsupportedOption() constant
173 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testDecodeDhcp6ReplyPacket() constant
203 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testGetMinimalPreferredValidLifetime() constant
231 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testStatusCodeOptionWithStatusMessage() constant
259 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testStatusCodeOptionWithoutStatusMessage() constant
287 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testStatusCodeOptionInIaPdWithStatusMessage() constant
313 val packet = Dhcp6Packet.decode(bytes, bytes.size) in testStatusCodeOptionInIaPdWithoutStatusMessage() constant
/packages/modules/Bluetooth/system/gd/security/channel/
Dsecurity_manager_channel_unittest.cc88 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/tools/rootcanal/model/devices/
Dhci_device.cc64 RegisterEventChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
67 RegisterAclChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
70 RegisterScoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
73 RegisterIsoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
79 const std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPacketBuilderTest.java751 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_TCP, in testBuildPacketEtherIPv4Tcp() local
759 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_TCP, DATA); in testBuildPacketEtherIPv4TcpData() local
767 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4Tcp() local
775 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4TcpData() local
783 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_UDP, in testBuildPacketEtherIPv4Udp() local
791 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_UDP, DATA); in testBuildPacketEtherIPv4UdpData() local
798 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4Udp() local
806 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4UdpData() local
814 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IPV6, IPPROTO_TCP, DATA); in testBuildPacketEtherIPv6TcpData() local
822 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IPV6, IPPROTO_TCP, in testBuildPacketEtherIPv6Tcp() local
[all …]
DIpUtilsTest.java78 ByteBuffer packet = ByteBuffer.wrap(new byte[] { (byte) 0x00, (byte) 0x00, }); in testEmptyAndZeroBufferChecksum() local
97 ByteBuffer packet = ByteBuffer.wrap(new byte[] { in testIpv6TcpChecksum() local
143 ByteBuffer packet = ByteBuffer.wrap(new byte[] { in testIpv4UdpChecksum() local
188 ByteBuffer packet = ByteBuffer.wrap(new byte[] { in testIpv4IcmpChecksum() local
/packages/modules/Bluetooth/system/gd/hal/
Dhci_backend_aidl.cc39 ::ndk::ScopedAStatus hciEventReceived(const std::vector<uint8_t>& packet) override { in hciEventReceived()
44 ::ndk::ScopedAStatus aclDataReceived(const std::vector<uint8_t>& packet) override { in aclDataReceived()
49 ::ndk::ScopedAStatus scoDataReceived(const std::vector<uint8_t>& packet) override { in scoDataReceived()
54 ::ndk::ScopedAStatus isoDataReceived(const std::vector<uint8_t>& packet) override { in isoDataReceived()
105 void sendAclData(const std::vector<uint8_t>& packet) override { in sendAclData()
109 void sendScoData(const std::vector<uint8_t>& packet) override { in sendScoData()
113 void sendIsoData(const std::vector<uint8_t>& packet) override { in sendIsoData()
Dhci_hal_android.cc81 void hciEventReceived(const std::vector<uint8_t>& packet) override { in hciEventReceived()
92 void aclDataReceived(const std::vector<uint8_t>& packet) override { in aclDataReceived()
102 void scoDataReceived(const std::vector<uint8_t>& packet) override { in scoDataReceived()
112 void isoDataReceived(const std::vector<uint8_t>& packet) override { in isoDataReceived()
140 void sendHciCommand(HciPacket packet) override { in sendHciCommand()
146 void sendAclData(HciPacket packet) override { in sendAclData()
152 void sendScoData(HciPacket packet) override { in sendScoData()
158 void sendIsoData(HciPacket packet) override { in sendIsoData()
Dhci_backend_hidl.cc54 Return<void> hciEventReceived(const hidl_vec<uint8_t>& packet) override { in hciEventReceived()
59 Return<void> aclDataReceived(const hidl_vec<uint8_t>& packet) override { in aclDataReceived()
157 void sendAclData(const std::vector<uint8_t>& packet) override { in sendAclData()
161 void sendScoData(const std::vector<uint8_t>& packet) override { in sendScoData()
165 void sendIsoData(const std::vector<uint8_t>& packet) override { in sendIsoData()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsRecordTests.java69 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testInet4AddressRecord() local
103 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTypeAAAInet6AddressRecord() local
140 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTypeAAAInet4AddressRecord() local
182 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testPointerRecord() local
219 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testServiceRecord() local
256 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testAnyRecord() local
300 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testNsecRecord() local
339 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTextRecord() local
380 final DatagramPacket packet = writer.getPacket(MULTICAST_IPV4_ADDRESS); in toHex() local
394 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in textRecord_recordDoesNotHaveDataOfGivenLength_throwsEOFException() local
[all …]
DMdnsSocketClientTests.java157 DatagramPacket packet = invocationOnMock.getArgument(0); in setup() local
208 DatagramPacket packet = invocationOnMock.getArgument(0); in setup() local
240 DatagramPacket packet = getTestDatagramPacket(); in testSendPackets_useSeparateSocketForUnicast() local
293 DatagramPacket packet = getTestDatagramPacket(); in testSendPackets_useSameSocketForMulticastAndUnicast() local
426 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSeparateSocketForUnicast() local
435 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSeparateSocketForUnicast() local
457 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSameSocketForMulticastAndUnicast() local
484 DatagramPacket packet = getTestDatagramPacket(); in testMulticastResponseIsNotReceived() local
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java178 ByteBuffer packet = new TestDhcpPacket(DHCP_MESSAGE_TYPE_OFFER) in assertDomainAndVendorInfoParses() local
224 ByteBuffer packet = testPacket.build(); in assertLeaseTimeParses() local
280 ByteBuffer packet = new TestDhcpPacket(type, clientIp, yourIp) in checkIpAddress() local
347 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1() local
380 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2() local
415 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runCapportOptionTest() local
460 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testCapportOption_Invalid() local
497 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runIPv6OnlyPreferredOption() local
734 private void checkMtu(ByteBuffer packet, int expectedMtu, byte[] mtuBytes) throws Exception { in checkMtu()
751 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testMtu() local
[all …]
DDhcpServerTest.java249 final DhcpOfferPacket packet = assertOffer(getPacket()); in testDiscover() local
269 final DhcpAckPacket packet = assertAck(getPacket()); in testDiscover_RapidCommit() local
288 final DhcpNakPacket packet = assertNak(getPacket()); in testDiscover_OutOfAddresses() local
317 final DhcpAckPacket packet = assertAck(getPacket()); in testRequest_Selecting_Ack() local
335 final DhcpNakPacket packet = assertNak(getPacket()); in testRequest_Selecting_Nak() local
443 final DhcpOfferPacket packet = assertOffer(getPacket()); in testChangePrefixOnDecline() local
453 private void assertMatchesLease(@NonNull DhcpPacket packet, @NonNull Inet4Address srvAddr, in assertMatchesLease()
464 private void assertMatchesTestLease(@NonNull DhcpPacket packet, @Nullable String hostname) { in assertMatchesTestLease()
468 private void assertMatchesTestLease(@NonNull DhcpPacket packet) { in assertMatchesTestLease()
472 private void assertMatchesClient(@NonNull DhcpPacket packet) { in assertMatchesClient()
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dle_address_manager_test.cc258 auto packet = hci_layer_->GetCommand(OpCode::LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST); in TEST_F() local
279 auto packet = hci_layer_->GetCommand(OpCode::LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST); in TEST_F() local
315 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local
323 auto packet = hci_layer_->GetCommand(OpCode::LE_ADD_DEVICE_TO_RESOLVING_LIST); in TEST_F() local
334 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local
380 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local
388 auto packet = hci_layer_->GetCommand(OpCode::LE_REMOVE_DEVICE_FROM_RESOLVING_LIST); in TEST_F() local
397 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local
443 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local
451 auto packet = hci_layer_->GetCommand(OpCode::LE_CLEAR_RESOLVING_LIST); in TEST_F() local
[all …]
Dacl_manager_test.cc365 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in SetUp() local
456 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local
501 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION_CANCEL); in TEST_F() local
534 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local
576 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local
790 auto packet = GetConnectionManagementCommand(OpCode::DISCONNECT); in TEST_F() local
820 auto packet = GetConnectionManagementCommand(OpCode::SWITCH_ROLE); in TEST_F() local
835 auto packet = GetConnectionManagementCommand(OpCode::WRITE_DEFAULT_LINK_POLICY_SETTINGS); in TEST_F() local
850 auto packet = GetConnectionManagementCommand(OpCode::AUTHENTICATION_REQUESTED); in TEST_F() local
862 auto packet = GetConnectionManagementCommand(OpCode::READ_CLOCK_OFFSET); in TEST_F() local
[all …]
/packages/modules/Bluetooth/system/profile/sdp/common/test/
Ddata_element_reader_test.cc75 auto packet = ReaderPacket::Make(std::move(payload)); in CreateReader() local
193 auto packet = ReaderPacket::Make(std::get<0>(GetParam())); in TEST_P() local
220 auto packet = ReaderPacket::Make(payload); in TEST() local
251 auto packet = ReaderPacket::Make({}); in TEST() local
259 auto packet = ReaderPacket::Make({0xFF}); in TEST() local
399 auto packet = ReaderPacket::Make(GetParam()); in TEST_P() local
407 auto packet = ReaderPacket::Make({0x00, 0x00, 0x00, 0x00}); in TEST() local
/packages/modules/adb/
Dtransport_benchmark.cpp67 … 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/
Draw_builder_unittest.cc35 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/
DFiraConnectorDataPacketTest.java59 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/stack/test/a2dp/
Da2dp_vendor_ldac_decoder_test.cc28 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
38 auto packet = AllocatePacket(data.size()); in AllocateL2capPacket() local
45 BT_HDR* packet = in AllocatePacket() local
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTestUtils.java88 private static void assertVerdict(int apfVersion, int expected, byte[] program, byte[] packet, in assertVerdict()
105 byte[] packet, int filterAge) { in assertVerdict()
113 public static void assertVerdict(int apfVersion, int expected, byte[] program, byte[] packet) { in assertVerdict()
120 public static void assertPass(int apfVersion, byte[] program, byte[] packet, int filterAge) { in assertPass()
127 public static void assertPass(int apfVersion, byte[] program, byte[] packet) { in assertPass()
134 public static void assertDrop(int apfVersion, byte[] program, byte[] packet, int filterAge) { in assertDrop()
141 public static void assertDrop(int apfVersion, byte[] program, byte[] packet) { in assertDrop()
160 byte[] packet, byte[] data, byte[] expectedData, boolean ignoreInterpreterVersion) in assertDataMemoryContents()
186 public static void assertVerdict(int apfVersion, int expected, byte[] program, byte[] packet, in assertVerdict()
192 byte[] packet, int filterAge) throws ApfV4Generator.IllegalInstructionException { in assertVerdict()
[all …]
/packages/modules/Bluetooth/system/gd/neighbor/
Dscan.cc68 auto packet = hci::ReadScanEnableCompleteView::Create(view); in OnCommandComplete() local
77 auto packet = hci::WriteScanEnableCompleteView::Create(view); in OnCommandComplete() local
104 …std::unique_ptr<hci::WriteScanEnableBuilder> packet = hci::WriteScanEnableBuilder::Create(scan_ena… in WriteScanEnable() local
109 std::unique_ptr<hci::ReadScanEnableBuilder> packet = hci::ReadScanEnableBuilder::Create(); in WriteScanEnable() local
160 std::unique_ptr<hci::ReadScanEnableBuilder> packet = hci::ReadScanEnableBuilder::Create(); in Start() local

1234567891011