/external/autotest/client/cros/video/ |
frame_checksum_utils.py | 11 @param checksums: list of checksums, each checksum in a 4-tuple of ints 18 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/deqp/scripts/khr_util/ |
registry_cache.py | 32 def __init__(self, filename, revision, checksum): 35 self.checksum = checksum 38 return hash((self.filename, self.revision, self.checksum)) 41 return (self.filename, self.revision, self.checksum) == (other.filename, other.revision, other.checksum) 50 return self.checksum 66 def fetchFile (dstPath, url, checksum): 79 if checksum != gotChecksum: 80 raise Exception("Checksum mismatch, exepected %s, got %s" % (checksum, gotChecksum) [all...] |
/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/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/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/data/ |
CRC64Test.java | 27 final long sum = CRC64.checksum(new byte[0]); 38 final long sum = CRC64.checksum("IHATEMATH".getBytes("ASCII")); 49 final long sum = CRC64.checksum(new byte[] { (byte) 0xff, (byte) 0xff, 62 final long sum = CRC64.checksum("JACOCO_JACOCO_JACOCO_JACOCO"
|
/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/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);
|
/external/android-clat/ |
checksum.c | 16 * checksum.c - ipv4/ipv6 checksum calculation 26 #include "checksum.h" 29 * adds data to a checksum 30 * current - the current checksum (or 0 to start a new checksum) 31 * data - the data to add to the checksum 35 uint32_t checksum = current; local 40 checksum += *data_16; 45 checksum += *(uint8_t *)data_16 [all...] |
Android.mk | 4 LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c netlink_callbacks.c netlink_msg.c setif.c mtu.c tun.c ring.c 33 LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c 45 LOCAL_SRC_FILES := clatd_microbenchmark.c checksum.c tun.c
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
storage_manager.c | 39 uint32_t checksum; member in struct:data_header_t 130 uint32_t checksum; local 145 checksum = inv_checksum(data, len); 146 if (checksum != hd->checksum) 157 checksum = inv_checksum(data, hd->size); 158 if (checksum != hd->checksum) 190 hd->checksum = inv_checksum(cur, ds.hd[kk].size); 200 hd->checksum = inv_checksum(data + sizeof(struct data_header_t) [all...] |
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
storage_manager.c | 39 uint32_t checksum; member in struct:data_header_t 130 uint32_t checksum; local 145 checksum = inv_checksum(data, len); 146 if (checksum != hd->checksum) 157 checksum = inv_checksum(data, hd->size); 158 if (checksum != hd->checksum) 190 hd->checksum = inv_checksum(cur, ds.hd[kk].size); 200 hd->checksum = inv_checksum(data + sizeof(struct data_header_t) [all...] |
/art/runtime/jit/ |
offline_profiling_info.h | 99 explicit DexFileData(uint32_t location_checksum) : checksum(location_checksum) {} 100 uint32_t checksum; member in struct:art::ProfileCompilationInfo::DexFileData 105 return checksum == other.checksum && method_set == other.method_set; 111 DexFileData* GetOrAddDexFileData(const std::string& dex_location, uint32_t checksum); 112 bool AddMethodIndex(const std::string& dex_location, uint32_t checksum, uint16_t method_idx); 113 bool AddClassIndex(const std::string& dex_location, uint32_t checksum, uint16_t class_idx); 122 uint32_t checksum; member in struct:art::ProfileCompilationInfo::ProfileLineHeader 171 uint32_t checksum,
|
/cts/hostsidetests/devicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/ |
IcmpMessage.java | 34 int checksum = stream.readUnsignedShort(); local 48 throw new IOException("Corrupted message. Checksum: " + checksum); 59 stream.writeShort(/* checksum */ 0); 64 int checksum = Rfc1071.checksum(result, result.length); local 65 result[checksumPosition + 0] = (byte) ((checksum & 0xFF00) >> 8); 66 result[checksumPosition + 1] = (byte) ((checksum & 0x00FF));
|
Rfc1071.java | 20 static int checksum(byte[] data, int length) { method in class:Rfc1071
|
Ipv4Packet.java | 53 int checksum = stream.readUnsignedShort(); local 81 throw new IOException("Corrupted message. Checksum: " + checksum); 108 stream.writeShort(/* checksum */ 0); 116 int checksum = Rfc1071.checksum(result, headerLength); local 117 result[checksumPosition + 0] = (byte) ((checksum & 0xFF00) >> 8); 118 result[checksumPosition + 1] = (byte) ((checksum & 0x00FF));
|
/frameworks/base/core/java/android/app/backup/ |
BlobBackupHelper.java | 87 * [Long] blob checksum, calculated after compression 105 long checksum = in.readLong(); local 107 Log.i(TAG, " key '" + key + "' checksum is " + checksum); 109 state.put(key, checksum); 147 final long checksum = state.valueAt(i).longValue(); local 149 Log.i(TAG, " writing key " + key + " checksum = " + checksum); 152 out.writeLong(checksum); 218 private long checksum(byte[] buffer) method in class:BlobBackupHelper 251 final long checksum = checksum(payload); local [all...] |
/external/sfntly/cpp/src/sfntly/table/ |
header.cc | 44 Header::Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length) 50 checksum_(checksum),
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
romfs_fs.h | 25 __be32 checksum; member in struct:romfs_super_block 35 __be32 checksum; member in struct:romfs_inode
|
/system/keymaster/ |
ocb.c | 620 block checksum; /* Memory correct */ member in struct:_ae_ctx 924 block offset, checksum; local 1135 block offset, checksum; local [all...] |
/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", 129 fprintf(stdout, "Checksum:\t\t0x%lx\n", m_checksum);
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
NonVolatileStore.cpp | 80 unsigned short checksum = 0; local 81 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 139 unsigned short checksum = crcChecksumCompute (p_buf, nbytes); local 140 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum)); 143 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum)))
|
/external/libnfc-nci/src/adaptation/ |
libmain.c | 106 unsigned short checksum = 0; local 107 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 167 unsigned short checksum = crcChecksumCompute (pBuffer, nbytes); local 168 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum)); 171 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum)))
|
/external/squashfs-tools/squashfs-tools/ |
process_fragments.c | 58 * Compute 16 bit BSD checksum over the data, and check for sparseness 75 file_buffer->checksum = chksum; 220 char *data_buffer, int fd, unsigned short *checksum) 237 *checksum = cksum; 279 unsigned short checksum; local 325 checksum = dupl_ptr->fragment_checksum; 329 * If we have the checksum and it matches then 332 * If we *don't* have the checksum, then we are 334 * "old" filesystem. Read it in and checksum 339 data_buffer, fd, &checksum); [all...] |
/system/core/libnetutils/ |
packet.c | 66 static uint32_t checksum(void *buffer, unsigned int count, uint32_t startsum) function 112 ip.check = finish_sum(checksum(&ip, sizeof(ip), 0)); 119 /* Calculate checksum for pseudo header */ 120 udpsum = checksum(&ip.saddr, sizeof(ip.saddr), 0); 121 udpsum = checksum(&ip.daddr, sizeof(ip.daddr), udpsum); 123 udpsum = checksum(&temp, sizeof(temp), udpsum); 125 udpsum = checksum(&temp, sizeof(temp), udpsum); 127 /* Add in the checksum for the udp header */ 128 udpsum = checksum(&udp, sizeof(udp), udpsum); 130 /* Add in the checksum for the data * [all...] |