/libcore/luni/src/main/java/java/util/ |
D | HashMap.java | 300 int hash = Collections.secondaryHash(key); in get() local 302 for (HashMapEntry<K, V> e = tab[hash & (tab.length - 1)]; in get() 305 if (eKey == key || (e.hash == hash && key.equals(eKey))) { in get() 325 int hash = Collections.secondaryHash(key); in containsKey() local 327 for (HashMapEntry<K, V> e = tab[hash & (tab.length - 1)]; in containsKey() 330 if (eKey == key || (e.hash == hash && key.equals(eKey))) { in containsKey() 385 int hash = Collections.secondaryHash(key); in put() local 387 int index = hash & (tab.length - 1); in put() 389 if (e.hash == hash && key.equals(e.key)) { in put() 401 index = hash & (tab.length - 1); in put() [all …]
|
D | Hashtable.java | 265 int hash = Collections.secondaryHash(key); in get() local 267 for (HashtableEntry<K, V> e = tab[hash & (tab.length - 1)]; in get() 270 if (eKey == key || (e.hash == hash && key.equals(eKey))) { in get() 289 int hash = Collections.secondaryHash(key); in containsKey() local 291 for (HashtableEntry<K, V> e = tab[hash & (tab.length - 1)]; in containsKey() 294 if (eKey == key || (e.hash == hash && key.equals(eKey))) { in containsKey() 364 int hash = Collections.secondaryHash(key); in put() local 366 int index = hash & (tab.length - 1); in put() 369 if (e.hash == hash && key.equals(e.key)) { in put() 381 index = hash & (tab.length - 1); in put() [all …]
|
D | UUID.java | 55 private transient int hash; field in UUID 81 hash = msbHash ^ lsbHash; in init() 155 private static UUID makeUuid(byte[] hash, int version) { in makeUuid() argument 156 long msb = Memory.peekLong(hash, 0, ByteOrder.BIG_ENDIAN); in makeUuid() 157 long lsb = Memory.peekLong(hash, 8, ByteOrder.BIG_ENDIAN); in makeUuid() 378 return hash; in hashCode()
|
D | LinkedHashMap.java | 154 LinkedEntry(K key, V value, int hash, HashMapEntry<K, V> next, in LinkedEntry() argument 156 super(key, value, hash, next); in LinkedEntry() 184 @Override void addNewEntry(K key, V value, int hash, int index) { in addNewEntry() argument 196 key, value, hash, table[index], header, oldTail); in addNewEntry() 220 K key, V value, int hash, HashMapEntry<K, V> next) { in constructorNewEntry() argument 224 = new LinkedEntry<K,V>(key, value, hash, next, header, oldTail); in constructorNewEntry() 250 int hash = Collections.secondaryHash(key); in get() local 252 for (HashMapEntry<K, V> e = tab[hash & (tab.length - 1)]; in get() 255 if (eKey == key || (e.hash == hash && key.equals(eKey))) { in get()
|
/libcore/luni/src/main/java/java/security/ |
D | Timestamp.java | 37 private transient int hash; field in Timestamp 119 if (hash == 0) { in hashCode() 120 hash = timestamp.hashCode() ^ signerCertPath.hashCode(); in hashCode() 122 return hash; in hashCode()
|
D | CodeSigner.java | 35 private transient int hash; field in CodeSigner 114 if (hash == 0) { in hashCode() 115 hash = signerCertPath.hashCode() in hashCode() 118 return hash; in hashCode()
|
D | Identity.java | 329 int hash = 0; in hashCode() local 331 hash += name.hashCode(); in hashCode() 334 hash += scope.hashCode(); in hashCode() 336 return hash; in hashCode()
|
/libcore/luni/src/main/files/ |
D | README.cacerts | 1 The filenames in the cacerts directory are in the format of <hash>.<n> 2 where "hash" is the subject hash produced by:
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationMember.java | 260 int hash = name.hashCode() * 127; in hashCode() local 264 return hash ^ Arrays.hashCode((int[])value); in hashCode() 266 return hash ^ Arrays.hashCode((byte[])value); in hashCode() 268 return hash ^ Arrays.hashCode((short[])value); in hashCode() 270 return hash ^ Arrays.hashCode((long[])value); in hashCode() 272 return hash ^ Arrays.hashCode((char[])value); in hashCode() 274 return hash ^ Arrays.hashCode((boolean[])value); in hashCode() 276 return hash ^ Arrays.hashCode((float[])value); in hashCode() 278 return hash ^ Arrays.hashCode((double[])value); in hashCode() 280 return hash ^ Arrays.hashCode((Object[])value); in hashCode() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
D | ObjectIdentifier.java | 46 private int hash = -1; field in ObjectIdentifier 175 if (hash == -1) { in hashCode() 176 hash = hashIntArray(oid); in hashCode() 178 return hash; in hashCode()
|
/libcore/luni/src/main/java/java/util/jar/ |
D | JarVerifier.java | 87 private final byte[] hash; field in JarVerifier.VerifierEntry 93 VerifierEntry(String name, MessageDigest digest, byte[] hash, in VerifierEntry() argument 97 this.hash = hash; in VerifierEntry() 131 if (!MessageDigest.isEqual(d, Base64.decode(hash))) { in verify() 210 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry() local 211 if (hash == null) { in initEntry() 214 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1); in initEntry() 373 String hash = attributes.getValue(algorithm + entry); in verify() local 374 if (hash == null) { in verify() 390 byte[] hashBytes = hash.getBytes(StandardCharsets.ISO_8859_1); in verify()
|
/libcore/luni/src/main/java/java/io/ |
D | SerializationHandleMap.java | 126 int index, next, hash; in remove() local 148 hash = getModuloHash(object, length); in remove() 149 hashedOk = hash > index; in remove() 151 hashedOk = hashedOk || (hash <= next); in remove() 153 hashedOk = hashedOk && (hash <= next); in remove()
|
/libcore/luni/src/main/java/java/security/cert/ |
D | CertPath.java | 101 int hash = getType().hashCode(); in hashCode() local 102 hash = hash*31 + getCertificates().hashCode(); in hashCode() 103 return hash; in hashCode()
|
D | Certificate.java | 103 int hash = 0; in hashCode() local 105 hash += i*encoded[i]; in hashCode() 107 return hash; in hashCode()
|
/libcore/luni/src/main/java/java/security/spec/ |
D | EllipticCurve.java | 42 private volatile int hash; field in EllipticCurve 190 if (hash == 0) { in hashCode() 202 hash = hash0; in hashCode() 204 return hash; in hashCode()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ObjectsTest.java | 65 assertEquals(Arrays.hashCode(new Object[0]), Objects.hash()); in test_hash() 66 assertEquals(31, Objects.hash((Object) null)); in test_hash() 67 assertEquals(0, Objects.hash((Object[]) null)); in test_hash() 68 assertEquals(-1107615551, Objects.hash("hello", "world")); in test_hash() 69 assertEquals(23656287, Objects.hash("hello", "world", null)); in test_hash()
|
/libcore/luni/src/main/java/java/nio/ |
D | LongBuffer.java | 291 int hash = 0; in hashCode() local 295 hash = hash + ((int) l) ^ ((int) (l >> 32)); in hashCode() 297 return hash; in hashCode()
|
D | ShortBuffer.java | 292 int hash = 0; in hashCode() local 294 hash = hash + get(myPosition++); in hashCode() 296 return hash; in hashCode()
|
D | IntBuffer.java | 289 int hash = 0; in hashCode() local 291 hash = hash + get(myPosition++); in hashCode() 293 return hash; in hashCode()
|
D | DoubleBuffer.java | 302 int hash = 0; in hashCode() local 306 hash = hash + ((int) l) ^ ((int) (l >> 32)); in hashCode() 308 return hash; in hashCode()
|
D | FloatBuffer.java | 303 int hash = 0; in hashCode() local 305 hash = hash + Float.floatToIntBits(get(myPosition++)); in hashCode() 307 return hash; in hashCode()
|
D | CharBuffer.java | 348 int hash = 0; in hashCode() local 350 hash = hash + get(myPosition++); in hashCode() 352 return hash; in hashCode()
|
/libcore/luni/src/main/java/java/lang/ |
D | ThreadLocal.java | 57 int index = hash & values.mask; in get() 139 private final int hash = hashCounter.getAndAdd(0x61c88647 * 2); field in ThreadLocal 366 for (int index = key.hash & mask;; index = next(index)) { in add() 387 for (int index = key.hash & mask;; index = next(index)) { in put() 426 int index = key.hash & mask; in getAfterMiss() 507 for (int index = key.hash & mask;; index = next(index)) { in remove()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 425 final int hash; field in ConcurrentHashMap.Node 430 Node(int hash, K key, V val, Node<K,V> next) { in Node() argument 431 this.hash = hash; in Node() 462 if (e.hash == h && in find() 749 if ((eh = e.hash) == h) { in get() 756 if (e.hash == h && in get() 822 int hash = spread(key.hashCode()); in putVal() local 828 else if ((f = tabAt(tab, i = (n - 1) & hash)) == null) { in putVal() 830 new Node<K,V>(hash, key, value, null))) in putVal() 833 else if ((fh = f.hash) == MOVED) in putVal() [all …]
|
D | Exchanger.java | 286 int hash; // Pseudo-random for spins field in Exchanger.Node 353 for (int h = p.hash, spins = SPINS;;) { in arenaExchange() 358 p.hash = h; in arenaExchange() 386 p.hash = h; in arenaExchange() 459 int h = p.hash; in slotExchange() 489 p.hash = h; in slotExchange()
|