/libcore/luni/src/main/java/libcore/internal/ |
D | StringPool.java | 50 int hashCode = 0; in get() local 52 hashCode = (hashCode * 31) + array[i]; in get() 56 hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12); in get() 57 hashCode ^= (hashCode >>> 7) ^ (hashCode >>> 4); in get() 58 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 | 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 …]
|
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 …]
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | Lines.java | 34 private volatile int hashCode = 0; field in Lines 41 public int hashCode() { in hashCode() method in Lines 42 if (hashCode == 0) { in hashCode() 43 hashCode = super.hashCode(); in hashCode() 45 return hashCode; in hashCode() 50 if (o.hashCode() != this.hashCode()) { in equals()
|
/libcore/ojluni/src/test/java/util/Properties/ |
D | PropertiesEntrySetTest.java | 55 assertTrue(bEntrySet.hashCode() == aEntrySet.hashCode()); in testEquals() 59 assertFalse(bEntrySet.hashCode() == aEntrySet.hashCode()); in testEquals() 63 assertTrue(bEntrySet.hashCode() == aEntrySet.hashCode()); in testEquals() 69 assertFalse(bEntrySet.hashCode() == cEntrySet.hashCode()); in testEquals() 71 assertFalse(aEntrySet.hashCode() == cEntrySet.hashCode()); in testEquals() 79 assertTrue(aEntrySet.hashCode() == dEntrySet.hashCode()); in testEquals() 83 assertFalse(aEntrySet.hashCode() == dEntrySet.hashCode()); in testEquals() 87 assertTrue(aEntrySet.hashCode() == dEntrySet.hashCode()); in testEquals() 91 assertFalse(aEntrySet.hashCode() == dEntrySet.hashCode()); in testEquals() 96 assertTrue(aEntrySet.hashCode() == dEntrySet.hashCode()); in testEquals()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestPeriod.java | 101 assertEquals(test5.hashCode() == test5.hashCode(), true); in test_hashCode() 102 assertEquals(test5.hashCode() == test6.hashCode(), false); in test_hashCode() 103 assertEquals(test5.hashCode() == test5M.hashCode(), false); in test_hashCode() 104 assertEquals(test5.hashCode() == test5Y.hashCode(), false); in test_hashCode()
|
D | TestInstantSource.java | 58 assertEquals(test.hashCode(), InstantSource.system().hashCode()); in test_system() 72 …assertEquals(test.hashCode(), InstantSource.tick(InstantSource.fixed(instant), duration).hashCode(… 84 assertEquals(test.hashCode(), InstantSource.fixed(instant).hashCode()); 97 …assertEquals(test.hashCode(), InstantSource.offset(InstantSource.fixed(instant), duration).hashCod… 117 … assertEquals(test.withZone(ZoneOffset.UTC).hashCode(), test.withZone(ZoneOffset.UTC).hashCode());
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 769 public int hashCode() { in hashCode() method in DateFormatSymbols 770 int hashCode = cachedHashCode; in hashCode() local 771 if (hashCode == 0) { in hashCode() 772 hashCode = 5; in hashCode() 773 hashCode = 11 * hashCode + Arrays.hashCode(eras); in hashCode() 774 hashCode = 11 * hashCode + Arrays.hashCode(months); in hashCode() 775 hashCode = 11 * hashCode + Arrays.hashCode(shortMonths); in hashCode() 776 hashCode = 11 * hashCode + Arrays.hashCode(weekdays); in hashCode() 777 hashCode = 11 * hashCode + Arrays.hashCode(shortWeekdays); in hashCode() 778 hashCode = 11 * hashCode + Arrays.hashCode(ampms); in hashCode() [all …]
|
/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/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/ojluni/src/main/java/java/time/ |
D | Clock.java | 474 public int hashCode() { in hashCode() method in Clock 475 return super.hashCode(); in hashCode() 565 public int hashCode() { in hashCode() method in Clock.SystemInstantSource 566 return SystemInstantSource.class.hashCode(); in hashCode() 622 public int hashCode() { in hashCode() method in Clock.SystemClock 623 return zone.hashCode() + 1; in hashCode() 672 public int hashCode() { in hashCode() method in Clock.FixedClock 673 return instant.hashCode() ^ zone.hashCode(); in hashCode() 722 public int hashCode() { in hashCode() method in Clock.OffsetClock 723 return baseClock.hashCode() ^ offset.hashCode(); in hashCode() [all …]
|
/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/ojluni/src/main/java/java/security/cert/ |
D | CertPath.java | 209 public int hashCode() { in hashCode() method in CertPath 210 int hashCode = type.hashCode(); in hashCode() local 211 hashCode = 31*hashCode + getCertificates().hashCode(); in hashCode() 212 return hashCode; in hashCode()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_Fixed.java | 143 assertEquals(a.hashCode(), a.hashCode()); in test_hashCode() 144 assertEquals(a.hashCode(), b.hashCode()); in test_hashCode() 147 assertEquals(a.hashCode() == c.hashCode(), false); in test_hashCode() 150 assertEquals(a.hashCode() == d.hashCode(), false); in test_hashCode()
|
/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/ojluni/src/test/java/util/Collections/ |
D | CheckedIdentityMap.java | 60 assertEquals(e1.hashCode(), hashCode(e1)); in testHashCode() 61 assertEquals(e2.hashCode(), hashCode(e2)); in testHashCode() 64 static int hashCode(Map.Entry<?,?> e) { in hashCode() method in CheckedIdentityMap
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | StructTimespecTest.java | 139 assertEquals(allZero1.hashCode(), allZero2.hashCode()); in testHashcode() 140 assertEquals(val1.hashCode(), val2.hashCode()); in testHashcode() 141 assertEquals(secZero1.hashCode(), secZero2.hashCode()); in testHashcode() 142 assertEquals(nsecZero1.hashCode(), nsecZero2.hashCode()); in testHashcode()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | DistributionPointName.java | 93 private volatile int hashCode; field in DistributionPointName 213 public int hashCode() { in hashCode() method in DistributionPointName 214 int hash = hashCode; in hashCode() 218 hash += fullName.hashCode(); in hashCode() 221 hash += relativeName.hashCode(); in hashCode() 223 hashCode = hash; in 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()
|
/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/java17language/java/libcore/libcore/internal/ |
D | Java17LanguageFeaturesTest.java | 69 assertEquals(p1.hashCode(), p2.hashCode()); in testRecord() 72 assertNotEquals(p1.hashCode(), p3.hashCode()); in testRecord() 75 assertNotEquals(p2.hashCode(), p3.hashCode()); in testRecord()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | ArrayObjectMethods.java | 62 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 67 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 72 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 77 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 82 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 87 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 92 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 97 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 103 equal(Arrays.hashCode(a), Arrays.asList(a).hashCode()); in test() 111 equal(Arrays.deepHashCode(a), aList.hashCode()); in test() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | EntryTest.java | 79 assertEquals(e2.hashCode(), e.hashCode()); in testEquals() 81 assertEquals(s2.hashCode(), s.hashCode()); in testEquals() 83 assertEquals(e2.hashCode(), s2.hashCode()); in testEquals() 85 assertEquals(e.hashCode(), s.hashCode()); in testEquals()
|