Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 160) sorted by relevance

1234567

/frameworks/base/sax/java/android/sax/
DChildren.java31 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/
DTextDropShadowCache.cpp32 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( in hash()
42 hash, reinterpret_cast<const uint16_t*>(glyphs), glyphCount); in hash()
[all …]
DTessellationCache.cpp78 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 …]
DPatchCache.cpp65 hash_t PatchCache::PatchDescription::hash() const { in hash() function in android::uirenderer::PatchCache::PatchDescription
66 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); in hash() local
67 hash = JenkinsHashMix(hash, mBitmapWidth); in hash()
68 hash = JenkinsHashMix(hash, mBitmapHeight); in hash()
69 hash = JenkinsHashMix(hash, mPixelWidth); in hash()
70 hash = JenkinsHashMix(hash, mPixelHeight); in hash()
71 return JenkinsHashWhiten(hash); in hash()
DPathCache.cpp82 hash_t PathDescription::hash() const { in hash() function in android::uirenderer::PathDescription
83 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); in hash() local
84 hash = JenkinsHashMix(hash, join); in hash()
85 hash = JenkinsHashMix(hash, cap); in hash()
86 hash = JenkinsHashMix(hash, style); in hash()
87 hash = JenkinsHashMix(hash, android::hash_type(miter)); in hash()
88 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash()
89 hash = JenkinsHashMix(hash, android::hash_type(pathEffect)); in hash()
90 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); in hash()
91 return JenkinsHashWhiten(hash); in hash()
/frameworks/base/core/java/android/content/res/
DResourcesKey.java65 int hash = 17; in ResourcesKey() local
66 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey()
67 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey()
68 hash = 31 * hash + Arrays.hashCode(mOverlayDirs); in ResourcesKey()
69 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey()
70 hash = 31 * hash + mDisplayId; in ResourcesKey()
71 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey()
72 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey()
73 mHash = hash; in ResourcesKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsStorageTests.java228 assertArrayEquals("thepassword".getBytes(), mStorage.readPasswordHash(0).hash); in testPassword_Write()
230 assertArrayEquals("thepassword".getBytes(), mStorage.readPasswordHash(0).hash); in testPassword_Write()
237 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteProfileWritesParent()
238 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteProfileWritesParent()
240 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteProfileWritesParent()
241 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteProfileWritesParent()
269 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteParentWritesProfile()
270 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteParentWritesProfile()
272 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(1).hash); in testPassword_WriteParentWritesProfile()
273 assertArrayEquals("parentpasswordd".getBytes(), mStorage.readPasswordHash(2).hash); in testPassword_WriteParentWritesProfile()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/
DContiguousFIFOAggregator.java100 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/
DResourceIdCache.cpp34 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/
DCountry.java176 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/tools/aapt2/process/
DSymbolTable.h37 std::hash<std::u16string> strHash; in hash_type()
38 android::hash_t hash = 0; in hash_type() local
39 hash = android::JenkinsHashMix(hash, (uint32_t) strHash(name.package)); in hash_type()
40 hash = android::JenkinsHashMix(hash, (uint32_t) name.type); in hash_type()
41 hash = android::JenkinsHashMix(hash, (uint32_t) strHash(name.entry)); in hash_type()
42 return hash; in hash_type()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentRecord.java89 int hash = 23; in Key() local
90 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key()
91 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key()
92 hash = (ODD_PRIME_NUMBER*hash) + _userId; in Key()
94 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key()
97 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key()
100 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key()
103 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key()
105 hash = (ODD_PRIME_NUMBER*hash) + _p.hashCode(); in Key()
106 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key()
[all …]
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java74 int hash = 17; in hashCode() local
75 hash = hash * 31 + Objects.hashCode(mCompatInfo); in hashCode()
76 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode()
77 return hash; in hashCode()
DDisplay.java1076 int hash = 1; in hashCode() local
1077 hash = hash * 17 + mModeId; in hashCode()
1078 hash = hash * 17 + mWidth; in hashCode()
1079 hash = hash * 17 + mHeight; in hashCode()
1080 hash = hash * 17 + Float.floatToIntBits(mRefreshRate); in hashCode()
1081 return hash; in hashCode()
1295 int hash = 1; in hashCode() local
1296 hash = hash * 17 + mId; in hashCode()
1297 hash = hash * 17 + mColorTransform; in hashCode()
1298 return hash; in hashCode()
/frameworks/base/libs/hwui/font/
DFont.cpp69 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/opt/telephony/src/java/android/telephony/
DSmsCbLocation.java103 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/
DVerificationParams.java153 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/opt/vcard/java/com/android/vcard/
DVCardEntry.java245 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/
DLockSettingsStorage.java85 CredentialHash(byte[] hash, int version) { in CredentialHash() argument
86 this.hash = hash; in CredentialHash()
91 CredentialHash(byte[] hash, boolean isBaseZeroPattern) { in CredentialHash() argument
92 this.hash = hash; in CredentialHash()
97 byte[] hash; field in LockSettingsStorage.CredentialHash
319 private void writeFile(String name, byte[] hash) { in writeFile() argument
326 if (hash == null || hash.length == 0) { in writeFile()
329 raf.write(hash, 0, hash.length); in writeFile()
343 mCache.putFile(name, hash); in writeFile()
358 public void writePatternHash(byte[] hash, int userId) { in writePatternHash() argument
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
DHTTPRequest.java134 byte[] a1 = hash(userName, realm, passwordString); in generateAuthAnswer()
135 byte[] a2 = hash("POST", url.getPath()); in generateAuthAnswer()
136 byte[] response = hash(a1, nonceText, nc, cNonceString, "auth", a2); in generateAuthAnswer()
166 private static byte[] hash(Object... objects) throws GeneralSecurityException { in hash() method in HTTPRequest
167 MessageDigest hash = MessageDigest.getInstance("MD5"); in hash() local
183 hash.update((byte) ':'); in hash()
185 hash.update(octets); in hash()
188 return hash.digest(); in hash()
286 byte[] a1 = hash(user, realm, password); in test()
288 byte[] a2 = hash(method, path); in test()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DFlagSet.java144 int hash = 1; in hashCode() local
146 hash = (hash * 7) ^ (int)(bucket >>> 32); in hashCode()
147 hash = (hash * 13) ^ (int)(bucket & 0xFFFF); in hashCode()
149 return hash; in hashCode()
/frameworks/base/core/java/android/util/
DArrayMap.java89 int indexOf(Object key, int hash) { in indexOf() argument
97 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf()
111 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
116 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
438 final int hash; in put() local
441 hash = 0; in put()
444 hash = mIdentityHashCode ? System.identityHashCode(key) : key.hashCode(); in put()
445 index = indexOf(key, hash); in put()
481 mHashes[index] = hash; in put()
495 final int hash = key == null ? 0 in append() local
[all …]
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java98 private final byte[] hash; field in StrictJarVerifier.VerifierEntry
104 VerifierEntry(String name, MessageDigest digest, byte[] hash, in VerifierEntry() argument
108 this.hash = hash; in VerifierEntry()
142 if (!MessageDigest.isEqual(d, Base64.decode(hash))) { in verify()
234 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry() local
235 if (hash == null) { in initEntry()
238 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1); in initEntry()
476 String hash = attributes.getValue(algorithm + entry); in verify() local
477 if (hash == null) { in verify()
493 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1); in verify()
/frameworks/compile/mclinker/include/mcld/Support/
DPathCache.h23 hash::StringCompare<llvm::StringRef> > HashEntryType;
26 hash::StringHash<hash::DJB>,
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DBitmapRequestKeyImpl.java55 int hash = 17; in hashCode() local
56 hash += 31 * hash + mUriString.hashCode(); in hashCode()
57 return hash; in hashCode()

1234567