Home
last modified time | relevance | path

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

12345678910>>...52

/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngineKey.java27 private int hashCode; field in EngineKey
100 public int hashCode() { in hashCode() method in EngineKey
101 if (hashCode == 0) { in hashCode()
102 hashCode = id.hashCode(); in hashCode()
103 hashCode = 31 * hashCode + signature.hashCode(); in hashCode()
104 hashCode = 31 * hashCode + width; in hashCode()
105 hashCode = 31 * hashCode + height; in hashCode()
106hashCode = 31 * hashCode + (cacheDecoder != null ? cacheDecoder .getId().hashCode() : 0); in hashCode()
107hashCode = 31 * hashCode + (decoder != null ? decoder .getId().hashCode() : 0); in hashCode()
108hashCode = 31 * hashCode + (transformation != null ? transformation.getId().hashCode() : 0); in hashCode()
[all …]
/external/mockito/cglib-and-asm/src/org/mockito/asm/
DItem.java95 int hashCode; field in Item
133 hashCode = i.hashCode; in Item()
144 this.hashCode = 0x7FFFFFFF & (type + intVal); in set()
155 this.hashCode = 0x7FFFFFFF & (type + (int) longVal); in set()
166 this.hashCode = 0x7FFFFFFF & (type + (int) floatVal); in set()
177 this.hashCode = 0x7FFFFFFF & (type + (int) doubleVal); in set()
203 hashCode = 0x7FFFFFFF & (type + strVal1.hashCode()); in set()
206 hashCode = 0x7FFFFFFF & (type + strVal1.hashCode() in set()
207 * strVal2.hashCode()); in set()
213 hashCode = 0x7FFFFFFF & (type + strVal1.hashCode() in set()
[all …]
/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.java291 int hc = f.hashCode(); in testHashCode01()
292 assertTrue(hc == f.hashCode() && in testHashCode01()
293 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()
310 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/libphonenumber/test/com/google/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/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DObjectsTest.java47 int h1 = Objects.hashCode(1, "two", 3.0); in testHashCode()
48 int h2 = Objects.hashCode( in testHashCode()
54 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); in testHashCode()
55 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2)); in testHashCode()
56 assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2)); in testHashCode()
57 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1)); in testHashCode()
58 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1)); in testHashCode()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/reference/
DBaseMethodReference.java44 public int hashCode() { in hashCode() method in BaseMethodReference
45 int hashCode = getDefiningClass().hashCode(); in hashCode() local
46 hashCode = hashCode*31 + getName().hashCode(); in hashCode()
47 hashCode = hashCode*31 + getReturnType().hashCode(); in hashCode()
48 return hashCode*31 + getParameterTypes().hashCode(); in hashCode()
DBaseFieldReference.java41 public int hashCode() { in hashCode() method in BaseFieldReference
42 int hashCode = getDefiningClass().hashCode(); in hashCode() local
43 hashCode = hashCode*31 + getName().hashCode(); in hashCode()
44 return hashCode*31 + getType().hashCode(); in hashCode()
/external/guava/guava-tests/test/com/google/common/base/
DObjectsTest.java49 int h1 = Objects.hashCode(1, "two", 3.0); in testHashCode()
50 int h2 = Objects.hashCode( in testHashCode()
56 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); in testHashCode()
57 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2)); in testHashCode()
58 assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2)); in testHashCode()
59 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1)); in testHashCode()
60 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1)); in testHashCode()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java92 HashCode hashCode = HashCode.fromBytes(bytes); in testFromBytes_copyOccurs() local
96 assertEquals(expectedInt, hashCode.asInt()); in testFromBytes_copyOccurs()
97 assertEquals(expectedToString, hashCode.toString()); in testFromBytes_copyOccurs()
101 assertEquals(expectedInt, hashCode.asInt()); in testFromBytes_copyOccurs()
102 assertEquals(expectedToString, hashCode.toString()); in testFromBytes_copyOccurs()
107 HashCode hashCode = HashCode.fromBytesNoCopy(bytes); in testFromBytesNoCopy_noCopyOccurs() local
109 assertEquals(0x0000abcd, hashCode.asInt()); in testFromBytesNoCopy_noCopyOccurs()
110 assertEquals("cdab0000", hashCode.toString()); in testFromBytesNoCopy_noCopyOccurs()
114 assertEquals(0x0000ab00, hashCode.asInt()); in testFromBytesNoCopy_noCopyOccurs()
115 assertEquals("00ab0000", hashCode.toString()); in testFromBytesNoCopy_noCopyOccurs()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DTestUtil.java60 assertEquals(b1.hashCode(), b2.hashCode()); in assertEquivalent()
61 assertEquals(b1.hashCode(), b1.hashCode()); in assertEquivalent()
81 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
85 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
96 assertEquals(b1.hashCode(), b2.hashCode()); in assertEquivalent()
97 assertEquals(b1.hashCode(), b1.hashCode()); in assertEquivalent()
118 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
122 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
/external/protobuf/java/src/test/java/com/google/protobuf/
DLazyFieldTest.java49 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCode()
51 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCode()
54 assertNotEqual(message.hashCode(), lazyField.hashCode()); in testHashCode()
60 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
62 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
65 assertNotEqual(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DInternalNano.java264 public static int hashCode(int[] field) { in hashCode() method in InternalNano
265 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
272 public static int hashCode(long[] field) { in hashCode() method in InternalNano
273 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
280 public static int hashCode(float[] field) { in hashCode() method in InternalNano
281 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
288 public static int hashCode(double[] field) { in hashCode() method in InternalNano
289 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
296 public static int hashCode(boolean[] field) { in hashCode() method in InternalNano
297 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DAbstractMapEntryTest.java82 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/vogar/src/vogar/
DOutcome.java168 @Override public int hashCode() { in hashCode() method in Outcome
169 int hashCode = 17; in hashCode() local
170 hashCode = 37 * hashCode + outcomeName.hashCode(); in hashCode()
171 hashCode = 37 * hashCode + result.hashCode(); in hashCode()
172 hashCode = 37 * hashCode + output.hashCode(); in hashCode()
173 return hashCode; in hashCode()
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileInfoTest.groovy71 * Test the hashCode() method
74 assert fileInfoFile.hashCode() == fileInfoFile.hashCode()
75 assert fileInfoFile.hashCode() == FileInfo.forFile(NAME, SIZE, LAST_MODIFIED).hashCode()
76 …assert fileInfoFile.hashCode() == FileInfo.forFile(NAME, SIZE, new Date()).hashCode() // lastModi…
78 assert fileInfoFile.hashCode() != FileInfo.forFile("xyz", SIZE, LAST_MODIFIED).hashCode()
79 assert fileInfoFile.hashCode() != FileInfo.forFile(NAME, 33, LAST_MODIFIED).hashCode()
81 assert fileInfoDirectory.hashCode() == FileInfo.forDirectory(NAME, LAST_MODIFIED).hashCode()
/external/guava/guava-testlib/test/com/google/common/testing/
DClassSanityTesterTest.java620 @Override public int hashCode() { in hashCode() method in HasAnInterface
621 return i.hashCode(); in hashCode()
675 @Override public int hashCode() { in hashCode() method in Wrapper
676 return wrapped.hashCode(); in hashCode()
756 @Override public int hashCode() { in hashCode() method in GoodEquals
773 @Override public int hashCode() { in hashCode() method in BadEquals
785 @Override public int hashCode() { in hashCode() method in SameIntegerInstance
786 return i.hashCode(); in hashCode()
807 @Override public int hashCode() { in hashCode() method in SameLongInstance
808 return i.hashCode(); in hashCode()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/
DBaseAnnotation.java42 public int hashCode() { in hashCode() method in BaseAnnotation
43 int hashCode = getVisibility(); in hashCode() local
44 hashCode = hashCode*31 + getType().hashCode(); in hashCode()
45 return hashCode*31 + getElements().hashCode(); in hashCode()
/external/guava/guava/src/com/google/common/collect/
DRegularImmutableBiMap.java43 private final transient int hashCode; field in RegularImmutableBiMap
61 int hashCode = 0; in RegularImmutableBiMap() local
69 int keyHash = key.hashCode(); in RegularImmutableBiMap()
70 int valueHash = value.hashCode(); in RegularImmutableBiMap()
91 hashCode += keyHash ^ valueHash; in RegularImmutableBiMap()
97 this.hashCode = hashCode; in RegularImmutableBiMap()
110 int hashCode = 0; in RegularImmutableBiMap() local
118 int keyHash = key.hashCode(); in RegularImmutableBiMap()
119 int valueHash = value.hashCode(); in RegularImmutableBiMap()
140 hashCode += keyHash ^ valueHash; in RegularImmutableBiMap()
[all …]
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()
87 @Override public int hashCode() { in hashCode() method in RegularImmutableSet
88 return hashCode; in hashCode()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DAddress.java166 @Override public int hashCode() { in hashCode() method in Address
168 result = 31 * result + (proxy != null ? proxy.hashCode() : 0); in hashCode()
169 result = 31 * result + uriHost.hashCode(); in hashCode()
171 result = 31 * result + (sslSocketFactory != null ? sslSocketFactory.hashCode() : 0); in hashCode()
172 result = 31 * result + (hostnameVerifier != null ? hostnameVerifier.hashCode() : 0); in hashCode()
173 result = 31 * result + (certificatePinner != null ? certificatePinner.hashCode() : 0); in hashCode()
174 result = 31 * result + authenticator.hashCode(); in hashCode()
175 result = 31 * result + protocols.hashCode(); in hashCode()
176 result = 31 * result + connectionSpecs.hashCode(); in hashCode()
177 result = 31 * result + proxySelector.hashCode(); in hashCode()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DIteratorBenchmark.java56 sum += array[index].hashCode(); in arrayIndexed()
66 sum += array[index].hashCode(); in arrayIndexedLength()
76 sum += value.hashCode(); in arrayFor()
86 sum += arrayList.get(index).hashCode(); in arrayListIndexed()
96 sum += arrayList.get(index).hashCode(); in arrayListIndexedLength()
106 sum += value.hashCode(); in arrayListFor()
116 sum += value.hashCode(); in arrayListToArrayFor()
126 sum += value.hashCode(); in linkedListFor()
136 sum += value.hashCode(); in linkedListToArrayFor()
/external/proguard/src/proguard/util/
DArrayUtil.java151 public static int hashCode(byte[] array, int size) in hashCode() method in ArrayUtil
153 int hashCode = 0; in hashCode() local
157 hashCode ^= array[index]; in hashCode()
160 return hashCode; in hashCode()
170 public static int hashCode(short[] array, int size) in hashCode() method in ArrayUtil
172 int hashCode = 0; in hashCode() local
176 hashCode ^= array[index]; in hashCode()
179 return hashCode; in hashCode()
189 public static int hashCode(int[] array, int size) in hashCode() method in ArrayUtil
191 int hashCode = 0; in hashCode() local
[all …]
/external/apache-http/src/org/apache/http/util/
DLangUtils.java56 public static int hashCode(final int seed, final int hashcode) { in hashCode() method in LangUtils
60 public static int hashCode(final int seed, final boolean b) { in hashCode() method in LangUtils
61 return hashCode(seed, b ? 1 : 0); in hashCode()
64 public static int hashCode(final int seed, final Object obj) { in hashCode() method in LangUtils
65 return hashCode(seed, obj != null ? obj.hashCode() : 0); in hashCode()

12345678910>>...52