Searched refs:crc (Results 1 - 5 of 5) sorted by relevance
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/ |
H A D | BackendTest.java | 36 public static boolean crcMatches(File f, long crc) { argument 39 return getChecksum(f) == crc; 110 CRC32 crc = new CRC32(); 113 crc.reset(); 115 crc.update(bytes, 0, byteCount); 118 long sum = crc.getValue(); 120 Log.d("AVST", "crc is --" + sum + "--");
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | BrowserBackupAgent.java | 93 long crc = -1; 99 crc = copyBackupToFile(data, tmpfile, data.getDataSize()); 147 crc = -1; 157 writeBackupState(tmpfile.length(), crc, newState); 191 CRC32 crc = new CRC32(); 197 crc.update(buf, 0, numRead); 206 return crc.getValue(); 210 private void writeBackupState(long fileSize, long crc, ParcelFileDescriptor stateFile) argument 216 out.writeLong(crc);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Utils.java | 152 * A function thats returns a 64-bit crc for string 155 * @return a 64-bit crc value 178 long crc = INITIALCRC; 180 crc = sCrcTable[(((int) crc) ^ buffer[k]) & 0xff] ^ (crc >> 8); 182 return crc;
|
/packages/apps/Nfc/jni/ |
H A D | com_android_nfc_NativeNfcTag.cpp | 659 uint16_t b, crc = init; local 662 b = *msg++ ^ (crc & 0xFF); 664 crc = (crc >> 8) ^ (b << 8) ^ (b << 3) ^ (b >> 4); 667 return crc; 673 uint16_t crc; local 675 crc = crc_16_ccitt1( msg, len, 0x6363 ); 676 msg[len] = crc & 0xFF; 677 msg[len + 1] = (crc >> 8) & 0xFF; 683 uint16_t crc; local [all...] |
/packages/apps/Email/emailcommon/src/org/apache/commons/io/ |
H A D | FileUtils.java | 1677 CRC32 crc = new CRC32();
1678 checksum(file, crc);
1679 return crc.getValue();
|
Completed in 105 milliseconds