Home
last modified time | relevance | path

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

12345678910>>...13

/packages/modules/NeuralNetworks/common/operations/
DLSHProjection.cpp54 const RunTimeOperandInfo* hash = GetInput(operation, operands, kHashTensor); in Prepare() local
55 NN_CHECK_EQ(NumDimensions(hash), 2); in Prepare()
57 NN_CHECK(SizeOfDimension(hash, 1) <= 32); in Prepare()
69 outputShape->dimensions = {SizeOfDimension(hash, 0)}; in Prepare()
76 outputShape->dimensions = {SizeOfDimension(hash, 0) * SizeOfDimension(hash, 1)}; in Prepare()
125 void SparseLshProjection(LSHProjectionType type, const RunTimeOperandInfo* hash, in SparseLshProjection() argument
128 int num_hash = SizeOfDimension(hash, 0); in SparseLshProjection()
129 int num_bits = SizeOfDimension(hash, 1); in SparseLshProjection()
133 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection()
146 void DenseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, in DenseLshProjection() argument
[all …]
/packages/modules/StatsD/statsd/src/
DHashableDimensionKey.cpp115 android::hash_t hash = 0; in hashDimension() local
117 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField())); in hashDimension()
118 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getTag())); in hashDimension()
119 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mValue.getType())); in hashDimension()
122 hash = android::JenkinsHashMix(hash, in hashDimension()
126 hash = android::JenkinsHashMix(hash, in hashDimension()
130 hash = android::JenkinsHashMix(hash, static_cast<uint32_t>(std::hash<std::string>()( in hashDimension()
134 hash = android::JenkinsHashMix(hash, in hashDimension()
142 return JenkinsHashWhiten(hash); in hashDimension()
DHashableDimensionKey.h233 struct hash<HashableDimensionKey> {
240 struct hash<MetricDimensionKey> {
242 android::hash_t hash = hashDimension(key.getDimensionKeyInWhat());
243 hash = android::JenkinsHashMix(hash, hashDimension(key.getStateValuesKey()));
244 return android::JenkinsHashWhiten(hash);
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDevice.java142 int hash = 17; in hashCode() local
143 hash = hash * 31 + getIpAddress(); in hashCode()
144 hash = hash * 31 + getDeviceType(); in hashCode()
145 hash = hash * 31 + getDeviceId(); in hashCode()
146 hash = hash * 31 + getTunerIndex(); in hashCode()
147 return hash; in hashCode()
/packages/modules/DnsResolver/
Dres_cache.cpp454 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
459 hash = hash * FNV_MULT ^ *p++; in _dnsPacket_hashBytes()
463 return hash; in _dnsPacket_hashBytes()
466 static unsigned _dnsPacket_hashQName(DnsPacket* packet, unsigned hash) { in _dnsPacket_hashQName() argument
492 hash = hash * FNV_MULT ^ ch; in _dnsPacket_hashQName()
497 return hash; in _dnsPacket_hashQName()
500 static unsigned _dnsPacket_hashQR(DnsPacket* packet, unsigned hash) { in _dnsPacket_hashQR() argument
501 hash = _dnsPacket_hashQName(packet, hash); in _dnsPacket_hashQR()
502 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TYPE and CLASS */ in _dnsPacket_hashQR()
503 return hash; in _dnsPacket_hashQR()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpCoverArtStorage.java75 String hash = coverArt.getImageHash(); in storeImage() local
76 if (hash == null) { in storeImage()
82 if (mImageHandles.containsKey(hash)) { in storeImage()
83 debug("Already have image of hash '" + hash + "'"); in storeImage()
84 imageHandle = mImageHandles.get(hash); in storeImage()
88 debug("Got a new image, hash='" + hash + "'"); in storeImage()
91 mImageHandles.put(hash, imageHandle); in storeImage()
183 String hash = "< NOT IN SET >"; in dump() local
187 hash = key; in dump()
190 sb.append(String.format("\n\t\t%-8s : %-32s : %s", imageHandle, hash, coverArt)); in dump()
/packages/modules/Virtualization/authfs/src/fsverity/
Dbuilder.rs73 pub fn update_hash(&mut self, index: usize, hash: &Sha256Hash, size_at_least: u64) { in update_hash()
80 self.leaves[index].clone_from_slice(hash); in update_hash()
93 pub fn is_consistent(&self, index: usize, hash: &Sha256Hash) -> bool { in is_consistent()
95 element == hash in is_consistent()
197 let hash = Sha256Hasher::new()?.update(&vec![1u8; CHUNK_SIZE as usize])?.finalize()?; in merkle_tree_non_sequential() localVariable
200 tree.update_hash(1, &hash, CHUNK_SIZE * 2); in merkle_tree_non_sequential()
201 tree.update_hash(3, &hash, CHUNK_SIZE * 4); in merkle_tree_non_sequential()
202 tree.update_hash(0, &hash, CHUNK_SIZE); in merkle_tree_non_sequential()
203 tree.update_hash(2, &hash, CHUNK_SIZE * 3); in merkle_tree_non_sequential()
250 let hash = Sha256Hasher::new()? in generate_fsverity_digest_sequentially() localVariable
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/
DCoverArtTest.java156 String hash = artwork.getImageHash(); in testGetImageHash() local
157 assertThat(hash).isNotNull(); in testGetImageHash()
166 String hash = artwork.getImageHash(); in testGetImageHashSameForMultipleCalls() local
167 assertThat(hash).isNotNull(); in testGetImageHashSameForMultipleCalls()
168 assertThat(artwork.getImageHash()).isEqualTo(hash); // extra call 1 in testGetImageHashSameForMultipleCalls()
169 assertThat(artwork.getImageHash()).isEqualTo(hash); // extra call 2 in testGetImageHashSameForMultipleCalls()
179 String hash = artwork.getImageHash(); in testGetImageHashSameForSameImages() local
182 assertThat(hash).isNotNull(); in testGetImageHashSameForSameImages()
184 assertThat(hash).isEqualTo(hash2); in testGetImageHashSameForSameImages()
194 String hash = artwork.getImageHash(); in testGetImageHashDifferentForDifferentImages() local
[all …]
/packages/apps/SecureElement/src/com/android/se/security/gpac/
DHash_REF_DO.java58 public Hash_REF_DO(byte[] hash) { in Hash_REF_DO() argument
59 super(hash, TAG, 0, (hash == null ? 0 : hash.length)); in Hash_REF_DO()
60 if (hash != null) mHash = hash; in Hash_REF_DO()
/packages/modules/Virtualization/authfs/src/
Dcrypto.rs102 let hash = Sha256Hasher::new()?.update(&[0; 0])?.finalize()?; in verify_hash_values() localVariable
103 let s: String = to_hex_string(&hash); in verify_hash_values()
106 let hash = Sha256Hasher::new()? in verify_hash_values() localVariable
111 let s: String = to_hex_string(&hash); in verify_hash_values()
118 let hash = Sha256Hasher::new()?.update(&[0u8; 4096])?.finalize()?; in sha256_of_4096_zeros() localVariable
119 assert_eq!(hash, Sha256Hasher::HASH_OF_4096_ZEROS); in sha256_of_4096_zeros()
/packages/services/Car/car-lib/src/android/car/
DCarOccupantZoneManager.java190 int hash = 23; in hashCode() local
191 hash = hash * 17 + zoneId; in hashCode()
192 hash = hash * 17 + occupantType; in hashCode()
193 hash = hash * 17 + seat; in hashCode()
194 return hash; in hashCode()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DREADME.txt4 commit hash: a07c419913bfae2a896fbc29e8f269ee08c4d910 (add)
5 commit hash: 4a3f9cf099bbbe52dc0edb2a7e1d1c976bc335a3 (delete)
10 commit hash: 9158825f9c41869689d6b1786d7c7aa8bdd524ce (many more files)
11 commit hash: 19c662b3df3b35756a92282bb6cc767e6407cb8a (a few files)
16 commit hash: ffadfb9ffdced62db215319d3edc7717802088fb
21 commit hash: 54b6cfa9a9e5b861a9930af873580d6dc20f773c
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryCursorLoader.java90 final int hash = Objects.hash(word, shortcut); in loadInBackground() local
91 if (hashSet.contains(hash)) { in loadInBackground()
94 hashSet.add(hash); in loadInBackground()
/packages/apps/Car/libs/car-ui-lib/tests/tools/
Dquick_rro.py50 hash = sha1(args.package.encode('UTF-8'))
52 hash.update(args.target_name.encode('UTF-8'))
56 hash.update(''.join(args.resources).encode('UTF-8'))
61 hash.update(path.encode('UTF-8'))
67 hash.update(buf)
69 result = 'quickrro.' + hex_to_letters(hash.hexdigest())
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java232 AidlVersion(@NonNull String key, int version, @NonNull String hash) { in AidlVersion() argument
235 mHash = hash; in AidlVersion()
240 return Objects.hash(mVersion, mHash); in hashCode()
320 private void updateNetdAidlVersion(final int version, final String hash) { in updateNetdAidlVersion() argument
322 mAidlVersions.add(new AidlVersion(AIDL_KEY_NETD, version, hash)); in updateNetdAidlVersion()
326 private void updateNetworkStackAidlVersion(final int version, final String hash) { in updateNetworkStackAidlVersion() argument
328 mAidlVersions.add(new AidlVersion(AIDL_KEY_NETWORKSTACK, version, hash)); in updateNetworkStackAidlVersion()
332 private void updateIpMemoryStoreAidlVersion(final int version, final String hash) { in updateIpMemoryStoreAidlVersion() argument
334 mAidlVersions.add(new AidlVersion(AIDL_KEY_IPMEMORYSTORE, version, hash)); in updateIpMemoryStoreAidlVersion()
/packages/modules/StatsD/statsd/src/config/
DConfigKey.h27 using std::hash;
83 struct hash<ConfigKey> {
85 return (7 * key.GetUid()) ^ ((hash<long long>()(key.GetId())));
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DSmsHeader.java91 return Objects.hash(portAddrs, concatRef, specialSmsMsgList, miscEltList, languageTable, in hashCode()
118 return Objects.hash(destPort, origPort, areEightBits); in hashCode()
147 return Objects.hash(refNumber, seqNumber, msgCount, isEightBits); in hashCode()
169 return Objects.hash(msgIndType, msgCount); in hashCode()
192 int result = Objects.hash(id); in hashCode()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java327 return Objects.hash(attributeType); in hashCode()
462 return Objects.hash(super.hashCode(), address); in hashCode()
536 return Objects.hash(super.hashCode(), address); in hashCode()
769 return Objects.hash(super.hashCode(), linkAddress); in hashCode()
872 return Objects.hash(super.hashCode(), address); in hashCode()
946 return Objects.hash(super.hashCode(), address); in hashCode()
1039 return Objects.hash(super.hashCode(), linkAddress); in hashCode()
1217 return Objects.hash(super.hashCode(), applicationVersion); in hashCode()
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java92 HashMap<String, String> hash = new HashMap<String, String>(); in getBucketIds() local
94 hash.put(c.getString(1), c.getString(0)); in getBucketIds()
96 return hash; in getBucketIds()
DImageList.java48 HashMap<String, String> hash = new HashMap<String, String>(); in getBucketIds() local
50 hash.put(cursor.getString(1), cursor.getString(0)); in getBucketIds()
52 return hash; in getBucketIds()
/packages/modules/IPsec/src/java/android/net/eap/
DEapSessionConfig.java202 return Objects.hash(Arrays.hashCode(mEapIdentity), mEapConfigs); in hashCode()
500 return Objects.hash(mMethodType); in hashCode()
581 return Objects.hash(super.hashCode(), mSubId, mApptype); in hashCode()
723 return Objects.hash(super.hashCode(), mNetworkName, mAllowMismatchedNetworkNames); in hashCode()
811 return Objects.hash(super.hashCode(), mUsername, mPassword); in hashCode()
940 return Objects.hash( in hashCode()
/packages/modules/GeoTZ/common/src/main/java/com/android/timezone/location/common/
DPiiLoggables.java107 return Objects.hash(mValue); in fromPiiValue()
153 return Objects.hash(mString); in fromString()
201 int result = Objects.hash(mTemplate); in fromTemplate()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/
DBankedTzIdSets.java71 return Objects.hash(mStringsByIndex, mBanks); in hashCode()
198 return Objects.hash(mId, mTzIdSets); in hashCode()
252 return Objects.hash(mStringIds, mStrings); in hashCode()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DCoverArt.java94 String hash = null; in getImageHash()
105 hash = hexString.toString(); in getImageHash()
109 return hash; in getImageHash()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
DCredential.java374 return Objects.hash(mUsername, mPassword, mMachineManaged, mSoftTokenApp, in hashCode()
459 return Objects.hash(mUsername); in getUniqueId()
585 return Objects.hash(mCertType, Arrays.hashCode(mCertSha256Fingerprint)); in hashCode()
745 return Objects.hash(mImsi, mEapType); in hashCode()
1036 return Objects.hash(mCreationTimeInMillis, mExpirationTimeInMillis, mRealm, in hashCode()
1050 return Objects.hash(mUserCredential != null ? mUserCredential.getUniqueId() : 0, in getUniqueId()

12345678910>>...13