/art/compiler/utils/ |
dedupe_set_test.cc | 30 size_t hash = 0; local 32 hash += c; 33 hash += hash << 10; 34 hash += hash >> 6; 36 return hash;
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
MessageDigestAlgorithmBenchmark.java | 17 package com.google.common.hash; 22 import com.google.common.hash.HashFunction; 23 import com.google.common.hash.Hashing; 35 * <li>size: The length of the byte array to hash. 36 * <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.). 37 * <li>hashMethod: how to hash the data (using the Hashing API or the MessageDigest API). 49 @Override public byte[] hash(Algorithm algorithm, byte[] input) { method 56 @Override public byte[] hash(Algorithm algorithm, byte[] input) { method 60 public abstract byte[] hash(Algorithm algorithm, byte[] input); method in class:MessageDigestAlgorithmBenchmark.HashMethod 102 result ^= hashMethod.hash(algorithm, testBytes)[0] [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
CollectionBenchmarkSampleData.java | 113 final int hash; field in class:CollectionBenchmarkSampleData.Element 114 Element(int hash) { 115 this.hash = hash; 119 || (obj instanceof Element && ((Element) obj).hash == hash); 122 return hash; 126 return Ints.compare(hash, that.hash); 129 return String.valueOf(hash); [all...] |
/external/guava/guava/src/com/google/common/base/ |
PairwiseEquivalence.java | 52 int hash = 78721; local 54 hash = hash * 24943 + elementEquivalence.hash(element); 56 return hash;
|
/external/guava/guava-tests/test/com/google/common/hash/ |
Murmur3Hash32Test.java | 17 package com.google.common.hash; 19 import static com.google.common.hash.Hashing.murmur3_32; 21 import com.google.common.hash.HashTestUtils.HashFn; 61 @Override public byte[] hash(byte[] input, int seed) { 64 return hasher.hash().asBytes();
|
Murmur3Hash128Test.java | 17 package com.google.common.hash; 19 import static com.google.common.hash.Hashing.murmur3_128; 22 import com.google.common.hash.HashTestUtils.HashFn; 55 assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); 71 @Override public byte[] hash(byte[] input, int seed) { 74 return hasher.hash().asBytes();
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
Phonenumber.java | 248 int hash = 41; local 249 hash = (53 * hash) + getCountryCode(); 250 hash = (53 * hash) + Long.valueOf(getNationalNumber()).hashCode(); 251 hash = (53 * hash) + getExtension().hashCode(); 252 hash = (53 * hash) + (isItalianLeadingZero() ? 1231 : 1237); 253 hash = (53 * hash) + getNumberOfLeadingZeros() [all...] |
/external/wpa_supplicant_8/src/crypto/ |
sha256-prf.c | 57 u8 hash[SHA256_MAC_LEN]; local 82 hmac_sha256_vector(key, key_len, 4, addr, len, hash); 83 os_memcpy(&buf[pos], hash, plen); 99 os_memset(hash, 0, sizeof(hash));
|
/external/wpa_supplicant_8/src/eap_common/ |
eap_peap_common.c | 21 u8 hash[SHA1_MAC_LEN]; local 27 addr[0] = hash; 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) 75 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN); 78 os_memcpy(&buf[pos], hash, plen);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_state_cache.c | 35 * consumers can query the hash table of state using a cache_id, 40 * The inner workings are a simple hash table based on a CRC of the 57 GLuint hash = item->cache_id, i; local 64 hash ^= ikey[i]; 65 hash = (hash << 5) | (hash >> 27); 68 return hash; 76 a->hash == b->hash & 141 GLuint hash; local 274 GLuint hash; local [all...] |
/frameworks/base/libs/hwui/ |
TextDropShadowCache.cpp | 34 hash_t ShadowText::hash() const { function in class:android::uirenderer::ShadowText 36 uint32_t hash = JenkinsHashMix(0, len); local 37 hash = JenkinsHashMix(hash, android::hash_type(radius)); 38 hash = JenkinsHashMix(hash, android::hash_type(textSize)); 39 hash = JenkinsHashMix(hash, android::hash_type(typeface)); 40 hash = JenkinsHashMix(hash, flags) [all...] |
/external/guava/guava/src/com/google/common/hash/ |
HashingOutputStream.java | 15 package com.google.common.hash; 26 * An {@link OutputStream} that maintains a hash of the data written to it. 64 public HashCode hash() { method in class:HashingOutputStream 65 return hasher.hash();
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
Internal.java | 253 * need to use the field number as the hash code to ensure compatibility 265 int hash = 1; local 267 hash = 31 * hash + hashEnum(e); 269 return hash; 289 int hash = 1; local 291 hash = 31 * hash + hashCode(bytes); 293 return hash; 300 // The hash code for a byte array should be the same as the hash code for 342 int hash = 1; local [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ShadowEditTextTest.java | 19 HashMap<String, String> hash = new HashMap<String, String>(); local 20 hash.put("android:maxLength", "5"); 21 TestAttributeSet attributeSet = new TestAttributeSet(hash);
|
/prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/hash_fn/ |
mod_based_range_hashing.hpp | 71 range_hash(size_type hash) const; 96 range_hash(size_type hash) const 98 return (hash % m_size);
|
/prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/hash_fn/ |
mod_based_range_hashing.hpp | 71 range_hash(size_type hash) const; 96 range_hash(size_type hash) const 98 return (hash % m_size);
|
/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/hash_fn/ |
mod_based_range_hashing.hpp | 71 range_hash(size_type hash) const; 96 range_hash(size_type hash) const 98 return (hash % m_size);
|
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/ext/pb_ds/detail/hash_fn/ |
mod_based_range_hashing.hpp | 71 range_hash(size_type hash) const; 96 range_hash(size_type hash) const 98 return (hash % m_size);
|
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.6/include/ext/pb_ds/detail/hash_fn/ |
mod_based_range_hashing.hpp | 71 range_hash(size_type hash) const; 96 range_hash(size_type hash) const 98 return (hash % m_size);
|
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.6/include/ext/pb_ds/detail/hash_fn/ |
mod_based_range_hashing.hpp | 71 range_hash(size_type hash) const; 96 range_hash(size_type hash) const 98 return (hash % m_size);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
DSABase.java | 50 byte[] hash = new byte[digest.getDigestSize()]; 52 digest.doFinal(hash, 0); 56 BigInteger[] sig = signer.generateSignature(hash); 70 byte[] hash = new byte[digest.getDigestSize()]; 72 digest.doFinal(hash, 0); 85 return signer.verifySignature(hash, sig[0], sig[1]);
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/ |
size_hash.pass.cpp | 12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>, 31 test_hash<std::hash<NotConstructible> >, 37 test_hash<std::hash<NotConstructible> >(8) 40 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); 53 test_hash<std::hash<NotConstructible> >, 59 test_hash<std::hash<NotConstructible> >(8) 62 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8));
|
size_hash_equal.pass.cpp | 12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>, 31 test_hash<std::hash<NotConstructible> >, 37 test_hash<std::hash<NotConstructible> >(8), 41 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); 54 test_hash<std::hash<NotConstructible> >, 60 test_hash<std::hash<NotConstructible> >(8), 64 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8));
|
size_hash_equal_allocator.pass.cpp | 12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>, 31 test_hash<std::hash<NotConstructible> >, 37 test_hash<std::hash<NotConstructible> >(8), 42 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); 55 test_hash<std::hash<NotConstructible> >, 61 test_hash<std::hash<NotConstructible> >(8), 66 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8));
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
size_hash.pass.cpp | 12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>, 31 test_hash<std::hash<NotConstructible> >, 37 test_hash<std::hash<NotConstructible> >(8) 40 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); 53 test_hash<std::hash<NotConstructible> >, 59 test_hash<std::hash<NotConstructible> >(8) 62 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8));
|