/dalvik/vm/test/ |
D | TestHash.cpp | 83 u4 hash; in dvmTestHash() local 97 hash = dvmComputeUtf8Hash(tmpStr); in dvmTestHash() 98 dvmHashTableLookup(pTab, hash, strdup(tmpStr), in dvmTestHash() 107 hash = dvmComputeUtf8Hash(tmpStr); in dvmTestHash() 108 str = (const char*) dvmHashTableLookup(pTab, hash, tmpStr, in dvmTestHash() 118 hash = dvmComputeUtf8Hash(tmpStr); in dvmTestHash() 119 str = (const char*) dvmHashTableLookup(pTab, hash, tmpStr, in dvmTestHash() 141 hash = 0; in dvmTestHash() 145 str1 = (char*) dvmHashTableLookup(pTab, hash, strdup("one"), in dvmTestHash() 148 str = (const char*) dvmHashTableLookup(pTab, hash, strdup("two"), in dvmTestHash() [all …]
|
/dalvik/vm/hprof/ |
D | HprofClass.cpp | 42 u4 hash; in computeClassHash() local 47 hash = (u4)clazz->classLoader; in computeClassHash() 49 hash = hash * 31 + c; in computeClassHash() 52 return hash; in computeClassHash()
|
D | HprofString.cpp | 40 u4 hash = 0; in computeUtf8Hash() local 46 hash = hash * 31 + c; in computeUtf8Hash() 49 return hash; in computeUtf8Hash()
|
/dalvik/dx/src/com/android/dx/rop/annotation/ |
D | Annotation.java | 84 int hash = type.hashCode(); in hashCode() local 85 hash = (hash * 31) + elements.hashCode(); in hashCode() 86 hash = (hash * 31) + visibility.hashCode(); in hashCode() 87 return hash; in hashCode()
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | CatchTable.java | 133 int hash = (start * 31) + end; in hashCode() local 134 hash = (hash * 31) + handlers.hashCode(); in hashCode() 135 return hash; in hashCode()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | CatchTable.java | 133 int hash = (start * 31) + end; in hashCode() local 134 hash = (hash * 31) + handlers.hashCode(); in hashCode() 135 return hash; in hashCode()
|
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/ |
D | Annotation.java | 92 int hash = type.hashCode(); in hashCode() local 93 hash = (hash * 31) + elements.hashCode(); in hashCode() 94 hash = (hash * 31) + visibility.hashCode(); in hashCode() 95 return hash; in hashCode()
|
/dalvik/vm/ |
D | AtomicCache.h | 97 int hash; \ 102 hash = (((u4)(_key1) >> 2) ^ (u4)(_key2)) & ((_cacheSize)-1); \ 103 pEntry = (_cache)->entries + hash; \
|
D | UtfString.cpp | 90 u4 hash = 1; in dvmComputeUtf8Hash() local 93 hash = hash * 31 + *utf8Str++; in dvmComputeUtf8Hash() 95 return hash; in dvmComputeUtf8Hash() 199 u4 hash = 0; in computeUtf16Hash() local 202 hash = hash * 31 + *utf16Str++; in computeUtf16Hash() 204 return hash; in computeUtf16Hash()
|
D | Native.cpp | 197 u4 hash = dvmComputeUtf8Hash(pathName); in findSharedLibEntry() local 200 ent = dvmHashTableLookup(gDvm.nativeLibs, hash, (void*)pathName, in findSharedLibEntry() 213 u4 hash = dvmComputeUtf8Hash(pLib->pathName); in addSharedLibEntry() local 220 return (SharedLib*)dvmHashTableLookup(gDvm.nativeLibs, hash, pLib, in addSharedLibEntry()
|
D | Hash.h | 152 bool dvmHashTableRemove(HashTable* pHashTable, u4 hash, void* item);
|
/dalvik/libdex/ |
D | DexFile.cpp | 165 u4 hash = 1; in classDescriptorHash() local 168 hash = hash * 31 + *str++; in classDescriptorHash() 170 return hash; in classDescriptorHash() 184 u4 hash = classDescriptorHash(classDescriptor); in classLookupAdd() local 186 int idx = hash & mask; in classLookupAdd() 200 pLookup->table[idx].classDescriptorHash = hash; in classLookupAdd() 445 u4 hash; in dexFindClass() local 448 hash = classDescriptorHash(descriptor); in dexFindClass() 450 idx = hash & mask; in dexFindClass() 462 if (pLookup->table[idx].classDescriptorHash == hash) { in dexFindClass()
|
D | ZipArchive.cpp | 94 unsigned int hash = 0; in computeHash() local 97 hash = hash * 31 + *str++; in computeHash() 99 return hash; in computeHash() 106 unsigned int hash) in addToHash() argument 109 int ent = hash & (hashTableSize - 1); in addToHash() 312 unsigned int fileNameLen, extraLen, commentLen, hash; in parseZipArchive() local 318 hash = computeHash((const char*)ptr + kCDELen, fileNameLen); in parseZipArchive() 319 addToHash(pArchive, (const char*)ptr + kCDELen, fileNameLen, hash); in parseZipArchive() 428 unsigned int hash = computeHash(entryName, nameLen); in dexZipFindEntry() local 430 int ent = hash & (hashTableSize-1); in dexZipFindEntry()
|
/dalvik/vm/native/ |
D | dalvik_system_DexFile.cpp | 90 u4 hash = cookie; in validateCookie() local 92 void* result = dvmHashTableLookup(gDvm.userDexFiles, hash, pDexOrJar, in validateCookie() 116 u4 hash = (u4) pDexOrJar; in addToDexFileTable() local 120 result = dvmHashTableLookup(gDvm.userDexFiles, hash, pDexOrJar, in addToDexFileTable() 319 u4 hash = (u4) pDexOrJar; in Dalvik_dalvik_system_DexFile_closeDexFile() local 321 if (!dvmHashTableRemove(gDvm.userDexFiles, hash, pDexOrJar)) { in Dalvik_dalvik_system_DexFile_closeDexFile()
|
D | InternalNative.cpp | 102 u4 hash; in dvmLookupInternalNativeMethod() local 104 hash = dvmComputeUtf8Hash(classDescriptor); in dvmLookupInternalNativeMethod() 109 if (pClass->classDescriptorHash == hash && in dvmLookupInternalNativeMethod()
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | RegisterSpecSet.java | 89 int hash = 0; in hashCode() local 94 hash = (hash * 31) + oneHash; in hashCode() 97 return hash; in hashCode()
|
D | RegisterSpec.java | 274 int hash = (local != null) ? local.hashCode() : 0; in hashCodeOf() local 276 hash = (hash * 31 + type.hashCode()) * 31 + reg; in hashCodeOf() 277 return hash; in hashCodeOf()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | RegisterSpecSet.java | 88 int hash = 0; in hashCode() local 93 hash = (hash * 31) + oneHash; in hashCode() 96 return hash; in hashCode()
|
D | RegisterSpec.java | 279 int hash = (local != null) ? local.hashCode() : 0; in hashCodeOf() local 281 hash = (hash * 31 + type.hashCode()) * 31 + reg; in hashCodeOf() 282 return hash; in hashCodeOf()
|
/dalvik/vm/compiler/codegen/x86/libenc/ |
D | enc_base.cpp | 746 static unsigned find(Mnemonic mn, unsigned hash) in find() argument 748 unsigned key = hash % COUNTOF(subHash); in find() 751 if (_hash != hash) { in find() 765 static void put(Mnemonic mn, unsigned hash, unsigned idx) in put() argument 767 unsigned pack = hash | (idx<<16) | (mn << 24); in put() 768 unsigned key = hash % COUNTOF(subHash); in put() 776 const unsigned hash = opnds.hash(); in lookup() local 777 unsigned opcodeIndex = opcodesHashMap[mn][hash]; in lookup() 780 opcodeIndex = find(mn, hash); in lookup() 820 put(mn, hash, opcodeIndex); in lookup()
|
D | enc_base.h | 415 unsigned hash(void) const { return m_hash; } in hash() function 553 unsigned hash(void) const { return m_hash; } in hash() function 563 m_hash = (m_hash<<HASH_BITS_PER_OPERAND) | op.hash(); in add()
|
D | enc_tabl.cpp | 278 unsigned short hash = 0; in getHash() local 285 hash = get_kind_hash(kind) | get_size_hash(size); in getHash() 293 hash = (hash<<HASH_BITS_PER_OPERAND) | in getHash() 302 hash = (hash<<HASH_BITS_PER_OPERAND) | in getHash() 305 assert(hash <= HASH_MAX); in getHash() 306 return hash; in getHash() 1937 unsigned short hash = getHash(&oinfo); in buildMnemonicDesc() local 1938 opcodesHashMap[minfo->mn][hash] = (unsigned char)oindex; in buildMnemonicDesc() 1944 unsigned short hash; in buildMnemonicDesc() local 1948 hash = getHash(&storeItem); in buildMnemonicDesc() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/type/ |
D | StdTypeList.java | 262 int hash = 0; in hashContents() local 265 hash = (hash * 31) + list.getType(i).hashCode(); in hashContents() 268 return hash; in hashContents()
|
/dalvik/dx/src/com/android/dx/rop/type/ |
D | StdTypeList.java | 262 int hash = 0; in hashContents() local 265 hash = (hash * 31) + list.getType(i).hashCode(); in hashContents() 268 return hash; in hashContents()
|
/dalvik/vm/oo/ |
D | Class.cpp | 1126 u4 hash; in dvmLookupClass() local 1130 hash = dvmComputeUtf8Hash(descriptor); in dvmLookupClass() 1136 found = dvmHashTableLookup(gDvm.loadedClasses, hash, &crit, in dvmLookupClass() 1172 u4 hash; in dvmAddClassToHash() local 1174 hash = dvmComputeUtf8Hash(clazz->descriptor); in dvmAddClassToHash() 1177 found = dvmHashTableLookup(gDvm.loadedClasses, hash, clazz, in dvmAddClassToHash() 1219 u4 hash = dvmComputeUtf8Hash(clazz->descriptor); in removeClassFromHash() local 1222 if (!dvmHashTableRemove(gDvm.loadedClasses, hash, clazz)) in removeClassFromHash()
|