Home
last modified time | relevance | path

Searched refs:packetBuffer (Results 1 – 6 of 6) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
DTlsSessionTest.java198 void setupWrap(ByteBuffer applicationBuffer, ByteBuffer packetBuffer, SSLEngineResult result) in setupWrap() argument
200 when(mMockSslEngine.wrap(eq(applicationBuffer), eq(packetBuffer))) in setupWrap()
219 ByteBuffer packetBuffer, in setupChainedWrap() argument
223 when(mMockSslEngine.wrap(eq(applicationBuffer), eq(packetBuffer))) in setupChainedWrap()
240 void setupUnwrap(ByteBuffer applicationBuffer, ByteBuffer packetBuffer, SSLEngineResult result) in setupUnwrap() argument
242 when(mMockSslEngine.unwrap(eq(packetBuffer), eq(applicationBuffer))) in setupUnwrap()
261 ByteBuffer applicationBuffer, ByteBuffer packetBuffer, SSLEngineResult result) in setupChainedWrap_exception() argument
263 when(mMockSslEngine.wrap(eq(applicationBuffer), eq(packetBuffer))) in setupChainedWrap_exception()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacketListener.java70 protected int readPacket(@NonNull FileDescriptor fd, @NonNull Payload packetBuffer) in readPacket() argument
74 fd, packetBuffer.mBytes, 0, packetBuffer.mBytes.length, 0 /* flags */, addr); in readPacket()
77 packetBuffer.mSrcAddr = inet4AddrOrNull(addr); in readPacket()
78 packetBuffer.mSrcPort = addr.getPort(); in readPacket()
DDhcpClient.java696 protected int readPacket(FileDescriptor fd, byte[] packetBuffer) throws Exception { in readPacket() argument
698 return Os.read(fd, packetBuffer, 0, packetBuffer.length); in readPacket()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DPacketReader.java63 protected int readPacket(FileDescriptor fd, byte[] packetBuffer) throws Exception { in readPacket() argument
64 return Os.read(fd, packetBuffer, 0, packetBuffer.length); in readPacket()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt141 override fun readPacket(fd: FileDescriptor, packetBuffer: ByteArray): Int { in readPacket()
143 if (packet.size > packetBuffer.size) { in readPacket()
146 System.arraycopy(packet, 0, packetBuffer, 0, packet.size) in readPacket()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java915 ByteBuffer packetBuffer = ByteBuffer.wrap(p); in testEncodeAndEncryptFragments() local
919 packetBuffer.get(headerBytes); in testEncodeAndEncryptFragments()
928 packetBuffer.get(new byte[IkePayload.GENERIC_HEADER_LENGTH]); in testEncodeAndEncryptFragments()
929 assertEquals(i + 1 /*expetced fragNum*/, Short.toUnsignedInt(packetBuffer.getShort())); in testEncodeAndEncryptFragments()
930 assertEquals(expectedTotalFragments, Short.toUnsignedInt(packetBuffer.getShort())); in testEncodeAndEncryptFragments()