/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
D | ECPointTest.java | 208 int hc = f.hashCode(); in testHashCode01() 209 assertTrue(hc == f.hashCode() && in testHashCode01() 210 hc == f.hashCode() && in testHashCode01() 211 hc == f.hashCode() && in testHashCode01() 212 hc == f.hashCode() && in testHashCode01() 213 hc == f.hashCode() && in testHashCode01() 214 hc == f.hashCode() && in testHashCode01() 215 hc == f.hashCode() && in testHashCode01() 216 hc == f.hashCode()); in testHashCode01() 220 hc = ECPoint.POINT_INFINITY.hashCode(); in testHashCode01() [all …]
|
D | ECFieldF2mTest.java | 292 int hc = f.hashCode(); in testHashCode01() 293 assertTrue(hc == f.hashCode() && in testHashCode01() 294 hc == f.hashCode() && in testHashCode01() 295 hc == f.hashCode() && in testHashCode01() 296 hc == f.hashCode() && in testHashCode01() 297 hc == f.hashCode() && in testHashCode01() 298 hc == f.hashCode() && in testHashCode01() 299 hc == f.hashCode() && in testHashCode01() 300 hc == f.hashCode()); in testHashCode01() 311 int hc = f.hashCode(); in testHashCode02() [all …]
|
D | ECFieldFpTest.java | 117 int hc = f.hashCode(); in testHashCode01() 118 assertTrue(hc == f.hashCode() && in testHashCode01() 119 hc == f.hashCode() && in testHashCode01() 120 hc == f.hashCode() && in testHashCode01() 121 hc == f.hashCode() && in testHashCode01() 122 hc == f.hashCode() && in testHashCode01() 123 hc == f.hashCode() && in testHashCode01() 124 hc == f.hashCode() && in testHashCode01() 125 hc == f.hashCode()); in testHashCode01() 135 assertTrue(new ECFieldFp(BigInteger.valueOf(23L)).hashCode() == in testHashCode02() [all …]
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
D | PhonenumberTest.java | 39 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualSimpleNumber() 51 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualWithItalianLeadingZeroSetToDefault() 62 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualWithCountryCodeSourceSet() 73 assertFalse(numberA.hashCode() == numberB.hashCode()); in testNonEqualWithItalianLeadingZeroSetToTrue() 88 assertFalse(numberA.hashCode() == numberB.hashCode()); in testNonEqualWithDifferingRawInput() 99 assertFalse(numberA.hashCode() == numberB.hashCode()); in testNonEqualWithPreferredDomesticCarrierCodeSetToDefault() 110 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualWithPreferredDomesticCarrierCodeSetToDefault()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | ObjectsTest.java | 48 int h1 = Objects.hashCode(1, "two", 3.0); in testHashCode() 49 int h2 = Objects.hashCode(new Integer(1), new String("two"), in testHashCode() 55 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); in testHashCode() 56 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2)); in testHashCode() 57 assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2)); in testHashCode() 58 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1)); in testHashCode() 59 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1)); in testHashCode()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Hashing.java | 39 static int smear(int hashCode) { in smear() argument 40 hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12); in smear() 41 return hashCode ^ (hashCode >>> 7) ^ (hashCode >>> 4); in smear()
|
D | RegularImmutableSet.java | 35 private final transient int hashCode; field in RegularImmutableSet 38 Object[] elements, int hashCode, Object[] table, int mask) { in RegularImmutableSet() argument 42 this.hashCode = hashCode; in RegularImmutableSet() 49 for (int i = Hashing.smear(target.hashCode()); true; i++) { in contains() 60 @Override public int hashCode() { in hashCode() method in RegularImmutableSet 61 return hashCode; in hashCode()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | AbstractMapEntryTest.java | 82 assertEquals(control("foo", 1).hashCode(), entry("foo", 1).hashCode()); 83 assertEquals(control("bar", 2).hashCode(), entry("bar", 2).hashCode()); 87 assertEquals(control(NK, 1).hashCode(), entry(NK, 1).hashCode()); 88 assertEquals(control("bar", NV).hashCode(), entry("bar", NV).hashCode()); 89 assertEquals(control(NK, NV).hashCode(), entry(NK, NV).hashCode());
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/ |
D | AnnotationEncodedSubValue.java | 43 private int hashCode = 0; field in AnnotationEncodedSubValue 153 hashCode = annotationType.hashCode(); in calcHashCode() 156 hashCode = 31 * hashCode + names[i].hashCode(); in calcHashCode() 157 hashCode = 31 * hashCode + values[i].hashCode(); in calcHashCode() 162 public int hashCode() { in hashCode() method in AnnotationEncodedSubValue 165 if (hashCode == 0) in hashCode() 167 return hashCode; in hashCode()
|
D | ArrayEncodedSubValue.java | 41 private int hashCode = 0; field in ArrayEncodedSubValue 126 hashCode = 0; in calcHashCode() 129 hashCode = 31 * hashCode + encodedValue.hashCode(); in calcHashCode() 134 public int hashCode() { in hashCode() method in ArrayEncodedSubValue 137 if (hashCode == 0) in hashCode() 139 return hashCode; in hashCode()
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/ |
D | FieldIdItem.java | 35 private int hashCode = 0; field in FieldIdItem 196 hashCode = classType.hashCode(); in calcHashCode() 197 hashCode = 31 * hashCode + fieldType.hashCode(); in calcHashCode() 198 hashCode = 31 * hashCode + fieldName.hashCode(); in calcHashCode() 202 public int hashCode() { in hashCode() method in FieldIdItem 205 if (hashCode == 0) in hashCode() 207 return hashCode; in hashCode()
|
D | MethodIdItem.java | 35 private int hashCode = 0; field in MethodIdItem 208 hashCode = classType.hashCode(); in calcHashCode() 209 hashCode = 31 * hashCode + methodPrototype.hashCode(); in calcHashCode() 210 hashCode = 31 * hashCode + methodName.hashCode(); in calcHashCode() 214 public int hashCode() { in hashCode() method in MethodIdItem 217 if (hashCode == 0) in hashCode() 219 return hashCode; in hashCode()
|
D | AnnotationItem.java | 36 private int hashCode = 0; field in AnnotationItem 137 hashCode = visibility.value; in calcHashCode() 138 hashCode = hashCode * 31 + annotationValue.hashCode(); in calcHashCode() 142 public int hashCode() { in hashCode() method in AnnotationItem 145 if (hashCode == 0) in hashCode() 147 return hashCode; in hashCode()
|
D | AnnotationSetRefList.java | 37 private int hashCode = 0; field in AnnotationSetRefList 143 hashCode = 0; in calcHashCode() 145 hashCode = hashCode * 31 + annotationSetItem.hashCode(); in calcHashCode() 150 public int hashCode() { in hashCode() method in AnnotationSetRefList 153 if (hashCode == 0) in hashCode() 155 return hashCode; in hashCode()
|
D | ProtoIdItem.java | 35 private int hashCode = 0; field in ProtoIdItem 201 hashCode = returnType.hashCode(); in calcHashCode() 202 hashCode = 31 * hashCode + (parameters==null?0:parameters.hashCode()); in calcHashCode() 206 public int hashCode() { in hashCode() method in ProtoIdItem 209 if (hashCode == 0) in hashCode() 211 return hashCode; in hashCode()
|
D | TypeListItem.java | 38 private int hashCode = 0; field in TypeListItem 241 int hashCode = 1; in calcHashCode() local 244 hashCode = 31 * hashCode + typeIdItem.hashCode(); in calcHashCode() 246 this.hashCode = hashCode; in calcHashCode() 250 public int hashCode() { in hashCode() method in TypeListItem 253 if (hashCode == 0) in hashCode() 255 return hashCode; in hashCode()
|
D | AnnotationSetItem.java | 39 private int hashCode = 0; field in AnnotationSetItem 163 hashCode = 0; in calcHashCode() 165 hashCode = hashCode * 31 + annotationItem.hashCode(); in calcHashCode() 170 public int hashCode() { in hashCode() method in AnnotationSetItem 173 if (hashCode == 0) in hashCode() 175 return hashCode; in hashCode()
|
D | EncodedArrayItem.java | 36 private int hashCode = 0; field in EncodedArrayItem 111 hashCode = encodedArray.hashCode(); in calcHashCode() 115 public int hashCode() { in hashCode() method in EncodedArrayItem 118 if (hashCode == 0) in hashCode() 120 return hashCode; in hashCode()
|
/external/srec/portable/src/ |
D | phashtable.c | 44 unsigned int hashCode; member 161 unsigned int hashCode, in getEntry() argument 180 if (entry->hashCode == hashCode && table->args.compFunction(key, entry->key) == 0) in getEntry() 211 unsigned int hashCode; in PHashTableGetValue() local 217 hashCode = table->args.hashFunction(key); in PHashTableGetValue() 218 idx = hashCode % table->args.capacity; in PHashTableGetValue() 219 if ((entry = getEntry(table, key, hashCode, idx)) != NULL) in PHashTableGetValue() 257 unsigned int hashCode; in PHashTableGetEntry() local 264 hashCode = table->args.hashFunction(key); in PHashTableGetEntry() 265 idx = hashCode % table->args.capacity; in PHashTableGetEntry() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | LangUtils.java | 51 public static int hashCode(final int seed, final int hashcode) { in hashCode() method in LangUtils 55 public static int hashCode(final int seed, final boolean b) { in hashCode() method in LangUtils 56 return hashCode(seed, b ? 1 : 0); in hashCode() 59 public static int hashCode(final int seed, final Object obj) { in hashCode() method in LangUtils 60 return hashCode(seed, obj != null ? obj.hashCode() : 0); in hashCode()
|
/external/guava/guava/src/com/google/common/hash/ |
D | Hashing.java | 154 public static long padToLong(HashCode hashCode) { in padToLong() argument 155 return (hashCode.bits() < 64) ? UnsignedInts.toLong(hashCode.asInt()) : hashCode.asLong(); in padToLong() 171 public static int consistentHash(HashCode hashCode, int buckets) { in consistentHash() argument 172 return consistentHash(padToLong(hashCode), buckets); in consistentHash() 225 for (HashCode hashCode : hashCodes) { in combineOrdered() 226 byte[] nextBytes = hashCode.asBytes(); in combineOrdered() 250 for (HashCode hashCode : hashCodes) { in combineUnordered() 251 byte[] nextBytes = hashCode.asBytes(); in combineUnordered()
|
/external/apache-http/src/org/apache/commons/logging/impl/ |
D | WeakHashtable.java | 369 public int hashCode() { 371 return (getKey()==null ? 0 : getKey().hashCode()) ^ 372 (getValue()==null ? 0 : getValue().hashCode()); 393 private final int hashCode; 403 hashCode = referant.hashCode(); 414 hashCode = key.hashCode(); 418 public int hashCode() { 419 return hashCode; 442 result = (this.hashCode() == otherKey.hashCode());
|
/external/guava/guava/src/com/google/common/base/ |
D | Predicates.java | 310 @Override public int hashCode() { in hashCode() method in Predicates.NotPredicate 311 return ~predicate.hashCode(); in hashCode() 344 @Override public int hashCode() { in hashCode() method in Predicates.AndPredicate 346 return components.hashCode() + 0x12472c2c; in hashCode() 377 @Override public int hashCode() { in hashCode() method in Predicates.OrPredicate 379 return components.hashCode() + 0x053c91cf; in hashCode() 406 @Override public int hashCode() { in hashCode() method in Predicates.IsEqualToPredicate 407 return target.hashCode(); in hashCode() 435 @Override public int hashCode() { in hashCode() method in Predicates.InstanceOfPredicate 436 return clazz.hashCode(); in hashCode() [all …]
|
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
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()
|
/external/proguard/src/proguard/classfile/attribute/preverification/ |
D | FullFrame.java | 162 public int hashCode() in hashCode() method in FullFrame 164 int hashCode = super.hashCode(); in hashCode() local 168 hashCode ^= variables[index].hashCode(); in hashCode() 173 hashCode ^= stack[index].hashCode(); in hashCode() 176 return hashCode; in hashCode()
|