Home
last modified time | relevance | path

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

12345678910>>...31

/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()
40 EXPECT_NE(Hasher().update(x).hash(), Hasher().update(1).hash()); in TEST()
/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/native/services/surfaceflinger/CompositionEngine/src/planner/
DPredictor.cpp173 const std::vector<const LayerState*>& layers, NonBufferHash hash) const { in getPredictedPlan()
175 if (std::optional<Plan> exactMatch = getExactMatch(hash); exactMatch) { in getPredictedPlan()
176 ALOGV("[%s] Found an exact match for %zx", __func__, hash); in getPredictedPlan()
177 return PredictedPlan{.hash = hash, .plan = *exactMatch, .type = Prediction::Type::Exact}; in getPredictedPlan()
192 return PredictedPlan{.hash = *approximateMatch, in getPredictedPlan()
260 void Predictor::describeLayerStack(NonBufferHash hash, std::string& result) const { in describeLayerStack() argument
261 base::StringAppendF(&result, "Describing %zx:\n\n", hash); in describeLayerStack()
263 if (const auto predictionsEntry = mPredictions.find(hash); in describeLayerStack()
265 const auto& [hash, prediction] = *predictionsEntry; in describeLayerStack()
283 for (NonBufferHash hash : similarStacks) { in listSimilarStacks() local
[all …]
/frameworks/base/core/java/android/content/res/
DResourcesKey.java86 int hash = 17; in ResourcesKey() local
87 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey()
88 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey()
89 hash = 31 * hash + Arrays.hashCode(mOverlayPaths); in ResourcesKey()
90 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey()
91 hash = 31 * hash + Objects.hashCode(mDisplayId); in ResourcesKey()
92 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey()
93 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey()
94 hash = 31 * hash + Arrays.hashCode(mLoaders); in ResourcesKey()
95 mHash = hash; in ResourcesKey()
/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/native/libs/math/include/math/
DHashCombine.h22 static inline void hashCombineSingleHashed(size_t& combinedHash, size_t hash) { in hashCombineSingleHashed() argument
23 combinedHash = 31 * combinedHash + hash; in hashCombineSingleHashed()
28 hashCombineSingleHashed(combinedHash, std::hash<T>{}(val)); in hashCombineSingle()
33 size_t hash = 0; in hashCombine() local
34 ( hashCombineSingle(hash, args), ... ); in hashCombine()
35 return hash; in hashCombine()
/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/av/media/libaudioclient/include/media/
DAudioCommonTypes.h35 return std::hash<size_t>{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in hash_combine()
45 template<> struct hash<android::media::audio::common::AudioChannelLayout>
50 const size_t seed = std::hash<Tag>{}(acl.getTag());
53 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::none>()));
55 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::invalid>()));
57 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::indexMask>()));
59 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::layoutMask>()));
61 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::voiceMask>()));
67 template<> struct hash<android::media::audio::common::AudioDeviceDescription>
72 std::hash<android::media::audio::common::AudioDeviceType>{}(add.type),
[all …]
/frameworks/minikin/include/minikin/
DHasher.h104 IGNORE_INTEGER_OVERFLOW inline uint32_t hash() { in hash() function
105 uint32_t hash = mHash; in hash() local
106 hash += (hash << 3); in hash()
107 hash ^= (hash >> 11); in hash()
108 hash += (hash << 15); in hash()
109 return hash; in hash()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DPredictor.h137 struct hash<android::compositionengine::impl::planner::Plan> {
139 return std::hash<std::string>{}(to_string(plan));
227 NonBufferHash hash;
232 return lhs.hash == rhs.hash && lhs.plan == rhs.plan && lhs.type == rhs.type;
243 NonBufferHash hash) const;
275 PromotionCandidate(NonBufferHash hash, Prediction&& prediction)
276 : hash(hash), prediction(std::move(prediction)) {}
278 NonBufferHash hash;
284 decltype(mCandidates)::const_iterator getCandidateEntryByHash(NonBufferHash hash) const {
286 return candidate.hash == hash;
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordLoggerTest.java80 assertEquals(0, SmallHash.hash(0)); in testSmallHash()
83 SmallHash.hash(maxHash)); in testSmallHash()
85 SmallHash.hash(17 * maxHash)); in testSmallHash()
87 SmallHash.hash(maxHash - 1)); in testSmallHash()
89 SmallHash.hash(-1)); in testSmallHash()
101 final int hash = SmallHash.hash(tag.hashCode()); in testGetNotificationIdHash() local
102 assertEquals(hash, getNotificationRecordPair(0, tag).getNotificationIdHash()); in testGetNotificationIdHash()
105 assertEquals(1 ^ hash, in testGetNotificationIdHash()
109 SmallHash.hash(-1 ^ tag.hashCode()), in testGetNotificationIdHash()
111 assertNotEquals(-1 ^ hash, in testGetNotificationIdHash()
[all …]
/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/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/common/
DDeviceFiles.cpp36 bool Hash(const std::string& data, std::string* hash) { in Hash() argument
37 if (!hash) return false; in Hash()
39 hash->resize(SHA256_DIGEST_LENGTH); in Hash()
42 unsigned char* output = reinterpret_cast<unsigned char*>(&(*hash)[0]); in Hash()
80 std::string hash; in StoreFileWithHash() local
81 if (!Hash(serializedFile, &hash)) { in StoreFileWithHash()
88 hashFile.set_hash(hash); in StoreFileWithHash()
216 std::string hash; in RetrieveHashedFile() local
217 if (!Hash(hashFile.file(), &hash)) { in RetrieveHashedFile()
222 if (hash != hashFile.hash()) { in RetrieveHashedFile()
/frameworks/native/libs/ui/include/ui/
DDisplayId.h168 constexpr GpuVirtualDisplayId(HashTag, uint64_t hash) in GpuVirtualDisplayId()
169 : VirtualDisplayId(FLAG_STABLE | FLAG_GPU | hash) {} in GpuVirtualDisplayId()
214 struct hash<android::DisplayId> {
216 return hash<uint64_t>()(displayId.value);
221 struct hash<android::PhysicalDisplayId> : hash<android::DisplayId> {};
224 struct hash<android::HalVirtualDisplayId> : hash<android::DisplayId> {};
227 struct hash<android::GpuVirtualDisplayId> : hash<android::DisplayId> {};
230 struct hash<android::HalDisplayId> : hash<android::DisplayId> {};
/frameworks/native/libs/ui/include_vndk/ui/
DDisplayId.h168 constexpr GpuVirtualDisplayId(HashTag, uint64_t hash) in GpuVirtualDisplayId()
169 : VirtualDisplayId(FLAG_STABLE | FLAG_GPU | hash) {} in GpuVirtualDisplayId()
214 struct hash<android::DisplayId> {
216 return hash<uint64_t>()(displayId.value);
221 struct hash<android::PhysicalDisplayId> : hash<android::DisplayId> {};
224 struct hash<android::HalVirtualDisplayId> : hash<android::DisplayId> {};
227 struct hash<android::GpuVirtualDisplayId> : hash<android::DisplayId> {};
230 struct hash<android::HalDisplayId> : hash<android::DisplayId> {};
/frameworks/base/location/java/android/location/
DCountry.java222 int hash = mHashCode; in hashCode() local
223 if (hash == 0) { in hashCode()
224 hash = 17; in hashCode()
225 hash = hash * 13 + mCountryIso.hashCode(); in hashCode()
226 hash = hash * 13 + mSource; in hashCode()
227 mHashCode = hash; in hashCode()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java89 int hash = 17; in hashCode() local
90 hash = hash * 31 + Objects.hashCode(mCompatInfo); in hashCode()
91 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode()
92 return hash; in hashCode()
/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/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)str_hash(name.type.name)); in hash_type()
42 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.entry)); in hash_type()
43 return hash; in hash_type()
/frameworks/native/libs/attestation/
DHmacKeyManager.cpp36 std::array<uint8_t, 32> hash; in sign() local
39 HMAC(EVP_sha256(), mHmacKey.data(), mHmacKey.size(), data, size, hash.data(), &hashLen); in sign()
45 if (hashLen != hash.size()) { in sign()
50 return hash; in sign()
/frameworks/base/core/java/android/os/
DTemperature.java189 int hash = mName.hashCode(); in hashCode() local
190 hash = 31 * hash + Float.hashCode(mValue); in hashCode()
191 hash = 31 * hash + mType; in hashCode()
192 hash = 31 * hash + mStatus; in hashCode()
193 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/base/services/core/java/com/android/server/am/
DActivityManagerUtils.java81 final int hash = getUnsignedHashUnCached(s); in getUnsignedHashCached() local
82 sHashCache.put(s.intern(), hash); in getUnsignedHashCached() local
83 return hash; in getUnsignedHashCached()
124 final int hash = getUnsignedHashCached(packageName) ^ getAndroidIdHash(); in shouldSamplePackageForAtom() local
126 return (((double) hash) / Integer.MAX_VALUE) <= rate; in shouldSamplePackageForAtom()
/frameworks/native/libs/ui/tests/
DDisplayIdentification_test.cpp137 uint32_t hash(const char* str) { in hash() function
190 EXPECT_EQ(hash("121AT11-801"), edid->modelHash); in TEST()
191 EXPECT_EQ(hash("121AT11-801"), 626564263); in TEST()
202 EXPECT_EQ(hash("HP ZR30w"), edid->modelHash); in TEST()
203 EXPECT_EQ(hash("HP ZR30w"), 918492362); in TEST()
214 EXPECT_EQ(hash("SAMSUNG"), edid->modelHash); in TEST()
215 EXPECT_EQ(hash("SAMSUNG"), 1201368132); in TEST()
232 EXPECT_EQ(hash("Panasonic-TV"), edid->modelHash); in TEST()
233 EXPECT_EQ(hash("Panasonic-TV"), 3876373262); in TEST()
250 EXPECT_EQ(hash("Hisense"), edid->modelHash); in TEST()
[all …]

12345678910>>...31