Home
last modified time | relevance | path

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

1234567

/packages/modules/DnsResolver/
Dres_cache.cpp437 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
442 hash = hash * FNV_MULT ^ *p++; in _dnsPacket_hashBytes()
446 return hash; in _dnsPacket_hashBytes()
449 static unsigned _dnsPacket_hashQName(DnsPacket* packet, unsigned hash) { in _dnsPacket_hashQName() argument
474 hash = hash * FNV_MULT ^ *p++; in _dnsPacket_hashQName()
479 return hash; in _dnsPacket_hashQName()
482 static unsigned _dnsPacket_hashQR(DnsPacket* packet, unsigned hash) { in _dnsPacket_hashQR() argument
483 hash = _dnsPacket_hashQName(packet, hash); in _dnsPacket_hashQR()
484 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TYPE and CLASS */ in _dnsPacket_hashQR()
485 return hash; in _dnsPacket_hashQR()
[all …]
/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/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()
DPKG_REF_DO.java140 int hash = Arrays.hashCode(data); in hashCode() local
141 return hash; in hashCode()
DREF_DO.java225 int hash = Arrays.hashCode(data); in hashCode() local
227 return hash; in hashCode()
/packages/apps/Car/libs/car-ui-lib/tests/tools/
Dquick_rro.py46 hash = None
49 hash = sha1(''.join(args.resources) + args.package)
51 hash = sha1(args.package)
55 hash.update(path)
61 hash.update(buf)
63 result = 'quickrro.' + hex_to_letters(hash.hexdigest())
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java231 AidlVersion(@NonNull String key, int version, @NonNull String hash) { in AidlVersion() argument
234 mHash = hash; in AidlVersion()
239 return Objects.hash(mVersion, mHash); in hashCode()
319 private void updateNetdAidlVersion(final int version, final String hash) { in updateNetdAidlVersion() argument
321 mAidlVersions.add(new AidlVersion(AIDL_KEY_NETD, version, hash)); in updateNetdAidlVersion()
325 private void updateNetworkStackAidlVersion(final int version, final String hash) { in updateNetworkStackAidlVersion() argument
327 mAidlVersions.add(new AidlVersion(AIDL_KEY_NETWORKSTACK, version, hash)); in updateNetworkStackAidlVersion()
331 private void updateIpMemoryStoreAidlVersion(final int version, final String hash) { in updateIpMemoryStoreAidlVersion() argument
333 mAidlVersions.add(new AidlVersion(AIDL_KEY_IPMEMORYSTORE, version, hash)); in updateIpMemoryStoreAidlVersion()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java427 int intKeysHash = Objects.hash((Object[])intKeys); in hashCode()
428 int intValuesHash = Objects.hash((Object[])intValues); in hashCode()
429 int floatKeysHash = Objects.hash((Object[])floatKeys); in hashCode()
430 int floatValuesHash = Objects.hash((Object[])floatValues); in hashCode()
431 return Objects.hash(frameType, in hashCode()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearInformation.java18 import static java.util.Objects.hash;
59 return hash(lifetimeEstimateA, lifetimeEstimateB, preEolInfo); in hashCode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java34 mSupportMessagesMap.put(Objects.hash(admin, userHandle), message); in setShortSupportMessageForUser()
40 return mSupportMessagesMap.get(Objects.hash(admin, userHandle)); in getShortSupportMessageForUser()
/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dresource_utils.py49 return hash((self.name, self.type))
117 return hash(self.search_value)
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DVerifyPackageTask.java142 byte[] hash = mUtils.computeHashOfByteArray(signature.toByteArray()); in computeHashesOfAllSignatures()
143 hashes.add(hash); in computeHashesOfAllSignatures()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java591 int hash = 0; in getFirstClientAddress() local
593 hash += b + (b << 8) + (b << 16); in getFirstClientAddress()
598 final int addrIndex = hash % mNumAddresses; in getFirstClientAddress()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java1193 return Objects.hash(type, id, mSpecifiedKeyLength); in hashCode()
1341 return Objects.hash(type, id); in hashCode()
1422 return Objects.hash(type, id); in hashCode()
1503 return Objects.hash(type, id); in hashCode()
1590 return Objects.hash(type, id); in hashCode()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarPropertyService.java201 return Objects.hash(mPropId, mAreaId); in hashCode()
226 return Objects.hash(mListener); in hashCode()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStatsEntry.java177 return Objects.hash(uid, runtimeMillis, foreground, background); in hashCode()
339 return Objects.hash(bytesRead, bytesWritten, bytesReadFromStorage, in hashCode()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h224 return std::hash<std::string>()(key.name) + static_cast<size_t>(key.type); in operator()
237 std::hash<uint8_t>{}(i) + 0x9e3779b9 + (combined << 6) + (combined >> 2); in operator()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DRawContact.java266 return Objects.hash(mValues, mDataItems); in hashCode()
334 return Objects.hash(mUri, mContentValues); in hashCode()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java519 return Objects.hash(mPhysicalPort, mMaxStringLength, mMaxCumulativeContentItems, in hashCode()
1006 return Objects.hash(mMinSpeed, mMaxSpeed); in hashCode()
1131 return Objects.hash(mMode, mReqOpt, mRestrictions, mSpeedRange); in hashCode()
1256 return Objects.hash(mDriveStateUxRestrictions); in hashCode()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java166 long hash = Utils.crc64Long(downloadUrl); in queryDatabase() local
167 String whereArgs[] = new String[] {String.valueOf(hash), downloadUrl}; in queryDatabase()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java90 long hash = Utils.crc64Long(stringUrl); in findEntryInDatabase() local
91 String whereArgs[] = {String.valueOf(hash), stringUrl}; in findEntryInDatabase()

1234567