Home
last modified time | relevance | path

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

123

/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/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
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 …]
DDhcpServerTest.java248 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/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/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java171 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/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java113 protected EapResult transitionAndProcess(EapState newState, byte[] packet) { in transitionAndProcess()
118 protected DecodeResult decode(@NonNull byte[] packet) { in decode()
187 public EapResult process(@NonNull byte[] packet) { in process()
218 public EapResult process(@NonNull byte[] packet) { in process()
272 public EapResult process(@NonNull byte[] packet) { in process()
362 public EapResult process(byte[] packet) { in process()
/packages/services/Car/car-lib/src/android/car/vms/
DIVmsClientCallback.aidl39 in byte[] packet) = 2; in onPacketReceived()
44 in SharedMemory packet) = 3; in onLargePacketReceived()
DIVmsBrokerService.aidl71 in byte[] packet) = 7; in publishPacket()
77 in SharedMemory packet) = 8; in publishLargePacket()
DVmsClient.java244 public void publishPacket(int providerId, @NonNull VmsLayer layer, @NonNull byte[] packet) { in publishPacket()
331 public void onPacketReceived(int providerId, VmsLayer layer, byte[] packet) { in onPacketReceived()
341 public void onLargePacketReceived(int providerId, VmsLayer layer, SharedMemory packet) { in onLargePacketReceived()
374 private static SharedMemory packetToSharedMemory(byte[] packet) { in packetToSharedMemory()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacketListener.java59 final DhcpPacket packet = DhcpPacket.decodeFullPacket(recvbuf.mBytes, length, in handlePacket() local
89 protected abstract void onReceive(@NonNull DhcpPacket packet, @NonNull Inet4Address srcAddr, in onReceive()
91 protected abstract void logParseError(@NonNull byte[] packet, int length, in logParseError()
DDhcpClient.java589 private void confirmDhcpLease(DhcpPacket packet, DhcpResults results) { in confirmDhcpLease()
658 final DhcpPacket packet = DhcpPacket.decodeFullPacket(recvbuf, length, in handlePacket() local
750 final ByteBuffer packet = DhcpPacket.buildDiscoverPacket( in sendDiscoverPacket() local
765 final ByteBuffer packet = DhcpPacket.buildRequestPacket( in sendRequestPacket() local
780 final ByteBuffer packet = DhcpPacket.buildDeclinePacket(DhcpPacket.ENCAP_L2, in sendDeclinePacket() local
1076 public boolean isValidPacket(DhcpPacket packet) { in isValidPacket()
1092 public void setDhcpLeaseExpiry(DhcpPacket packet) { in setDhcpLeaseExpiry()
1181 protected abstract void receivePacket(DhcpPacket packet); in receivePacket()
1270 private boolean maybeTransitionToIpv6OnlyWaitState(@NonNull final DhcpPacket packet) { in maybeTransitionToIpv6OnlyWaitState()
1279 private void receiveOfferOrAckPacket(final DhcpPacket packet, final boolean acceptRapidCommit) { in receiveOfferOrAckPacket()
[all …]
DDhcpServer.java497 private void processPacket(@NonNull DhcpPacket packet) { in processPacket()
529 private void processDiscover(@NonNull DhcpDiscoverPacket packet) in processDiscover()
550 private void processRequest(@NonNull DhcpRequestPacket packet) in processRequest()
571 private void processRelease(@NonNull DhcpReleasePacket packet) in processRelease()
580 private void processDecline(@NonNull DhcpDeclinePacket packet) in processDecline()
706 private boolean transmitAck(@NonNull DhcpPacket packet, @NonNull DhcpLease lease, in transmitAck()
805 private MacAddress getMacAddr(@NonNull DhcpPacket packet) throws MalformedPacketException { in getMacAddr()
825 protected void onReceive(@NonNull DhcpPacket packet, @NonNull Inet4Address srcAddr, in onReceive()
842 protected void logParseError(@NonNull byte[] packet, int length, in logParseError()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNetworkAgent.java43 @NonNull KeepalivePacketData packet); in onStartSocketKeepalive()
45 void onAddKeepalivePacketFilter(int slot, @NonNull KeepalivePacketData packet); in onAddKeepalivePacketFilter()
101 @NonNull KeepalivePacketData packet) { in onStartSocketKeepalive()
111 public void onAddKeepalivePacketFilter(int slot, @NonNull KeepalivePacketData packet) { in onAddKeepalivePacketFilter()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/
DEapResult.java78 public final byte[] packet; field in EapResult.EapResponse
81 protected EapResponse(byte[] packet) { in EapResponse()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java163 final ArpPacket packet = ArpPacket.parseArpPacket(TEST_ARP_PROBE, TEST_ARP_PROBE.length); in testParseArpProbePacket() local
173 final ArpPacket packet = ArpPacket.parseArpPacket(TEST_ARP_ANNOUNCE, in testParseArpAnnouncePacket() local
/packages/services/Car/cpp/computepipe/aidl/aidl_api/android.automotive.computepipe.runner/current/android/automotive/computepipe/runner/
DIPipeStream.aidl21 oneway void deliverPacket(in android.automotive.computepipe.runner.PacketDescriptor packet); in deliverPacket()
/packages/services/Car/cpp/computepipe/aidl/android/automotive/computepipe/runner/
DIPipeStream.aidl33 oneway void deliverPacket(in PacketDescriptor packet); in deliverPacket()
/packages/services/Car/cpp/computepipe/aidl/aidl_api/android.automotive.computepipe.runner/1/android/automotive/computepipe/runner/
DIPipeStream.aidl21 oneway void deliverPacket(in android.automotive.computepipe.runner.PacketDescriptor packet); in deliverPacket()
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/
DAudioGroupTest.java85 DatagramPacket packet = new DatagramPacket(new byte[length + 1], length + 1); in assertPacket() local
92 DatagramPacket packet = new DatagramPacket(new byte[1], 1); in drain() local
/packages/modules/NetworkStack/src/com/android/networkstack/packets/
DNeighborAdvertisement.java75 final ByteBuffer packet = ByteBuffer.allocate(etherHeaderLen + ipv6HeaderLen in toByteBuffer() local
107 final ByteBuffer packet = ByteBuffer.wrap(recvbuf, 0, length); in parse() local
/packages/modules/adb/client/
Dtransport_usb.cpp157 bool UsbConnection::Read(apacket* packet) { in Read()
162 bool UsbConnection::Write(apacket* packet) { in Write()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeLlcpConnectionlessSocket.java61 LlcpPacket packet = doReceiveFrom(mLinkMiu); in receive() local
/packages/modules/DnsResolver/
Dres_cache.cpp284 static void _dnsPacket_init(DnsPacket* packet, const uint8_t* buff, int bufflen) { in _dnsPacket_init() argument
290 static void _dnsPacket_rewind(DnsPacket* packet) { in _dnsPacket_rewind()
294 static void _dnsPacket_skip(DnsPacket* packet, int count) { in _dnsPacket_skip()
302 static int _dnsPacket_readInt16(DnsPacket* packet) { in _dnsPacket_readInt16()
316 static int _dnsPacket_checkBytes(DnsPacket* packet, int numBytes, const void* bytes) { in _dnsPacket_checkBytes()
331 static int _dnsPacket_checkQName(DnsPacket* packet) { in _dnsPacket_checkQName()
362 static int _dnsPacket_checkQR(DnsPacket* packet) { in _dnsPacket_checkQR()
386 static int _dnsPacket_checkQuery(DnsPacket* packet) { in _dnsPacket_checkQuery()
454 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes()
466 static unsigned _dnsPacket_hashQName(DnsPacket* packet, unsigned hash) { in _dnsPacket_hashQName()
[all …]
/packages/modules/NeuralNetworks/common/
DExecutionBurstServer.cpp341 const auto packet = getPacketBlocking(); in getBlocking() local
396 std::vector<FmqRequestDatum> packet(available); in getPacketBlocking() local
430 std::vector<FmqRequestDatum> packet(count + 1); in getPacketBlocking() local
477 bool ResultChannelSender::sendPacket(const std::vector<FmqResultDatum>& packet) { in sendPacket()
DExecutionBurstController.cpp258 const auto packet = getPacketBlocking(); in getBlocking() local
306 std::vector<FmqResultDatum> packet(available); in getPacketBlocking() local
334 std::vector<FmqResultDatum> packet(count + 1); in getPacketBlocking() local
374 bool RequestChannelSender::sendPacket(const std::vector<FmqRequestDatum>& packet) { in sendPacket()

123