Home
last modified time | relevance | path

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

1234

/cts/tests/tests/media/src/android/media/cts/
DAudioPresentationTest.java86 assertEquals(presentation1.hashCode(), presentation2.hashCode()); in testEqualsAndHashCode()
90 assertNotEquals(presentation1.hashCode(), presentation3.hashCode()); in testEqualsAndHashCode()
99 assertEquals(presentation1.hashCode(), presentation2.hashCode()); in testEqualsAndHashCode()
103 assertNotEquals(presentation1.hashCode(), presentation3.hashCode()); in testEqualsAndHashCode()
112 assertEquals(presentation1.hashCode(), presentation2.hashCode()); in testEqualsAndHashCode()
116 assertNotEquals(presentation1.hashCode(), presentation3.hashCode()); in testEqualsAndHashCode()
125 assertEquals(presentation1.hashCode(), presentation2.hashCode()); in testEqualsAndHashCode()
129 assertNotEquals(presentation1.hashCode(), presentation3.hashCode()); in testEqualsAndHashCode()
138 assertEquals(presentation1.hashCode(), presentation2.hashCode()); in testEqualsAndHashCode()
142 assertNotEquals(presentation1.hashCode(), presentation3.hashCode()); in testEqualsAndHashCode()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccProfileInfoTest.java156 assertEquals(p.hashCode(), copied.hashCode()); in testBuilder_BasedOnAnotherProfile()
185 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
189 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
193 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
197 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
201 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
206 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
211 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
215 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
219 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
/cts/libs/vogar-expect/src/vogar/expect/
DOutcome.java161 @Override public int hashCode() { in hashCode() method in Outcome
162 int hashCode = 17; in hashCode() local
163 hashCode = 37 * hashCode + outcomeName.hashCode(); in hashCode()
164 hashCode = 37 * hashCode + result.hashCode(); in hashCode()
165 hashCode = 37 * hashCode + output.hashCode(); in hashCode()
166 return hashCode; in hashCode()
/cts/tests/tests/content/src/android/content/cts/
DLocusIdTest.java71 assertThat(id1.hashCode()).isEqualTo(id2.hashCode()); in testHashcode()
72 assertThat(id2.hashCode()).isEqualTo(id1.hashCode()); in testHashcode()
75 assertThat(id1.hashCode()).isNotEqualTo(id3.hashCode()); in testHashcode()
76 assertThat(id3.hashCode()).isNotEqualTo(id1.hashCode()); in testHashcode()
DContentValuesTest.java173 assertEquals(0, mContentValues.hashCode()); in testHashCode()
177 assertTrue(0 != mContentValues.hashCode()); in testHashCode()
179 int hashcode = mContentValues.hashCode(); in testHashCode()
181 assertTrue(hashcode != mContentValues.hashCode()); in testHashCode()
184 assertTrue(hashcode == mContentValues.hashCode()); in testHashCode()
187 assertEquals(0, mContentValues.hashCode()); in testHashCode()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DValidationTests.java378 int metricId = metricName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
381 int partialWakelockIsOnId = partialWakelockIsOnName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
384 int partialWakelockOnId = partialWakelockOnName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
386 int partialWakelockOffId = partialWakelockOffName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
389 int partialWakelockAcquireId = partialWakelockAcquireName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
391 int partialWakelockChangeAcquireId = partialWakelockChangeAcquireName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
394 int partialWakelockReleaseId = partialWakelockReleaseName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
396 int partialWakelockChangeReleaseId = partialWakelockChangeReleaseName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
400 int screenOffBatteryOnId = screenOffBatteryOnName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
403 int screenStateUnknownId = screenStateUnknownName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DValueMetricsTests.java126 MetricsUtils.startAtomMatcher(predicateTrueName.hashCode()); in testPullerAcrossBuckets()
128 MetricsUtils.stopAtomMatcher(predicateFalseName.hashCode()); in testPullerAcrossBuckets()
134 .setId(predicateName.hashCode()) in testPullerAcrossBuckets()
136 .setStart(predicateTrueName.hashCode()) in testPullerAcrossBuckets()
137 .setStop(predicateFalseName.hashCode()) in testPullerAcrossBuckets()
145 .setId(atomName.hashCode()) in testPullerAcrossBuckets()
152 .setWhat(atomName.hashCode()) in testPullerAcrossBuckets()
158 .setCondition(predicateName.hashCode()) in testPullerAcrossBuckets()
206 MetricsUtils.startAtomMatcher(predicateTrueName.hashCode()); in testMultipleEventsPerBucket()
208 MetricsUtils.stopAtomMatcher(predicateFalseName.hashCode()); in testMultipleEventsPerBucket()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DAmbiguousBundlesTest.java58 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13310()
61 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13310()
69 keyHash = key.hashCode(); in test_android_CVE_2017_13310()
79 key2Hash = key2.hashCode(); in test_android_CVE_2017_13310()
167 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2018_9339()
170 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2018_9339()
178 keyHash = key.hashCode(); in test_android_CVE_2018_9339()
244 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_0806()
247 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_0806()
255 keyHash = key.hashCode(); in test_android_CVE_2017_0806()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DNetworkRegistrationInfoTest.java62 assertEquals(nri1.hashCode(), nri2.hashCode()); in testEquals()
65 assertNotSame(nri1.hashCode(), nri3.hashCode()); in testEquals()
68 assertNotSame(nri2.hashCode(), nri3.hashCode()); in testEquals()
DServiceStateTest.java180 assertNotEquals(serviceStateA.hashCode(), 0); in testHashCode()
181 assertNotEquals(serviceStateB.hashCode(), 0); in testHashCode()
185 assertEquals(serviceStateA.hashCode(), serviceStateB.hashCode()); in testHashCode()
190 assertNotEquals(serviceStateA.hashCode(), serviceStateC.hashCode()); in testHashCode()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTimingConstraintsTest.java28 private static final int TIMING_JOB_ID = TimingConstraintsTest.class.hashCode() + 0;
29 private static final int CANCEL_JOB_ID = TimingConstraintsTest.class.hashCode() + 1;
30 private static final int EXPIRED_JOB_ID = TimingConstraintsTest.class.hashCode() + 2;
31 private static final int UNEXPIRED_JOB_ID = TimingConstraintsTest.class.hashCode() + 3;
32 private static final int ZERO_DELAY_JOB_ID = TimingConstraintsTest.class.hashCode() + 4;
/cts/tests/tests/os/src/android/os/cts/
DVibrationEffectTest.java99 assertEquals(TEST_ONE_SHOT.hashCode(), otherEffect.hashCode()); in testOneShotEquals()
123 assertEquals(effect.hashCode(), otherEffect.hashCode()); in testOneShotEqualsWithDefaultAmplitude()
258 assertEquals(effect.hashCode(), otherEffect.hashCode()); in testWaveformEquals()
300 assertEquals(TEST_WAVEFORM_NO_AMPLITUDES.hashCode(), otherEffect.hashCode()); in testWaveformWithNoAmplitudesEquals()
388 assertEquals(TEST_PREBAKED.hashCode(), otherEffect.hashCode()); in testPrebakedEquals()
/cts/tools/vm-tests-tf/build/src/util/build/
DJavacBuildStep.java112 public int hashCode() { in hashCode() method in JavacBuildStep
113 return destPath.hashCode() ^ classPath.hashCode() ^ sourceFiles.hashCode(); in hashCode()
DJarBuildStep.java119 public int hashCode() { in hashCode() method in JarBuildStep
120 return inputFile.hashCode() ^ outputFile.hashCode() in hashCode()
121 ^ outputJarEntryName.hashCode(); in hashCode()
DSmaliBuildStep.java68 public int hashCode() { in hashCode() method in SmaliBuildStep
69 return inputFiles.hashCode() ^ outputFile.hashCode(); in hashCode()
DD8BuildStep.java75 public int hashCode() { in hashCode() method in D8BuildStep
76 return inputFile.hashCode() ^ outputFile.hashCode(); in hashCode()
DBuildStep.java50 public int hashCode() { in hashCode() method in BuildStep.BuildFile
51 return fileName.hashCode(); in hashCode()
102 public abstract int hashCode(); in hashCode() method in BuildStep
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java601 assertNotEquals(Half.hashCode(POSITIVE_INFINITY), Half.hashCode(NEGATIVE_INFINITY)); in hashCodeGeneration()
602 assertNotEquals(Half.hashCode(POSITIVE_ZERO), Half.hashCode(NEGATIVE_ZERO)); in hashCodeGeneration()
603 assertNotEquals(Half.hashCode(toHalf(1.999f)), Half.hashCode(toHalf(1.998f))); in hashCodeGeneration()
604 assertEquals(Half.hashCode(NaN), Half.hashCode((short) 0x7c01)); in hashCodeGeneration()
605 assertEquals(Half.hashCode(NaN), Half.hashCode((short) 0xfc98)); in hashCodeGeneration()
607 assertEquals(Half.hashCode(POSITIVE_INFINITY), Half.valueOf(POSITIVE_INFINITY).hashCode()); in hashCodeGeneration()
608 assertEquals(Half.hashCode(NEGATIVE_INFINITY), Half.valueOf(NEGATIVE_INFINITY).hashCode()); in hashCodeGeneration()
609 assertEquals(Half.hashCode(POSITIVE_ZERO), Half.valueOf(POSITIVE_ZERO).hashCode()); in hashCodeGeneration()
610 assertEquals(Half.hashCode(NEGATIVE_ZERO), Half.valueOf(NEGATIVE_ZERO).hashCode()); in hashCodeGeneration()
611 assertEquals(Half.hashCode(NaN), Half.valueOf(NaN).hashCode()); in hashCodeGeneration()
[all …]
DArrayMapTest.java124 public final int hashCode() { in hashCode() method in ArrayMapTest.ControlledHash
190 if (map.entrySet().hashCode() != array.entrySet().hashCode()) { in compareMaps()
192 + Integer.toHexString(map.entrySet().hashCode()) + " array=0x" in compareMaps()
193 + Integer.toHexString(array.entrySet().hashCode())); in compareMaps()
204 if (map.keySet().hashCode() != array.keySet().hashCode()) { in compareMaps()
206 + Integer.toHexString(map.keySet().hashCode()) + " array=0x" in compareMaps()
207 + Integer.toHexString(array.keySet().hashCode())); in compareMaps()
671 assertEquals(a.hashCode(), b.hashCode());
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DAtomTestCase.java91 public static final long CONFIG_ID = "cts_config".hashCode();
528 .setId(atomName.hashCode()) in addAtomEvent()
531 .setId(eventName.hashCode()) in addAtomEvent()
532 .setWhat(atomName.hashCode())); in addAtomEvent()
549 .setId(atomName.hashCode()) in addGaugeAtom()
554 .setId(predicateTrueName.hashCode()) in addGaugeAtom()
565 .setId(predicateFalseName.hashCode()) in addGaugeAtom()
575 .setId(predicateName.hashCode()) in addGaugeAtom()
577 .setStart(predicateTrueName.hashCode()) in addGaugeAtom()
578 .setStop(predicateFalseName.hashCode()) in addGaugeAtom()
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DTestUtils.java65 public int hashCode() { in hashCode() method in TestUtils.MacWrapper
66 return Arrays.hashCode(mMac); in hashCode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DStreamingVideoActivity.java90 public int hashCode() { in hashCode() method in StreamingVideoActivity.Stream
91 return name.hashCode() ^ uri.hashCode() ^ code.hashCode(); in hashCode()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMyAutofillId.java32 public int hashCode() { in hashCode() method in MyAutofillId
35 result = prime * result + ((mId == null) ? 0 : mId.hashCode()); in hashCode()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DAtomMetricTester.java57 private static final long CONFIG_ID = "cts_config".hashCode();
173 .setId(atomName.hashCode()) in addAtomEvent()
176 .setId(eventName.hashCode()) in addAtomEvent()
177 .setWhat(atomName.hashCode())); in addAtomEvent()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java92 assertEquals(id.hashCode(), mStubInfo.hashCode()); in testTvInputInfoOp()
108 assertEquals(mStubInfo.hashCode(), infoFromParcel.hashCode()); in testTvInputInfoOp()

1234