Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/external/deqp/scripts/khr_util/
Dregistry_cache.py37 def __init__(self, repository, filename, revision, checksum): argument
41 self.checksum = checksum
44 return hash((self.repository, self.filename, self.revision, self.checksum))
47 …, self.filename, self.revision, self.checksum) == (other.repository, other.filename, other.revisio…
56 return self.checksum
103 def fetchFile (dstPath, repository, revision, filename, checksum, cacheDir): argument
116 if checksum != gotChecksum:
117 raise Exception("Checksum mismatch, expected %s, got %s" % (checksum, gotChecksum))
121 def checkFile (filename, checksum): argument
129 return computeChecksum(readFile(filename)) == checksum
[all …]
/external/autotest/client/cros/video/
Dframe_checksum_utils.py18 for checksum in checksums:
19 if checksum in counts:
20 counts[checksum] += 1
22 counts[checksum] = 1
37 for i, checksum in enumerate(checksums):
38 if checksum not in d:
39 d[checksum] = i
/external/libchrome/base/metrics/
Dbucket_ranges_unittest.cc22 EXPECT_EQ(0u, ranges.checksum()); in TEST()
67 EXPECT_EQ(289217253u, ranges.checksum()); in TEST()
73 EXPECT_EQ(2843835776u, ranges.checksum()); in TEST()
81 uint32_t checksum = i; in TEST() local
84 if (checksum & 1) in TEST()
85 checksum = kReversedPolynomial ^ (checksum >> 1); in TEST()
87 checksum >>= 1; in TEST()
89 EXPECT_EQ(kCrcTable[i], checksum); in TEST()
/external/android-clat/
Dchecksum.c35 uint32_t checksum = current; in ip_checksum_add() local
40 checksum += *data_16; in ip_checksum_add()
45 checksum += *(uint8_t *)data_16; in ip_checksum_add()
48 return checksum; in ip_checksum_add()
131 uint16_t ip_checksum_adjust(uint16_t checksum, uint32_t old_hdr_sum, uint32_t new_hdr_sum) { in ip_checksum_adjust() argument
134 checksum = ~checksum; in ip_checksum_adjust()
135 uint16_t folded_sum = ip_checksum_fold(checksum + new_hdr_sum); in ip_checksum_adjust()
/external/syslinux/gpxe/src/util/Option/
DROM.pm149 sub checksum { subroutine
231 checksum => { offset => 0x06, length => 0x01, pack => "C" },
348 sub checksum { subroutine
367 $hash->{checksum} = ( ( $hash->{checksum} - $hash->checksum() ) & 0xff );
448 checksum => { offset => 0x09, length => 0x01, pack => "C" },
465 sub checksum { subroutine
469 return $self->checksum();
476 $hash->{checksum} = ( ( $hash->{checksum} - $hash->checksum() ) & 0xff );
/external/guava/guava/src/com/google/common/hash/
DChecksumHashFunction.java63 private final Checksum checksum; field in ChecksumHashFunction.ChecksumHasher
65 private ChecksumHasher(Checksum checksum) { in ChecksumHasher() argument
66 this.checksum = checkNotNull(checksum); in ChecksumHasher()
71 checksum.update(b); in update()
76 checksum.update(bytes, off, len); in update()
81 long value = checksum.getValue(); in hash()
/external/stressapptest/src/
Dadler32memcpy.cc87 AdlerChecksum *checksum) { in CalculateAdlerChecksum() argument
119 checksum->Set(a1, a2, b1, b2); in CalculateAdlerChecksum()
125 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyC() argument
159 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyC()
166 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyWarmC() argument
221 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyWarmC()
227 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyAsm() argument
393 if (checksum != NULL) { in AdlerMemcpyAsm()
394 checksum->Set(checksum_arr[0], checksum_arr[1], in AdlerMemcpyAsm()
509 if (checksum != NULL) { in AdlerMemcpyAsm()
[all …]
Dadler32memcpy.h43 AdlerChecksum *checksum);
47 unsigned int size_in_bytes, AdlerChecksum *checksum);
52 unsigned int size_in_bytes, AdlerChecksum *checksum);
56 unsigned int size_in_bytes, AdlerChecksum *checksum);
/external/scapy/doc/scapy/
Dfunctions.rst8 UDP checksum
11 The following example explains howto use the checksum() function to compute and
12 UDP checksum manually. The following steps must be performed:
16 3. call checksum() with the pseudo header and the UDP packet
22 # Get the UDP checksum computed by Scapy
27 # Set the UDP checksum to 0 and compute the checksum 'manually'
/external/syslinux/gpxe/src/util/
Ddisrom.pl40 printf " %-16s 0x%02x (%s0x%02x)\n", "Checksum:", $rom->{checksum},
41 ( ( $rom->checksum == 0 ) ? "" : "INCORRECT: " ), $rom->checksum;
71 printf " %-16s 0x%02x (%s0x%02x)\n", "Checksum:", $pnp->{checksum},
72 ( ( $pnp->checksum == 0 ) ? "" : "INCORRECT: " ), $pnp->checksum;
/external/pdfium/fxbarcode/oned/
DBC_OnedCode39Writer.cpp152 int32_t checksum = 0; in CalcCheckSum() local
158 checksum += j; in CalcCheckSum()
165 return kOnedCode39Checksum[checksum % FX_ArraySize(kOnedCode39Checksum)]; in CalcCheckSum()
170 char checksum = CalcCheckSum(contents); in EncodeImpl() local
171 if (checksum == '*') in EncodeImpl()
179 encodedContents += checksum; in EncodeImpl()
240 char checksum; in encodedContents() local
241 checksum = CalcCheckSum(str); in encodedContents()
242 if (checksum == '*') in encodedContents()
244 str += checksum; in encodedContents()
[all …]
DBC_OnedCode128Writer_unittest.cpp12 int32_t checksum; member
38 int32_t checksum = in TEST() local
40 EXPECT_EQ(test_case.checksum, checksum); in TEST()
71 int32_t checksum = in TEST() local
73 EXPECT_EQ(test_case.checksum, checksum); in TEST()
/external/guava/guava-tests/benchmark/com/google/common/hash/
DChecksumBenchmark.java60 CRC32 checksum = new CRC32(); in crc32Checksum() local
61 checksum.update(testBytes); in crc32Checksum()
62 result ^= checksum.getValue(); in crc32Checksum()
76 Adler32 checksum = new Adler32(); in adler32Checksum() local
77 checksum.update(testBytes); in adler32Checksum()
78 result ^= checksum.getValue(); in adler32Checksum()
/external/deqp/external/
Dfetch_sources.py61 def __init__(self, url, filename, checksum, baseDir, extractDir = "src", postExtract=None): argument
65 self.checksum = checksum
77 if self.getExtractedChecksum() != self.checksum:
80 self.storeExtractedChecksum(self.checksum)
90 return computeChecksum(readFile(archiveFile)) == self.checksum
105 def storeExtractedChecksum (self, checksum): argument
106 checksum_bytes = checksum.encode("utf-8")
131 checksum = computeChecksum(data)
134 if checksum != self.checksum:
135 …ception("Checksum mismatch for %s, expected %s, got %s" % (self.filename, self.checksum, checksum))
/external/squashfs-tools/squashfs-tools/
Dprocess_fragments.c75 file_buffer->checksum = chksum; in checksum_sparse()
220 char *data_buffer, int fd, unsigned short *checksum) in get_fragment_cksum() argument
237 *checksum = cksum; in get_fragment_cksum()
279 unsigned short checksum; in frag_thrd() local
325 checksum = dupl_ptr->fragment_checksum; in frag_thrd()
339 data_buffer, fd, &checksum); in frag_thrd()
340 if(checksum != file_buffer->checksum) { in frag_thrd()
344 } else if(checksum == file_buffer->checksum) in frag_thrd()
/external/libmojo/third_party/jinja2/
Dbccache.py66 def __init__(self, environment, key, checksum): argument
69 self.checksum = checksum
84 checksum = pickle.load(f)
85 if self.checksum != checksum:
95 pickle.dump(self.checksum, f, 2)
177 checksum = self.get_source_checksum(source)
178 bucket = Bucket(environment, key, checksum)
/external/iptables/extensions/
Dlibxt_CHECKSUM.man4 \fB\-\-checksum\-fill\fP
5 Compute and fill in the checksum in a packet that lacks a checksum.
7 such as dhcp clients, that do not work well with checksum offloads,
8 but don't want to disable checksum offload in your device.
/external/autotest/server/site_tests/display_Tearing/
Ddisplay_Tearing.py98 checksum = self._get_single_color_checksum(chameleon_port, color)
99 if checksum in checksum_table:
101 checksum_table[checksum] = color
102 logging.info('Color %d has checksums %r', (color, checksum))
144 for checksum in captured_checksums:
145 if checksum not in checksum_table:
214 checksum_table[checksum]
215 for checksum in captured_checksums]
/external/zopfli/src/zopfli/
Dzlib_container.c54 unsigned checksum = adler32(in, (unsigned)insize); in ZopfliZlibCompress() local
68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); in ZopfliZlibCompress()
69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); in ZopfliZlibCompress()
70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); in ZopfliZlibCompress()
71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize); in ZopfliZlibCompress()
/external/e2fsprogs/tests/f_dir_bad_csum/
Dexpect.13 Directory inode 12, block #0: directory passes checks but fails checksum.
6 Directory inode 13, block #0, offset 0: directory has no checksum.
9 Directory inode 14, block #0, offset 0: directory has no checksum.
12 Directory inode 15, block #0, offset 0: directory has no checksum.
18 Directory inode 16, block #0, offset 0: directory has no checksum.
24 Directory inode 17, block #0, offset 0: directory has no checksum.
/external/tensorflow/tensorflow/contrib/gdr/
Dgdr_memory_manager.cc461 uint64_t checksum = 0; in TransportOptionsFromTensor() local
463 checksum = GPUUtil::Checksum(*host_copy); in TransportOptionsFromTensor()
472 remote_mr.set_checksum(checksum); in TransportOptionsFromTensor()
494 uint64_t checksum = 0; in TransportOptionsFromTensor() local
498 checksum = GPUUtil::Checksum(device, device_context, tensor); in TransportOptionsFromTensor()
500 checksum = GPUUtil::Checksum(tensor); in TransportOptionsFromTensor()
511 remote_mr.set_checksum(checksum); in TransportOptionsFromTensor()
596 uint64_t checksum = 0; in TensorFromTransportOptions() local
598 checksum = GPUUtil::Checksum(host_copy); in TensorFromTransportOptions()
599 CHECK(checksum == remote_mr.checksum()) in TensorFromTransportOptions()
[all …]
/external/e2fsprogs/tests/f_htree_bad_csum/
Dexpect.13 Problem in HTREE directory inode 12: root node fails checksum.
6 Problem in HTREE directory inode 18: root node fails checksum.
12 Problem in HTREE directory inode 24: root node fails checksum.
15 Problem in HTREE directory inode 30: root node fails checksum.
18 Problem in HTREE directory inode 36: root node fails checksum.
/external/llvm/test/tools/llvm-objdump/
Dmacho-LLVM-bundle.test35 # CHECK: <checksum style="sha1">
38 # CHECK: </checksum>
44 # CHECK: <archived-checksum style="sha1">a319940ff5f5248ca8b44cf7b4b65e7dd49a47ab</archived-che…
45 # CHECK: <extracted-checksum style="sha1">a319940ff5f5248ca8b44cf7b4b65e7dd49a47ab</extracted-c…
/external/skqp/src/utils/
DSkWhitelistTypefaces.cpp173 uint32_t checksum = compute_checksum(tf); in WhitelistSerializeTypeface() local
174 if (whitelist[whitelistIndex].fChecksum != checksum) { in WhitelistSerializeTypeface()
180 SkDebugf(" { \"%s\", 0x%08x },\n", fontName, checksum); in WhitelistSerializeTypeface()
182 whitelist[whitelistIndex].fChecksum = checksum; in WhitelistSerializeTypeface()
211 uint32_t checksum = compute_checksum(tf.get()); in CheckChecksums() local
212 if (whitelist[i].fChecksum != checksum) { in CheckChecksums()
266 uint32_t checksum = compute_checksum(tf.get()); in GenerateChecksums() local
267 line.printf(checksumEntry, fontName, checksum); in GenerateChecksums()
/external/skia/src/utils/
DSkWhitelistTypefaces.cpp173 uint32_t checksum = compute_checksum(tf); in WhitelistSerializeTypeface() local
174 if (whitelist[whitelistIndex].fChecksum != checksum) { in WhitelistSerializeTypeface()
180 SkDebugf(" { \"%s\", 0x%08x },\n", fontName, checksum); in WhitelistSerializeTypeface()
182 whitelist[whitelistIndex].fChecksum = checksum; in WhitelistSerializeTypeface()
211 uint32_t checksum = compute_checksum(tf.get()); in CheckChecksums() local
212 if (whitelist[i].fChecksum != checksum) { in CheckChecksums()
266 uint32_t checksum = compute_checksum(tf.get()); in GenerateChecksums() local
267 line.printf(checksumEntry, fontName, checksum); in GenerateChecksums()

12345678910>>...18