Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_crc.cpp125 uint32 *crc, in getbits_crc() argument
132 calculate_crc(bits, neededBits, crc); in getbits_crc()
143 uint32 *crc) in calculate_crc() argument
150 carry = *crc & 0x8000; in calculate_crc()
151 *crc <<= 1; in calculate_crc()
154 *crc ^= CRC16_POLYNOMIAL; in calculate_crc()
157 *crc &= 0xffff; in calculate_crc()
Dpvmp3_get_side_info.cpp117 uint32 *crc) in pvmp3_get_side_info() argument
128 tmp = getbits_crc(inputStream, 14, crc, info->error_protection); in pvmp3_get_side_info()
134 tmp = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
142 tmp = getbits_crc(inputStream, 4, crc, info->error_protection); in pvmp3_get_side_info()
153 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
154 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
163 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
195 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
207 tmp = getbits_crc(inputStream, 3, crc, info->error_protection); in pvmp3_get_side_info()
216 si->main_data_begin = getbits_crc(inputStream, 8, crc, info->error_protection); in pvmp3_get_side_info()
[all …]
Dpvmp3_decode_header.cpp117 uint32 *crc) in pvmp3_decode_header() argument
172 *crc = 0xffff; /* CRC start value */ in pvmp3_decode_header()
173 calculate_crc((temp << 16) >> 16, 16, crc); in pvmp3_decode_header()
Dpvmp3_crc.h86 uint32 *crc,
92 uint32 *crc);
Dpvmp3_decode_header.h91 uint32 *crc);
Dpvmp3_get_side_info.h92 uint32 *crc);
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DHarmfulCrcs.java42 int crc = 0; in HarmfulCrcs() local
45 crc = (crc << 8) | (b & 0xff); in HarmfulCrcs()
47 crcSet.add(crc); in HarmfulCrcs()
53 public boolean contains(int crc) { in contains() argument
54 return mCrcSet.contains(crc); in contains()
58 for (int crc : mCrcSet) { in dump()
59 pw.println(HexDump.toHexString(crc)); in dump()
DWatchlistConfig.java202 final CRC32 crc = new CRC32(); in getCrc32() local
203 crc.update(str.getBytes()); in getCrc32()
204 return (int) crc.getValue(); in getCrc32()
/frameworks/base/cmds/idmap2/tests/
DZipFileTests.cpp44 Result<uint32_t> crc = zip->Crc("AndroidManifest.xml"); in TEST() local
45 ASSERT_TRUE(crc); in TEST()
46 ASSERT_EQ(*crc, 0x762f3d24); in TEST()
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp710 uint32_t crc = htonl(crc32(&buffer->data()[5], 12)); in writeProgramAssociationTable() local
711 memcpy(&buffer->data()[17], &crc, sizeof(crc)); in writeProgramAssociationTable()
786 uint32_t crc = htonl(crc32(&buffer->data()[5], 12+mSources.size()*5)); in writeProgramMap() local
787 memcpy(&buffer->data()[17+mSources.size()*5], &crc, sizeof(crc)); in writeProgramMap()
959 uint32_t crc = i << 24; in initCrcTable() local
961 crc = (crc << 1) ^ ((crc & 0x80000000) ? (poly) : 0); in initCrcTable()
963 mCrcTable[i] = crc; in initCrcTable()
972 uint32_t crc = 0xFFFFFFFF; in crc32() local
976 crc = (crc << 8) ^ mCrcTable[((crc >> 24) ^ *p) & 0xFF]; in crc32()
979 return crc; in crc32()
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java60 long crc = in testCrcDoNotCrash() local
62 System.out.println("crc is " + crc); in testCrcDoNotCrash()
133 long crc = ZipUtil.computeCrcOfCentralDir(raf, dir); in testCrcValue() local
134 Assert.assertEquals(refEntry.getCrc(), crc); in testCrcValue() local
163 long crc = ZipUtil.computeCrcOfCentralDir(raf, dir); in testInvalidCrcValue() local
164 Assert.assertNotEquals(refEntry.getCrc(), crc); in testInvalidCrcValue() local
DZipEntryReader.java69 long crc = ((long) in.getInt()) & 0xffffffffL; in readEntry() local
89 entry.setCrc(crc); in readEntry()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java53 public long crc = NO_VALUE; field in MultiDexExtractor.ExtractedDex
192 extractedFile.crc = getZipCrc(extractedFile); in loadExistingExtractions()
199 || (expectedCrc != extractedFile.crc)) { in loadExistingExtractions()
204 + expectedCrc + ", file crc: " + extractedFile.crc); in loadExistingExtractions()
281 extractedFile.crc = getZipCrc(extractedFile); in performExtractions()
291 + extractedFile.length() + " - crc: " + extractedFile.crc); in performExtractions()
325 long crc, List<ExtractedDex> extractedDexes) { in putStoredApkInfo() argument
329 edit.putLong(keyPrefix + KEY_CRC, crc); in putStoredApkInfo()
334 edit.putLong(keyPrefix + KEY_DEX_CRC + extractedDexId, dex.crc); in putStoredApkInfo()
DZipUtil.java108 CRC32 crc = new CRC32(); in computeCrcOfCentralDir() local
115 crc.update(buffer, 0, length); in computeCrcOfCentralDir()
123 return crc.getValue(); in computeCrcOfCentralDir()
/frameworks/native/opengl/libs/EGL/
DFileBlobCache.cpp96 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); in FileBlobCache() local
97 if (crc32c(buf + headerSize, cacheSize) != *crc) { in FileBlobCache()
168 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); in writeToFile() local
169 *crc = crc32c(buf + headerSize, cacheSize); in writeToFile()
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp136 uLong crc = crc32(0L, Z_NULL, 0); in isFileDifferent() local
140 crc = crc32(crc, crcBuffer, numBytes); in isFileDifferent()
144 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); in isFileDifferent()
146 if (crc != static_cast<uLong>(zipCrc)) { in isFileDifferent()
184 uint32_t crc; in copyFileIfChanged() local
189 if (!zipFile->getEntryInfo(zipEntry, &method, &uncompLen, NULL, &offset, &when, &crc)) { in copyFileIfChanged()
233 if (!isFileDifferent(localFileName, uncompLen, modTime, crc, &st)) { in copyFileIfChanged()
/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp340 Result<uint32_t> crc = GetPackageCrc(*target_zip); in FromApkAssets() local
341 if (!crc) { in FromApkAssets()
342 return Error(crc.GetError(), "failed to get zip CRC for target"); in FromApkAssets()
344 header->target_crc_ = *crc; in FromApkAssets()
346 crc = GetPackageCrc(*overlay_zip); in FromApkAssets()
347 if (!crc) { in FromApkAssets()
348 return Error(crc.GetError(), "failed to get zip CRC for overlay"); in FromApkAssets()
350 header->overlay_crc_ = *crc; in FromApkAssets()
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp78 const auto crc = GetPackageCrc(*zip); in GetCrc() local
79 if (!crc) { in GetCrc()
80 return error(crc.GetErrorMessage()); in GetCrc()
83 *out_crc = *crc; in GetCrc()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DUtils.java156 long crc = INITIALCRC; in crc64Long() local
158 crc = sCrcTable[(((int) crc) ^ buffer[k]) & 0xff] ^ (crc >> 8); in crc64Long()
160 return crc; in crc64Long()
/frameworks/base/tools/aapt/
DZipFile.cpp366 unsigned long crc; in addCommon() local
417 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); in addCommon()
446 result = copyFpToFp(mZipFp, inputFp, &crc); in addCommon()
448 result = copyDataToFp(mZipFp, data, size, &crc); in addCommon()
469 &compressedLen, &crc); in addCommon()
498 pEntry->setDataInfo(uncompressedLen, endPosn - startPosn, crc, in addCommon()
749 unsigned long crc; in compressFpToFp() local
788 crc = crc32(0L, Z_NULL, 0); in compressFpToFp()
818 crc = crc32(crc, inBuf, getSize); in compressFpToFp()
856 *pCRC32 = crc; in compressFpToFp()
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.cpp209 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); in saveBlobCacheLocked() local
210 *crc = crc32c(buf + headerSize, cacheSize); in saveBlobCacheLocked()
269 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); in loadBlobCacheLocked() local
270 if (crc32c(buf + headerSize, cacheSize) != *crc) { in loadBlobCacheLocked()
/frameworks/base/core/java/android/app/backup/
DBlobBackupHelper.java221 CRC32 crc = new CRC32(); in checksum() local
226 crc.update(buf, 0, nRead); in checksum()
228 return crc.getValue(); in checksum()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp317 int crc = crc32(0L, Z_NULL, 0); in compute_crc32() local
322 crc = crc32(crc, (Bytef*)buf, amt); in compute_crc32()
328 out->s.crc32 = crc; in compute_crc32()
751 int crc; in WriteFile() local
781 crc = crc32(0L, Z_NULL, 0); in WriteFile()
795 crc = crc32(crc, (Bytef*)buf, amt); in WriteFile()
814 r.s.crc32 = crc; in WriteFile()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp680 unsigned crc = br->getBits(32); in parseProgramMap() local
681 if (crc != mPMT_CRC) { in parseProgramMap()
683 mPMT_CRC = crc; in parseProgramMap()
685 MY_LOGV(" CRC = 0x%08x", crc); in parseProgramMap()
2510 uint32_t crc = 0xffffffff; in isCRCOkay() local
2513 int index = ((crc >> 24) ^ (b & 0xff)) & 0xff; in isCRCOkay()
2514 crc = CRC_TABLE[index] ^ (crc << 8); in isCRCOkay()
2516 ALOGV("crc: %08x\n", crc); in isCRCOkay()
2517 return (crc == 0); in isCRCOkay()
/frameworks/base/media/java/android/media/
DExifInterface.java3348 CRC32 crc = new CRC32(); in getPngAttributes() local
3349 crc.update(type); in getPngAttributes()
3350 crc.update(data); in getPngAttributes()
3351 if ((int) crc.getValue() != dataCrcValue) { in getPngAttributes()
3354 + "value: " + crc.getValue()); in getPngAttributes()
3603 CRC32 crc = new CRC32(); in savePngAttributes() local
3604 crc.update(exifBytes, 4 /* skip length bytes */, exifBytes.length - 4); in savePngAttributes()
3605 dataOutputStream.writeInt((int) crc.getValue()); in savePngAttributes()

12