Home
last modified time | relevance | path

Searched refs:packetReader (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsPacketReaderTests.java47 MdnsPacketReader packetReader = new MdnsPacketReader(datagramPacket); in testLimits() local
48 assertEquals(data.length, packetReader.getRemaining()); in testLimits()
51 packetReader.setLimit(0); in testLimits()
52 assertEquals(0, packetReader.getRemaining()); in testLimits()
55 packetReader.clearLimit(); in testLimits()
56 assertEquals(data.length, packetReader.getRemaining()); in testLimits()
60 packetReader.setLimit(data.length); in testLimits()
61 assertEquals(data.length, packetReader.getRemaining()); in testLimits()
64 packetReader.setLimit(-10); in testLimits()
65 assertEquals(data.length, packetReader.getRemaining()); in testLimits()
[all …]
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DInfraNetworkDevice.java52 public final TapPacketReader packetReader; field in InfraNetworkDevice
63 public InfraNetworkDevice(MacAddress macAddr, TapPacketReader packetReader) { in InfraNetworkDevice() argument
65 this.packetReader = packetReader; in InfraNetworkDevice()
76 packetReader.sendResponse(icmp6Packet); in sendEchoRequest()
91 packetReader.sendResponse(rs); in sendRsPacket()
112 final byte[] raPacket = pollForPacket(packetReader, p -> !getRaPios(p).isEmpty()); in runSlaac()
DIntegrationTestUtils.java172 public static byte[] pollForPacket(TapPacketReader packetReader, Predicate<byte[]> filter) { in pollForPacket() argument
174 while ((packet = packetReader.poll(3000 /* timeoutMs */, filter)) != null) { in pollForPacket()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DApfIntegrationTest.kt250 private lateinit var packetReader: Icmp6PacketReader variable
284 packetReader = Icmp6PacketReader(handler, network) in setUp()
285 packetReader.start() in setUp()
290 if (::packetReader.isInitialized) { in tearDown()
291 packetReader.stop() in tearDown()
433 packetReader.sendPing(data, payloadSize) in testDropPingReply()
434 assertThat(packetReader.expectPingReply()).isEqualTo(data) in testDropPingReply()
453 packetReader.sendPing(data, payloadSize) in testDropPingReply()
454 packetReader.expectPingDropped() in testDropPingReply()
502 packetReader.sendPing(data, payloadSize) in clearApfMemory()
[all …]
DEthernetManagerTest.kt154 private val packetReader: TapPacketReader in <lambda>() constant
172 packetReader = TapPacketReader(handler, tapInterface.fileDescriptor.fileDescriptor, mtu) in <lambda>()
173 raResponder = RouterAdvertisementResponder(packetReader) in <lambda>()
178 packetReader.startAsyncForTest() in <lambda>()
192 handler.post({ packetReader.stop() }) in <lambda>()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DRouterAdvertisementResponder.java70 public RouterAdvertisementResponder(TapPacketReader packetReader, IpPrefix prefix) { in RouterAdvertisementResponder() argument
71 super(packetReader, RouterAdvertisementResponder::isRsOrNs, TAG); in RouterAdvertisementResponder()
72 mPacketReader = packetReader; in RouterAdvertisementResponder()
76 public RouterAdvertisementResponder(TapPacketReader packetReader) { in RouterAdvertisementResponder() argument
77 this(packetReader, makeRandomPrefix()); in RouterAdvertisementResponder()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java402 private void checkTetheredClientCallbacks(final TapPacketReader packetReader, in checkTetheredClientCallbacks() argument
408 TetheringTester tester = new TetheringTester(packetReader); in checkTetheredClientCallbacks()