Home
last modified time | relevance | path

Searched refs:hashCode (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DECPointTest.java208 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 …]
DECFieldF2mTest.java292 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 …]
DECFieldFpTest.java117 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/
DPhonenumberTest.java39 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/src/com/google/common/collect/
DHashing.java37 static int smear(int hashCode) { in smear() argument
38 hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12); in smear()
39 return hashCode ^ (hashCode >>> 7) ^ (hashCode >>> 4); in smear()
DRegularImmutableSet.java35 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()
DImmutableSet.java230 && hashCode() != object.hashCode()) { in equals()
236 @Override public int hashCode() { in hashCode() method in ImmutableSet
237 int hashCode = 0; in hashCode() local
239 hashCode += o.hashCode(); in hashCode()
241 return hashCode; in hashCode()
260 int hashCode = 0; in create() local
264 int hash = element.hashCode(); in create()
272 hashCode += hash; in create()
282 return new SingletonImmutableSet<E>(elements.get(0), hashCode); in create()
288 elements.toArray(), hashCode, table, mask); in create()
[all …]
DImmutableEnumSet.java89 private transient int hashCode; field in ImmutableEnumSet
91 @Override public int hashCode() { in hashCode() method in ImmutableEnumSet
92 int result = hashCode; in hashCode()
93 return (result == 0) ? hashCode = delegate.hashCode() : result; in hashCode()
/external/srec/portable/src/
Dphashtable.c44 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/
DLangUtils.java51 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/apache-http/src/org/apache/commons/logging/impl/
DWeakHashtable.java369 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/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerHashCodeTest.java40 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/
DFullFrame.java162 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()
DMoreZeroFrame.java133 public int hashCode() in hashCode() method in MoreZeroFrame
135 int hashCode = super.hashCode(); in hashCode() local
139 hashCode ^= additionalVariables[index].hashCode(); in hashCode()
142 return hashCode; in hashCode()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DCodeSigner_ImplTest.java47 assertTrue(new CodeSigner(cpath, ts).hashCode() == (cpath.hashCode() ^ ts in testHashCode()
48 .hashCode())); in testHashCode()
49 assertTrue(new CodeSigner(cpath, null).hashCode() == cpath.hashCode()); in testHashCode()
/external/guava/src/com/google/common/base/
DPredicates.java259 @Override public int hashCode() { in hashCode() method in Predicates.NotPredicate
260 return ~predicate.hashCode(); /* Invert all bits. */ in hashCode()
293 @Override public int hashCode() { in hashCode() method in Predicates.AndPredicate
296 result &= predicate.hashCode(); in hashCode()
329 @Override public int hashCode() { in hashCode() method in Predicates.OrPredicate
332 result |= predicate.hashCode(); in hashCode()
360 @Override public int hashCode() { in hashCode() method in Predicates.IsEqualToPredicate
361 return target.hashCode(); in hashCode()
387 @Override public int hashCode() { in hashCode() method in Predicates.InstanceOfPredicate
388 return clazz.hashCode(); in hashCode()
[all …]
DFunctions.java115 @Override public int hashCode() { in hashCode() method in Functions.FunctionForMapNoDefault
116 return map.hashCode(); in hashCode()
159 @Override public int hashCode() { in hashCode() method in Functions.ForMapWithDefault
160 return Objects.hashCode(map, defaultValue); in hashCode()
206 @Override public int hashCode() { in hashCode() method in Functions.FunctionComposition
207 return f.hashCode() ^ g.hashCode(); in hashCode()
242 @Override public int hashCode() { in hashCode() method in Functions.PredicateFunction
243 return predicate.hashCode(); in hashCode()
278 @Override public int hashCode() { in hashCode() method in Functions.ConstantFunction
279 return (value == null) ? 0 : value.hashCode(); in hashCode()
/external/proguard/src/proguard/
DClassSpecification.java234 public int hashCode() in hashCode() method in ClassSpecification
240 (annotationType == null ? 0 : annotationType.hashCode() ) ^ in hashCode()
241 (className == null ? 0 : className.hashCode() ) ^ in hashCode()
242 (extendsAnnotationType == null ? 0 : extendsAnnotationType.hashCode()) ^ in hashCode()
243 (extendsClassName == null ? 0 : extendsClassName.hashCode() ) ^ in hashCode()
244 (fieldSpecifications == null ? 0 : fieldSpecifications.hashCode() ) ^ in hashCode()
245 (methodSpecifications == null ? 0 : methodSpecifications.hashCode() ); in hashCode()
/external/emma/core/java12/com/vladium/util/
DObjectIntMap.java92 final int keyHash = key.hashCode (); in contains()
98 if ((keyHash == entry.m_key.hashCode ()) || entry.m_key.equals (key)) in contains()
120 final int keyHash = key.hashCode (); in get()
126 if ((keyHash == entry.m_key.hashCode ()) || entry.m_key.equals (key)) in get()
167 final int keyHash = key.hashCode (); in put()
174 if ((keyHash == entry.m_key.hashCode ()) || entry.m_key.equals (key)) in put()
213 final int keyHash = key.hashCode (); in remove()
222 if ((keyHash == entry.m_key.hashCode ()) || entry.m_key.equals (key)) in remove()
297 final int entryKeyHash = entry.m_key.hashCode () & 0x7FFFFFFF; in rehash()
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DStringCharacterIteratorTest.java463 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()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DExtendedType.java47 this.hash = nodetype + namespace.hashCode() + localName.hashCode(); in ExtendedType()
77 this.hash = nodetype + namespace.hashCode() + localName.hashCode(); in redefine()
96 public int hashCode() in hashCode() method in ExtendedType
/external/proguard/src/proguard/evaluation/value/
DComparisonValue.java57 public int hashCode() in hashCode() method in ComparisonValue
59 return super.hashCode() ^ in hashCode()
60 value1.hashCode() ^ in hashCode()
61 value2.hashCode(); in hashCode()
DCompositeDoubleValue.java69 public int hashCode() in hashCode() method in CompositeDoubleValue
71 return super.hashCode() ^ in hashCode()
72 doubleValue1.hashCode() ^ in hashCode()
73 doubleValue2.hashCode(); in hashCode()
DCompositeFloatValue.java69 public int hashCode() in hashCode() method in CompositeFloatValue
71 return super.hashCode() ^ in hashCode()
72 floatValue1.hashCode() ^ in hashCode()
73 floatValue2.hashCode(); in hashCode()
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/
DASN1Sequence.java168 public int hashCode() in hashCode() method
171 int hashCode = size(); in hashCode() local
176 hashCode *= 17; in hashCode()
178 hashCode ^= o.hashCode(); in hashCode()
181 return hashCode; in hashCode()

12345678910>>...17