/external/libchrome/base/metrics/ |
bucket_ranges_unittest.cc | 22 EXPECT_EQ(0u, ranges.checksum()); 50 // Checksum does not match. 60 TEST(BucketRangesTest, Checksum) { 67 EXPECT_EQ(289217253u, ranges.checksum()); 73 EXPECT_EQ(2843835776u, ranges.checksum()); 81 uint32_t checksum = i; local 84 if (checksum & 1) 85 checksum = kReversedPolynomial ^ (checksum >> 1); 87 checksum >>= 1 [all...] |
bucket_ranges.h | 43 uint32_t checksum() const { return checksum_; } function in class:base::BucketRanges 44 void set_checksum(uint32_t checksum) { checksum_ = checksum; } 52 // Checksum methods to verify whether the ranges are corrupted (e.g. bad 67 // Checksum for the conntents of ranges_. Used to detect random over-writes
|
/external/skia/tools/skqp/ |
download_model | 15 def checksum(path): function 27 if not md5 == checksum(path): 48 checksum_path = 'files.checksum'
|
/external/skqp/tools/skqp/ |
download_model | 15 def checksum(path): function 27 if not md5 == checksum(path): 48 checksum_path = 'files.checksum'
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
Rfc1071.java | 20 static int checksum(byte[] data, int length) { method in class:Rfc1071
|
/prebuilts/go/darwin-x86/src/hash/adler32/ |
adler32_test.go | 64 // checksum is a slow but simple implementation of the Adler-32 checksum. 66 func checksum(p []byte) uint32 { func 82 if got := checksum(p); got != g.out { 83 t.Errorf("simple implementation: checksum(%q) = 0x%x want 0x%x", in, got, g.out) 86 if got := Checksum(p); got != g.out { 87 t.Errorf("optimized implementation: Checksum(%q) = 0x%x want 0x%x", in, got, g.out) 107 t.Errorf("checksum(%q) state = %q, want %q", g.in, state, g.halfState) 120 t.Errorf("checksum(%q) = 0x%x != marshaled (0x%x)", g.in, h.Sum32(), h2.Sum32())
|
/prebuilts/go/linux-x86/src/hash/adler32/ |
adler32_test.go | 64 // checksum is a slow but simple implementation of the Adler-32 checksum. 66 func checksum(p []byte) uint32 { func 82 if got := checksum(p); got != g.out { 83 t.Errorf("simple implementation: checksum(%q) = 0x%x want 0x%x", in, got, g.out) 86 if got := Checksum(p); got != g.out { 87 t.Errorf("optimized implementation: Checksum(%q) = 0x%x want 0x%x", in, got, g.out) 107 t.Errorf("checksum(%q) state = %q, want %q", g.in, state, g.halfState) 120 t.Errorf("checksum(%q) = 0x%x != marshaled (0x%x)", g.in, h.Sum32(), h2.Sum32())
|
/external/pdfium/fxbarcode/oned/ |
BC_OnedCode128Writer_unittest.cpp | 12 int32_t checksum; member in struct:__anon31240::TestCase 38 int32_t checksum = local 40 EXPECT_EQ(test_case.checksum, checksum); 71 int32_t checksum = local 73 EXPECT_EQ(test_case.checksum, checksum);
|
/external/guava/guava/src/com/google/common/hash/ |
ChecksumHashFunction.java | 23 import java.util.zip.Checksum; 26 * {@link HashFunction} adapter for {@link Checksum} instances. 32 private final Supplier<? extends Checksum> checksumSupplier; 36 ChecksumHashFunction(Supplier<? extends Checksum> checksumSupplier, int bits, String toString) { 59 * Hasher that updates a checksum. 63 private final Checksum checksum; field in class:ChecksumHashFunction.ChecksumHasher 65 private ChecksumHasher(Checksum checksum) { 66 this.checksum = checkNotNull(checksum) [all...] |
/external/guava/guava-tests/test/com/google/common/hash/ |
ChecksumHashFunctionTest.java | 24 import java.util.zip.Checksum; 67 private static void assertChecksum(Supplier<Checksum> supplier, String input) { 70 Checksum checksum = supplier.get(); local 71 checksum.update(bytes, 0, bytes.length); 72 long value = checksum.getValue(); 80 private static void assertHash32(int expected, Supplier<Checksum> supplier, String input) {
|
/external/desugar/java/com/google/devtools/build/android/desugar/ |
ZipOutputFileProvider.java | 61 // Need to pre-compute checksum for STORED (uncompressed) entries) 62 CRC32 checksum = new CRC32(); local 63 checksum.update(content); 67 result.setCrc(checksum.getValue());
|
/art/libdexfile/dex/ |
compact_dex_file.cc | 74 uint32_t checksum = ChecksumMemoryRange(reinterpret_cast<const uint8_t*>(&temp_header), local 76 // Exclude the header since we already computed it's checksum. 77 checksum = (checksum * 31) ^ ChecksumMemoryRange(base_begin + sizeof(temp_header), 79 checksum = (checksum * 31) ^ ChecksumMemoryRange(data_begin, data_size); 80 return checksum;
|
/device/google/contexthub/util/stm32_flash/ |
stm32_bl.c | 22 * checksum a sequence of bytes. 26 uint8_t checksum(__attribute__((unused)) handle_t *handle, uint8_t *bytes, int length) function
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
ChecksumBenchmark.java | 26 import java.util.zip.Checksum; 29 * Benchmarks for comparing {@link Checksum}s and {@link HashFunction}s that wrap {@link Checksum}s. 60 CRC32 checksum = new CRC32(); local 61 checksum.update(testBytes); 62 result ^= checksum.getValue(); 76 Adler32 checksum = new Adler32(); local 77 checksum.update(testBytes); 78 result ^= checksum.getValue();
|
/external/pdfium/fxbarcode/ |
cbc_ean13.cpp | 43 int32_t checksum = pWriter->CalcChecksum(byteString); local 44 byteString += checksum - 0 + '0';
|
cbc_ean8.cpp | 42 int32_t checksum = pWriter->CalcChecksum(byteString); local 43 encodeContents += wchar_t(checksum - 0 + '0');
|
cbc_upca.cpp | 42 int32_t checksum = pWriter->CalcChecksum(byteString); local 43 byteString += checksum - 0 + '0';
|
/external/rmi4utils/rmi4update/ |
firmware_image.cpp | 28 unsigned long FirmwareImage::Checksum(unsigned short * data, unsigned long len) 30 unsigned long checksum = 0xFFFFFFFF; local 31 unsigned long lsw = checksum & 0xFFFF; 32 unsigned long msw = checksum >> 16; 41 checksum = msw << 16 | lsw; 43 return checksum; 78 unsigned long calculated_checksum = Checksum((uint16_t *)&(m_memBlock[4]), 82 fprintf(stderr, "Firmware image checksum verification failed, saw 0x%08lX, calculated 0x%08lX\n", 135 fprintf(stdout, "Checksum:\t\t0x%lx\n", m_checksum);
|
/external/syslinux/com32/gplinclude/acpi/ |
rsdp.h | 28 uint8_t checksum; member in struct:__anon36926
|
/external/syslinux/gpxe/src/arch/i386/firmware/pcbios/ |
pnpbios.c | 46 /** Checksum */ 47 uint8_t checksum; member in struct:pnp_bios 74 /* Read whole header and verify checksum */
|
/external/syslinux/gpxe/src/include/gpxe/ |
acpi.h | 28 uint8_t checksum; member in struct:acpi_description_header
|
/external/syslinux/memdisk/ |
acpi.h | 43 uint8_t checksum; member in struct:acpi_description_header
|
/external/zopfli/src/zopfli/ |
zlib_container.c | 28 /* Calculates the adler32 checksum of the data */ 54 unsigned checksum = adler32(in, (unsigned)insize); local 68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); 69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); 70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); 71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MD5Calculator.java | 26 public static String checksum(final InputStream in) throws IOException { method in class:MD5Calculator
|
/system/nfc/src/adaptation/ |
CrcChecksum.cc | 67 ** Description Compute a checksum on a buffer of data. 69 ** Returns 2-byte checksum. 87 ** Description Detect any corruption in a file by computing a checksum. 99 unsigned short checksum = 0; local 101 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); 111 if ((actualReadCrc == sizeof(checksum)) && (data.size() > 0)) { 114 if (checksum == 118 LOG(ERROR) << StringPrintf("%s: checksum mismatch", __func__);
|