/frameworks/base/sax/java/android/sax/ |
H A D | Children.java | 31 int hash = uri.hashCode() * 31 + localName.hashCode(); 32 int index = hash & 15; 37 current = new Child(parent, uri, localName, parent.depth + 1, hash); 44 if (current.hash == hash 56 current = new Child(parent, uri, localName, parent.depth + 1, hash); 66 int hash = uri.hashCode() * 31 + localName.hashCode(); 67 int index = hash & 15; 74 if (current.hash == hash 88 final int hash; field in class:Children.Child 91 Child(Element parent, String uri, String localName, int depth, int hash) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/ |
H A D | MarshalRegistry.java | 109 this.hash = typeReference.hashCode() ^ nativeType; 114 private final int hash; field in class:MarshalRegistry.MarshalToken 129 return hash;
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | Objects.java | 84 * This can be used to compute a hash code for an object's fields as follows: 85 * {@code Objects.hash(a, b, c)}. 87 public static int hash(Object... values) { method in class:Objects
|
/frameworks/base/libs/hwui/ |
H A D | TextDropShadowCache.cpp | 32 hash_t ShadowText::hash() const { function in class:android::uirenderer::ShadowText 33 uint32_t hash = JenkinsHashMix(0, glyphCount); local 34 hash = JenkinsHashMix(hash, android::hash_type(radius)); 35 hash = JenkinsHashMix(hash, android::hash_type(textSize)); 36 hash = JenkinsHashMix(hash, android::hash_type(typeface)); 37 hash = JenkinsHashMix(hash, flag [all...] |
H A D | GradientCache.cpp | 42 hash_t GradientCacheEntry::hash() const { function in class:android::uirenderer::GradientCacheEntry 43 uint32_t hash = JenkinsHashMix(0, count); local 45 hash = JenkinsHashMix(hash, android::hash_type(colors[i])); 46 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 48 return JenkinsHashWhiten(hash);
|
H A D | PatchCache.cpp | 65 hash_t PatchCache::PatchDescription::hash() const { function in class:android::uirenderer::PatchCache::PatchDescription 66 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); local 67 hash = JenkinsHashMix(hash, mBitmapWidth); 68 hash = JenkinsHashMix(hash, mBitmapHeight); 69 hash = JenkinsHashMix(hash, mPixelWidth); 70 hash = JenkinsHashMix(hash, mPixelHeigh [all...] |
H A D | PathCache.cpp | 66 // Shape bits should be set to zeroes, because they are used for hash calculation. 78 // Shape bits should be set to zeroes, because they are used for hash calculation. 82 hash_t PathDescription::hash() const { function in class:android::uirenderer::PathDescription 83 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); local 84 hash = JenkinsHashMix(hash, join); 85 hash = JenkinsHashMix(hash, cap); 86 hash = JenkinsHashMix(hash, styl [all...] |
H A D | TessellationCache.cpp | 45 // Shape bits should be set to zeroes, because they are used for hash calculation. 56 // Shape bits should be set to zeroes, because they are used for hash calculation. 78 hash_t TessellationCache::Description::hash() const { function in class:android::uirenderer::TessellationCache::Description 79 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); local 80 hash = JenkinsHashMix(hash, aa); 81 hash = JenkinsHashMix(hash, cap); 82 hash = JenkinsHashMix(hash, styl 114 hash_t TessellationCache::ShadowDescription::hash() const { function in class:android::uirenderer::TessellationCache::ShadowDescription 115 uint32_t hash = JenkinsHashMixBytes(0, (uint8_t*) &nodeKey, sizeof(const void*)); local [all...] |
/frameworks/base/tools/aapt/ |
H A D | ResourceIdCache.cpp | 34 static inline uint32_t hashround(uint32_t hash, int c) { argument 35 return ((hash << 5) + hash) + c; /* hash * 33 + c */ 38 static uint32_t hash(const android::String16& hashableString) { function 39 uint32_t hash = 5381; local 41 while (int c = *str++) hash = hashround(hash, c); 42 return hash; 63 const uint32_t hashcode = hash(hashedNam [all...] |
/frameworks/base/tools/aapt2/process/ |
H A D | SymbolTable.h | 37 std::hash<std::u16string> strHash; 38 android::hash_t hash = 0; local 39 hash = android::JenkinsHashMix(hash, (uint32_t) strHash(name.package)); 40 hash = android::JenkinsHashMix(hash, (uint32_t) name.type); 41 hash = android::JenkinsHashMix(hash, (uint32_t) strHash(name.entry)); 42 return hash;
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | HashBase.h | 26 * \brief HashBucket is an entry in the hash table. 45 * HashTableImpl uses open-addressing, linear probing hash table. 46 * linear probing hash table obviously has high performance when the 49 * than the size of the hash table. 59 * example, on-device linkers needs a more light-weight hash function 61 * change the hash functions. 88 hasher& hash() { return m_Hasher; } function in class:mcld::HashTableImpl 90 const hasher& hash() const { return m_Hasher; } function in class:mcld::HashTableImpl 93 /// initialize the hash table. 109 /// doRehash - re-new the hash tabl [all...] |
H A D | StringHash.h | 20 namespace hash { namespace in namespace:mcld 56 * \brief JS hash funciton 72 * \brief P.J. Weinberger hash function 100 * \brief ELF hash function. 120 * \brief BKDR hash function 136 * \brief SDBM hash function 152 * \brief DJB hash function 169 * \brief DEK hash function 186 * \brief BP hash function 202 * \brief FNV hash functio [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | HTTPDownloader.cpp | 245 uint8_t hash[16]; local 251 MD5_Final(hash, &m); 253 if (curPlaylistHash != NULL && !memcmp(hash, curPlaylistHash, 16)) { 261 memcpy(curPlaylistHash, hash, sizeof(hash));
|
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
H A D | ProcessErrorsTest.java | 364 private int hash(Object obj) { method in class:ProcessErrorsTest.ProcessError 376 code *= hash(info.longMsg); 378 code *= hash(info.processName); 379 code *= hash(info.shortMsg); 380 code *= hash(info.stackTrace); 381 code *= hash(info.tag);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 125 size_t AString::hash() const { function in class:android::AString
|
/frameworks/base/core/java/android/util/ |
H A D | ArrayMap.java | 28 * It keeps its mappings in an array data structure -- an integer array of hash 33 * a hash map). 63 * Special hash array value that indicates the container is immutable. 76 * list; the second entry is a pointer to the int[] hash code array for it. 89 int indexOf(Object key, int hash) { argument 97 int index = ContainerHelpers.binarySearch(mHashes, N, hash); 99 // If the hash code wasn't found, then we have no entry for this key. 111 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 116 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { 122 // hash chai [all...] |
H A D | ArraySet.java | 65 * list; the second entry is a pointer to the int[] hash code array for it. 78 private int indexOf(Object key, int hash) { argument 86 int index = ContainerHelpers.binarySearch(mHashes, N, hash); 88 // If the hash code wasn't found, then we have no entry for this key. 100 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 105 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { 111 // hash chain to reduce the number of array entries that will 126 // If the hash code wasn't found, then we have no entry for this key. 149 // hash chain to reduce the number of array entries that will 346 final int hash; [all...] |
/frameworks/base/core/java/android/util/jar/ |
H A D | StrictJarVerifier.java | 89 * Stores and a hash and a message digest and verifies that massage digest 90 * matches the hash. 98 private final byte[] hash; field in class:StrictJarVerifier.VerifierEntry 104 VerifierEntry(String name, MessageDigest digest, byte[] hash, argument 108 this.hash = hash; 142 if (!MessageDigest.isEqual(d, Base64.decode(hash))) { 188 * which contains the certificates used to sign the entry and its hash value 234 final String hash = attributes.getValue(algorithm + "-Digest"); 235 if (hash [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/ |
H A D | HTTPRequest.java | 134 byte[] a1 = hash(userName, realm, passwordString); 135 byte[] a2 = hash("POST", url.getPath()); 136 byte[] response = hash(a1, nonceText, nc, cNonceString, "auth", a2); 166 private static byte[] hash(Object... objects) throws GeneralSecurityException { method in class:HTTPRequest 167 MessageDigest hash = MessageDigest.getInstance("MD5"); 183 hash.update((byte) ':'); 185 hash.update(octets); 188 return hash.digest(); 286 byte[] a1 = hash(user, realm, password); 288 byte[] a2 = hash(metho [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 51 hash_t FontStyle::hash() const { function in class:android::FontStyle 52 uint32_t hash = JenkinsHashMix(0, bits); local 53 hash = JenkinsHashMix(hash, mLanguageListId); 54 return JenkinsHashWhiten(hash);
|
/frameworks/rs/api/ |
H A D | Utilities.cpp | 126 long hash = 0; local 128 hash = hash * 43 + s[i]; 131 stream << "0x" << std::hex << hash << "l"; local
|
/frameworks/rs/ |
H A D | rsMap.h | 56 const size_t index = hash(key) & MAP_NUM_BUCKET_MASK; 144 const size_t index = hash(key) & MAP_NUM_BUCKET_MASK; 158 size_t hash(const KeyType& key) const { return ((size_t)key) >> 4; } function in class:android::renderscript::Map
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | SimpleArrayMap.java | 50 * list; the second entry is a pointer to the int[] hash code array for it. 61 int indexOf(Object key, int hash) { argument 69 int index = ContainerHelpers.binarySearch(mHashes, N, hash); 71 // If the hash code wasn't found, then we have no entry for this key. 83 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 88 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { 94 // hash chain to reduce the number of array entries that will 109 // If the hash code wasn't found, then we have no entry for this key. 132 // hash chain to reduce the number of array entries that will 374 final int hash; [all...] |
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMELFAttributeData.cpp | 650 int hash = calculate_fp_config_hash(pConfig); local 651 assert(static_cast<size_t>(hash) < 653 return fp_config_hash_table[hash];
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 69 hash_t Font::FontDescription::hash() const { function in class:android::uirenderer::Font::FontDescription 70 uint32_t hash = JenkinsHashMix(0, mFontId); local 71 hash = JenkinsHashMix(hash, android::hash_type(mFontSize)); 72 hash = JenkinsHashMix(hash, android::hash_type(mFlags)); 73 hash = JenkinsHashMix(hash, android::hash_type(mItalicStyle)); 74 hash = JenkinsHashMix(hash, androi [all...] |