Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/base/core/java/android/app/job/
DJobInfo.java717 public int hashCode() { in hashCode() method in JobInfo
718 int hashCode = jobId; in hashCode() local
720 hashCode = 31 * hashCode + extras.hashCode(); in hashCode()
723 hashCode = 31 * hashCode + transientExtras.hashCode(); in hashCode()
726 hashCode = 31 * hashCode + clipData.hashCode(); in hashCode()
728 hashCode = 31*hashCode + clipGrantFlags; in hashCode()
730 hashCode = 31 * hashCode + service.hashCode(); in hashCode()
732 hashCode = 31 * hashCode + constraintFlags; in hashCode()
734 hashCode = 31 * hashCode + Arrays.hashCode(triggerContentUris); in hashCode()
736 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/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/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/tests/coretests/src/android/service/euicc/
DEuiccProfileInfoTest.java153 assertEquals(p.hashCode(), copied.hashCode()); in testBuilder_BasedOnAnotherProfile()
205 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
209 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
213 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
217 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
221 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
226 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
231 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
235 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
239 assertNotEquals(p.hashCode(), t.hashCode()); in testEqualsHashCode()
/frameworks/base/tests/net/common/java/android/net/
DNetworkTest.java110 assertEquals(0, zero.hashCode()); in testZeroIsObviousForDebugging()
122 assertNotEquals(0, one.hashCode()); in testGetNetworkHandle()
123 assertNotEquals(0, two.hashCode()); in testGetNetworkHandle()
124 assertNotEquals(0, three.hashCode()); in testGetNetworkHandle()
127 assertNotEquals(one.hashCode(), two.hashCode()); in testGetNetworkHandle()
128 assertNotEquals(one.hashCode(), three.hashCode()); in testGetNetworkHandle()
129 assertNotEquals(two.hashCode(), three.hashCode()); in testGetNetworkHandle()
142 assertNotEquals(one.hashCode(), one.getNetworkHandle()); in testGetNetworkHandle()
143 assertNotEquals(two.hashCode(), two.getNetworkHandle()); in testGetNetworkHandle()
144 assertNotEquals(three.hashCode(), three.getNetworkHandle()); in testGetNetworkHandle()
/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/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/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/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/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/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/content/res/
DResourcesKey.java71 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey()
72 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey()
73 hash = 31 * hash + Arrays.hashCode(mOverlayDirs); in ResourcesKey()
74 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey()
76 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey()
77 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey()
106 public int hashCode() { in hashCode() method in ResourcesKey
/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()
/frameworks/base/core/java/android/transition/
DTransitionValues.java88 public int hashCode() { in hashCode() method in TransitionValues
89 return 31*view.hashCode() + values.hashCode(); in hashCode()
94 String returnValue = "TransitionValues@" + Integer.toHexString(hashCode()) + ":\n"; in toString()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiClientTest.java59 assertEquals(writeWifiClient.hashCode(), writeWifiClientEquals.hashCode()); in testWifiClientEquals()
73 assertNotEquals(writeWifiClient.hashCode(), writeWifiClientNotEquals.hashCode()); in testWifiClientNotEquals()
/frameworks/opt/bitmap/src/com/android/bitmap/
DContiguousFIFOAggregator.java100 final int hash = key.hashCode(); in expect()
138 mTasks.delete(key.hashCode()); in forget()
167 final int hash = key.hashCode(); in execute()
201 final int hash = first.hashCode(); in maybeExecuteNow()
224 final int hash = key.hashCode(); in onFirstExpectedChanged()
240 return mTasks.get(key.hashCode()) != null; in contains()
257 final int hash = key.hashCode(); in prettyPrint()
/frameworks/base/services/core/java/com/android/server/pm/
DIntentFilterVerificationKey.java57 public int hashCode() { in hashCode() method in IntentFilterVerificationKey
58 int result = domains != null ? domains.hashCode() : 0; in hashCode()
59 result = 31 * result + (packageName != null ? packageName.hashCode() : 0); in hashCode()
60 result = 31 * result + (className != null ? className.hashCode() : 0); in hashCode()

12345678910>>...31