Home
last modified time | relevance | path

Searched refs:payloadBytes (Results 1 – 9 of 9) 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.java191 byte[] payloadBytes = new byte[payload.position()]; in createHandoverSelectRecord()
193 payload.get(payloadBytes); in createHandoverSelectRecord()
195 payloadBytes); in createHandoverSelectRecord()
211 byte[] payloadBytes = new byte[payload.position()]; in createHandoverRequestRecord()
213 payload.get(payloadBytes); in createHandoverRequestRecord()
215 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/StatsD/statsd/src/shell/
DShellSubscriberClient.cpp350 vector<uint8_t> payloadBytes; in triggerCallback() local
351 mProtoOut.serializeToVector(&payloadBytes); in triggerCallback()
353 const Status status = mCallback->onSubscriptionData(reason, payloadBytes); in triggerCallback()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java3653 byte [] payloadBytes = Arrays.copyOfRange(bytes, 12, bytes.length); in addLayer2PacketsToHlpReq()
3656 mWifiNative.addHlpReq(mInterfaceName, dstAddress, payloadBytes); in addLayer2PacketsToHlpReq()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dgoogle-http-client-1.36.0.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-http-client-1.30.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...