Home
last modified time | relevance | path

Searched refs:payloadBytes (Results 1 – 8 of 8) 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.java314 byte[] payloadBytes = getByteArrayFromBuffer(payloadBuffer); in addPacketBytes()
317 resultBuffer.putShort(calculateChecksum(header, payloadBytes)); in addPacketBytes()
320 resultBuffer.put(payloadBytes); in addPacketBytes()
323 private short calculateChecksum(IpHeader header, byte[] payloadBytes) throws Exception { in calculateChecksum() argument
342 ShortBuffer payloadShortBuffer = ByteBuffer.wrap(payloadBytes).asShortBuffer(); in calculateChecksum()
349 newChecksum, (payloadBytes[payloadBytes.length - 1] << 8)); in calculateChecksum()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/handover/
DHandoverDataParser.java198 byte[] payloadBytes = new byte[payload.position()]; in createHandoverSelectRecord()
200 payload.get(payloadBytes); in createHandoverSelectRecord()
202 payloadBytes); in createHandoverSelectRecord()
218 byte[] payloadBytes = new byte[payload.position()]; in createHandoverRequestRecord()
220 payload.get(payloadBytes); in createHandoverRequestRecord()
222 payloadBytes); in createHandoverRequestRecord()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTestUtils.java45 byte[] payloadBytes = TestUtils.hexStringToByteArray(payloadHexString); in hexStringToIkePayload()
48 IkePayloadFactory.getIkePayload(payloadType, isResp, ByteBuffer.wrap(payloadBytes)); in hexStringToIkePayload()
DIkeSkPayloadTest.java89 byte[] payloadBytes = in testEncode()
104 assertArrayEquals(payloadBytes, buffer.array()); in testEncode()
/packages/apps/DeviceDiagnostics/DeviceDiagnosticsLib/src/main/java/com/android/devicediagnostics/bluetooth/
DBluetoothHelpers.kt54 val payloadBytes = readFully(socket, payloadSize) in readBluetoothPacketOrEof() constant
55 return BluetoothPacket.parseFrom(payloadBytes) in readBluetoothPacketOrEof()
/packages/modules/StatsD/statsd/src/shell/
DShellSubscriberClient.cpp369 vector<uint8_t> payloadBytes; in triggerCallback() local
370 mProtoOut.serializeToVector(&payloadBytes); in triggerCallback()
372 const Status status = mCallback->onSubscriptionData(reason, payloadBytes); in triggerCallback()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java3687 byte [] payloadBytes = Arrays.copyOfRange(bytes, 12, bytes.length); in addLayer2PacketsToHlpReq()
3690 mWifiNative.addHlpReq(mInterfaceName, dstAddress, payloadBytes); in addLayer2PacketsToHlpReq()