/frameworks/av/media/module/codecs/mp3dec/src/ |
D | pvmp3_crc.cpp | 125 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()
|
D | pvmp3_get_side_info.cpp | 118 uint32 *crc) in pvmp3_get_side_info() argument 134 tmp = getbits_crc(inputStream, 14, crc, info->error_protection); in pvmp3_get_side_info() 145 tmp = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info() 158 tmp = getbits_crc(inputStream, 4, crc, info->error_protection); in pvmp3_get_side_info() 174 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info() 175 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info() 189 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info() 226 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info() 243 tmp = getbits_crc(inputStream, 3, crc, info->error_protection); in pvmp3_get_side_info() 257 si->main_data_begin = getbits_crc(inputStream, 8, crc, info->error_protection); in pvmp3_get_side_info() [all …]
|
D | pvmp3_decode_header.cpp | 117 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()
|
D | pvmp3_crc.h | 86 uint32 *crc, 92 uint32 *crc);
|
D | pvmp3_decode_header.h | 91 uint32 *crc);
|
D | pvmp3_get_side_info.h | 92 uint32 *crc);
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | HarmfulCrcs.java | 42 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()
|
D | WatchlistConfig.java | 202 final CRC32 crc = new CRC32(); in getCrc32() local 203 crc.update(str.getBytes()); in getCrc32() 204 return (int) crc.getValue(); in getCrc32()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | ChecksumPerfTest.java | 59 CRC32 crc = new CRC32(); in timeCrc_block() local 62 crc.update(bytes); in timeCrc_block() 68 CRC32 crc = new CRC32(); in timeCrc_byte() local 71 crc.update(1); in timeCrc_byte()
|
/frameworks/base/cmds/idmap2/tests/ |
D | FabricatedOverlayTests.cpp | 71 auto crc = (*container).GetCrc(); in TEST() local 72 ASSERT_TRUE(crc) << crc.GetErrorMessage(); in TEST() 73 EXPECT_NE(0U, *crc); in TEST() 156 auto crc = (*container)->GetCrc(); in TEST() local 157 ASSERT_TRUE(crc) << crc.GetErrorMessage(); in TEST() 158 EXPECT_NE(0U, *crc); in TEST()
|
/frameworks/multidex/library/test/src/androidx/multidex/ |
D | ZipUtilTest.java | 60 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
|
D | ZipEntryReader.java | 69 long crc = ((long) in.getInt()) & 0xffffffffL; in readEntry() local 89 entry.setCrc(crc); in readEntry()
|
/frameworks/av/media/libstagefright/ |
D | MPEG2TSWriter.cpp | 710 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/src/androidx/multidex/ |
D | MultiDexExtractor.java | 53 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()
|
D | ZipUtil.java | 108 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/ |
D | FileBlobCache.cpp | 103 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); in FileBlobCache() local 104 if (crc32c(buf + headerSize, cacheSize) != *crc) { in FileBlobCache() 177 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); in writeToFile() local 178 *crc = crc32c(buf + headerSize, cacheSize); in writeToFile()
|
D | MultifileBlobCache.h | 42 uint32_t crc; member 55 uint32_t crc; member
|
D | MultifileBlobCache.cpp | 217 if (header.crc != in MultifileBlobCache() 535 status.crc = in createStatus() 602 if (status.crc != in checkStatus() 843 header->crc = in processTask()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioDeviceBroker.java | 459 for (CommunicationRouteClient crc : mCommunicationRouteClients) { in topCommunicationRouteClient() 460 if (crc.getUid() == mAudioModeOwner.mUid) { in topCommunicationRouteClient() 461 return crc; in topCommunicationRouteClient() 479 CommunicationRouteClient crc = topCommunicationRouteClient(); in requestedCommunicationDevice() local 480 AudioDeviceAttributes device = crc != null ? crc.getDevice() : null; in requestedCommunicationDevice() 532 for (CommunicationRouteClient crc : mCommunicationRouteClients) { in onCheckCommunicationDeviceRemoval() 533 if (device.equals(crc.getDevice())) { in onCheckCommunicationDeviceRemoval() 536 + crc.toString()); in onCheckCommunicationDeviceRemoval() 541 crc.getBinder(), crc.getUid(), device, false, in onCheckCommunicationDeviceRemoval() 543 crc.isPrivileged()); in onCheckCommunicationDeviceRemoval() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | Utils.java | 156 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/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 95 uLong crc = crc32(0L, Z_NULL, 0); in isFileDifferent() local 99 crc = crc32(crc, crcBuffer, numBytes); in isFileDifferent() 103 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); in isFileDifferent() 105 if (crc != static_cast<uLong>(zipCrc)) { in isFileDifferent() 146 uint32_t crc; in copyFileIfChanged() local 151 if (!zipFile->getEntryInfo(zipEntry, &method, &uncompLen, nullptr, &offset, &when, &crc, in copyFileIfChanged() 216 if (!isFileDifferent(localFileName, uncompLen, modTime, crc, &st)) { in copyFileIfChanged()
|
/frameworks/base/tools/aapt/ |
D | ZipFile.cpp | 366 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/base/native/graphics/jni/fuzz/ |
D | png_mutator.h | 217 uint32_t crc = crc32(0, (const unsigned char *)type, 4); variable 219 crc = crc32(crc, (const unsigned char *)v->data(), v->size()); 223 WriteInt(out, crc);
|
/frameworks/base/core/java/android/app/backup/ |
D | BlobBackupHelper.java | 221 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/ |
D | BackupHelpers.cpp | 321 int crc = crc32(0L, Z_NULL, 0); in compute_crc32() local 326 crc = crc32(crc, (Bytef*)buf, amt); in compute_crc32() 332 out->s.crc32 = crc; in compute_crc32() 756 int crc; in WriteFile() local 786 crc = crc32(0L, Z_NULL, 0); in WriteFile() 800 crc = crc32(crc, (Bytef*)buf, amt); in WriteFile() 819 r.s.crc32 = crc; in WriteFile()
|