/frameworks/minikin/include/minikin/ |
D | LayoutCache.h | 63 android::hash_t hash() const { return mHash; } in hash() function 107 uint32_t hash = android::JenkinsHashMix(0, mId); in computeHash() local 108 hash = android::JenkinsHashMix(hash, mStart); in computeHash() 109 hash = android::JenkinsHashMix(hash, mCount); in computeHash() 110 hash = android::JenkinsHashMix(hash, android::hash_type(mStyle.identifier())); in computeHash() 111 hash = android::JenkinsHashMix(hash, android::hash_type(mSize)); in computeHash() 112 hash = android::JenkinsHashMix(hash, android::hash_type(mScaleX)); in computeHash() 113 hash = android::JenkinsHashMix(hash, android::hash_type(mSkewX)); in computeHash() 114 hash = android::JenkinsHashMix(hash, android::hash_type(mLetterSpacing)); in computeHash() 115 hash = android::JenkinsHashMix(hash, android::hash_type(mWordSpacing)); in computeHash() [all …]
|
/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 | 32 hash_t ShadowText::hash() const { in hash() function in android::uirenderer::ShadowText 33 uint32_t hash = JenkinsHashMix(0, glyphCount); in hash() local 34 hash = JenkinsHashMix(hash, android::hash_type(radius)); in hash() 35 hash = JenkinsHashMix(hash, android::hash_type(textSize)); in hash() 36 hash = JenkinsHashMix(hash, android::hash_type(typeface)); in hash() 37 hash = JenkinsHashMix(hash, flags); in hash() 38 hash = JenkinsHashMix(hash, android::hash_type(italicStyle)); in hash() 39 hash = JenkinsHashMix(hash, android::hash_type(scaleX)); in hash() 41 hash = JenkinsHashMixShorts(hash, reinterpret_cast<const uint16_t*>(glyphs), glyphCount); in hash() 45 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash() [all …]
|
D | TessellationCache.cpp | 78 hash_t TessellationCache::Description::hash() const { in hash() function in android::uirenderer::TessellationCache::Description 79 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); in hash() local 80 hash = JenkinsHashMix(hash, aa); in hash() 81 hash = JenkinsHashMix(hash, cap); in hash() 82 hash = JenkinsHashMix(hash, style); in hash() 83 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 84 hash = JenkinsHashMix(hash, android::hash_type(scaleX)); in hash() 85 hash = JenkinsHashMix(hash, android::hash_type(scaleY)); in hash() 86 hash = JenkinsHashMixBytes(hash, (uint8_t*)&shape, sizeof(Shape)); in hash() 87 return JenkinsHashWhiten(hash); in hash() [all …]
|
D | PatchCache.cpp | 49 hash_t PatchCache::PatchDescription::hash() const { in hash() function in android::uirenderer::PatchCache::PatchDescription 50 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); in hash() local 51 hash = JenkinsHashMix(hash, mBitmapWidth); in hash() 52 hash = JenkinsHashMix(hash, mBitmapHeight); in hash() 53 hash = JenkinsHashMix(hash, mPixelWidth); in hash() 54 hash = JenkinsHashMix(hash, mPixelHeight); in hash() 55 return JenkinsHashWhiten(hash); in hash()
|
D | PathCache.cpp | 87 hash_t PathDescription::hash() const { in hash() function in android::uirenderer::PathDescription 88 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); in hash() local 89 hash = JenkinsHashMix(hash, join); in hash() 90 hash = JenkinsHashMix(hash, cap); in hash() 91 hash = JenkinsHashMix(hash, style); in hash() 92 hash = JenkinsHashMix(hash, android::hash_type(miter)); in hash() 93 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 94 hash = JenkinsHashMix(hash, android::hash_type(pathEffect)); in hash() 95 hash = JenkinsHashMixBytes(hash, (uint8_t*)&shape, sizeof(Shape)); in hash() 96 return JenkinsHashWhiten(hash); in hash()
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesKey.java | 66 int hash = 17; in ResourcesKey() local 67 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey() 68 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey() 69 hash = 31 * hash + Arrays.hashCode(mOverlayDirs); in ResourcesKey() 70 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey() 71 hash = 31 * hash + mDisplayId; in ResourcesKey() 72 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey() 73 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey() 74 mHash = hash; in ResourcesKey()
|
/frameworks/base/cmds/statsd/src/ |
D | HashableDimensionKey.cpp | 32 android::hash_t hash = 0; in hashDimension() local 34 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField())); in hashDimension() 35 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getTag())); in hashDimension() 36 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mValue.getType())); in hashDimension() 39 hash = android::JenkinsHashMix(hash, in hashDimension() 43 hash = android::JenkinsHashMix(hash, in hashDimension() 47 hash = android::JenkinsHashMix(hash, static_cast<uint32_t>(std::hash<std::string>()( in hashDimension() 51 hash = android::JenkinsHashMix(hash, in hashDimension() 59 return JenkinsHashWhiten(hash); in hashDimension()
|
D | HashableDimensionKey.h | 158 struct hash<HashableDimensionKey> { 165 struct hash<MetricDimensionKey> { 167 android::hash_t hash = hashDimension(key.getDimensionKeyInWhat()); 168 hash = android::JenkinsHashMix(hash, hashDimension(key.getDimensionKeyInCondition())); 169 return android::JenkinsHashWhiten(hash);
|
/frameworks/ml/nn/common/operations/ |
D | LSHProjection.cpp | 45 const RunTimeOperandInfo *hash = GetInput(operation, operands, kHashTensor); in Prepare() local 46 NN_CHECK_EQ(NumDimensions(hash), 2); in Prepare() 48 NN_CHECK(SizeOfDimension(hash, 1) <= 32); in Prepare() 58 outputShape->dimensions = { SizeOfDimension(hash, 0) }; in Prepare() 65 outputShape->dimensions = { SizeOfDimension(hash, 0) * SizeOfDimension(hash, 1) }; in Prepare() 113 void SparseLshProjection(const RunTimeOperandInfo* hash, in SparseLshProjection() argument 116 int num_hash = SizeOfDimension(hash, 0); in SparseLshProjection() 117 int num_bits = SizeOfDimension(hash, 1); in SparseLshProjection() 121 float seed = reinterpret_cast<float*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection() 129 void DenseLshProjection(const RunTimeOperandInfo* hash, in DenseLshProjection() argument [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/services/backup/java/com/android/server/backup/ |
D | BackupPasswordManager.java | 187 BackupPasswordHash hash = getPasswordHashFileCodec().deserialize(); in loadStateFromFilesystem() local 188 mPasswordHash = hash.hash; in loadStateFromFilesystem() 189 mPasswordSalt = hash.salt; in loadStateFromFilesystem() 252 public String hash; field in BackupPasswordManager.BackupPasswordHash 255 BackupPasswordHash(String hash, byte[] salt) { in BackupPasswordHash() argument 256 this.hash = hash; in BackupPasswordHash() 294 dataOutputStream.writeUTF(backupPasswordHash.hash); in serialize() 303 String hash = dataInputStream.readUTF(); in deserialize() local 304 return new BackupPasswordHash(hash, salt); in deserialize()
|
/frameworks/base/core/java/android/view/ |
D | DisplayAdjustments.java | 76 int hash = 17; in hashCode() local 77 hash = hash * 31 + Objects.hashCode(mCompatInfo); in hashCode() 78 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode() 79 return hash; in hashCode()
|
D | Display.java | 1250 int hash = 1; in hashCode() local 1251 hash = hash * 17 + mModeId; in hashCode() 1252 hash = hash * 17 + mWidth; in hashCode() 1253 hash = hash * 17 + mHeight; in hashCode() 1254 hash = hash * 17 + Float.floatToIntBits(mRefreshRate); in hashCode() 1255 return hash; in hashCode() 1401 int hash = 23; in hashCode() local 1402 hash = hash * 17 + Arrays.hashCode(mSupportedHdrTypes); in hashCode() 1403 hash = hash * 17 + Float.floatToIntBits(mMaxLuminance); in hashCode() 1404 hash = hash * 17 + Float.floatToIntBits(mMaxAverageLuminance); in hashCode() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStorage.java | 99 private CredentialHash(byte[] hash, int type, int version) { in CredentialHash() argument 100 this(hash, type, version, false /* isBaseZeroPattern */); in CredentialHash() 103 private CredentialHash(byte[] hash, int type, int version, boolean isBaseZeroPattern) { in CredentialHash() argument 105 if (hash == null) { in CredentialHash() 109 if (hash != null) { in CredentialHash() 113 this.hash = hash; in CredentialHash() 119 private static CredentialHash createBaseZeroPattern(byte[] hash) { in createBaseZeroPattern() argument 120 return new CredentialHash(hash, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in createBaseZeroPattern() 124 static CredentialHash create(byte[] hash, int type) { in create() argument 128 return new CredentialHash(hash, type, VERSION_GATEKEEPER); in create() [all …]
|
/frameworks/base/telephony/java/com/android/internal/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 | 153 int hash = 3; in hashCode() local 155 hash += 5 * (mVerificationURI == null ? 1 : mVerificationURI.hashCode()); in hashCode() 156 hash += 7 * (mOriginatingURI == null ? 1 : mOriginatingURI.hashCode()); in hashCode() 157 hash += 11 * (mReferrer == null ? 1 : mReferrer.hashCode()); in hashCode() 158 hash += 13 * mOriginatingUid; in hashCode() 159 hash += 17 * mInstallerUid; in hashCode() 161 return hash; in hashCode()
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 69 hash_t Font::FontDescription::hash() const { in hash() function in android::uirenderer::Font::FontDescription 70 uint32_t hash = JenkinsHashMix(0, mFontId); in hash() local 71 hash = JenkinsHashMix(hash, android::hash_type(mFontSize)); in hash() 72 hash = JenkinsHashMix(hash, android::hash_type(mFlags)); in hash() 73 hash = JenkinsHashMix(hash, android::hash_type(mItalicStyle)); in hash() 74 hash = JenkinsHashMix(hash, android::hash_type(mScaleX)); in hash() 75 hash = JenkinsHashMix(hash, android::hash_type(mStyle)); in hash() 76 hash = JenkinsHashMix(hash, android::hash_type(mStrokeWidth)); in hash() 77 hash = JenkinsHashMix(hash, int(mAntiAliasing)); in hash() 78 hash = JenkinsHashMix(hash, android::hash_type(mHinting)); in hash() [all …]
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.h | 37 std::hash<std::string> str_hash; in hash_type() 38 android::hash_t hash = 0; in hash_type() local 39 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.package)); in hash_type() 40 hash = android::JenkinsHashMix(hash, (uint32_t)name.type); in hash_type() 41 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.entry)); in hash_type() 42 return hash; in hash_type()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentRecord.java | 94 int hash = 23; in Key() local 95 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key() 96 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key() 97 hash = (ODD_PRIME_NUMBER*hash) + _userId; in Key() 99 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key() 102 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key() 105 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key() 108 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key() 110 hash = (ODD_PRIME_NUMBER*hash) + (_p != null ? _p.hashCode() : 0); in Key() 111 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key() [all …]
|
/frameworks/av/media/libnblog/ |
D | NBLog.cpp | 120 NBLog::log_hash_t NBLog::FormatEntry::hash() const { in hash() function in android::NBLog::FormatEntry 127 log_hash_t hash; in hash() local 128 memcpy(&hash, it->data, sizeof(hash)); in hash() 129 return hash; in hash() 238 NBLog::log_hash_t NBLog::HistogramEntry::hash() const { in hash() function in android::NBLog::HistogramEntry 239 return EntryIterator(mEntry).payload<HistTsEntry>().hash; in hash() 444 void NBLog::Writer::logHash(log_hash_t hash) in logHash() argument 449 log(EVENT_HASH, &hash, sizeof(hash)); in logHash() 452 void NBLog::Writer::logEventHistTs(Event event, log_hash_t hash) in logEventHistTs() argument 458 data.hash = hash; in logEventHistTs() [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/core/java/android/util/ |
D | ArrayMap.java | 102 private static int binarySearchHashes(int[] hashes, int N, int hash) { in binarySearchHashes() argument 104 return ContainerHelpers.binarySearch(hashes, N, hash); in binarySearchHashes() 114 int indexOf(Object key, int hash) { in indexOf() argument 122 int index = binarySearchHashes(mHashes, N, hash); in indexOf() 136 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 141 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 474 final int hash; in put() local 477 hash = 0; in put() 480 hash = mIdentityHashCode ? System.identityHashCode(key) : key.hashCode(); in put() 481 index = indexOf(key, hash); in put() [all …]
|