Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java273 byte[] payloadBytes = getByteArrayFromBuffer(payloadBuffer); in addPacketBytes()
276 resultBuffer.putShort(calculateChecksum(header, payloadBytes)); in addPacketBytes()
279 resultBuffer.put(payloadBytes); in addPacketBytes()
282 private short calculateChecksum(IpHeader header, byte[] payloadBytes) throws Exception { in calculateChecksum() argument
301 ShortBuffer payloadShortBuffer = ByteBuffer.wrap(payloadBytes).asShortBuffer(); in calculateChecksum()
308 newChecksum, (payloadBytes[payloadBytes.length - 1] << 8)); in calculateChecksum()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java313 byte[] payloadBytes = getByteArrayFromBuffer(payloadBuffer); in addPacketBytes()
316 resultBuffer.putShort(calculateChecksum(header, payloadBytes)); in addPacketBytes()
319 resultBuffer.put(payloadBytes); in addPacketBytes()
322 private short calculateChecksum(IpHeader header, byte[] payloadBytes) throws Exception { in calculateChecksum() argument
341 ShortBuffer payloadShortBuffer = ByteBuffer.wrap(payloadBytes).asShortBuffer(); in calculateChecksum()
348 newChecksum, (payloadBytes[payloadBytes.length - 1] << 8)); in calculateChecksum()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java192 byte[] payloadBytes = new byte[payload.position()]; in createHandoverSelectRecord()
194 payload.get(payloadBytes); in createHandoverSelectRecord()
196 payloadBytes); in createHandoverSelectRecord()
212 byte[] payloadBytes = new byte[payload.position()]; in createHandoverRequestRecord()
214 payload.get(payloadBytes); in createHandoverRequestRecord()
216 payloadBytes); in createHandoverRequestRecord()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSkPayloadTest.java89 byte[] payloadBytes = in testEncode()
104 assertArrayEquals(payloadBytes, buffer.array()); in testEncode()
DIkeTestUtils.java45 byte[] payloadBytes = TestUtils.hexStringToByteArray(payloadHexString); in hexStringToIkePayload()
48 IkePayloadFactory.getIkePayload(payloadType, isResp, ByteBuffer.wrap(payloadBytes)); in hexStringToIkePayload()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java2725 byte [] payloadBytes = Arrays.copyOfRange(bytes, 12, bytes.length);
2728 mWifiNative.addHlpReq(mInterfaceName, dstAddress, payloadBytes);