/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/packet/tests/base/ |
D | iterator_test.cc | 58 auto packet = TestPacket::Make(test_l2cap_data, 3, test_l2cap_data.size() - 2); in TEST_F() local 68 auto packet = TestPacket::Make(test_l2cap_data); in TEST_F() local 78 auto packet = TestPacket::Make(test_l2cap_data); in TEST_F() local 88 auto packet = GetTestPacket(); in TEST_P() local 98 auto packet = GetTestPacket(); in TEST_P() local 111 auto packet = GetTestPacket(); in TEST_P() local 124 auto packet = GetTestPacket(); in TEST_P() local 136 auto packet = GetTestPacket(); in TEST_P() local 148 auto packet = GetTestPacket(); in TEST_P() local 158 auto packet = GetTestPacket(); in TEST_P() local [all …]
|
D | packet_test.cc | 31 auto packet = 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 = TestPacket::Make(test_l2cap_data, 3, test_l2cap_data.size() - 2); in TEST() local 80 auto packet = in TEST() local 102 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local 116 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp6/ |
D | Dhcp6PacketTest.kt | 45 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/tools/rootcanal/model/devices/ |
D | hci_device.cc | 63 RegisterEventChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 66 RegisterAclChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 69 RegisterScoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 72 RegisterIsoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice() 77 [this](PacketType packet_type, const std::shared_ptr<std::vector<uint8_t>> packet) { in HciDevice()
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | hci_backend_aidl.cc | 39 ::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 { hci_->sendAclData(packet); } in sendAclData() 107 void sendScoData(const std::vector<uint8_t>& packet) override { hci_->sendScoData(packet); } in sendScoData() 109 void sendIsoData(const std::vector<uint8_t>& packet) override { hci_->sendIsoData(packet); } in sendIsoData()
|
D | hci_hal_android.cc | 82 void hciEventReceived(const std::vector<uint8_t>& packet) override { in hciEventReceived() 93 void aclDataReceived(const std::vector<uint8_t>& packet) override { in aclDataReceived() 103 void scoDataReceived(const std::vector<uint8_t>& packet) override { in scoDataReceived() 113 void isoDataReceived(const std::vector<uint8_t>& packet) override { in isoDataReceived() 139 void sendHciCommand(HciPacket packet) override { in sendHciCommand() 145 void sendAclData(HciPacket packet) override { in sendAclData() 151 void sendScoData(HciPacket packet) override { in sendScoData() 157 void sendIsoData(HciPacket packet) override { in sendIsoData()
|
D | hci_hal_host_test.cc | 62 void hciEventReceived(HciPacket packet) override { in hciEventReceived() 66 void aclDataReceived(HciPacket packet) override { in aclDataReceived() 70 void scoDataReceived(HciPacket packet) override { in scoDataReceived() 74 void isoDataReceived(HciPacket packet) override { in isoDataReceived() 267 auto packet = incoming_packets_queue_.front(); in TEST_F() local 277 auto packet = incoming_packets_queue_.front(); in TEST_F() local 287 auto packet = incoming_packets_queue_.front(); in TEST_F() local 297 auto packet = incoming_packets_queue_.front(); in TEST_F() local 309 auto packet = incoming_packets_queue_.front(); in TEST_F() local 324 auto packet = incoming_packets_queue_.front(); in TEST_F() local [all …]
|
D | hci_backend_hidl.cc | 50 Return<void> hciEventReceived(const hidl_vec<uint8_t>& packet) override { in hciEventReceived() 55 Return<void> aclDataReceived(const hidl_vec<uint8_t>& packet) override { in aclDataReceived() 163 void sendAclData(const std::vector<uint8_t>& packet) override { hci_->sendAclData(packet); } in sendAclData() 165 void sendScoData(const std::vector<uint8_t>& packet) override { hci_->sendScoData(packet); } in sendScoData() 167 void sendIsoData(const std::vector<uint8_t>& packet) override { in sendIsoData()
|
/packages/modules/Nfc/libnfc-nci/tests/src/ |
D | nfc_ncif_test.cc | 42 uint8_t packet[] = { in TEST_F() local 87 uint8_t packet[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06}; // Short packet in TEST_F() local 99 uint8_t packet[] = { in TEST_F() local 128 uint8_t packet[] = { in TEST_F() local 167 uint8_t packet[] = { in TEST_F() local 211 uint8_t packet[] = { in TEST_F() local 244 uint8_t packet[] = { in TEST_F() local 267 uint8_t packet[] = {0x00, 0x01, 0x02, 0x03, 0x01}; // Short packet in TEST_F() local 279 uint8_t packet[] = { in TEST_F() local 298 uint8_t packet[] = {0x01, 0x02, 0x03}; in TEST_F() local [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 859 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_TCP, in testBuildPacketEtherIPv4Tcp() local 867 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_TCP, DATA); in testBuildPacketEtherIPv4TcpData() local 875 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4Tcp() local 883 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4TcpData() local 891 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_UDP, in testBuildPacketEtherIPv4Udp() local 899 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IP, IPPROTO_UDP, DATA); in testBuildPacketEtherIPv4UdpData() local 906 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4Udp() local 914 final ByteBuffer packet = buildPacket(null /* srcMac */, null /* dstMac */, in testBuildPacketIPv4UdpData() local 922 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IPV6, IPPROTO_TCP, DATA); in testBuildPacketEtherIPv6TcpData() local 930 final ByteBuffer packet = buildPacket(SRC_MAC, DST_MAC, IPPROTO_IPV6, IPPROTO_TCP, in testBuildPacketEtherIPv6Tcp() local [all …]
|
D | IpUtilsTest.java | 78 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/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 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 …]
|
D | DhcpServerTest.java | 249 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/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordTests.java | 71 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testInet4AddressRecord() local 105 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTypeAAAInet6AddressRecord() local 142 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTypeAAAInet4AddressRecord() local 184 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testPointerRecord() local 221 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testServiceRecord() local 258 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testAnyRecord() local 302 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testNsecRecord() local 341 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in testTextRecord() local 406 final DatagramPacket packet = writer.getPacket(MULTICAST_IPV4_ADDRESS); in toHex() local 420 DatagramPacket packet = new DatagramPacket(dataIn, dataIn.length); in textRecord_recordDoesNotHaveDataOfGivenLength_throwsEOFException() local [all …]
|
D | MdnsSocketClientTests.java | 160 DatagramPacket packet = invocationOnMock.getArgument(0); in setup() local 211 DatagramPacket packet = invocationOnMock.getArgument(0); in setup() local 243 DatagramPacket packet = getTestDatagramPacket(); in testSendPackets_useSeparateSocketForUnicast() local 296 DatagramPacket packet = getTestDatagramPacket(); in testSendPackets_useSameSocketForMulticastAndUnicast() local 429 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSeparateSocketForUnicast() local 438 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSeparateSocketForUnicast() local 460 DatagramPacket packet = invocationOnMock.getArgument(0); in testFailedToParseMdnsResponse_useSameSocketForMulticastAndUnicast() local 487 DatagramPacket packet = getTestDatagramPacket(); in testMulticastResponseIsNotReceived() 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 | 37 namespace packet { namespace 59 std::vector<uint8_t> packet; in TEST() local 80 std::vector<uint8_t> packet; in TEST() local 102 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/hci/ |
D | le_address_manager_test.cc | 276 auto packet = hci_layer_->GetCommand(OpCode::LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST); in TEST_F() local 298 auto packet = hci_layer_->GetCommand(OpCode::LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST); in TEST_F() local 336 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 345 auto packet = hci_layer_->GetCommand(OpCode::LE_ADD_DEVICE_TO_RESOLVING_LIST); in TEST_F() local 358 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 392 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 401 auto packet = hci_layer_->GetCommand(OpCode::LE_REMOVE_DEVICE_FROM_RESOLVING_LIST); in TEST_F() local 412 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 445 auto packet = hci_layer_->GetCommand(OpCode::LE_SET_ADDRESS_RESOLUTION_ENABLE); in TEST_F() local 454 auto packet = hci_layer_->GetCommand(OpCode::LE_CLEAR_RESOLVING_LIST); in TEST_F() local [all …]
|
D | acl_manager_test.cc | 362 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in SetUp() local 448 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 490 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION_CANCEL); in TEST_F() local 520 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 556 auto packet = GetConnectionManagementCommand(OpCode::LE_CREATE_CONNECTION); in TEST_F() local 759 auto packet = GetConnectionManagementCommand(OpCode::DISCONNECT); in TEST_F() local 789 auto packet = GetConnectionManagementCommand(OpCode::SWITCH_ROLE); in TEST_F() local 805 auto packet = GetConnectionManagementCommand(OpCode::WRITE_DEFAULT_LINK_POLICY_SETTINGS); in TEST_F() local 820 auto packet = GetConnectionManagementCommand(OpCode::AUTHENTICATION_REQUESTED); in TEST_F() local 832 auto packet = GetConnectionManagementCommand(OpCode::READ_CLOCK_OFFSET); in TEST_F() local [all …]
|
D | le_periodic_sync_manager_test.cc | 40 PacketView<kLittleEndian> GetPacketView(std::unique_ptr<packet::BasePacketBuilder> packet) { in GetPacketView() 235 auto packet = in TEST_F() local 265 auto packet = in TEST_F() local 304 auto packet = in TEST_F() local 342 auto packet = in TEST_F() local 389 auto packet = in TEST_F() local 420 auto packet = in TEST_F() local 449 auto packet = test_le_scanning_interface_->GetCommand( in TEST_F() local 477 auto packet = test_le_scanning_interface_->GetCommand( in TEST_F() local 506 auto packet = in TEST_F() local [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/hal/ |
D | bluetooth_hci.cc | 95 controller_->RegisterEventChannel([this, cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize_impl() 107 controller_->RegisterAclChannel([this, cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize_impl() 119 controller_->RegisterScoChannel([this, cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize_impl() 132 controller_->RegisterIsoChannel([this, cb_1_1](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize_impl() 215 Return<void> BluetoothHci::sendHciCommand(const hidl_vec<uint8_t>& packet) { in sendHciCommand() 224 Return<void> BluetoothHci::sendAclData(const hidl_vec<uint8_t>& packet) { in sendAclData() 233 Return<void> BluetoothHci::sendScoData(const hidl_vec<uint8_t>& packet) { in sendScoData() 242 Return<void> BluetoothHci::sendIsoData(const hidl_vec<uint8_t>& packet) { in sendIsoData()
|
/packages/modules/Bluetooth/system/gd/hci/acl_manager/ |
D | round_robin_scheduler_test.cc | 99 void EnqueueAclUpEnd(AclConnection::QueueUpEnd* queue_up_end, std::vector<uint8_t> packet) { in EnqueueAclUpEnd() 111 AclConnection::QueueUpEnd* queue_up_end, std::vector<uint8_t> packet) { in enqueue_callback() 120 auto packet = hci_queue_.GetDownEnd()->TryDequeue(); in HciDownEndDequeue() local 140 void VerifyPacket(uint16_t handle, std::vector<uint8_t> packet) { in VerifyPacket() 215 std::vector<uint8_t> packet = {0x01, 0x02, 0x03}; in TEST_F() local 239 std::vector<uint8_t> packet = {0x01, 0x02, 0x03, i}; in TEST_F() local 245 std::vector<uint8_t> packet = {0x01, 0x02, 0x03, i}; in TEST_F() local 255 std::vector<uint8_t> packet = {0x01, 0x02, 0x03, i}; in TEST_F() local 295 std::vector<uint8_t> packet = {0x01, 0x02, 0x03}; in TEST_F() local 346 std::vector<uint8_t> packet(controller_->hci_mtu_, 0xff); in TEST_F() local [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/test/ |
D | generated_packet_test.cc | 68 namespace packet { namespace 73 auto packet = ChildTwoTwoThreeBuilder::Create(); in TEST() local 105 auto packet = ChildBuilder::Create(field_name, footer); in TEST() local 182 auto packet = ChildTwoTwoThreeBuilder::Create(); in TEST() local 203 auto packet = ChildBuilder::Create(field_name, footer); in TEST() local 242 auto packet = MiddleFourBitsBuilder::Create(low_two, next_four, straddle, four_more, high_two); in TEST() local 268 auto packet = ChildWithSixBytesBuilder::Create(six_bytes_a, six_bytes_b); in TEST() local 309 auto packet = ParentWithSumBuilder::Create(two_bytes, sum_bytes, in TEST() local 357 auto packet = ChildWithNestedSumBuilder::Create(two_bytes, sum_bytes, more_bytes); in TEST() local 402 auto packet = ParentSizeModifierBuilder::Create(std::make_unique<RawBuilder>(), two_bytes); in TEST() local [all …]
|