Home
last modified time | relevance | path

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

12345678910>>...32

/frameworks/base/core/java/android/app/job/
DJobInfo.java721 public int hashCode() { in hashCode() method in JobInfo
722 int hashCode = jobId; in hashCode() local
724 hashCode = 31 * hashCode + extras.hashCode(); in hashCode()
727 hashCode = 31 * hashCode + transientExtras.hashCode(); in hashCode()
730 hashCode = 31 * hashCode + clipData.hashCode(); in hashCode()
732 hashCode = 31*hashCode + clipGrantFlags; in hashCode()
734 hashCode = 31 * hashCode + service.hashCode(); in hashCode()
736 hashCode = 31 * hashCode + constraintFlags; in hashCode()
738 hashCode = 31 * hashCode + Arrays.hashCode(triggerContentUris); in hashCode()
740 hashCode = 31 * hashCode + Long.hashCode(triggerContentUpdateDelay); in hashCode()
[all …]
/frameworks/base/services/robotests/src/com/android/server/location/
DGnssPositionModeTest.java26 assertThat(positionMode1.hashCode()).isEqualTo(positionMode2.hashCode()); in testHashCode()
27 assertThat(positionMode1.hashCode()).isNotEqualTo(positionMode3.hashCode()); in testHashCode()
28 assertThat(positionMode1.hashCode()).isNotEqualTo(positionMode3.hashCode()); in testHashCode()
31 hashSet.add(positionMode1.hashCode()); in testHashCode()
32 hashSet.add(positionMode2.hashCode()); in testHashCode()
34 hashSet.add(positionMode3.hashCode()); in testHashCode()
46 assertThat(mode1.hashCode()).isEqualTo(mode2.hashCode()); in assertTEqualsImpliesSameHashCode()
/frameworks/base/core/java/android/content/pm/
DModuleInfo.java105 public int hashCode() { in hashCode() method in ModuleInfo
106 int hashCode = 0; in hashCode() local
107 hashCode = 31 * hashCode + Objects.hashCode(mName); in hashCode()
108 hashCode = 31 * hashCode + Objects.hashCode(mPackageName); in hashCode()
109 hashCode = 31 * hashCode + Boolean.hashCode(mHidden); in hashCode()
110 return hashCode; in hashCode()
DSuspendDialogInfo.java178 public int hashCode() { in hashCode() method in SuspendDialogInfo
179 int hashCode = mIconResId; in hashCode() local
180 hashCode = 31 * hashCode + mTitleResId; in hashCode()
181 hashCode = 31 * hashCode + mNeutralButtonTextResId; in hashCode()
182 hashCode = 31 * hashCode + mDialogMessageResId; in hashCode()
183 hashCode = 31 * hashCode + Objects.hashCode(mDialogMessage); in hashCode()
184 return hashCode; in hashCode()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/
DEuiccNotificationTest.java41 assertEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode()
45 assertNotEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode()
49 assertNotEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode()
53 assertNotEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode()
57 assertNotEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DLazyFieldTest.java50 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCode()
52 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCode()
55 assertNotEqual(message.hashCode(), lazyField.hashCode()); in testHashCode()
61 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
63 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
66 assertNotEqual(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
/frameworks/base/services/core/java/com/android/server/uri/
DGrantUri.java39 public int hashCode() { in hashCode() method in GrantUri
40 int hashCode = 1; in hashCode() local
41 hashCode = 31 * hashCode + sourceUserId; in hashCode()
42 hashCode = 31 * hashCode + uri.hashCode(); in hashCode()
43 hashCode = 31 * hashCode + (prefix ? 1231 : 1237); in hashCode()
44 return hashCode; in hashCode()
/frameworks/base/core/tests/coretests/src/android/service/euicc/
DEuiccProfileInfoTest.java153 assertEquals(p.hashCode(), copied.hashCode()); in testBuilder_BasedOnAnotherProfile()
182 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
186 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
190 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
194 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
198 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
203 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
208 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
212 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
216 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionParcelTests.java97 assertEquals(item.hashCode(), result.hashCode()); in testConfigurationChange()
111 assertEquals(item.hashCode(), result.hashCode()); in testActivityConfigChange()
124 assertEquals(item.hashCode(), result.hashCode()); in testMoveToDisplay()
137 assertEquals(item.hashCode(), result.hashCode()); in testNewIntent()
150 assertEquals(item.hashCode(), result.hashCode()); in testActivityResult()
163 assertEquals(item.hashCode(), result.hashCode()); in testPipModeChange()
178 assertEquals(item.hashCode(), result.hashCode()); in testMultiWindowModeChange()
191 assertEquals(item.hashCode(), result.hashCode()); in testWindowVisibilityChange()
203 assertEquals(item.hashCode(), result.hashCode()); in testWindowVisibilityChange()
216 assertEquals(item.hashCode(), result.hashCode()); in testDestroy()
[all …]
/frameworks/base/core/java/android/print/
DPrinterId.java109 public int hashCode() { in hashCode() method in PrinterId
111 int hashCode = 1; in hashCode() local
112 hashCode = prime * hashCode + mServiceName.hashCode(); in hashCode()
113 hashCode = prime * hashCode + mLocalId.hashCode(); in hashCode()
114 return hashCode; in hashCode()
/frameworks/base/tests/net/common/java/android/net/
DNetworkTest.java114 assertEquals(0, zero.hashCode()); in testZeroIsObviousForDebugging()
126 assertNotEqual(0, one.hashCode()); in testGetNetworkHandle()
127 assertNotEqual(0, two.hashCode()); in testGetNetworkHandle()
128 assertNotEqual(0, three.hashCode()); in testGetNetworkHandle()
131 assertNotEqual(one.hashCode(), two.hashCode()); in testGetNetworkHandle()
132 assertNotEqual(one.hashCode(), three.hashCode()); in testGetNetworkHandle()
133 assertNotEqual(two.hashCode(), three.hashCode()); in testGetNetworkHandle()
146 assertNotEqual(one.hashCode(), one.getNetworkHandle()); in testGetNetworkHandle()
147 assertNotEqual(two.hashCode(), two.getNetworkHandle()); in testGetNetworkHandle()
148 assertNotEqual(three.hashCode(), three.getNetworkHandle()); in testGetNetworkHandle()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
DRemoteResultTest.java107 assertThat(result3.hashCode()).isEqualTo(result3.hashCode()); in testHashCode()
108 assertThat(result3.hashCode()).isEqualTo(RemoteResult.of(3).hashCode()); in testHashCode()
109 assertThat(RemoteResult.FAILED_TIMED_OUT.hashCode()) in testHashCode()
110 .isEqualTo(RemoteResult.FAILED_TIMED_OUT.hashCode()); in testHashCode()
111 assertThat(RemoteResult.FAILED_CANCELLED.hashCode()) in testHashCode()
112 .isEqualTo(RemoteResult.FAILED_CANCELLED.hashCode()); in testHashCode()
113 assertThat(RemoteResult.FAILED_THREAD_INTERRUPTED.hashCode()) in testHashCode()
114 .isEqualTo(RemoteResult.FAILED_THREAD_INTERRUPTED.hashCode()); in testHashCode()
/frameworks/base/core/java/android/os/
DHidlSupport.java128 return Arrays.hashCode(Arrays.stream((Object[])o) in deepHashCode()
134 return Arrays.hashCode(((List<Object>)o).stream() in deepHashCode()
141 return o.hashCode(); in deepHashCode()
162 return Arrays.hashCode(((boolean[])o)); in primitiveArrayHashCode()
165 return Arrays.hashCode(((byte[])o)); in primitiveArrayHashCode()
168 return Arrays.hashCode(((char[])o)); in primitiveArrayHashCode()
171 return Arrays.hashCode(((double[])o)); in primitiveArrayHashCode()
174 return Arrays.hashCode(((float[])o)); in primitiveArrayHashCode()
177 return Arrays.hashCode(((int[])o)); in primitiveArrayHashCode()
180 return Arrays.hashCode(((long[])o)); in primitiveArrayHashCode()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DAmbientBrightnessDayStatsTest.java122 assertEquals(emptyDayStats.hashCode(), identicalEmptyDayStats.hashCode()); in testAmbientBrightnessDayStatsEquals()
129 assertEquals(dayStats.hashCode(), identicalDayStats.hashCode()); in testAmbientBrightnessDayStatsEquals()
132 assertNotEquals(emptyDayStats.hashCode(), dayStats.hashCode()); in testAmbientBrightnessDayStatsEquals()
137 assertNotEquals(dayStats.hashCode(), differentDateDayStats.hashCode()); in testAmbientBrightnessDayStatsEquals()
144 assertNotEquals(dayStats.hashCode(), differentStatsDayStats.hashCode()); in testAmbientBrightnessDayStatsEquals()
152 assertNotEquals(dayStats.hashCode(), differentBoundariesDayStats.hashCode()); in testAmbientBrightnessDayStatsEquals()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DTransferOwnershipMetadataManager.java220 public int hashCode() { in hashCode() method in TransferOwnershipMetadataManager.Metadata
221 int hashCode = 1; in hashCode() local
222 hashCode = 31 * hashCode + userId; in hashCode()
223 hashCode = 31 * hashCode + sourceComponent.hashCode(); in hashCode()
224 hashCode = 31 * hashCode + targetComponent.hashCode(); in hashCode()
225 hashCode = 31 * hashCode + adminType.hashCode(); in hashCode()
226 return hashCode; in hashCode()
/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbAccessory.java118 public int hashCode() { in hashCode() method in UsbAccessory
119 return ((mManufacturer == null ? 0 : mManufacturer.hashCode()) ^ in hashCode()
120 (mModel == null ? 0 : mModel.hashCode()) ^ in hashCode()
121 (mDescription == null ? 0 : mDescription.hashCode()) ^ in hashCode()
122 (mVersion == null ? 0 : mVersion.hashCode()) ^ in hashCode()
123 (mUri == null ? 0 : mUri.hashCode()) ^ in hashCode()
124 (mSerial == null ? 0 : mSerial.hashCode())); in hashCode()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DVerificationParamsTest.java139 assertEquals(params1.hashCode(), params2.hashCode()); in testHashCode_Success()
149 assertFalse(params1.hashCode() == params2.hashCode()); in testHashCode_VerificationUri_Failure()
160 assertFalse(params1.hashCode() == params2.hashCode()); in testHashCode_OriginatingUri_Failure()
171 assertFalse(params1.hashCode() == params2.hashCode()); in testHashCode_Referrer_Failure()
182 assertFalse(params1.hashCode() == params2.hashCode()); in testHashCode_Originating_Uid_Failure()
194 assertFalse(params1.hashCode() == params2.hashCode()); in testHashCode_InstallerUid_Failure()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccSpecVersionTest.java55 assertEquals(ver1.hashCode(), ver2.hashCode()); in testCompareTo()
61 assertNotEquals(ver1.hashCode(), ver2.hashCode()); in testCompareTo()
67 assertNotEquals(ver1.hashCode(), ver2.hashCode()); in testCompareTo()
73 assertNotEquals(ver1.hashCode(), ver2.hashCode()); in testCompareTo()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DGeneratedMessageLite.java108 public int hashCode() { in hashCode() method in GeneratedMessageLite
112 memoizedHashCode = visitor.hashCode; in hashCode()
118 int hashCode(HashCodeVisitor visitor) { in hashCode() method in GeneratedMessageLite
120 int inProgressHashCode = visitor.hashCode; in hashCode()
121 visitor.hashCode = 0; in hashCode()
123 memoizedHashCode = visitor.hashCode; in hashCode()
124 visitor.hashCode = inProgressHashCode; in hashCode()
1847 private int hashCode = 0; field in GeneratedMessageLite.HashCodeVisitor
1852 hashCode = (53 * hashCode) + Internal.hashBoolean(mine); in visitBoolean()
1858 hashCode = (53 * hashCode) + mine; in visitInt()
[all …]
DAbstractProtobufList.java92 public int hashCode() { in hashCode() method in AbstractProtobufList
94 int hashCode = 1; in hashCode() local
96 hashCode = (31 * hashCode) + get(i).hashCode(); in hashCode()
98 return hashCode; in hashCode()
DUnknownFieldSetLite.java246 public int hashCode() { in hashCode() method in UnknownFieldSetLite
247 int hashCode = 17; in hashCode() local
249 hashCode = 31 * hashCode + count; in hashCode()
250 hashCode = 31 * hashCode + Arrays.hashCode(tags); in hashCode()
251 hashCode = 31 * hashCode + Arrays.deepHashCode(objects); in hashCode()
253 return hashCode; in hashCode()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DInternalNano.java273 public static int hashCode(int[] field) { in hashCode() method in InternalNano
274 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
281 public static int hashCode(long[] field) { in hashCode() method in InternalNano
282 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
289 public static int hashCode(float[] field) { in hashCode() method in InternalNano
290 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
297 public static int hashCode(double[] field) { in hashCode() method in InternalNano
298 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
305 public static int hashCode(boolean[] field) { in hashCode() method in InternalNano
306 return field == null || field.length == 0 ? 0 : Arrays.hashCode(field); in hashCode()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java55 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
56 createDummySubtype(localeString).hashCode()); in verifyLocale()
57 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
58 cloneViaParcel(createDummySubtype(localeString)).hashCode()); in verifyLocale()
59 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
60 cloneViaParcel(cloneViaParcel(createDummySubtype(localeString))).hashCode()); in verifyLocale()
118 assertFalse(Objects.equals(subtypeIw.hashCode(), subtypeHe.hashCode())); in testDeprecatedLocaleString()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DInjectedSetting.java123 public int hashCode() { in hashCode() method in InjectedSetting
124 int result = packageName.hashCode(); in hashCode()
125 result = 31 * result + className.hashCode(); in hashCode()
126 result = 31 * result + title.hashCode(); in hashCode()
128 result = 31 * result + (mUserHandle == null ? 0 : mUserHandle.hashCode()); in hashCode()
129 result = 31 * result + settingsActivity.hashCode(); in hashCode()
130 result = 31 * result + (userRestriction == null ? 0 : userRestriction.hashCode()); in hashCode()
/frameworks/base/core/java/android/security/net/config/
DPin.java31 mHashCode = Arrays.hashCode(digest) ^ digestAlgorithm.hashCode(); in Pin()
54 public int hashCode() { in hashCode() method in Pin
67 if (other.hashCode() != mHashCode) { in equals()

12345678910>>...32