Searched refs:packetBuffer (Results 1 – 6 of 6) sorted by relevance
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/ |
D | TlsSessionTest.java | 198 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/ |
D | DhcpPacketListener.java | 70 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()
|
D | DhcpClient.java | 696 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/ |
D | PacketReader.java | 63 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/ |
D | IpReachabilityMonitorTest.kt | 141 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/ |
D | IkeMessageTest.java | 915 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()
|