/external/python/cpython2/Lib/ |
gzip.py | 159 self.crc = zlib.crc32("") & 0xffffffffL 191 self.crc = zlib.crc32("") & 0xffffffffL 225 self.fileobj.read(2) # Read & discard the 16-bit header CRC 243 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 330 # Check the CRC and file size, and set the flag so we read 336 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 345 # to reread the 8 bytes containing the CRC and the file size. 346 # We check the that the computed CRC and size of th [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
AbstractZipFileTest.java | 146 CRC32 crc = new CRC32(); local 147 crc.update(buffer); 148 outEntry.setCrc(crc.getValue()); 263 CRC32 crc = new CRC32(); local 265 // Missing CRC, size, and compressed size => failure. 274 // Missing CRC and compressed size => failure. 284 // Missing CRC and size => failure. 299 ze.setCrc(crc.getValue()); 309 ze.setCrc(crc.getValue()); 329 ze.setCrc(crc.getValue()) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
gzip.py | 159 self.crc = zlib.crc32("") & 0xffffffffL 184 self.crc = zlib.crc32("") & 0xffffffffL 218 self.fileobj.read(2) # Read & discard the 16-bit header CRC 235 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 323 # Check the CRC and file size, and set the flag so we read 329 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 338 # to reread the 8 bytes containing the CRC and the file size. 339 # We check the that the computed CRC and size of th [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
gzip.py | 159 self.crc = zlib.crc32("") & 0xffffffffL 184 self.crc = zlib.crc32("") & 0xffffffffL 218 self.fileobj.read(2) # Read & discard the 16-bit header CRC 235 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 323 # Check the CRC and file size, and set the flag so we read 329 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 338 # to reread the 8 bytes containing the CRC and the file size. 339 # We check the that the computed CRC and size of th [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
gzip.py | 159 self.crc = zlib.crc32("") & 0xffffffffL 184 self.crc = zlib.crc32("") & 0xffffffffL 218 self.fileobj.read(2) # Read & discard the 16-bit header CRC 235 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 323 # Check the CRC and file size, and set the flag so we read 329 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 338 # to reread the 8 bytes containing the CRC and the file size. 339 # We check the that the computed CRC and size of th [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
gzip.py | 159 self.crc = zlib.crc32("") & 0xffffffffL 184 self.crc = zlib.crc32("") & 0xffffffffL 218 self.fileobj.read(2) # Read & discard the 16-bit header CRC 235 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 323 # Check the CRC and file size, and set the flag so we read 329 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL 338 # to reread the 8 bytes containing the CRC and the file size. 339 # We check the that the computed CRC and size of th [all...] |
/build/make/tools/zipalign/ |
ZipFile.cpp | 367 uint32_t crc; local 417 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); 446 result = copyFpToFp(mZipFp, inputFp, &crc); 448 result = copyDataToFp(mZipFp, data, size, &crc); 471 pEntry->setDataInfo(uncompressedLen, endPosn - startPosn, crc, 684 uint32_t crc; local 685 if (compressFpToFp(mZipFp, NULL, buf, uncompressedLen, &crc) != NO_ERROR) { 802 * If "pCRC32" is NULL, the CRC will not be computed. 858 uint32_t crc; local 864 crc = crc32(0L, Z_NULL, 0) [all...] |
/external/zlib/src/examples/ |
gzappend.c | 63 The gzip trailer containing the CRC-32 and length of the uncompressed data 76 When that is complete, the new CRC-32 and uncompressed length are written 263 unsigned long crc, tot; local 295 crc = crc32(0L, Z_NULL, 0); 316 /* update crc and sliding window pointer */ 317 crc = crc32(crc, window + have, DSIZE - have - strm->avail_out); 343 if (crc != read4(&gz)) 344 bye("invalid compressed data--crc mismatch in ", name); 367 /* set up deflate stream with window, crc, total_in, and leftover bits * [all...] |
/prebuilts/go/darwin-x86/src/compress/bzip2/ |
bzip2.go | 171 // End of block. Check CRC. 191 // Check end-of-file CRC. 482 crc := uint32(i) << 24 484 if crc&0x80000000 != 0 { 485 crc = (crc << 1) ^ poly 487 crc <<= 1 490 crctab[i] = crc 494 // updateCRC updates the crc value to incorporate the data in b. 497 crc := ^va [all...] |
/prebuilts/go/linux-x86/src/compress/bzip2/ |
bzip2.go | 171 // End of block. Check CRC. 191 // Check end-of-file CRC. 482 crc := uint32(i) << 24 484 if crc&0x80000000 != 0 { 485 crc = (crc << 1) ^ poly 487 crc <<= 1 490 crctab[i] = crc 494 // updateCRC updates the crc value to incorporate the data in b. 497 crc := ^va [all...] |
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
ChecksumReporter.java | 156 * Calculate CRC of file and store the result 157 * @param file crc calculated on this file 158 * @param path part of the key to identify the files crc 161 byte[] crc; 163 crc = calculateFileChecksum(file); 165 crc = new byte[0]; 168 mFileChecksum.put(key, crc); 177 byte[] crc = calculateFileChecksum(file); 178 return Arrays.equals(mFileChecksum.get(key), crc);
|
/toolchain/binutils/binutils-2.27/zlib/examples/ |
gzappend.c | 63 The gzip trailer containing the CRC-32 and length of the uncompressed data 76 When that is complete, the new CRC-32 and uncompressed length are written 263 unsigned long crc, tot; local 295 crc = crc32(0L, Z_NULL, 0); 316 /* update crc and sliding window pointer */ 317 crc = crc32(crc, window + have, DSIZE - have - strm->avail_out); 343 if (crc != read4(&gz)) 344 bye("invalid compressed data--crc mismatch in ", name); 367 /* set up deflate stream with window, crc, total_in, and leftover bits * [all...] |
/device/google/marlin/recovery/gpt-utils/ |
gpt-utils.cpp | 292 uint32_t crc; local 341 crc = crc32(0, pentries, pentries_array_size); 342 if (GET_4_BYTES(gpt_header + PARTITION_CRC_OFFSET) != crc) { 343 fprintf(stderr, "Primary GPT partition entries array CRC invalid\n"); 364 crc = crc32(0, pentries, pentries_array_size); 365 PUT_4_BYTES(gpt_header + PARTITION_CRC_OFFSET, crc); 367 /* header CRC is calculated with this field cleared */ 369 crc = crc32(0, gpt_header, gpt_header_size); 370 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc); 390 * \brief Checks GPT state (header signature and CRC) 405 uint32_t crc; local 471 uint32_t crc; local [all...] |
/hardware/qcom/msm8998/gpt-utils/ |
gpt-utils.cpp | 292 uint32_t crc; local 341 crc = crc32(0, pentries, pentries_array_size); 342 if (GET_4_BYTES(gpt_header + PARTITION_CRC_OFFSET) != crc) { 343 fprintf(stderr, "Primary GPT partition entries array CRC invalid\n"); 364 crc = crc32(0, pentries, pentries_array_size); 365 PUT_4_BYTES(gpt_header + PARTITION_CRC_OFFSET, crc); 367 /* header CRC is calculated with this field cleared */ 369 crc = crc32(0, gpt_header, gpt_header_size); 370 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc); 390 * \brief Checks GPT state (header signature and CRC) 405 uint32_t crc; local 471 uint32_t crc; local [all...] |
/external/brotli/java/org/brotli/wrapper/enc/ |
BrotliEncoderChannelTest.java | 116 long crc = BundleHelper.fingerprintStream(decoder); local 117 assertEquals(originalCrc, crc);
|
/external/python/cpython2/Lib/test/ |
test_binascii.py | 141 crc = binascii.crc_hqx(self.type2test(b"Test the CRC-32 of"), 0) 142 crc = binascii.crc_hqx(self.type2test(b" this string."), crc) 143 self.assertEqual(crc, 14290) 149 crc = binascii.crc32(self.type2test("Test the CRC-32 of")) 150 crc = binascii.crc32(self.type2test(" this string."), crc) 151 self.assertEqual(crc, 1571220330 [all...] |
/external/tensorflow/tensorflow/core/lib/io/ |
format.cc | 84 // Read the block contents as well as the type/crc footer. 99 // Check the crc of the type and the block contents 104 const uint32 crc = crc32c::Unmask(core::DecodeFixed32(data + n + 1)); local 106 if (actual != crc) {
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
crc.c | 11 #include "crc.h" 70 * This function returns a 32 bit CRC checksum of a bit stream 77 * - crc : checksum 85 uint32_t* crc) 108 *crc = ~crc_state;
|
/system/core/libsparse/ |
simg_dump.py | 174 print("CRC32 chunk should have 4 bytes of CRC, but this has %u" 179 crc = struct.unpack("<I", crc_bin) 180 curtype = format("Unverified CRC32 0x%08X" % (crc))
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/arm/ |
crc32-bad.d | 3 #as: -march=armv8-a+crc
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_binascii.py | 141 crc = binascii.crc32(self.type2test("Test the CRC-32 of"))
142 crc = binascii.crc32(self.type2test(" this string."), crc)
143 self.assertEqual(crc, 1571220330)
|
/external/elfutils/libdwfl/ |
dwfl_build_id_find_debuginfo.c | 40 GElf_Word crc __attribute__ ((unused)),
|
/external/fio/ |
verify-state.h | 53 uint64_t crc; member in struct:verify_state_hdr
|
/external/lzma/Java/SevenZip/ |
LzmaBench.java | 116 public CRC CRC = new CRC();
120 CRC.Init();
124 return CRC.GetDigest();
128 CRC.Update(b);
132 CRC.Update(b, off, len);
136 CRC.UpdateByte(b);
321 CRC crc = new CRC(); local [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_binascii.py | 141 crc = binascii.crc32(self.type2test("Test the CRC-32 of")) 142 crc = binascii.crc32(self.type2test(" this string."), crc) 143 self.assertEqual(crc, 1571220330)
|