/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/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.hashCode(); in ResourcesKey() 45 hash = 31 * hash + Float.floatToIntBits(mScale); in ResourcesKey() 46 mHash = hash; in ResourcesKey()
|
/frameworks/base/libs/hwui/ |
D | TextDropShadowCache.cpp | 34 hash_t ShadowText::hash() const { in hash() function in android::uirenderer::ShadowText 36 uint32_t hash = JenkinsHashMix(0, len); in hash() local 37 hash = JenkinsHashMix(hash, android::hash_type(radius)); in hash() 38 hash = JenkinsHashMix(hash, android::hash_type(textSize)); in hash() 39 hash = JenkinsHashMix(hash, android::hash_type(typeface)); in hash() 40 hash = JenkinsHashMix(hash, flags); in hash() 41 hash = JenkinsHashMix(hash, android::hash_type(italicStyle)); in hash() 42 hash = JenkinsHashMix(hash, android::hash_type(scaleX)); in hash() 44 hash = JenkinsHashMixShorts( in hash() 45 hash, reinterpret_cast<const uint16_t*>(text), charCount); 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 | 75 hash_t PatchCache::PatchDescription::hash() const { in hash() function in android::uirenderer::PatchCache::PatchDescription 76 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); in hash() local 77 hash = JenkinsHashMix(hash, mBitmapWidth); in hash() 78 hash = JenkinsHashMix(hash, mBitmapHeight); in hash() 79 hash = JenkinsHashMix(hash, mPixelWidth); in hash() 80 hash = JenkinsHashMix(hash, mPixelHeight); in hash() 81 return JenkinsHashWhiten(hash); in hash()
|
D | PathCache.cpp | 65 hash_t PathDescription::hash() const { in hash() function in android::uirenderer::PathDescription 66 uint32_t hash = JenkinsHashMix(0, type); in hash() local 67 hash = JenkinsHashMix(hash, join); in hash() 68 hash = JenkinsHashMix(hash, cap); in hash() 69 hash = JenkinsHashMix(hash, style); in hash() 70 hash = JenkinsHashMix(hash, android::hash_type(miter)); in hash() 71 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 72 hash = JenkinsHashMix(hash, android::hash_type(pathEffect)); in hash() 73 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); in hash() 74 return JenkinsHashWhiten(hash); in hash()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | LockSettingsStorageTests.java | 222 assertArrayEquals("thepassword".getBytes(), mStorage.readPasswordHash(0).hash); in testPassword_Write() 224 assertArrayEquals("thepassword".getBytes(), mStorage.readPasswordHash(0).hash); in testPassword_Write() 231 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteProfileWritesParent() 232 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteProfileWritesParent() 234 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteProfileWritesParent() 235 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteProfileWritesParent() 242 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteParentWritesProfile() 243 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteParentWritesProfile() 245 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteParentWritesProfile() 246 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteParentWritesProfile() [all …]
|
/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/core/java/android/view/ |
D | DisplayAdjustments.java | 76 int hash = 17; in hashCode() local 77 hash = hash * 31 + mCompatInfo.hashCode(); in hashCode() 79 hash = hash * 31 + (mConfiguration == null ? 0 : mConfiguration.hashCode()); in hashCode() 81 return hash; in hashCode()
|
D | Display.java | 1055 int hash = 1; in hashCode() local 1056 hash = hash * 17 + mModeId; in hashCode() 1057 hash = hash * 17 + mWidth; in hashCode() 1058 hash = hash * 17 + mHeight; in hashCode() 1059 hash = hash * 17 + Float.floatToIntBits(mRefreshRate); in hashCode() 1060 return hash; in hashCode() 1146 int hash = 1; in hashCode() local 1147 hash = hash * 17 + mId; in hashCode() 1148 hash = hash * 17 + mColorTransform; in hashCode() 1149 return hash; in hashCode()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentRecord.java | 87 int hash = 23; in Key() local 88 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key() 89 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key() 90 hash = (ODD_PRIME_NUMBER*hash) + _userId; in Key() 92 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key() 95 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key() 98 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key() 101 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key() 103 hash = (ODD_PRIME_NUMBER*hash) + _p.hashCode(); in Key() 104 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key() [all …]
|
/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/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/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/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 …]
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 74 hash_t Font::FontDescription::hash() const { in hash() function in android::uirenderer::Font::FontDescription 75 uint32_t hash = JenkinsHashMix(0, mFontId); in hash() local 76 hash = JenkinsHashMix(hash, android::hash_type(mFontSize)); in hash() 77 hash = JenkinsHashMix(hash, android::hash_type(mFlags)); in hash() 78 hash = JenkinsHashMix(hash, android::hash_type(mItalicStyle)); in hash() 79 hash = JenkinsHashMix(hash, android::hash_type(mScaleX)); in hash() 80 hash = JenkinsHashMix(hash, android::hash_type(mStyle)); in hash() 81 hash = JenkinsHashMix(hash, android::hash_type(mStrokeWidth)); in hash() 82 hash = JenkinsHashMix(hash, int(mAntiAliasing)); in hash() 83 hash = JenkinsHashMix(hash, android::hash_type(mHinting)); in hash() [all …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardEntry.java | 245 int hash = 0; in hashCode() local 247 hash = hash * 31 + (hashTarget != null ? hashTarget.hashCode() : 0); in hashCode() 249 return hash; in hashCode() 361 int hash = mType; in hashCode() local 362 hash = hash * 31 + (mNumber != null ? mNumber.hashCode() : 0); in hashCode() 363 hash = hash * 31 + (mLabel != null ? mLabel.hashCode() : 0); in hashCode() 364 hash = hash * 31 + (mIsPrimary ? 1231 : 1237); in hashCode() 365 return hash; in hashCode() 451 int hash = mType; in hashCode() local 452 hash = hash * 31 + (mAddress != null ? mAddress.hashCode() : 0); in hashCode() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsStorage.java | 82 CredentialHash(byte[] hash, int version) { in CredentialHash() argument 83 this.hash = hash; in CredentialHash() 88 CredentialHash(byte[] hash, boolean isBaseZeroPattern) { in CredentialHash() argument 89 this.hash = hash; in CredentialHash() 94 byte[] hash; field in LockSettingsStorage.CredentialHash 292 private void writeFile(String name, byte[] hash) { in writeFile() argument 299 if (hash == null || hash.length == 0) { in writeFile() 302 raf.write(hash, 0, hash.length); in writeFile() 316 mCache.putFile(name, hash); in writeFile() 327 public void writePatternHash(byte[] hash, int userId) { in writePatternHash() argument [all …]
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | PathCache.h | 23 hash::StringCompare<llvm::StringRef> > HashEntryType; 26 hash::StringHash<hash::DJB>,
|
/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/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 | 116 hash_t hash() const; 246 hash_t LayoutCacheKey::hash() const { in hash() function in android::LayoutCacheKey 247 uint32_t hash = JenkinsHashMix(0, mId); in hash() local 248 hash = JenkinsHashMix(hash, mStart); in hash() 249 hash = JenkinsHashMix(hash, mCount); in hash() 250 hash = JenkinsHashMix(hash, hash_type(mStyle)); in hash() 251 hash = JenkinsHashMix(hash, hash_type(mSize)); in hash() 252 hash = JenkinsHashMix(hash, hash_type(mScaleX)); in hash() 253 hash = JenkinsHashMix(hash, hash_type(mSkewX)); in hash() 254 hash = JenkinsHashMix(hash, hash_type(mLetterSpacing)); in hash() [all …]
|