/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( in hash() 42 hash, reinterpret_cast<const uint16_t*>(glyphs), glyphCount); in hash() [all …]
|
D | TessellationCache.cpp | 77 hash_t TessellationCache::Description::hash() const { in hash() function in android::uirenderer::TessellationCache::Description 78 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); in hash() local 79 hash = JenkinsHashMix(hash, aa); in hash() 80 hash = JenkinsHashMix(hash, cap); in hash() 81 hash = JenkinsHashMix(hash, style); in hash() 82 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 83 hash = JenkinsHashMix(hash, android::hash_type(scaleX)); in hash() 84 hash = JenkinsHashMix(hash, android::hash_type(scaleY)); in hash() 85 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); in hash() 86 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 | 84 hash_t PathDescription::hash() const { in hash() function in android::uirenderer::PathDescription 85 uint32_t hash = JenkinsHashMix(0, static_cast<int>(type)); in hash() local 86 hash = JenkinsHashMix(hash, join); in hash() 87 hash = JenkinsHashMix(hash, cap); in hash() 88 hash = JenkinsHashMix(hash, style); in hash() 89 hash = JenkinsHashMix(hash, android::hash_type(miter)); in hash() 90 hash = JenkinsHashMix(hash, android::hash_type(strokeWidth)); in hash() 91 hash = JenkinsHashMix(hash, android::hash_type(pathEffect)); in hash() 92 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); in hash() 93 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/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 + Objects.hashCode(mCompatInfo); in hashCode() 78 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode() 79 return hash; in hashCode()
|
D | Display.java | 1217 int hash = 1; in hashCode() local 1218 hash = hash * 17 + mModeId; in hashCode() 1219 hash = hash * 17 + mWidth; in hashCode() 1220 hash = hash * 17 + mHeight; in hashCode() 1221 hash = hash * 17 + Float.floatToIntBits(mRefreshRate); in hashCode() 1222 return hash; in hashCode() 1368 int hash = 23; in hashCode() local 1369 hash = hash * 17 + Arrays.hashCode(mSupportedHdrTypes); in hashCode() 1370 hash = hash * 17 + Float.floatToIntBits(mMaxLuminance); in hashCode() 1371 hash = hash * 17 + Float.floatToIntBits(mMaxAverageLuminance); in hashCode() [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/services/core/java/com/android/server/ |
D | LockSettingsStorage.java | 84 private CredentialHash(byte[] hash, int type, int version) { in CredentialHash() argument 86 if (hash == null) { in CredentialHash() 90 if (hash != null) { in CredentialHash() 94 this.hash = hash; in CredentialHash() 100 private CredentialHash(byte[] hash, boolean isBaseZeroPattern) { in CredentialHash() argument 101 this.hash = hash; in CredentialHash() 107 static CredentialHash create(byte[] hash, int type) { in create() argument 111 return new CredentialHash(hash, type, VERSION_GATEKEEPER); in create() 119 byte[] hash; field in LockSettingsStorage.CredentialHash 336 private void writeFile(String name, byte[] hash) { in writeFile() argument [all …]
|
/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/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/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/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/base/core/java/android/bluetooth/ |
D | BluetoothHidDeviceAppConfiguration.java | 33 BluetoothHidDeviceAppConfiguration(long hash) { in BluetoothHidDeviceAppConfiguration() argument 34 mHash = hash; in BluetoothHidDeviceAppConfiguration() 56 long hash = in.readLong(); 57 return new BluetoothHidDeviceAppConfiguration(hash);
|
/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 …]
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | PathCache.h | 23 hash::StringCompare<llvm::StringRef> > HashEntryType; 26 hash::StringHash<hash::DJB>,
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/ |
D | HTTPRequest.java | 134 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/ |
D | FlagSet.java | 144 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/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/jar/ |
D | StrictJarVerifier.java | 94 private final byte[] hash; field in StrictJarVerifier.VerifierEntry 100 VerifierEntry(String name, MessageDigest digest, byte[] hash, in VerifierEntry() argument 104 this.hash = hash; in VerifierEntry() 138 if (!verifyMessageDigest(d, hash)) { in verify() 230 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry() local 231 if (hash == null) { in initEntry() 234 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1); in initEntry() 472 String hash = attributes.getValue(algorithm + entry); in verify() local 473 if (hash == null) { in verify() 489 byte[] encodedHashBytes = hash.getBytes(StandardCharsets.ISO_8859_1); in verify()
|