Home
last modified time | relevance | path

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

12345678910>>...63

/aosp12/frameworks/base/core/java/android/content/pm/
H A DPackageUserState.java498 hashCode = 31 * hashCode + Boolean.hashCode(installed); in hashCode()
499 hashCode = 31 * hashCode + Boolean.hashCode(stopped); in hashCode()
500 hashCode = 31 * hashCode + Boolean.hashCode(notLaunched); in hashCode()
501 hashCode = 31 * hashCode + Boolean.hashCode(hidden); in hashCode()
503 hashCode = 31 * hashCode + Boolean.hashCode(suspended); in hashCode()
504 hashCode = 31 * hashCode + Objects.hashCode(suspendParams); in hashCode()
505 hashCode = 31 * hashCode + Boolean.hashCode(instantApp); in hashCode()
506 hashCode = 31 * hashCode + Boolean.hashCode(virtualPreload); in hashCode()
513 hashCode = 31 * hashCode + Objects.hashCode(enabledComponents); in hashCode()
514 hashCode = 31 * hashCode + Objects.hashCode(harmfulAppWarning); in hashCode()
[all …]
H A DModuleInfo.java123 public int hashCode() { in hashCode() method in ModuleInfo
124 int hashCode = 0; in hashCode() local
125 hashCode = 31 * hashCode + Objects.hashCode(mName); in hashCode()
126 hashCode = 31 * hashCode + Objects.hashCode(mPackageName); in hashCode()
127 hashCode = 31 * hashCode + Objects.hashCode(mApexModuleName); in hashCode()
128 hashCode = 31 * hashCode + Boolean.hashCode(mHidden); in hashCode()
129 return hashCode; in hashCode()
H A DSuspendDialogInfo.java261 public int hashCode() { in hashCode() method in SuspendDialogInfo
262 int hashCode = mIconResId; in hashCode() local
263 hashCode = 31 * hashCode + mTitleResId; in hashCode()
264 hashCode = 31 * hashCode + Objects.hashCode(mTitle); in hashCode()
265 hashCode = 31 * hashCode + mNeutralButtonTextResId; in hashCode()
266 hashCode = 31 * hashCode + Objects.hashCode(mNeutralButtonText); in hashCode()
267 hashCode = 31 * hashCode + mDialogMessageResId; in hashCode()
268 hashCode = 31 * hashCode + Objects.hashCode(mDialogMessage); in hashCode()
269 hashCode = 31 * hashCode + mNeutralButtonAction; in hashCode()
270 return hashCode; in hashCode()
/aosp12/frameworks/base/core/java/android/os/strictmode/
H A DViolation.java29 public int hashCode() { in hashCode() method in Violation
36 int hashCode = message != null ? message.hashCode() : getClass().hashCode(); in hashCode() local
37 hashCode = hashCode * 37 + calcStackTraceHashCode(getStackTrace()); in hashCode()
38 hashCode = hashCode * 37 + (cause != null ? cause.toString().hashCode() : 0); in hashCode()
40 return mHashCode = hashCode; in hashCode()
65 int hashCode = 17; in calcStackTraceHashCode() local
69 hashCode = hashCode * 37 + stackTrace[i].hashCode(); in calcStackTraceHashCode()
73 return hashCode; in calcStackTraceHashCode()
/aosp12/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
H A DJobInfo.java719 hashCode = 31 * hashCode + extras.hashCode(); in hashCode()
722 hashCode = 31 * hashCode + transientExtras.hashCode(); in hashCode()
725 hashCode = 31 * hashCode + clipData.hashCode(); in hashCode()
729 hashCode = 31 * hashCode + service.hashCode(); in hashCode()
740 hashCode = 31 * hashCode + networkRequest.hashCode(); in hashCode()
743 hashCode = 31 * hashCode + Long.hashCode(networkUploadBytes); in hashCode()
744 hashCode = 31 * hashCode + Long.hashCode(minLatencyMillis); in hashCode()
746 hashCode = 31 * hashCode + Boolean.hashCode(isPeriodic); in hashCode()
747 hashCode = 31 * hashCode + Boolean.hashCode(isPersisted); in hashCode()
748 hashCode = 31 * hashCode + Long.hashCode(intervalMillis); in hashCode()
[all …]
/aosp12/frameworks/base/keystore/tests/src/android/security/keystore2/
H A DAndroidKeyStoreSpiTest.java115 key1.hashCode(), key1.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
118 key2.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
121 key1.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
126 key1.hashCode(), key1_clone.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
142 key1.hashCode(), key1.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
145 key2.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
148 key3.hashCode(), key3.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
151 key1.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
154 key1.hashCode(), key3.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
157 key2.hashCode(), key3.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DStringPool.java58 int hashCode = 0; in get() local
60 hashCode = (hashCode * 31) + array[i]; in get()
64 hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12); in get()
65 hashCode ^= (hashCode >>> 7) ^ (hashCode >>> 4); in get()
66 int index = hashCode & (mPool.length - 1); in get()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/
H A 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/service/euicc/
H A 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()
/aosp12/frameworks/base/services/core/java/com/android/server/uri/
H A DGrantUri.java40 public int hashCode() { in hashCode() method in GrantUri
41 int hashCode = 1; in hashCode() local
42 hashCode = 31 * hashCode + sourceUserId; in hashCode()
43 hashCode = 31 * hashCode + uri.hashCode(); in hashCode()
44 hashCode = 31 * hashCode + (prefix ? 1231 : 1237); in hashCode()
45 return hashCode; in hashCode()
/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/util/
H A DBundleUtil.java163 hashCodes[hashCodeIdx++] = Arrays.hashCode(keys); in deepHashCode()
169 hashCodes[hashCodeIdx++] = Arrays.hashCode((int[]) value); in deepHashCode()
171 hashCodes[hashCodeIdx++] = Arrays.hashCode((byte[]) value); in deepHashCode()
173 hashCodes[hashCodeIdx++] = Arrays.hashCode((char[]) value); in deepHashCode()
175 hashCodes[hashCodeIdx++] = Arrays.hashCode((long[]) value); in deepHashCode()
194 innerHashCodes[j] = array[j].hashCode(); in deepHashCode()
197 hashCodes[hashCodeIdx++] = Arrays.hashCode(innerHashCodes); in deepHashCode()
206 innerHashCodes[j] = item.hashCode(); in deepHashCode()
219 innerHashCodes[j * 2 + 1] = item.hashCode(); in deepHashCode()
224 hashCodes[hashCodeIdx++] = value.hashCode(); in deepHashCode()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DMobileState.kt191 override fun hashCode(): Int {
192 var result = super.hashCode()
193 result = 31 * result + (networkName?.hashCode() ?: 0)
195 result = 31 * result + dataSim.hashCode()
196 result = 31 * result + dataConnected.hashCode()
197 result = 31 * result + isEmergency.hashCode()
198 result = 31 * result + airplaneMode.hashCode()
200 result = 31 * result + isDefault.hashCode()
201 result = 31 * result + userSetup.hashCode()
202 result = 31 * result + roaming.hashCode()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
H A DTransactionParcelTests.java109 assertEquals(item.hashCode(), result.hashCode()); in testConfigurationChange()
123 assertEquals(item.hashCode(), result.hashCode()); in testActivityConfigChange()
136 assertEquals(item.hashCode(), result.hashCode()); in testMoveToDisplay()
149 assertEquals(item.hashCode(), result.hashCode()); in testNewIntent()
162 assertEquals(item.hashCode(), result.hashCode()); in testActivityResult()
175 assertEquals(item.hashCode(), result.hashCode()); in testDestroy()
219 assertEquals(item.hashCode(), result.hashCode()); in testLaunch()
235 assertEquals(item.hashCode(), result.hashCode()); in testRelaunch()
249 assertEquals(item.hashCode(), result.hashCode()); in testPause()
263 assertEquals(item.hashCode(), result.hashCode()); in testResume()
[all …]
/aosp12/frameworks/base/core/java/android/print/
H A DPrinterId.java110 public int hashCode() { in hashCode() method in PrinterId
112 int hashCode = 1; in hashCode() local
113 hashCode = prime * hashCode + mServiceName.hashCode(); in hashCode()
114 hashCode = prime * hashCode + mLocalId.hashCode(); in hashCode()
115 return hashCode; in hashCode()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DTransferOwnershipMetadataManager.java218 public int hashCode() { in hashCode() method in TransferOwnershipMetadataManager.Metadata
219 int hashCode = 1; in hashCode() local
220 hashCode = 31 * hashCode + userId; in hashCode()
221 hashCode = 31 * hashCode + sourceComponent.hashCode(); in hashCode()
222 hashCode = 31 * hashCode + targetComponent.hashCode(); in hashCode()
223 hashCode = 31 * hashCode + adminType.hashCode(); in hashCode()
224 return hashCode; in hashCode()
/aosp12/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A 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()
/aosp12/frameworks/base/core/java/android/os/
H A 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 …]
/aosp12/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
H A 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()
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/
H A DNetworkTest.java119 assertEquals(0, zero.hashCode()); in testZeroIsObviousForDebugging()
131 assertNotEquals(0, one.hashCode()); in testGetNetworkHandle()
132 assertNotEquals(0, two.hashCode()); in testGetNetworkHandle()
133 assertNotEquals(0, three.hashCode()); in testGetNetworkHandle()
136 assertNotEquals(one.hashCode(), two.hashCode()); in testGetNetworkHandle()
137 assertNotEquals(one.hashCode(), three.hashCode()); in testGetNetworkHandle()
138 assertNotEquals(two.hashCode(), three.hashCode()); in testGetNetworkHandle()
151 assertNotEquals(one.hashCode(), one.getNetworkHandle()); in testGetNetworkHandle()
152 assertNotEquals(two.hashCode(), two.getNetworkHandle()); in testGetNetworkHandle()
153 assertNotEquals(three.hashCode(), three.getNetworkHandle()); in testGetNetworkHandle()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DPhonebookEntry.java53 public int hashCode() { in hashCode() method in PhonebookEntry.Name
54 int result = 23 * (family == null ? 0 : family.hashCode()); in hashCode()
55 result = 23 * result + (given == null ? 0 : given.hashCode()); in hashCode()
56 result = 23 * result + (middle == null ? 0 : middle.hashCode()); in hashCode()
57 result = 23 * result + (prefix == null ? 0 : prefix.hashCode()); in hashCode()
58 result = 23 * result + (suffix == null ? 0 : suffix.hashCode()); in hashCode()
96 public int hashCode() { in hashCode() method in PhonebookEntry.Phone
97 return 23 * type + number.hashCode(); in hashCode()
153 public int hashCode() { in hashCode() method in PhonebookEntry
154 return name.hashCode() + 23 * phones.hashCode(); in hashCode()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DIncrementalStates.java207 public int hashCode() { in hashCode() method in IncrementalStates.LoadingState
208 int hashCode = Boolean.hashCode(mIsLoading); in hashCode() local
209 hashCode = 31 * hashCode + Float.hashCode(mProgress); in hashCode()
210 return hashCode; in hashCode()
229 public int hashCode() { in hashCode() method in IncrementalStates
230 return mLoadingState.hashCode(); in hashCode()
/aosp12/art/test/1974-resize-array/src/art/
H A DTest1974.java131 DbgPrintln("Pre hash: " + wr.get().hashCode()); in runWeakReference()
135 DbgPrintln("Post hash: " + wr.get().hashCode()); in runWeakReference()
200 DbgPrintln("Pre hash: " + arr_loc.hashCode()); in runLocal()
204 DbgPrintln("Post hash: " + arr_loc.hashCode()); in runLocal()
213 DbgPrintln("Pre hash: " + arr_loc.hashCode()); in runLocalSmall()
217 DbgPrintln("Post hash: " + arr_loc.hashCode()); in runLocalSmall()
249 DbgPrintln("Pre hash: " + arr_loc.hashCode()); in runMultiThreadLocal()
299 DbgPrintln("Pre hash: " + arr_loc.hashCode()); in runWithLocks()
320 DbgPrintln("Post hash: " + arr_loc.hashCode()); in runWithLocks()
415 DbgPrintln("Pre hash: " + arr.hashCode()); in runWithJvmtiTags()
[all …]
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionData.java221 public int hashCode() { in hashCode() method in SuggestionData
224 result = prime * result + ((mFormat == null) ? 0 : mFormat.hashCode()); in hashCode()
225 result = prime * result + ((mIcon1 == null) ? 0 : mIcon1.hashCode()); in hashCode()
226 result = prime * result + ((mIcon2 == null) ? 0 : mIcon2.hashCode()); in hashCode()
227 result = prime * result + ((mIntentAction == null) ? 0 : mIntentAction.hashCode()); in hashCode()
228 result = prime * result + ((mIntentData == null) ? 0 : mIntentData.hashCode()); in hashCode()
230 result = prime * result + ((mLogType == null) ? 0 : mLogType.hashCode()); in hashCode()
231 result = prime * result + ((mShortcutId == null) ? 0 : mShortcutId.hashCode()); in hashCode()
232 result = prime * result + ((mSource == null) ? 0 : mSource.hashCode()); in hashCode()
235 result = prime * result + ((mText1 == null) ? 0 : mText1.hashCode()); in hashCode()
[all …]
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DTetherStatsValue.java69 public int hashCode() { in hashCode() method in TetherStatsValue
70 return Long.hashCode(rxPackets) ^ Long.hashCode(rxBytes) ^ Long.hashCode(rxErrors) in hashCode()
71 ^ Long.hashCode(txPackets) ^ Long.hashCode(txBytes) ^ Long.hashCode(txErrors); in hashCode()
/aosp12/frameworks/base/libs/usb/src/com/android/future/usb/
H A 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()

12345678910>>...63