/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/content/res/ |
H A D | ResourcesKey.java | 41 int hash = 17; 42 hash = 31 * hash + (mResDir == null ? 0 : mResDir.hashCode()); 43 hash = 31 * hash + mDisplayId; 44 hash = 31 * hash + (mOverrideConfiguration != null 46 hash = 31 * hash + Float.floatToIntBits(mScale); 47 mHash = hash; [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | TinyHashMap.h | 26 * A very simple hash map that doesn't allow duplicate keys, overwriting the older entry. 34 * Puts an entry in the hash, removing any existing entry with the same key 37 hash_t hash = android::hash_type(key); local 39 ssize_t index = mTable.find(-1, hash, key); 45 mTable.add(hash, initEntry); 52 hash_t hash = android::hash_type(key); local 53 ssize_t index = mTable.find(-1, hash, key);
|
H A D | Macros.h | 30 friend inline hash_t hash_type(const Type& entry) { return entry.hash(); }
|
/frameworks/compile/mclinker/include/mcld/Support/ |
H A D | PathCache.h | 24 hash::StringCompare<llvm::StringRef> > HashEntryType; 27 typedef HashTable<HashEntryType, hash::StringHash<hash::BKDR>, EntryFactory<HashEntryType> > PathCache;
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayAdjustments.java | 80 int hash = 17; 81 hash = hash * 31 + mCompatInfo.hashCode(); 83 hash = hash * 31 + (mActivityToken == null ? 0 : mActivityToken.hashCode()); 85 return hash;
|
/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/libs/hwui/ |
H A D | TextDropShadowCache.cpp | 33 hash_t ShadowText::hash() const { function in class:android::uirenderer::ShadowText 35 uint32_t hash = JenkinsHashMix(0, len); local 36 hash = JenkinsHashMix(hash, android::hash_type(radius)); 37 hash = JenkinsHashMix(hash, android::hash_type(textSize)); 38 hash = JenkinsHashMix(hash, android::hash_type(typeface)); 39 hash = JenkinsHashMix(hash, flag [all...] |
H A D | PatchCache.cpp | 69 hash_t PatchCache::PatchDescription::hash() const { function in class:android::uirenderer::PatchCache::PatchDescription 70 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); local 71 hash = JenkinsHashMix(hash, mBitmapWidth); 72 hash = JenkinsHashMix(hash, mBitmapHeight); 73 hash = JenkinsHashMix(hash, mPixelWidth); 74 hash = JenkinsHashMix(hash, mPixelHeigh [all...] |
H A D | TessellationCache.cpp | 58 hash_t TessellationCache::Description::hash() const { function in class:android::uirenderer::TessellationCache::Description 59 uint32_t hash = JenkinsHashMix(0, type); local 60 hash = JenkinsHashMix(hash, aa); 61 hash = JenkinsHashMix(hash, cap); 62 hash = JenkinsHashMix(hash, style); 63 hash = JenkinsHashMix(hash, androi 88 hash_t TessellationCache::ShadowDescription::hash() const { function in class:android::uirenderer::TessellationCache::ShadowDescription 89 uint32_t hash = JenkinsHashMixBytes(0, (uint8_t*) &nodeKey, sizeof(const void*)); local [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsCbLocation.java | 103 int hash = mPlmn.hashCode(); 104 hash = hash * 31 + mLac; 105 hash = hash * 31 + mCid; 106 return hash;
|
/frameworks/base/location/java/android/location/ |
H A D | Country.java | 176 int hash = mHashCode; 177 if (hash == 0) { 178 hash = 17; 179 hash = hash * 13 + mCountryIso.hashCode(); 180 hash = hash * 13 + mSource; 181 mHashCode = hash;
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
H A D | BitmapRequestKeyImpl.java | 55 int hash = 17; 56 hash += 31 * hash + mUriString.hashCode(); 57 return hash;
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ContiguousFIFOAggregator.java | 100 final int hash = key.hashCode(); 103 mTasks.remove(hash); 107 mTasks.put(hash, new Value(callback, null)); 167 final int hash = key.hashCode(); 168 final Value value = mTasks.get(hash); 201 final int hash = first.hashCode(); 202 final Value value = mTasks.get(hash); 209 mTasks.delete(hash); 224 final int hash = key.hashCode(); 225 final Value value = mTasks.get(hash); [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | VerificationParams.java | 175 int hash = 3; 177 hash += 5 * (mVerificationURI == null ? 1 : mVerificationURI.hashCode()); 178 hash += 7 * (mOriginatingURI == null ? 1 : mOriginatingURI.hashCode()); 179 hash += 11 * (mReferrer == null ? 1 : mReferrer.hashCode()); 180 hash += 13 * mOriginatingUid; 181 hash += 17 * (mManifestDigest == null ? 1 : mManifestDigest.hashCode()); 182 hash += 19 * mInstallerUid; 184 return hash;
|
H A D | ContainerEncryptionParams.java | 264 int hash = 3; 266 hash += 5 * mEncryptionAlgorithm.hashCode(); 267 hash += 7 * Arrays.hashCode(mEncryptionSpec.getIV()); 268 hash += 11 * mEncryptionKey.hashCode(); 269 hash += 13 * mMacAlgorithm.hashCode(); 270 hash += 17 * mMacKey.hashCode(); 271 hash += 19 * Arrays.hashCode(mMacTag); 272 hash += 23 * mAuthenticatedDataStart; 273 hash += 29 * mEncryptedDataStart; 274 hash [all...] |
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | ObjectReader.h | 28 typedef HashTable<ResolveInfo, hash::StringHash<hash::DJB> > GroupSignatureMap;
|
/frameworks/compile/mclinker/include/mcld/ |
H A D | LinkerScript.h | 33 hash::StringHash<hash::DJB>, 37 hash::StringHash<hash::DJB>,
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | PendingIntentRecord.java | 79 int hash = 23; 80 hash = (ODD_PRIME_NUMBER*hash) + _f; 81 hash = (ODD_PRIME_NUMBER*hash) + _r; 82 hash = (ODD_PRIME_NUMBER*hash) + _userId; 84 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); 87 hash [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/ |
H A D | MarshalRegistry.java | 104 this.hash = typeReference.hashCode() ^ nativeType; 109 private final int hash; field in class:MarshalRegistry.MarshalToken 124 return hash;
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CursorAnchorInfo.java | 165 int hash = floatHash > 0 ? (int) floatHash : (int)(-floatHash); 166 hash *= 31; 167 hash += mInsertionMarkerFlags; 168 hash *= 31; 169 hash += mSelectionStart + mSelectionEnd + mComposingTextStart; 170 hash *= 31; 171 hash += Objects.hashCode(mComposingText); 172 hash *= 31; 173 hash += Objects.hashCode(mCharacterBoundsArray); 174 hash * [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 75 hash_t Font::FontDescription::hash() const { function in class:android::uirenderer::Font::FontDescription 76 uint32_t hash = JenkinsHashMix(0, mFontId); local 77 hash = JenkinsHashMix(hash, android::hash_type(mFontSize)); 78 hash = JenkinsHashMix(hash, android::hash_type(mFlags)); 79 hash = JenkinsHashMix(hash, android::hash_type(mItalicStyle)); 80 hash = JenkinsHashMix(hash, androi [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | Sha1Test.java | 50 byte[] hash = digest.digest(); 51 String encodedHash = encodeHex(hash);
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | HashBase.h | 24 * \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. 93 hasher& hash() function in class:mcld::HashTableImpl 96 const hasher& hash() const function in class:mcld::HashTableImpl 100 /// initialize the hash table. 116 /// doRehash - re-new the hash tabl [all...] |
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringInternal.java | 398 int hash = toString().hashCode(); 399 hash = hash * 31 + mSpanCount; 403 hash = hash * 31 + span.hashCode(); 405 hash = hash * 31 + getSpanStart(span); 406 hash = hash * 31 + getSpanEnd(span); 407 hash [all...] |