Home
last modified time | relevance | path

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

12345678910>>...45

/aosp14/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()
/aosp14/frameworks/base/core/tests/GameManagerTests/src/android/app/
H A DGameModeConfigurationTest.java45 assertEquals(config.hashCode(), config1.hashCode()); in testEqualsAndHashCode()
50 assertNotEquals(config.hashCode(), config2.hashCode()); in testEqualsAndHashCode()
55 assertNotEquals(config.hashCode(), config3.hashCode()); in testEqualsAndHashCode()
57 assertNotEquals(config2.hashCode(), config3.hashCode()); in testEqualsAndHashCode()
62 assertNotEquals(config.hashCode(), config4.hashCode()); in testEqualsAndHashCode()
67 assertNotEquals(config.hashCode(), config5.hashCode()); in testEqualsAndHashCode()
72 assertNotEquals(config.hashCode(), config6.hashCode()); in testEqualsAndHashCode()
74 assertNotEquals(config2.hashCode(), config6.hashCode()); in testEqualsAndHashCode()
76 assertNotEquals(config3.hashCode(), config6.hashCode()); in testEqualsAndHashCode()
/aosp14/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
H A DJobInfo.java905 hashCode = 31 * hashCode + extras.hashCode(); in hashCode()
908 hashCode = 31 * hashCode + transientExtras.hashCode(); in hashCode()
911 hashCode = 31 * hashCode + clipData.hashCode(); in hashCode()
915 hashCode = 31 * hashCode + service.hashCode(); in hashCode()
927 hashCode = 31 * hashCode + networkRequest.hashCode(); in hashCode()
930 hashCode = 31 * hashCode + Long.hashCode(networkUploadBytes); in hashCode()
932 hashCode = 31 * hashCode + Long.hashCode(minLatencyMillis); in hashCode()
934 hashCode = 31 * hashCode + Boolean.hashCode(isPeriodic); in hashCode()
935 hashCode = 31 * hashCode + Boolean.hashCode(isPersisted); in hashCode()
936 hashCode = 31 * hashCode + Long.hashCode(intervalMillis); in hashCode()
[all …]
/aosp14/frameworks/base/core/java/android/content/pm/
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()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
H A DTransactionParcelTests.java79 assertEquals(item.hashCode(), result.hashCode()); in testConfigurationChange()
93 assertEquals(item.hashCode(), result.hashCode()); in testActivityConfigChange()
106 assertEquals(item.hashCode(), result.hashCode()); in testMoveToDisplay()
119 assertEquals(item.hashCode(), result.hashCode()); in testNewIntent()
132 assertEquals(item.hashCode(), result.hashCode()); in testActivityResult()
145 assertEquals(item.hashCode(), result.hashCode()); in testDestroy()
186 assertEquals(item.hashCode(), result.hashCode()); in testLaunch()
202 assertEquals(item.hashCode(), result.hashCode()); in testRelaunch()
217 assertEquals(item.hashCode(), result.hashCode()); in testPause()
231 assertEquals(item.hashCode(), result.hashCode()); in testResume()
[all …]
/aosp14/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()
/aosp14/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()
/aosp14/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()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/dataservice/
H A DSubscriptionInfoEntity.java167 public int hashCode() { in hashCode() method in SubscriptionInfoEntity
169 result = 31 * result + subId.hashCode(); in hashCode()
172 result = 31 * result + displayName.hashCode(); in hashCode()
173 result = 31 * result + carrierName.hashCode(); in hashCode()
175 result = 31 * result + mcc.hashCode(); in hashCode()
176 result = 31 * result + mnc.hashCode(); in hashCode()
177 result = 31 * result + countryIso.hashCode(); in hashCode()
178 result = 31 * result + Boolean.hashCode(isEmbedded); in hashCode()
182 result = 31 * result + groupUUID.hashCode(); in hashCode()
184 result = 31 * result + uniqueName.hashCode(); in hashCode()
[all …]
H A DMobileNetworkInfoEntity.java88 public int hashCode() { in hashCode() method in MobileNetworkInfoEntity
90 result = 31 * result + subId.hashCode(); in hashCode()
91 result = 31 * result + Boolean.hashCode(isContactDiscoveryEnabled); in hashCode()
93 result = 31 * result + Boolean.hashCode(isMobileDataEnabled); in hashCode()
94 result = 31 * result + Boolean.hashCode(isCdmaOptions); in hashCode()
95 result = 31 * result + Boolean.hashCode(isGsmOptions); in hashCode()
96 result = 31 * result + Boolean.hashCode(isWorldMode); in hashCode()
98 result = 31 * result + Boolean.hashCode(isTdscdmaSupported); in hashCode()
99 result = 31 * result + Boolean.hashCode(activeNetworkIsCellular); in hashCode()
100 result = 31 * result + Boolean.hashCode(showToggleForPhysicalSim); in hashCode()
[all …]
/aosp14/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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DMobileState.kt269 override fun hashCode(): Int {
270 var result = super.hashCode()
273 result = 31 * result + (carrierId.hashCode())
274 result = 31 * result + dataSim.hashCode()
275 result = 31 * result + dataConnected.hashCode()
276 result = 31 * result + isEmergency.hashCode()
277 result = 31 * result + airplaneMode.hashCode()
279 result = 31 * result + isDefault.hashCode()
280 result = 31 * result + userSetup.hashCode()
281 result = 31 * result + roaming.hashCode()
[all …]
H A DWifiState.kt105 override fun hashCode(): Int {
106 var result = super.hashCode()
107 result = 31 * result + (ssid?.hashCode() ?: 0)
108 result = 31 * result + isTransient.hashCode()
109 result = 31 * result + isDefault.hashCode()
110 result = 31 * result + (statusLabel?.hashCode() ?: 0)
111 result = 31 * result + isCarrierMerged.hashCode()
112 result = 31 * result + isDefaultConnectionValidated.hashCode()
H A DConnectivityState.kt116 override fun hashCode(): Int {
117 var result = connected.hashCode()
118 result = 31 * result + enabled.hashCode()
119 result = 31 * result + activityIn.hashCode()
120 result = 31 * result + activityOut.hashCode()
122 result = 31 * result + (iconGroup?.hashCode() ?: 0)
125 result = 31 * result + time.hashCode()
/aosp14/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()
/aosp14/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 …]
/aosp14/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()
/aosp14/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()
/aosp14/frameworks/base/core/java/android/window/
H A DSurfaceSyncGroup.java207 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_VIEW, mTrackName, hashCode()); in SurfaceSyncGroup()
403 "addToSync token=" + mToken.hashCode(), hashCode()); in add()
468 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_VIEW, mTrackName, hashCode()); in add()
514 "addSyncToWm=" + token.hashCode(), hashCode()); in addSyncToWm()
535 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_VIEW, mTrackName, hashCode()); in addSyncToWm()
554 "addLocalSync=" + childSurfaceSyncGroup.mName, hashCode()); in addLocalSync()
579 + transactionReadyCallback.hashCode(), hashCode()); in setTransactionCallbackFromParent()
622 + transactionReadyCallback.hashCode(), hashCode()); in setTransactionCallbackFromParent()
731 "onTransactionReady callback=" + hashCode()); in createTransactionReadyCallback()
749 + transactionReadyCallback.hashCode()); in createTransactionReadyCallback()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DSurfaceControlRegistryTests.java81 int hash0 = SurfaceControlRegistry.getProcessInstance().hashCode(); in testCreateReleaseSurfaceControl()
83 assertNotEquals(hash0, SurfaceControlRegistry.getProcessInstance().hashCode()); in testCreateReleaseSurfaceControl()
85 assertEquals(hash0, SurfaceControlRegistry.getProcessInstance().hashCode()); in testCreateReleaseSurfaceControl()
90 int hash0 = SurfaceControlRegistry.getProcessInstance().hashCode(); in testCreateReleaseMultipleSurfaceControls()
92 int hash1 = SurfaceControlRegistry.getProcessInstance().hashCode(); in testCreateReleaseMultipleSurfaceControls()
95 int hash1_2 = SurfaceControlRegistry.getProcessInstance().hashCode(); in testCreateReleaseMultipleSurfaceControls()
100 int hash2 = SurfaceControlRegistry.getProcessInstance().hashCode(); in testCreateReleaseMultipleSurfaceControls()
103 assertEquals(hash0, SurfaceControlRegistry.getProcessInstance().hashCode()); in testCreateReleaseMultipleSurfaceControls()
108 int hash0 = SurfaceControlRegistry.getProcessInstance().hashCode(); in testInvalidSurfaceControlNotAddedToRegistry()
112 assertEquals(hash0, SurfaceControlRegistry.getProcessInstance().hashCode()); in testInvalidSurfaceControlNotAddedToRegistry()
[all …]
/aosp14/frameworks/base/keystore/tests/src/android/security/keystore2/
H A DAndroidKeyStoreSpiTest.java288 key1.hashCode(), key1.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
291 key2.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
294 key1.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
299 key1.hashCode(), key1_clone.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
315 key1.hashCode(), key1.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
318 key2.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
321 key3.hashCode(), key3.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
324 key1.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
327 key1.hashCode(), key3.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
330 key2.hashCode(), key3.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/security/rkp/
H A DRemoteProvisioningRegistration.java59 Log.i(TAG, "Successfully fetched key for client " + mCallback.asBinder().hashCode()); in onResult()
71 Log.i(TAG, "Operation cancelled for client " + mCallback.asBinder().hashCode()); in onError()
74 Log.e(TAG, "RKP error fetching key for client " + mCallback.asBinder().hashCode() in onError()
82 "Unknown error fetching key for client " + mCallback.asBinder().hashCode() in onError()
119 + callback.asBinder().hashCode()); in getKey()
123 Log.i(TAG, "Fetching key " + keyId + " for client " + callback.asBinder().hashCode()); in getKey()
128 "getKeyAsync threw an exception for client " + callback.asBinder().hashCode(), in getKey()
141 "Invalid client in cancelGetKey: " + callback.asBinder().hashCode()); in cancelGetKey()
144 Log.i(TAG, "Requesting cancellation for client " + callback.asBinder().hashCode()); in cancelGetKey()
154 + callback.asBinder().hashCode()); in storeUpgradedKeyAsync()
[all …]
/aosp14/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()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/
H A DSuspendParams.java79 public int hashCode() { in hashCode() method in SuspendParams
80 int hashCode = Objects.hashCode(dialogInfo); in hashCode() local
81 hashCode = 31 * hashCode + ((appExtras != null) ? appExtras.size() : 0); in hashCode()
82 hashCode = 31 * hashCode + ((launcherExtras != null) ? launcherExtras.size() : 0); in hashCode()
83 return hashCode; in hashCode()

12345678910>>...45