Home
last modified time | relevance | path

Searched refs:checkSum (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java219 if (checkSum(buf, 0, IH_CHECKSUM) != sum) { in loadIndex()
312 writeInt(buf, IH_CHECKSUM, checkSum(buf, 0, IH_CHECKSUM)); in resetCache()
345 checkSum(mIndexHeader, 0, IH_CHECKSUM)); in updateIndexHeader()
399 int sum = checkSum(data); in insertInternal()
528 if (checkSum(blob, 0, length) != sum) { in getBlob()
619 int checkSum(byte[] data) { in checkSum() method in BlobCache
625 int checkSum(byte[] data, int offset, int nbytes) { in checkSum() method in BlobCache
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java510 byte[] checkSum = TestUtils.hexStringToByteArray(IKE_EMPTY_INFO_MSG_CHECKSUM_HEX_STRING); in testEncodeAndEncryptEmptyMsg()
511 doReturn(checkSum.length).when(mMockIntegrity).getChecksumLen(); in testEncodeAndEncryptEmptyMsg()
512 doReturn(checkSum).when(mMockIntegrity).generateChecksum(any(), any()); in testEncodeAndEncryptEmptyMsg()