/frameworks/base/sax/java/android/sax/ |
D | Children.java | 31 int hash = uri.hashCode() * 31 + localName.hashCode(); in getOrCreate() local 32 int index = hash & 15; in getOrCreate() 37 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate() 44 if (current.hash == hash in getOrCreate() 56 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate() 66 int hash = uri.hashCode() * 31 + localName.hashCode(); in get() local 67 int index = hash & 15; in get() 74 if (current.hash == hash in get() 88 final int hash; field in Children.Child 92 int hash) { in Child() argument [all …]
|
/frameworks/base/libs/hwui/ |
D | TextDropShadowCache.cpp | 33 hash_t ShadowText::hash() const { in hash() function in android::uirenderer::ShadowText 35 uint32_t hash = JenkinsHashMix(0, len); in hash() local 36 hash = JenkinsHashMix(hash, android::hash_type(radius)); in hash() 37 hash = JenkinsHashMix(hash, android::hash_type(textSize)); in hash() 38 hash = JenkinsHashMix(hash, android::hash_type(typeface)); in hash() 39 hash = JenkinsHashMix(hash, flags); in hash() 40 hash = JenkinsHashMix(hash, android::hash_type(italicStyle)); in hash() 41 hash = JenkinsHashMix(hash, android::hash_type(scaleX)); in hash() 43 hash = JenkinsHashMixShorts(hash, text, charCount); in hash() 47 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash() [all …]
|
D | TessellationCache.cpp | 58 hash_t TessellationCache::Description::hash() const { in hash() function in android::uirenderer::TessellationCache::Description 59 uint32_t hash = JenkinsHashMix(0, type); in hash() local 60 hash = JenkinsHashMix(hash, aa); in hash() 61 hash = JenkinsHashMix(hash, cap); in hash() 62 hash = JenkinsHashMix(hash, style); in hash() 63 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 64 hash = JenkinsHashMix(hash, android::hash_type(scaleX)); in hash() 65 hash = JenkinsHashMix(hash, android::hash_type(scaleY)); in hash() 66 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); in hash() 67 return JenkinsHashWhiten(hash); in hash() [all …]
|
D | PatchCache.cpp | 69 hash_t PatchCache::PatchDescription::hash() const { in hash() function in android::uirenderer::PatchCache::PatchDescription 70 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); in hash() local 71 hash = JenkinsHashMix(hash, mBitmapWidth); in hash() 72 hash = JenkinsHashMix(hash, mBitmapHeight); in hash() 73 hash = JenkinsHashMix(hash, mPixelWidth); in hash() 74 hash = JenkinsHashMix(hash, mPixelHeight); in hash() 75 return JenkinsHashWhiten(hash); in hash()
|
D | PathCache.cpp | 66 hash_t PathDescription::hash() const { in hash() function in android::uirenderer::PathDescription 67 uint32_t hash = JenkinsHashMix(0, type); in hash() local 68 hash = JenkinsHashMix(hash, join); in hash() 69 hash = JenkinsHashMix(hash, cap); in hash() 70 hash = JenkinsHashMix(hash, style); in hash() 71 hash = JenkinsHashMix(hash, android::hash_type(miter)); in hash() 72 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 73 hash = JenkinsHashMix(hash, android::hash_type(pathEffect)); in hash() 74 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); in hash() 75 return JenkinsHashWhiten(hash); in hash()
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesKey.java | 41 int hash = 17; in ResourcesKey() local 42 hash = 31 * hash + (mResDir == null ? 0 : mResDir.hashCode()); in ResourcesKey() 43 hash = 31 * hash + mDisplayId; in ResourcesKey() 44 hash = 31 * hash + (mOverrideConfiguration != null in ResourcesKey() 46 hash = 31 * hash + Float.floatToIntBits(mScale); in ResourcesKey() 47 mHash = hash; in ResourcesKey()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ContiguousFIFOAggregator.java | 100 final int hash = key.hashCode(); in expect() local 103 mTasks.remove(hash); in expect() 107 mTasks.put(hash, new Value(callback, null)); in expect() 167 final int hash = key.hashCode(); in execute() local 168 final Value value = mTasks.get(hash); in execute() 201 final int hash = first.hashCode(); in maybeExecuteNow() local 202 final Value value = mTasks.get(hash); in maybeExecuteNow() 209 mTasks.delete(hash); in maybeExecuteNow() 224 final int hash = key.hashCode(); in onFirstExpectedChanged() local 225 final Value value = mTasks.get(hash); in onFirstExpectedChanged() [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceIdCache.cpp | 34 static inline uint32_t hashround(uint32_t hash, int c) { in hashround() argument 35 return ((hash << 5) + hash) + c; /* hash * 33 + c */ in hashround() 38 static uint32_t hash(const android::String16& hashableString) { in hash() function 39 uint32_t hash = 5381; in hash() local 41 while (int c = *str++) hash = hashround(hash, c); in hash() 42 return hash; in hash() 63 const uint32_t hashcode = hash(hashedName); in lookup() 91 const uint32_t hashcode = hash(hashedName); in store()
|
/frameworks/base/location/java/android/location/ |
D | Country.java | 176 int hash = mHashCode; in hashCode() local 177 if (hash == 0) { in hashCode() 178 hash = 17; in hashCode() 179 hash = hash * 13 + mCountryIso.hashCode(); in hashCode() 180 hash = hash * 13 + mSource; in hashCode() 181 mHashCode = hash; in hashCode()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentRecord.java | 79 int hash = 23; in Key() local 80 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key() 81 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key() 82 hash = (ODD_PRIME_NUMBER*hash) + _userId; in Key() 84 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key() 87 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key() 90 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key() 93 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key() 95 hash = (ODD_PRIME_NUMBER*hash) + _p.hashCode(); in Key() 96 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayAdjustments.java | 80 int hash = 17; in hashCode() local 81 hash = hash * 31 + mCompatInfo.hashCode(); in hashCode() 83 hash = hash * 31 + (mActivityToken == null ? 0 : mActivityToken.hashCode()); in hashCode() 85 return hash; in hashCode()
|
/frameworks/base/libs/hwui/utils/ |
D | TinyHashMap.h | 37 hash_t hash = android::hash_type(key); in put() local 39 ssize_t index = mTable.find(-1, hash, key); in put() 45 mTable.add(hash, initEntry); in put() 52 hash_t hash = android::hash_type(key); in get() local 53 ssize_t index = mTable.find(-1, hash, key); in get()
|
/frameworks/opt/telephony/src/java/android/telephony/ |
D | SmsCbLocation.java | 103 int hash = mPlmn.hashCode(); in hashCode() local 104 hash = hash * 31 + mLac; in hashCode() 105 hash = hash * 31 + mCid; in hashCode() 106 return hash; in hashCode()
|
/frameworks/base/core/java/android/content/pm/ |
D | VerificationParams.java | 175 int hash = 3; in hashCode() local 177 hash += 5 * (mVerificationURI == null ? 1 : mVerificationURI.hashCode()); in hashCode() 178 hash += 7 * (mOriginatingURI == null ? 1 : mOriginatingURI.hashCode()); in hashCode() 179 hash += 11 * (mReferrer == null ? 1 : mReferrer.hashCode()); in hashCode() 180 hash += 13 * mOriginatingUid; in hashCode() 181 hash += 17 * (mManifestDigest == null ? 1 : mManifestDigest.hashCode()); in hashCode() 182 hash += 19 * mInstallerUid; in hashCode() 184 return hash; in hashCode()
|
D | ContainerEncryptionParams.java | 264 int hash = 3; in hashCode() local 266 hash += 5 * mEncryptionAlgorithm.hashCode(); in hashCode() 267 hash += 7 * Arrays.hashCode(mEncryptionSpec.getIV()); in hashCode() 268 hash += 11 * mEncryptionKey.hashCode(); in hashCode() 269 hash += 13 * mMacAlgorithm.hashCode(); in hashCode() 270 hash += 17 * mMacKey.hashCode(); in hashCode() 271 hash += 19 * Arrays.hashCode(mMacTag); in hashCode() 272 hash += 23 * mAuthenticatedDataStart; in hashCode() 273 hash += 29 * mEncryptedDataStart; in hashCode() 274 hash += 31 * mDataEnd; in hashCode() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | CursorAnchorInfo.java | 165 int hash = floatHash > 0 ? (int) floatHash : (int)(-floatHash); in hashCode() local 166 hash *= 31; in hashCode() 167 hash += mInsertionMarkerFlags; in hashCode() 168 hash *= 31; in hashCode() 169 hash += mSelectionStart + mSelectionEnd + mComposingTextStart; in hashCode() 170 hash *= 31; in hashCode() 171 hash += Objects.hashCode(mComposingText); in hashCode() 172 hash *= 31; in hashCode() 173 hash += Objects.hashCode(mCharacterBoundsArray); in hashCode() 174 hash *= 31; in hashCode() [all …]
|
D | SparseRectFArray.java | 83 int hash = mKeys.length; in hashCode() local 86 hash *= 31; in hashCode() 87 hash += mCoordinates[i]; in hashCode() 89 hash *= 31; in hashCode() 90 hash += mFlagsArray[0]; in hashCode() 91 return hash; in hashCode()
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 75 hash_t Font::FontDescription::hash() const { in hash() function in android::uirenderer::Font::FontDescription 76 uint32_t hash = JenkinsHashMix(0, mFontId); in hash() local 77 hash = JenkinsHashMix(hash, android::hash_type(mFontSize)); in hash() 78 hash = JenkinsHashMix(hash, android::hash_type(mFlags)); in hash() 79 hash = JenkinsHashMix(hash, android::hash_type(mItalicStyle)); in hash() 80 hash = JenkinsHashMix(hash, android::hash_type(mScaleX)); in hash() 81 hash = JenkinsHashMix(hash, android::hash_type(mStyle)); in hash() 82 hash = JenkinsHashMix(hash, android::hash_type(mStrokeWidth)); in hash() 83 hash = JenkinsHashMix(hash, int(mAntiAliasing)); in hash() 84 hash = JenkinsHashMix(hash, android::hash_type(mHinting)); in hash() [all …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardEntry.java | 244 int hash = 0; in hashCode() local 246 hash = hash * 31 + (hashTarget != null ? hashTarget.hashCode() : 0); in hashCode() 248 return hash; in hashCode() 360 int hash = mType; in hashCode() local 361 hash = hash * 31 + (mNumber != null ? mNumber.hashCode() : 0); in hashCode() 362 hash = hash * 31 + (mLabel != null ? mLabel.hashCode() : 0); in hashCode() 363 hash = hash * 31 + (mIsPrimary ? 1231 : 1237); in hashCode() 364 return hash; in hashCode() 450 int hash = mType; in hashCode() local 451 hash = hash * 31 + (mAddress != null ? mAddress.hashCode() : 0); in hashCode() [all …]
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | PathCache.h | 24 hash::StringCompare<llvm::StringRef> > HashEntryType; 27 typedef HashTable<HashEntryType, hash::StringHash<hash::BKDR>, EntryFactory<HashEntryType> > PathCa…
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapRequestKeyImpl.java | 55 int hash = 17; in hashCode() local 56 hash += 31 * hash + mUriString.hashCode(); in hashCode() 57 return hash; in hashCode()
|
/frameworks/compile/mclinker/include/mcld/ |
D | LinkerScript.h | 33 hash::StringHash<hash::DJB>, 37 hash::StringHash<hash::DJB>,
|
/frameworks/base/core/java/android/util/ |
D | ArrayMap.java | 88 int indexOf(Object key, int hash) { in indexOf() argument 96 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() 110 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 115 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 434 final int hash; in put() local 437 hash = 0; in put() 440 hash = key.hashCode(); in put() 441 index = indexOf(key, hash); in put() 477 mHashes[index] = hash; in put() 491 final int hash = key == null ? 0 : key.hashCode(); in append() local [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 85 hash_t hash() const; 202 hash_t LayoutCacheKey::hash() const { in hash() function in android::LayoutCacheKey 203 uint32_t hash = JenkinsHashMix(0, mId); in hash() local 204 hash = JenkinsHashMix(hash, mStart); in hash() 205 hash = JenkinsHashMix(hash, mCount); in hash() 206 hash = JenkinsHashMix(hash, hash_type(mStyle)); in hash() 207 hash = JenkinsHashMix(hash, hash_type(mSize)); in hash() 208 hash = JenkinsHashMix(hash, hash_type(mScaleX)); in hash() 209 hash = JenkinsHashMix(hash, hash_type(mSkewX)); in hash() 210 hash = JenkinsHashMix(hash, hash_type(mLetterSpacing)); in hash() [all …]
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringInternal.java | 398 int hash = toString().hashCode(); in hashCode() local 399 hash = hash * 31 + mSpanCount; in hashCode() 403 hash = hash * 31 + span.hashCode(); in hashCode() 405 hash = hash * 31 + getSpanStart(span); in hashCode() 406 hash = hash * 31 + getSpanEnd(span); in hashCode() 407 hash = hash * 31 + getSpanFlags(span); in hashCode() 409 return hash; in hashCode()
|