Home
last modified time | relevance | path

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

12

/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/base/location/java/android/location/
DCountry.java176 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/native/include/utils/
DBasicHashtable.h68 ssize_t find(ssize_t index, hash_t hash, const void* __restrict__ key) const;
69 size_t add(hash_t hash, const void* __restrict__ entry);
119 inline static hash_t trimHash(hash_t hash) { in trimHash() argument
120 return (hash & Bucket::HASH_MASK) ^ (hash >> 30); in trimHash()
126 inline static size_t chainStart(hash_t hash, size_t count) { in chainStart() argument
127 return hash % count; in chainStart()
133 inline static size_t chainIncrement(hash_t hash, size_t count) { in chainIncrement() argument
134 return ((hash >> 7) | (hash << 25)) % (count - 1) + 1; in chainIncrement()
279 inline ssize_t find(ssize_t index, hash_t hash, const TKey& key) const { in find() argument
280 return BasicHashtableImpl::find(index, hash, &key); in find()
[all …]
/frameworks/native/libs/utils/
DBasicHashtable.cpp109 ssize_t BasicHashtableImpl::find(ssize_t index, hash_t hash, in find() argument
115 hash = trimHash(hash); in find()
117 index = chainStart(hash, mBucketCount); in find()
131 size_t inc = chainIncrement(hash, mBucketCount); in find()
137 if ((bucket.cookie & Bucket::HASH_MASK) == hash in find()
148 size_t BasicHashtableImpl::add(hash_t hash, const void* entry) { in add() argument
155 hash = trimHash(hash); in add()
157 size_t index = chainStart(hash, mBucketCount); in add()
160 size_t inc = chainIncrement(hash, mBucketCount); in add()
177 bucket->cookie = collision | Bucket::PRESENT | hash; in add()
[all …]
DZipFileRO.cpp358 unsigned int fileNameLen, extraLen, commentLen, hash; in parseZipArchive() local
365 hash = computeHash((const char*)ptr + kCDELen, fileNameLen); in parseZipArchive()
366 addToHash((const char*)ptr + kCDELen, fileNameLen, hash); in parseZipArchive()
387 unsigned int hash = 0; in computeHash() local
390 hash = hash * 31 + *str++; in computeHash()
392 return hash; in computeHash()
398 void ZipFileRO::addToHash(const char* str, int strLen, unsigned int hash) in addToHash() argument
400 int ent = hash & (mHashTableSize-1); in addToHash()
428 unsigned int hash = computeHash(fileName, nameLen); in findEntryByName() local
429 int ent = hash & (mHashTableSize-1); in findEntryByName()
/frameworks/base/services/java/com/android/server/am/
DPendingIntentRecord.java74 int hash = 23; in Key() local
75 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key()
76 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key()
78 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key()
81 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key()
84 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key()
87 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key()
89 hash = (ODD_PRIME_NUMBER*hash) + _p.hashCode(); in Key()
90 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key()
91 hashCode = hash; in Key()
/frameworks/base/core/java/android/content/pm/
DContainerEncryptionParams.java260 int hash = 3; in hashCode() local
262 hash += 5 * mEncryptionAlgorithm.hashCode(); in hashCode()
263 hash += 7 * Arrays.hashCode(mEncryptionSpec.getIV()); in hashCode()
264 hash += 11 * mEncryptionKey.hashCode(); in hashCode()
265 hash += 13 * mMacAlgorithm.hashCode(); in hashCode()
266 hash += 17 * mMacKey.hashCode(); in hashCode()
267 hash += 19 * Arrays.hashCode(mMacTag); in hashCode()
268 hash += 23 * mAuthenticatedDataStart; in hashCode()
269 hash += 29 * mEncryptedDataStart; in hashCode()
270 hash += 31 * mDataEnd; in hashCode()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSmsCbLocation.java105 int hash = mPlmn.hashCode(); in hashCode() local
106 hash = hash * 31 + mLac; in hashCode()
107 hash = hash * 31 + mCid; in hashCode()
108 return hash; in hashCode()
/frameworks/base/core/java/com/android/internal/widget/
DLockSettingsService.java206 public void setLockPattern(byte[] hash, int userId) throws RemoteException { in setLockPattern() argument
209 writeFile(getLockPatternFilename(userId), hash); in setLockPattern() local
213 public boolean checkPattern(byte[] hash, int userId) throws RemoteException { in checkPattern() argument
225 return Arrays.equals(stored, hash); in checkPattern()
236 public void setLockPassword(byte[] hash, int userId) throws RemoteException { in setLockPassword() argument
239 writeFile(getLockPasswordFilename(userId), hash); in setLockPassword() local
243 public boolean checkPassword(byte[] hash, int userId) throws RemoteException { in checkPassword() argument
256 return Arrays.equals(stored, hash); in checkPassword()
289 private void writeFile(String name, byte[] hash) { in writeFile() argument
294 if (hash == null || hash.length == 0) { in writeFile()
[all …]
DILockSettings.aidl27 void setLockPattern(in byte[] hash, int userId); in setLockPattern() argument
28 boolean checkPattern(in byte[] hash, int userId); in checkPattern() argument
29 void setLockPassword(in byte[] hash, int userId); in setLockPassword() argument
30 boolean checkPassword(in byte[] hash, int userId); in checkPassword() argument
DLockPatternUtils.java467 final byte[] hash = LockPatternUtils.patternToHash(pattern); in saveLockPattern()
469 getLockSettings().setLockPattern(hash, getCurrentOrCallingUserId()); in saveLockPattern()
569 final byte[] hash = passwordToHash(password); in saveLockPassword()
571 getLockSettings().setLockPassword(hash, getCurrentOrCallingUserId()); in saveLockPassword()
636 passwordHistory = new String(hash) + "," + passwordHistory; in saveLockPassword()
639 passwordHistory = passwordHistory.substring(0, Math.min(hash.length in saveLockPassword()
742 byte[] hash = md.digest(res); in patternToHash()
743 return hash; in patternToHash()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntry.java244 int hash = 0; in hashCode() local
246 hash = hash * 31 + (hashTarget != null ? hashTarget.hashCode() : 0); in hashCode()
248 return hash; in hashCode()
360 int hash = mType; in hashCode() local
361 hash = hash * 31 + (mNumber != null ? mNumber.hashCode() : 0); in hashCode()
362 hash = hash * 31 + (mLabel != null ? mLabel.hashCode() : 0); in hashCode()
363 hash = hash * 31 + (mIsPrimary ? 1231 : 1237); in hashCode()
364 return hash; in hashCode()
450 int hash = mType; in hashCode() local
451 hash = hash * 31 + (mAddress != null ? mAddress.hashCode() : 0); in hashCode()
[all …]
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
DProcessErrorsTest.java353 private int hash(Object obj) { in hash() method in ProcessErrorsTest.ProcessError
365 code *= hash(info.longMsg); in hashCode()
367 code *= hash(info.processName); in hashCode()
368 code *= hash(info.shortMsg); in hashCode()
369 code *= hash(info.stackTrace); in hashCode()
370 code *= hash(info.tag); in hashCode()
/frameworks/base/tests/CoreTests/android/core/
DSha1Test.java50 byte[] hash = digest.digest(); in testSha1()
51 String encodedHash = encodeHex(hash); in testSha1()
/frameworks/compile/mclinker/include/mcld/ADT/
DHashBase.h96 hasher& hash() in hash() function
99 const hasher& hash() const in hash() function
/frameworks/base/core/java/android/bluetooth/
DBluetoothDevice.java670 public boolean createBondOutOfBand(byte[] hash, byte[] randomizer) { in createBondOutOfBand() argument
672 return sService.createBondOutOfBand(mAddress, hash, randomizer); in createBondOutOfBand()
690 public boolean setDeviceOutOfBandData(byte[] hash, byte[] randomizer) { in setDeviceOutOfBandData() argument
692 return sService.setDeviceOutOfBandData(mAddress, hash, randomizer); in setDeviceOutOfBandData()
DIBluetooth.aidl63 boolean createBondOutOfBand(in String address, in byte[] hash, in byte[] randomizer); in createBondOutOfBand() argument
68 boolean setDeviceOutOfBandData(in String address, in byte[] hash, in byte[] randomizer); in setDeviceOutOfBandData() argument
DBluetoothAdapter.java1138 byte[] hash; in readOutOfBandData()
1145 hash = Arrays.copyOfRange(ret, 0, 16); in readOutOfBandData()
1149 Log.d(TAG, "readOutOfBandData:" + Arrays.toString(hash) + in readOutOfBandData()
1152 return new Pair<byte[], byte[]>(hash, randomizer); in readOutOfBandData()
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java148 int hash = Character.toLowerCase(monthString.charAt(0)) + in getMonth() local
151 switch (hash) { in getMonth()
/frameworks/base/core/java/android/server/
DBluetoothService.java197 int hash = 1; in hashCode() local
198 hash = hash * 31 + (address == null ? 0 : address.hashCode()); in hashCode()
199 hash = hash * 31 + (uuid == null ? 0 : uuid.hashCode()); in hashCode()
200 return hash; in hashCode()
1079 public synchronized boolean createBondOutOfBand(String address, byte[] hash, in createBondOutOfBand() argument
1087 setDeviceOutOfBandData(address, hash, randomizer); in createBondOutOfBand()
1094 public synchronized boolean setDeviceOutOfBandData(String address, byte[] hash, in setDeviceOutOfBandData() argument
1100 Pair <byte[], byte[]> value = new Pair<byte[], byte[]>(hash, randomizer); in setDeviceOutOfBandData()
1104 Arrays.toString(hash) + ":" + Arrays.toString(randomizer)); in setDeviceOutOfBandData()
1452 byte[] hash, randomizer; in setRemoteOutOfBandData()
[all …]
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp331 uint8_t hash[16]; in fetchPlaylist() local
337 MD5_Final(hash, &m); in fetchPlaylist()
339 if (mPlaylist != NULL && !memcmp(hash, mPlaylistHash, 16)) { in fetchPlaylist()
354 memcpy(mPlaylistHash, hash, sizeof(hash)); in fetchPlaylist()
/frameworks/native/libs/utils/tests/
DBasicHashtable_test.cpp108 bool* collision, bool* present, hash_t* hash) { in cookieAt() argument
112 *hash = cookie & BasicHashtable<TKey, TEntry>::Bucket::HASH_MASK; in cookieAt()
163 hash_t hash; in dump() local
164 BasicHashtableTest::cookieAt(h, i, &collision, &present, &hash); in dump()
170 i, collision, present, hash, key, value, hash_type(key)); in dump()
/frameworks/compile/mclinker/include/mcld/LD/
DStringUnorderedMap.h165 HashFunction hash; in getOrCreate() local
166 size_t hashVal = hash(pStr); in getOrCreate()
/frameworks/wilhelm/tools/hashgen/
DREADME.txt6 * GNU gperf perfect hash generator
/frameworks/av/include/media/stagefright/foundation/
DAString.h67 size_t hash() const;

12