Home
last modified time | relevance | path

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

12345678910>>...16

/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/minikin/tests/unittest/
DHasherTest.cpp24 EXPECT_EQ(Hasher().hash(), Hasher().hash()); in TEST()
25 EXPECT_EQ(Hasher().update(1).hash(), Hasher().update(1).hash()); in TEST()
29 EXPECT_EQ(Hasher().updateShorts(shorts1, 5).hash(), Hasher().updateShorts(shorts2, 5).hash()); in TEST()
33 EXPECT_EQ(hasher.hash(), hasher.hash()); in TEST()
35 EXPECT_EQ(hasher.hash(), hasher.hash()); in TEST()
/frameworks/base/core/java/android/content/res/
DResourcesKey.java70 int hash = 17; in ResourcesKey() local
71 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey()
72 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey()
73 hash = 31 * hash + Arrays.hashCode(mOverlayDirs); in ResourcesKey()
74 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey()
75 hash = 31 * hash + mDisplayId; in ResourcesKey()
76 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey()
77 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey()
78 mHash = hash; in ResourcesKey()
/frameworks/ml/nn/common/operations/
DLSHProjection.cpp55 const RunTimeOperandInfo* hash = GetInput(operation, operands, kHashTensor); in Prepare() local
56 NN_CHECK_EQ(NumDimensions(hash), 2); in Prepare()
58 NN_CHECK(SizeOfDimension(hash, 1) <= 32); in Prepare()
70 outputShape->dimensions = {SizeOfDimension(hash, 0)}; in Prepare()
77 outputShape->dimensions = {SizeOfDimension(hash, 0) * SizeOfDimension(hash, 1)}; in Prepare()
126 void SparseLshProjection(LSHProjectionType type, const RunTimeOperandInfo* hash, in SparseLshProjection() argument
129 int num_hash = SizeOfDimension(hash, 0); in SparseLshProjection()
130 int num_bits = SizeOfDimension(hash, 1); in SparseLshProjection()
134 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection()
147 void DenseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, in DenseLshProjection() argument
[all …]
/frameworks/base/cmds/statsd/src/
DHashableDimensionKey.cpp30 android::hash_t hash = 0; in hashDimension() local
32 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField())); in hashDimension()
33 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getTag())); in hashDimension()
34 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mValue.getType())); in hashDimension()
37 hash = android::JenkinsHashMix(hash, in hashDimension()
41 hash = android::JenkinsHashMix(hash, in hashDimension()
45 hash = android::JenkinsHashMix(hash, static_cast<uint32_t>(std::hash<std::string>()( in hashDimension()
49 hash = android::JenkinsHashMix(hash, in hashDimension()
57 return JenkinsHashWhiten(hash); in hashDimension()
DHashableDimensionKey.h158 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/minikin/include/minikin/
DHasher.h69 IGNORE_INTEGER_OVERFLOW inline uint32_t hash() { in hash() function
70 uint32_t hash = mHash; in hash() local
71 hash += (hash << 3); in hash()
72 hash ^= (hash >> 11); in hash()
73 hash += (hash << 15); in hash()
74 return hash; in hash()
/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/tools/powermodel/src/com/android/powermodel/
DAttributionKey.java66 int hash = 7; in hashCode() local
67 hash = (31 * hash) + (mUid); in hashCode()
68 hash = (31 * hash) + (mPackages == null ? 0 : mPackages.hashCode()); in hashCode()
69 hash = (31 * hash) + (mSpecialApp == null ? 0 : mSpecialApp.hashCode()); in hashCode()
70 return hash; in hashCode()
/frameworks/base/location/java/android/location/
DCountry.java180 int hash = mHashCode; in hashCode() local
181 if (hash == 0) { in hashCode()
182 hash = 17; in hashCode()
183 hash = hash * 13 + mCountryIso.hashCode(); in hashCode()
184 hash = hash * 13 + mSource; in hashCode()
185 mHashCode = hash; in hashCode()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupPasswordManager.java187 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/av/drm/mediadrm/plugins/clearkey/hidl/
DDeviceFiles.cpp25 bool Hash(const std::string& data, std::string* hash) { in Hash() argument
26 if (!hash) return false; in Hash()
28 hash->resize(SHA256_DIGEST_LENGTH); in Hash()
31 unsigned char* output = reinterpret_cast<unsigned char*>(&(*hash)[0]); in Hash()
75 std::string hash; in StoreFileWithHash() local
76 if (!Hash(serializedFile, &hash)) { in StoreFileWithHash()
83 hashFile.set_hash(hash); in StoreFileWithHash()
213 std::string hash; in RetrieveHashedFile() local
214 if (!Hash(hashFile.file(), &hash)) { in RetrieveHashedFile()
219 if (hash != hashFile.hash()) { in RetrieveHashedFile()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java80 int hash = 17; in hashCode() local
81 hash = hash * 31 + Objects.hashCode(mCompatInfo); in hashCode()
82 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode()
83 return hash; in hashCode()
DDisplay.java1331 int hash = 1; in hashCode() local
1332 hash = hash * 17 + mModeId; in hashCode()
1333 hash = hash * 17 + mWidth; in hashCode()
1334 hash = hash * 17 + mHeight; in hashCode()
1335 hash = hash * 17 + Float.floatToIntBits(mRefreshRate); in hashCode()
1336 return hash; in hashCode()
1489 int hash = 23; in hashCode() local
1490 hash = hash * 17 + Arrays.hashCode(mSupportedHdrTypes); in hashCode()
1491 hash = hash * 17 + Float.floatToIntBits(mMaxLuminance); in hashCode()
1492 hash = hash * 17 + Float.floatToIntBits(mMaxAverageLuminance); in hashCode()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java102 private CredentialHash(byte[] hash, @CredentialType int type, int version) { in CredentialHash() argument
103 this(hash, type, version, false /* isBaseZeroPattern */); in CredentialHash()
107 byte[] hash, @CredentialType int type, int version, boolean isBaseZeroPattern) { in CredentialHash() argument
109 if (hash == null) { in CredentialHash()
113 if (hash != null) { in CredentialHash()
117 this.hash = hash; in CredentialHash()
123 private static CredentialHash createBaseZeroPattern(byte[] hash) { in createBaseZeroPattern() argument
124 return new CredentialHash(hash, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in createBaseZeroPattern()
128 static CredentialHash create(byte[] hash, int type) { in create() argument
132 return new CredentialHash(hash, type, VERSION_GATEKEEPER); in create()
[all …]
/frameworks/base/core/java/android/os/
DTemperature.java166 int hash = mName.hashCode(); in hashCode() local
167 hash = 31 * hash + Float.hashCode(mValue); in hashCode()
168 hash = 31 * hash + mType; in hashCode()
169 hash = 31 * hash + mStatus; in hashCode()
170 return hash; in hashCode()
DCoolingDevice.java124 int hash = mName.hashCode(); in hashCode() local
125 hash = 31 * hash + Long.hashCode(mValue); in hashCode()
126 hash = 31 * hash + mType; in hashCode()
127 return hash; in hashCode()
/frameworks/base/tools/aapt2/process/
DSymbolTable.h38 std::hash<std::string> str_hash; in hash_type()
39 android::hash_t hash = 0; in hash_type() local
40 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.package)); in hash_type()
41 hash = android::JenkinsHashMix(hash, (uint32_t)name.type); in hash_type()
42 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.entry)); in hash_type()
43 return hash; in hash_type()
/frameworks/base/telephony/java/android/telephony/
DSmsCbLocation.java116 int hash = mPlmn.hashCode(); in hashCode() local
117 hash = hash * 31 + mLac; in hashCode()
118 hash = hash * 31 + mCid; in hashCode()
119 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.java257 int hash = 0; in hashCode() local
259 hash = hash * 31 + (hashTarget != null ? hashTarget.hashCode() : 0); in hashCode()
261 return hash; in hashCode()
373 int hash = mType; in hashCode() local
374 hash = hash * 31 + (mNumber != null ? mNumber.hashCode() : 0); in hashCode()
375 hash = hash * 31 + (mLabel != null ? mLabel.hashCode() : 0); in hashCode()
376 hash = hash * 31 + (mIsPrimary ? 1231 : 1237); in hashCode()
377 return hash; in hashCode()
463 int hash = mType; in hashCode() local
464 hash = hash * 31 + (mAddress != null ? mAddress.hashCode() : 0); in hashCode()
[all …]
/frameworks/av/media/libnblog/
DWriter.cpp106 void Writer::logFormat(const char *fmt, log_hash_t hash, ...) in logFormat() argument
112 va_start(ap, hash); in logFormat()
113 Writer::logVFormat(fmt, hash, ap); in logFormat()
117 void Writer::logEventHistTs(Event event, log_hash_t hash) in logEventHistTs() argument
123 data.hash = hash; in logEventHistTs()
229 void Writer::logVFormat(const char *fmt, log_hash_t hash, va_list argp) in logVFormat() argument
242 log(EVENT_FMT_HASH, &hash, sizeof(hash)); in logVFormat()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentRecord.java104 int hash = 23; in Key() local
105 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key()
106 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key()
107 hash = (ODD_PRIME_NUMBER*hash) + _userId; in Key()
109 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key()
112 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key()
115 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key()
118 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key()
120 hash = (ODD_PRIME_NUMBER*hash) + (_p != null ? _p.hashCode() : 0); in Key()
121 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key()
[all …]
/frameworks/base/core/java/android/util/
DArrayMap.java116 private static int binarySearchHashes(int[] hashes, int N, int hash) { in binarySearchHashes() argument
118 return ContainerHelpers.binarySearch(hashes, N, hash); in binarySearchHashes()
129 int indexOf(Object key, int hash) { in indexOf() argument
137 int index = binarySearchHashes(mHashes, N, hash); in indexOf()
151 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
156 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
533 final int hash; in put() local
536 hash = 0; in put()
539 hash = mIdentityHashCode ? System.identityHashCode(key) : key.hashCode(); in put()
540 index = indexOf(key, hash); in put()
[all …]

12345678910>>...16