Searched defs:hash (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/av/services/audioflinger/
H A DTypedLogger.h27 Fowler-Noll-Vo (FNV-1a) hash function for the file name.
30 hash = offset_basis
32 hash = hash xor byte
33 hash = hash * FNV_prime
34 return hash
36 offset_basis and FNV_prime values depend on the size of the hash output
73 constexpr uint64_t hash(const char (&file)[n], uint32_t line) { function
89 x->logFormat((fmt), hash(__FILE_
[all...]
/frameworks/base/cmds/statsd/src/config/
H A DConfigKey.h27 using std::hash;
75 * A hash function for ConfigKey so it can be used for unordered_map/set.
83 struct hash<ConfigKey> { struct in namespace:std
85 return (7 * key.GetUid()) ^ ((hash<long long>()(key.GetId())));
/frameworks/base/sax/java/android/sax/
H A DChildren.java31 int hash = uri.hashCode() * 31 + localName.hashCode();
32 int index = hash & 15;
37 current = new Child(parent, uri, localName, parent.depth + 1, hash);
44 if (current.hash == hash
56 current = new Child(parent, uri, localName, parent.depth + 1, hash);
66 int hash = uri.hashCode() * 31 + localName.hashCode();
67 int index = hash & 15;
74 if (current.hash == hash
88 final int hash; field in class:Children.Child
91 Child(Element parent, String uri, String localName, int depth, int hash) argument
[all...]
/frameworks/ml/nn/runtime/test/generated/models/
H A Dlsh_projection.model.cpp9 auto hash = model->addOperand(&type0); local
16 model->setOperandValue(hash, hash_init, sizeof(float) * 8);
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
H A Dlsh_projection_2.model.cpp9 auto hash = model->addOperand(&type0); local
16 model->setOperandValue(hash, hash_init, sizeof(float) * 8);
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
H A Dlsh_projection_2_relaxed.model.cpp9 auto hash = model->addOperand(&type0); local
16 model->setOperandValue(hash, hash_init, sizeof(float) * 8);
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
H A Dlsh_projection_relaxed.model.cpp9 auto hash = model->addOperand(&type0); local
16 model->setOperandValue(hash, hash_init, sizeof(float) * 8);
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
H A Dlsh_projection_weights_as_inputs.model.cpp9 auto hash = model->addOperand(&type0); local
17 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
20 {hash, lookup, weight},
H A Dlsh_projection_weights_as_inputs_relaxed.model.cpp9 auto hash = model->addOperand(&type0); local
17 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
20 {hash, lookup, weight},
/frameworks/support/compat/src/main/java/androidx/core/util/
H A DObjectsCompat.java58 * Returns the hash code of a non-{@code null} argument and 0 for a {@code null} argument.
61 * @return the hash code of a non-{@code null} argument and 0 for a {@code null} argument
69 * Generates a hash code for a sequence of input values. The hash code is generated as if all
79 * return ObjectsCompat.hash(x, y, z);
84 * hash code of that object reference.</b> This value can be computed by calling
88 * @return a hash value of the sequence of input values
91 public static int hash(@Nullable Object... values) { method in class:ObjectsCompat
93 return Objects.hash(values);
/frameworks/support/room/common/src/main/java/androidx/room/
H A DRoomMasterTable.java50 public static String createInsertQuery(String hash) { argument
53 + " VALUES(" + DEFAULT_ID + ", \"" + hash + "\")";
/frameworks/base/core/java/android/hardware/camera2/marshal/
H A DMarshalRegistry.java109 this.hash = typeReference.hashCode() ^ nativeType;
114 private final int hash; field in class:MarshalRegistry.MarshalToken
129 return hash;
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DObjects.java84 * This can be used to compute a hash code for an object's fields as follows:
85 * {@code Objects.hash(a, b, c)}.
87 public static int hash(Object... values) { method in class:Objects
/frameworks/av/media/libnblog/
H A DReportPerformance.cpp49 const char * directory, bool append, int author, log_hash_t hash) {
72 common << author << "_" << hash << "_" << currTime << ".csv";
46 writeToFile(const std::deque<std::pair<timestamp, Histogram>> &hists, const std::deque<std::pair<msInterval, timestamp>> &outlierData, const std::deque<timestamp> &peakTimestamps, const char * directory, bool append, int author, log_hash_t hash) argument
/frameworks/base/cmds/statsd/src/
H A DHashableDimensionKey.cpp32 android::hash_t hash = 0; local
34 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField()));
35 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getTag()));
36 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mValue.getType()));
39 hash = android::JenkinsHashMix(hash,
43 hash
[all...]
H A DHashableDimensionKey.h158 struct hash<HashableDimensionKey> { struct in namespace:std
165 struct hash<MetricDimensionKey> { struct in namespace:std
167 android::hash_t hash = hashDimension(key.getDimensionKeyInWhat()); local
168 hash = android::JenkinsHashMix(hash, hashDimension(key.getDimensionKeyInCondition()));
169 return android::JenkinsHashWhiten(hash);
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.cpp32 hash_t ShadowText::hash() const { function in class:android::uirenderer::ShadowText
33 uint32_t hash = JenkinsHashMix(0, glyphCount); local
34 hash = JenkinsHashMix(hash, android::hash_type(radius));
35 hash = JenkinsHashMix(hash, android::hash_type(textSize));
36 hash = JenkinsHashMix(hash, android::hash_type(typeface));
37 hash = JenkinsHashMix(hash, flag
[all...]
H A DPatchCache.cpp49 hash_t PatchCache::PatchDescription::hash() const { function in class:android::uirenderer::PatchCache::PatchDescription
50 uint32_t hash = JenkinsHashMix(0, android::hash_type(mPatch)); local
51 hash = JenkinsHashMix(hash, mBitmapWidth);
52 hash = JenkinsHashMix(hash, mBitmapHeight);
53 hash = JenkinsHashMix(hash, mPixelWidth);
54 hash = JenkinsHashMix(hash, mPixelHeigh
[all...]
/frameworks/base/tools/aapt/
H A DResourceIdCache.cpp34 static inline uint32_t hashround(uint32_t hash, int c) { argument
35 return ((hash << 5) + hash) + c; /* hash * 33 + c */
38 static uint32_t hash(const android::String16& hashableString) { function
39 uint32_t hash = 5381; local
41 while (int c = *str++) hash = hashround(hash, c);
42 return hash;
63 const uint32_t hashcode = hash(hashedNam
[all...]
/frameworks/compile/mclinker/include/mcld/ADT/
H A DHashBase.h26 * \brief HashBucket is an entry in the hash table.
45 * HashTableImpl uses open-addressing, linear probing hash table.
46 * linear probing hash table obviously has high performance when the
49 * than the size of the hash table.
59 * example, on-device linkers needs a more light-weight hash function
61 * change the hash functions.
88 hasher& hash() { return m_Hasher; } function in class:mcld::HashTableImpl
90 const hasher& hash() const { return m_Hasher; } function in class:mcld::HashTableImpl
93 /// initialize the hash table.
109 /// doRehash - re-new the hash tabl
[all...]
/frameworks/ml/nn/common/operations/
H A DLSHProjection.cpp21 #include "util/hash/farmhash.h"
45 const RunTimeOperandInfo *hash = GetInput(operation, operands, kHashTensor); local
46 NN_CHECK_EQ(NumDimensions(hash), 2);
48 NN_CHECK(SizeOfDimension(hash, 1) <= 32);
58 outputShape->dimensions = { SizeOfDimension(hash, 0) };
65 outputShape->dimensions = { SizeOfDimension(hash, 0) * SizeOfDimension(hash, 1) };
79 // Compute sign bit of dot product of hash(seed, input) and weight.
96 // Create running hash id and value for current dimension.
113 void SparseLshProjection(const RunTimeOperandInfo* hash, argument
129 DenseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, int32_t* out_buf) argument
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DHTTPDownloader.cpp245 uint8_t hash[16]; local
251 MD5_Final(hash, &m);
253 if (curPlaylistHash != NULL && !memcmp(hash, curPlaylistHash, 16)) {
273 memcpy(curPlaylistHash, hash, sizeof(hash));
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
H A DBackupPasswordManagerTest.java194 String hash = PasswordUtils.buildPasswordHash(
196 writeHashAndSaltToFile(hash, salt);
199 private void writeHashAndSaltToFile(String hash, byte[] salt) throws Exception { argument
209 dos.writeUTF(hash);
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
H A DProcessErrorsTest.java364 private int hash(Object obj) { method in class:ProcessErrorsTest.ProcessError
376 code *= hash(info.longMsg);
378 code *= hash(info.processName);
379 code *= hash(info.shortMsg);
380 code *= hash(info.stackTrace);
381 code *= hash(info.tag);
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.h37 std::hash<std::string> str_hash;
38 android::hash_t hash = 0; local
39 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.package));
40 hash = android::JenkinsHashMix(hash, (uint32_t)name.type);
41 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.entry));
42 return hash;

Completed in 593 milliseconds

123