/libcore/luni/src/main/java/libcore/internal/ |
D | StringPool.java | 45 int hashCode = 0; in get() local 47 hashCode = (hashCode * 31) + array[i]; in get() 51 hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12); in get() 52 hashCode ^= (hashCode >>> 7) ^ (hashCode >>> 4); in get() 53 int index = hashCode & (pool.length - 1); in get()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | ECPointTest.java | 201 int hc = f.hashCode(); in testHashCode01() 202 assertTrue(hc == f.hashCode() && in testHashCode01() 203 hc == f.hashCode() && in testHashCode01() 204 hc == f.hashCode() && in testHashCode01() 205 hc == f.hashCode() && in testHashCode01() 206 hc == f.hashCode() && in testHashCode01() 207 hc == f.hashCode() && in testHashCode01() 208 hc == f.hashCode() && in testHashCode01() 209 hc == f.hashCode()); in testHashCode01() 213 hc = ECPoint.POINT_INFINITY.hashCode(); in testHashCode01() [all …]
|
D | ECFieldFpTest.java | 110 int hc = f.hashCode(); in testHashCode01() 111 assertTrue(hc == f.hashCode() && in testHashCode01() 112 hc == f.hashCode() && in testHashCode01() 113 hc == f.hashCode() && in testHashCode01() 114 hc == f.hashCode() && in testHashCode01() 115 hc == f.hashCode() && in testHashCode01() 116 hc == f.hashCode() && in testHashCode01() 117 hc == f.hashCode() && in testHashCode01() 118 hc == f.hashCode()); in testHashCode01() 128 assertTrue(new ECFieldFp(BigInteger.valueOf(23L)).hashCode() == in testHashCode02() [all …]
|
D | ECFieldF2mTest.java | 325 int hc = f.hashCode(); in testHashCode01() 326 assertTrue(hc == f.hashCode() && in testHashCode01() 327 hc == f.hashCode() && in testHashCode01() 328 hc == f.hashCode() && in testHashCode01() 329 hc == f.hashCode() && in testHashCode01() 330 hc == f.hashCode() && in testHashCode01() 331 hc == f.hashCode() && in testHashCode01() 332 hc == f.hashCode() && in testHashCode01() 333 hc == f.hashCode()); in testHashCode01() 344 int hc = f.hashCode(); in testHashCode02() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | CollationKeyICU.java | 27 private int hashCode; field in CollationKeyICU 94 @Override public int hashCode() { in hashCode() method in CollationKeyICU 95 if (hashCode == 0) { in hashCode() 100 hashCode = (hashCode * 37) + bytes[i]; in hashCode() 104 if (hashCode == 0) { in hashCode() 105 hashCode = 1; in hashCode() 108 return hashCode; in hashCode()
|
/libcore/luni/src/main/java/java/net/ |
D | InterfaceAddress.java | 91 public int hashCode() { in hashCode() method in InterfaceAddress 92 int hashCode = address == null ? 0 : -address.hashCode(); in hashCode() local 93 hashCode += broadcastAddress == null ? 0 : broadcastAddress.hashCode(); in hashCode() 94 hashCode += prefixLength; in hashCode() 95 return hashCode; in hashCode()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldProxyTest.java | 44 assertTrue(proxy1.hashCode() == proxy2.hashCode()); in test_hashCode() 48 assertTrue(proxy1.hashCode() == proxy2.hashCode()); in test_hashCode() 50 assertTrue(proxy1.hashCode() != proxy4.hashCode()); in test_hashCode() 56 assertTrue(proxy5.hashCode() != proxy6.hashCode()); in test_hashCode()
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 353 public int hashCode() { in hashCode() method in DateFormatSymbols 355 int hashCode; in hashCode() local 356 hashCode = localPatternChars.hashCode(); in hashCode() 358 hashCode += element.hashCode(); in hashCode() 361 hashCode += element.hashCode(); in hashCode() 364 hashCode += element.hashCode(); in hashCode() 367 hashCode += element.hashCode(); in hashCode() 370 hashCode += element.hashCode(); in hashCode() 373 hashCode += element.hashCode(); in hashCode() 378 hashCode += element[j].hashCode(); in hashCode() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | MathContextTest.java | 66 mcIntRm6hd.hashCode(), mcStr6hd.hashCode() ); in test_MathContextConstruction() 68 mcInt6.hashCode() == mcStr6hd.hashCode() ); in test_MathContextConstruction() 70 mcInt6.hashCode() == mcInt134.hashCode() ); in test_MathContextConstruction()
|
D | BigIntegerHashCodeTest.java | 40 int code1 = aNumber1.hashCode(); in testSameObject() 46 int code2 = aNumber1.hashCode(); in testSameObject() 58 int code1 = aNumber1.hashCode(); in testEqualObjects() 59 int code2 = aNumber2.hashCode(); in testEqualObjects() 74 int code1 = aNumber1.hashCode(); in testUnequalObjectsUnequal() 75 int code2 = aNumber2.hashCode(); in testUnequalObjectsUnequal()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | FieldTest.java | 35 assertEquals(f1.hashCode(), f2.hashCode()); in testEqualConstructorEqualsAndHashCode() 40 assertEquals(FieldTestHelper.class.getName().hashCode() ^ "a".hashCode(), f1.hashCode()); in testHashCodeSpec()
|
D | MethodTest.java | 168 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualMethodEqualsAndHashCode() 169 assertEquals(MethodTestHelper.class.getName().hashCode() ^ "m1".hashCode(), m1.hashCode()); in testEqualMethodEqualsAndHashCode() 174 assertEquals(MethodTestHelper.class.getName().hashCode() ^ "m1".hashCode(), m1.hashCode()); in testHashCodeSpec() 181 assertFalse(m1.hashCode() == m2.hashCode()); in testDifferentMethodEqualsAndHashCode()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | TimestampTest.java | 113 assertTrue(one.hashCode() == two.hashCode()); in testHashCode() 114 assertTrue(one.hashCode() != three.hashCode()); in testHashCode() 115 assertTrue(two.hashCode() != three.hashCode()); in testHashCode() 118 four.hashCode(); in testHashCode()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldCharacterSubsetTest.java | 36 assertFalse(subset1.hashCode() == subset2.hashCode()); in test_hashCode() 37 assertFalse(subset1.hashCode() == subset3.hashCode()); in test_hashCode()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldParsePositionTest.java | 30 pp1.hashCode() == pp2.hashCode()); in test_hashCode() 33 pp1.hashCode() != pp2.hashCode()); in test_hashCode()
|
D | OldAttributedCharacterIteratorAttributeTest.java | 125 .hashCode() != mac2.hashCode()); in test_hashCode() 131 .hashCode() != mac3.hashCode()); in test_hashCode() 136 mac1.hashCode() == mac4.hashCode()); in test_hashCode()
|
/libcore/luni/src/main/java/java/util/ |
D | Arrays.java | 1010 public static int hashCode(boolean[] array) { in hashCode() method in Arrays 1014 int hashCode = 1; in hashCode() local 1017 hashCode = 31 * hashCode + (element ? 1231 : 1237); in hashCode() 1019 return hashCode; in hashCode() 1038 public static int hashCode(int[] array) { in hashCode() method in Arrays 1042 int hashCode = 1; in hashCode() local 1045 hashCode = 31 * hashCode + element; in hashCode() 1047 return hashCode; in hashCode() 1066 public static int hashCode(short[] array) { in hashCode() method in Arrays 1070 int hashCode = 1; in hashCode() local [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationMember.java | 259 public int hashCode() { in hashCode() method in AnnotationMember 260 int hash = name.hashCode() * 127; in hashCode() 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() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | EntryTest.java | 67 assertEquals(e2.hashCode(), e.hashCode()); in testEquals() 69 assertEquals(s2.hashCode(), s.hashCode()); in testEquals() 71 assertEquals(e2.hashCode(), s2.hashCode()); in testEquals() 73 assertEquals(e.hashCode(), s.hashCode()); in testEquals()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 78 assertEquals("same hashcode", a1.hashCode(), a2.hashCode()); in test_equals() 93 if (a1.hashCode() != a2.hashCode()) { in test_equals() 104 assertEquals(a1.hashCode(), (127 * "value".hashCode() ^ "foobar".hashCode())); in test_hashCode() 108 int arrHc = Arrays.hashCode(new Object[]{}); in test_hashCode() 116 (127 * "arrAnno".hashCode() ^ arrHc) + in test_hashCode() 117 (127 * "arrString".hashCode() ^ arrHc)+ in test_hashCode() 118 (127 * "arrClass".hashCode() ^ arrHc) + in test_hashCode() 119 (127 * "arrEnum".hashCode() ^ arrHc) in test_hashCode() 121 m1.getDeclaredAnnotations()[0].hashCode()); in test_hashCode() 125 (127 * "i".hashCode() ^ 12345), in test_hashCode() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | FieldPositionTest.java | 165 fpos1.hashCode() == fpos2.hashCode()); in test_hashCode() 169 fpos1.hashCode() != fpos2.hashCode()); in test_hashCode() 173 fpos1.hashCode() == fpos2.hashCode()); in test_hashCode() 179 fpos2.hashCode() != fpos3.hashCode()); in test_hashCode()
|
D | StringCharacterIteratorTest.java | 463 assertTrue("Hash is equal", it1.hashCode() != it2.hashCode()); in test_hashCode() 466 assertTrue("Hash equal1", it1.hashCode() != it3.hashCode()); in test_hashCode() 468 assertTrue("Hash equal2", it1.hashCode() != it3.hashCode()); in test_hashCode() 470 assertTrue("Hash equal3", it1.hashCode() != it3.hashCode()); in test_hashCode() 472 assertTrue("Hash equal4", it1.hashCode() != it3.hashCode()); in test_hashCode() 475 assertEquals(sci0.hashCode(), sci0.hashCode()); in test_hashCode() 478 assertEquals(sci0.hashCode(), sci1.hashCode()); in test_hashCode() 482 assertEquals(sci0.hashCode(), sci1.hashCode()); in test_hashCode()
|
/libcore/luni/src/main/java/java/security/spec/ |
D | ECPoint.java | 110 public int hashCode() { in hashCode() method in ECPoint 112 return affineX.hashCode() * 31 + affineY.hashCode(); in hashCode()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldAttributesTest.java | 71 assertNotSame(a.hashCode(), b.hashCode()); in test_hashCode() 74 assertNotSame(a.hashCode(), b.hashCode()); in test_hashCode()
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | HprofData.java | 91 @Override public int hashCode() { in hashCode() method in HprofData.ThreadEvent 95 result = 31 * result + hashCode(threadName); in hashCode() 96 result = 31 * result + hashCode(groupName); in hashCode() 97 result = 31 * result + hashCode(parentGroupName); in hashCode() 101 private static int hashCode(Object o) { in hashCode() method in HprofData.ThreadEvent 102 return (o == null) ? 0 : o.hashCode(); in hashCode() 165 @Override public int hashCode() { in hashCode() method in HprofData.StackTrace 168 result = 31 * result + Arrays.hashCode(stackFrames); in hashCode() 218 @Override public int hashCode() { in hashCode() method in HprofData.Sample 220 result = 31 * result + stackTrace.hashCode(); in hashCode()
|