Home
last modified time | relevance | path

Searched refs:payloadLength (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNetlinkMessage.java45 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse() local
46 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
47 if (payloadLength < 0 || payloadLength > byteBuffer.remaining()) { in parse()
58 byteBuffer.position(byteBuffer.position() + payloadLength); in parse()
73 byteBuffer.position(byteBuffer.position() + payloadLength); in parse()
DStructNlAttr.java141 int payloadLength = 0; in StructNlAttr() local
142 for (StructNlAttr nla : nested) payloadLength += nla.getAlignedLength(); in StructNlAttr()
143 setValue(new byte[payloadLength]); in StructNlAttr()
DConntrackMessage.java80 final int payloadLength = ctaTupleOrig.getAlignedLength() + ctaTimeout.getAlignedLength(); in newIPv4TimeoutUpdateRequest() local
81 final byte[] bytes = new byte[STRUCT_SIZE + payloadLength]; in newIPv4TimeoutUpdateRequest()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkePayloadFactory.java143 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkePayload() local
144 if (payloadLength <= IkePayload.GENERIC_HEADER_LENGTH) { in getIkePayload()
148 int bodyLength = payloadLength - IkePayload.GENERIC_HEADER_LENGTH; in getIkePayload()
193 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkeSkPayload() local
196 if (bodyLength < payloadLength) { in getIkeSkPayload()
199 } else if (bodyLength > payloadLength) { in getIkeSkPayload()
DIkeNoncePayload.java87 int payloadLength = GENERIC_HEADER_LENGTH + nonceData.length; in encodeToByteBuffer() local
89 encodePayloadHeaderToByteBuffer(nextPayload, payloadLength, byteBuffer); in encodeToByteBuffer()
DIkePayload.java219 @PayloadType int nextPayload, int payloadLength, ByteBuffer byteBuffer) { in encodePayloadHeaderToByteBuffer() argument
223 .putShort((short) payloadLength); in encodePayloadHeaderToByteBuffer()
/packages/services/Car/service/src/com/android/car/
DVmsPublisherService.java183 int payloadLength = payload != null ? payload.length : 0; in publish() local
185 .logPacketSent(layer, payloadLength); in publish()
196 .logPacketDropped(layer, payloadLength); in publish()
204 .logPacketReceived(layer, payloadLength); in publish()
207 .logPacketDropped(layer, payloadLength); in publish()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthPskPayloadTest.java97 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload() local
99 assertEquals(expectedPayload.length, payloadLength); in testBuildOutboundIkeAuthPskPayload()
102 ByteBuffer byteBuffer = ByteBuffer.allocate(payloadLength); in testBuildOutboundIkeAuthPskPayload()
DIkeSkPayloadTest.java101 int payloadLength = payload.getPayloadLength(); in testEncode() local
102 ByteBuffer buffer = ByteBuffer.allocate(payloadLength); in testEncode()
DIkeSkfPayloadTest.java191 int payloadLength = payload.getPayloadLength(); in testEncode() local
192 ByteBuffer buffer = ByteBuffer.allocate(payloadLength); in testEncode()