Home
last modified time | relevance | path

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

/frameworks/base/services/net/java/android/net/netlink/
DNetlinkMessage.java52 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse() local
53 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
54 if (payloadLength < 0 || payloadLength > byteBuffer.remaining()) { in parse()
65 byteBuffer.position(byteBuffer.position() + payloadLength); in parse()
78 byteBuffer.position(byteBuffer.position() + payloadLength); in parse()
DStructNlAttr.java143 int payloadLength = 0; in StructNlAttr() local
144 for (StructNlAttr nla : nested) payloadLength += nla.getAlignedLength(); in StructNlAttr()
145 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()
/frameworks/base/core/java/android/nfc/
DNdefRecord.java824 long payloadLength = sr ? (buffer.get() & 0xFF) : (buffer.getInt() & 0xFFFFFFFFL); in parse() local
838 ensureSanePayloadSize(payloadLength); in parse()
839 payload = (payloadLength > 0 ? new byte[(int)payloadLength] : EMPTY_BYTE_ARRAY); in parse()
856 payloadLength = 0; in parse()
858 payloadLength += p.length; in parse()
860 ensureSanePayloadSize(payloadLength); in parse()
861 payload = new byte[(int)payloadLength]; in parse()
1006 int payloadLength = in.readInt();
1007 byte[] payload = new byte[payloadLength];
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeNoncePayload.java82 int payloadLength = GENERIC_HEADER_LENGTH + nonceData.length; in encodeToByteBuffer() local
84 encodePayloadHeaderToByteBuffer(nextPayload, payloadLength, byteBuffer); in encodeToByteBuffer()
DIkePayload.java144 @PayloadType int nextPayload, int payloadLength, ByteBuffer byteBuffer) { in encodePayloadHeaderToByteBuffer() argument
148 .putShort((short) payloadLength); in encodePayloadHeaderToByteBuffer()
DIkeEncryptedPayloadBody.java151 int payloadLength = in IkeEncryptedPayloadBody() local
157 firstPayloadType, payloadLength, authenticatedSectionBuffer); in IkeEncryptedPayloadBody()
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeAuthPskPayloadTest.java89 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload() local
91 assertEquals(expectedPayload.length, payloadLength); in testBuildOutboundIkeAuthPskPayload()
94 ByteBuffer byteBuffer = ByteBuffer.allocate(payloadLength); in testBuildOutboundIkeAuthPskPayload()
DIkeSkPayloadTest.java96 int payloadLength = payload.getPayloadLength(); in testEncode() local
97 ByteBuffer buffer = ByteBuffer.allocate(payloadLength); in testEncode()
/frameworks/av/media/libstagefright/rtsp/
DAMPEG4AudioAssembler.cpp374 unsigned payloadLength = 0; in removeLATMFraming() local
390 payloadLength = muxSlotLengthBytes; in removeLATMFraming()
406 payloadLength = mFixedFrameLength; in removeLATMFraming()
412 CHECK_LE(payloadLength, buffer->size() - offset); in removeLATMFraming()
414 memcpy(out->data() + out->size(), &ptr[offset], payloadLength); in removeLATMFraming()
415 out->setRange(0, out->size() + payloadLength); in removeLATMFraming()
417 offset += payloadLength; in removeLATMFraming()