/packages/modules/DnsResolver/ |
D | res_cache.cpp | 437 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/ |
D | HdHomeRunDevice.java | 142 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/ |
D | Hash_REF_DO.java | 58 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()
|
D | PKG_REF_DO.java | 140 int hash = Arrays.hashCode(data); in hashCode() local 141 return hash; in hashCode()
|
D | REF_DO.java | 225 int hash = Arrays.hashCode(data); in hashCode() local 227 return hash; in hashCode()
|
/packages/apps/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 46 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/ |
D | NetworkStackService.java | 231 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/ |
D | UserDictionaryCursorLoader.java | 90 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/ |
D | UserDictionaryCursorLoader.java | 90 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/ |
D | VideoList.java | 92 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()
|
D | ImageList.java | 48 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/ |
D | CarDiagnosticEvent.java | 427 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/ |
D | WearInformation.java | 18 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/ |
D | ShadowDevicePolicyManager.java | 34 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/ |
D | resource_utils.py | 49 return hash((self.name, self.type)) 117 return hash(self.search_value)
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTask.java | 142 byte[] hash = mUtils.computeHashOfByteArray(signature.toByteArray()); in computeHashesOfAllSignatures() 143 hashes.add(hash); in computeHashesOfAllSignatures()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLeaseRepository.java | 591 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/ |
D | IkeSaPayload.java | 1193 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/ |
D | FakeCarPropertyService.java | 201 return Objects.hash(mPropId, mAreaId); in hashCode() 226 return Objects.hash(mListener); in hashCode()
|
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | IoStatsEntry.java | 177 return Objects.hash(uid, runtimeMillis, foreground, background); in hashCode() 339 return Objects.hash(bytesRead, bytesWritten, bytesReadFromStorage, in hashCode()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.h | 224 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/ |
D | RawContact.java | 266 return Objects.hash(mValues, mDataItems); in hashCode() 334 return Objects.hash(mUri, mContentValues); in hashCode()
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 519 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/ |
D | FileCache.java | 166 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/ |
D | DownloadCache.java | 90 long hash = Utils.crc64Long(stringUrl); in findEntryInDatabase() local 91 String whereArgs[] = {String.valueOf(hash), stringUrl}; in findEntryInDatabase()
|