/frameworks/base/sax/java/android/sax/ |
D | Children.java | 31 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/minikin/tests/unittest/ |
D | HasherTest.cpp | 24 EXPECT_EQ(Hasher().hash(), Hasher().hash()); in TEST() 25 EXPECT_EQ(Hasher().update(1).hash(), Hasher().update(1).hash()); in TEST() 29 EXPECT_EQ(Hasher().updateShorts(shorts1, 5).hash(), Hasher().updateShorts(shorts2, 5).hash()); in TEST() 33 EXPECT_EQ(hasher.hash(), hasher.hash()); in TEST() 35 EXPECT_EQ(hasher.hash(), hasher.hash()); in TEST()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordLoggerTest.java | 63 assertEquals(0, SmallHash.hash(0)); in testSmallHash() 66 SmallHash.hash(maxHash)); in testSmallHash() 68 SmallHash.hash(17 * maxHash)); in testSmallHash() 70 SmallHash.hash(maxHash - 1)); in testSmallHash() 72 SmallHash.hash(-1)); in testSmallHash() 84 final int hash = SmallHash.hash(tag.hashCode()); in testGetNotificationIdHash() local 85 assertEquals(hash, getNotificationRecordPair(0, tag).getNotificationIdHash()); in testGetNotificationIdHash() 88 assertEquals(1 ^ hash, in testGetNotificationIdHash() 92 SmallHash.hash(-1 ^ tag.hashCode()), in testGetNotificationIdHash() 94 assertNotEquals(-1 ^ hash, in testGetNotificationIdHash() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesKey.java | 75 int hash = 17; in ResourcesKey() local 76 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey() 77 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey() 78 hash = 31 * hash + Arrays.hashCode(mOverlayDirs); in ResourcesKey() 79 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey() 80 hash = 31 * hash + mDisplayId; in ResourcesKey() 81 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey() 82 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey() 83 hash = 31 * hash + Arrays.hashCode(mLoaders); in ResourcesKey() 84 mHash = hash; in ResourcesKey()
|
/frameworks/ml/nn/common/operations/ |
D | LSHProjection.cpp | 55 const RunTimeOperandInfo* hash = GetInput(operation, operands, kHashTensor); in Prepare() local 56 NN_CHECK_EQ(NumDimensions(hash), 2); in Prepare() 58 NN_CHECK(SizeOfDimension(hash, 1) <= 32); in Prepare() 70 outputShape->dimensions = {SizeOfDimension(hash, 0)}; in Prepare() 77 outputShape->dimensions = {SizeOfDimension(hash, 0) * SizeOfDimension(hash, 1)}; in Prepare() 126 void SparseLshProjection(LSHProjectionType type, const RunTimeOperandInfo* hash, in SparseLshProjection() argument 129 int num_hash = SizeOfDimension(hash, 0); in SparseLshProjection() 130 int num_bits = SizeOfDimension(hash, 1); in SparseLshProjection() 134 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection() 147 void DenseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, in DenseLshProjection() argument [all …]
|
/frameworks/minikin/include/minikin/ |
D | Hasher.h | 69 IGNORE_INTEGER_OVERFLOW inline uint32_t hash() { in hash() function 70 uint32_t hash = mHash; in hash() local 71 hash += (hash << 3); in hash() 72 hash ^= (hash >> 11); in hash() 73 hash += (hash << 15); in hash() 74 return hash; in hash()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ContiguousFIFOAggregator.java | 100 final int hash = key.hashCode(); in expect() local 103 mTasks.remove(hash); in expect() 107 mTasks.put(hash, new Value(callback, null)); in expect() 167 final int hash = key.hashCode(); in execute() local 168 final Value value = mTasks.get(hash); in execute() 201 final int hash = first.hashCode(); in maybeExecuteNow() local 202 final Value value = mTasks.get(hash); in maybeExecuteNow() 209 mTasks.delete(hash); in maybeExecuteNow() 224 final int hash = key.hashCode(); in onFirstExpectedChanged() local 225 final Value value = mTasks.get(hash); in onFirstExpectedChanged() [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceIdCache.cpp | 34 static inline uint32_t hashround(uint32_t hash, int c) { in hashround() argument 35 return ((hash << 5) + hash) + c; /* hash * 33 + c */ in hashround() 38 static uint32_t hash(const android::String16& hashableString) { in hash() function 39 uint32_t hash = 5381; in hash() local 41 while (int c = *str++) hash = hashround(hash, c); in hash() 42 return hash; in hash() 63 const uint32_t hashcode = hash(hashedName); in lookup() 91 const uint32_t hashcode = hash(hashedName); in store()
|
/frameworks/base/core/java/android/view/ |
D | DisplayAdjustments.java | 161 int hash = 17; in hashCode() local 162 hash = hash * 31 + Objects.hashCode(mCompatInfo); in hashCode() 163 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode() 164 hash = hash * 31 + Objects.hashCode(mFixedRotationAdjustments); in hashCode() 165 return hash; in hashCode() 200 int hash = 17; in hashCode() local 201 hash = hash * 31 + mRotation; in hashCode() 202 hash = hash * 31 + Objects.hashCode(mRotatedDisplayCutout); in hashCode() 203 return hash; in hashCode()
|
D | Display.java | 1471 int hash = 1; in hashCode() local 1472 hash = hash * 17 + mModeId; in hashCode() 1473 hash = hash * 17 + mWidth; in hashCode() 1474 hash = hash * 17 + mHeight; in hashCode() 1475 hash = hash * 17 + Float.floatToIntBits(mRefreshRate); in hashCode() 1476 return hash; in hashCode() 1630 int hash = 23; in hashCode() local 1631 hash = hash * 17 + Arrays.hashCode(mSupportedHdrTypes); in hashCode() 1632 hash = hash * 17 + Float.floatToIntBits(mMaxLuminance); in hashCode() 1633 hash = hash * 17 + Float.floatToIntBits(mMaxAverageLuminance); in hashCode() [all …]
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | AttributionKey.java | 66 int hash = 7; in hashCode() local 67 hash = (31 * hash) + (mUid); in hashCode() 68 hash = (31 * hash) + (mPackages == null ? 0 : mPackages.hashCode()); in hashCode() 69 hash = (31 * hash) + (mSpecialApp == null ? 0 : mSpecialApp.hashCode()); in hashCode() 70 return hash; in hashCode()
|
/frameworks/base/location/java/android/location/ |
D | Country.java | 180 int hash = mHashCode; in hashCode() local 181 if (hash == 0) { in hashCode() 182 hash = 17; in hashCode() 183 hash = hash * 13 + mCountryIso.hashCode(); in hashCode() 184 hash = hash * 13 + mSource; in hashCode() 185 mHashCode = hash; in hashCode()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupPasswordManager.java | 187 BackupPasswordHash hash = getPasswordHashFileCodec().deserialize(); in loadStateFromFilesystem() local 188 mPasswordHash = hash.hash; in loadStateFromFilesystem() 189 mPasswordSalt = hash.salt; in loadStateFromFilesystem() 252 public String hash; field in BackupPasswordManager.BackupPasswordHash 255 BackupPasswordHash(String hash, byte[] salt) { in BackupPasswordHash() argument 256 this.hash = hash; in BackupPasswordHash() 294 dataOutputStream.writeUTF(backupPasswordHash.hash); in serialize() 303 String hash = dataInputStream.readUTF(); in deserialize() local 304 return new BackupPasswordHash(hash, salt); in deserialize()
|
/frameworks/base/cmds/statsd/src/ |
D | HashableDimensionKey.cpp | 124 android::hash_t hash = 0; in hashDimension() local 126 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField())); in hashDimension() 127 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getTag())); in hashDimension() 128 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mValue.getType())); in hashDimension() 131 hash = android::JenkinsHashMix(hash, in hashDimension() 135 hash = android::JenkinsHashMix(hash, in hashDimension() 139 hash = android::JenkinsHashMix(hash, static_cast<uint32_t>(std::hash<std::string>()( in hashDimension() 143 hash = android::JenkinsHashMix(hash, in hashDimension() 151 return JenkinsHashWhiten(hash); in hashDimension()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | DeviceFiles.cpp | 25 bool Hash(const std::string& data, std::string* hash) { in Hash() argument 26 if (!hash) return false; in Hash() 28 hash->resize(SHA256_DIGEST_LENGTH); in Hash() 31 unsigned char* output = reinterpret_cast<unsigned char*>(&(*hash)[0]); in Hash() 75 std::string hash; in StoreFileWithHash() local 76 if (!Hash(serializedFile, &hash)) { in StoreFileWithHash() 83 hashFile.set_hash(hash); in StoreFileWithHash() 213 std::string hash; in RetrieveHashedFile() local 214 if (!Hash(hashFile.file(), &hash)) { in RetrieveHashedFile() 219 if (hash != hashFile.hash()) { in RetrieveHashedFile()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunk/ |
D | ChunkListingMap.java | 44 entries.put(new ChunkHash(chunk.hash), new Entry(start, chunk.length)); in fromProto() 58 public boolean hasChunk(ChunkHash hash) { in hasChunk() argument 59 return mChunksByHash.containsKey(hash); in hasChunk() 70 public Entry getChunkEntry(ChunkHash hash) { in getChunkEntry() argument 71 return mChunksByHash.get(hash); in getChunkEntry()
|
/frameworks/base/core/java/android/os/ |
D | Temperature.java | 166 int hash = mName.hashCode(); in hashCode() local 167 hash = 31 * hash + Float.hashCode(mValue); in hashCode() 168 hash = 31 * hash + mType; in hashCode() 169 hash = 31 * hash + mStatus; in hashCode() 170 return hash; in hashCode()
|
D | CoolingDevice.java | 124 int hash = mName.hashCode(); in hashCode() local 125 hash = 31 * hash + Long.hashCode(mValue); in hashCode() 126 hash = 31 * hash + mType; in hashCode() 127 return hash; in hashCode()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsCbLocation.java | 116 int hash = mPlmn.hashCode(); in hashCode() local 117 hash = hash * 31 + mLac; in hashCode() 118 hash = hash * 31 + mCid; in hashCode() 119 return hash; in hashCode()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.h | 38 std::hash<std::string> str_hash; in hash_type() 39 android::hash_t hash = 0; in hash_type() local 40 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.package)); in hash_type() 41 hash = android::JenkinsHashMix(hash, (uint32_t)name.type); in hash_type() 42 hash = android::JenkinsHashMix(hash, (uint32_t)str_hash(name.entry)); in hash_type() 43 return hash; in hash_type()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardEntry.java | 257 int hash = 0; in hashCode() local 259 hash = hash * 31 + (hashTarget != null ? hashTarget.hashCode() : 0); in hashCode() 261 return hash; in hashCode() 373 int hash = mType; in hashCode() local 374 hash = hash * 31 + (mNumber != null ? mNumber.hashCode() : 0); in hashCode() 375 hash = hash * 31 + (mLabel != null ? mLabel.hashCode() : 0); in hashCode() 376 hash = hash * 31 + (mIsPrimary ? 1231 : 1237); in hashCode() 377 return hash; in hashCode() 463 int hash = mType; in hashCode() local 464 hash = hash * 31 + (mAddress != null ? mAddress.hashCode() : 0); in hashCode() [all …]
|
/frameworks/av/media/libnblog/ |
D | Writer.cpp | 110 void Writer::logFormat(const char *fmt, log_hash_t hash, ...) in logFormat() argument 116 va_start(ap, hash); in logFormat() 117 Writer::logVFormat(fmt, hash, ap); in logFormat() 121 void Writer::logEventHistTs(Event event, log_hash_t hash) in logEventHistTs() argument 127 data.hash = hash; in logEventHistTs() 233 void Writer::logVFormat(const char *fmt, log_hash_t hash, va_list argp) in logVFormat() argument 246 log(EVENT_FMT_HASH, &hash, sizeof(hash)); in logVFormat()
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | CodeUtilsTest.kt | 29 fun hash() { in hash() method in com.android.protolog.tool.CodeUtilsTest 30 assertEquals(-1259556708, CodeUtils.hash("Test.java:50", "test", in hash() 36 assertEquals(15793504, CodeUtils.hash("Test.java:10", "test2", in hash_changeLocation() 42 assertEquals(-731772463, CodeUtils.hash("Test.java:50", "test", in hash_changeLevel() 48 assertEquals(-2026343204, CodeUtils.hash("Test.java:50", "test2", in hash_changeMessage() 54 assertEquals(1607870166, CodeUtils.hash("Test.java:50", "test2", in hash_changeGroup()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SmallHash.java | 32 public static int hash(String in) { in hash() method in SmallHash 33 return hash(Objects.hashCode(in)); in hash() 41 public static int hash(int in) { in hash() method in SmallHash
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentRecord.java | 108 int hash = 23; in Key() local 109 hash = (ODD_PRIME_NUMBER*hash) + _f; in Key() 110 hash = (ODD_PRIME_NUMBER*hash) + _r; in Key() 111 hash = (ODD_PRIME_NUMBER*hash) + _userId; in Key() 113 hash = (ODD_PRIME_NUMBER*hash) + _w.hashCode(); in Key() 116 hash = (ODD_PRIME_NUMBER*hash) + _a.hashCode(); in Key() 119 hash = (ODD_PRIME_NUMBER*hash) + requestIntent.filterHashCode(); in Key() 122 hash = (ODD_PRIME_NUMBER*hash) + requestResolvedType.hashCode(); in Key() 124 hash = (ODD_PRIME_NUMBER*hash) + (_p != null ? _p.hashCode() : 0); in Key() 125 hash = (ODD_PRIME_NUMBER*hash) + _t; in Key() [all …]
|