/frameworks/base/core/java/android/os/strictmode/ |
D | Violation.java | 29 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()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageUserState.java | 470 public int hashCode() { in hashCode() method in PackageUserState 471 int hashCode = Long.hashCode(ceDataInode); in hashCode() local 472 hashCode = 31 * hashCode + Boolean.hashCode(installed); in hashCode() 473 hashCode = 31 * hashCode + Boolean.hashCode(stopped); in hashCode() 474 hashCode = 31 * hashCode + Boolean.hashCode(notLaunched); in hashCode() 475 hashCode = 31 * hashCode + Boolean.hashCode(hidden); in hashCode() 476 hashCode = 31 * hashCode + distractionFlags; in hashCode() 477 hashCode = 31 * hashCode + Boolean.hashCode(suspended); in hashCode() 478 hashCode = 31 * hashCode + Objects.hashCode(suspendParams); in hashCode() 479 hashCode = 31 * hashCode + Boolean.hashCode(instantApp); in hashCode() [all …]
|
D | ModuleInfo.java | 123 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()
|
D | SuspendDialogInfo.java | 228 public int hashCode() { in hashCode() method in SuspendDialogInfo 229 int hashCode = mIconResId; in hashCode() local 230 hashCode = 31 * hashCode + mTitleResId; in hashCode() 231 hashCode = 31 * hashCode + mNeutralButtonTextResId; in hashCode() 232 hashCode = 31 * hashCode + mDialogMessageResId; in hashCode() 233 hashCode = 31 * hashCode + Objects.hashCode(mDialogMessage); in hashCode() 234 hashCode = 31 * hashCode + mNeutralButtonAction; in hashCode() 235 return hashCode; in hashCode()
|
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/ |
D | JobInfo.java | 701 public int hashCode() { in hashCode() method in JobInfo 702 int hashCode = jobId; in hashCode() local 704 hashCode = 31 * hashCode + extras.hashCode(); in hashCode() 707 hashCode = 31 * hashCode + transientExtras.hashCode(); in hashCode() 710 hashCode = 31 * hashCode + clipData.hashCode(); in hashCode() 712 hashCode = 31*hashCode + clipGrantFlags; in hashCode() 714 hashCode = 31 * hashCode + service.hashCode(); in hashCode() 716 hashCode = 31 * hashCode + constraintFlags; in hashCode() 718 hashCode = 31 * hashCode + Arrays.hashCode(triggerContentUris); in hashCode() 720 hashCode = 31 * hashCode + Long.hashCode(triggerContentUpdateDelay); in hashCode() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/location/gnss/ |
D | GnssPositionModeTest.java | 42 assertThat(positionMode1.hashCode()).isEqualTo(positionMode2.hashCode()); in testHashCode() 43 assertThat(positionMode1.hashCode()).isNotEqualTo(positionMode3.hashCode()); in testHashCode() 44 assertThat(positionMode1.hashCode()).isNotEqualTo(positionMode3.hashCode()); in testHashCode() 47 hashSet.add(positionMode1.hashCode()); in testHashCode() 48 hashSet.add(positionMode2.hashCode()); in testHashCode() 50 hashSet.add(positionMode3.hashCode()); in testHashCode() 62 assertThat(mode1.hashCode()).isEqualTo(mode2.hashCode()); in assertTEqualsImpliesSameHashCode()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/ |
D | EuiccNotificationTest.java | 41 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/core/tests/coretests/src/android/service/euicc/ |
D | EuiccProfileInfoTest.java | 153 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/services/core/java/com/android/server/uri/ |
D | GrantUri.java | 40 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()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkTest.java | 110 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/tests/coretests/src/android/app/servertransaction/ |
D | TransactionParcelTests.java | 101 assertEquals(item.hashCode(), result.hashCode()); in testConfigurationChange() 115 assertEquals(item.hashCode(), result.hashCode()); in testActivityConfigChange() 128 assertEquals(item.hashCode(), result.hashCode()); in testMoveToDisplay() 141 assertEquals(item.hashCode(), result.hashCode()); in testNewIntent() 154 assertEquals(item.hashCode(), result.hashCode()); in testActivityResult() 167 assertEquals(item.hashCode(), result.hashCode()); in testDestroy() 206 assertEquals(item.hashCode(), result.hashCode()); in testLaunch() 222 assertEquals(item.hashCode(), result.hashCode()); in testRelaunch() 236 assertEquals(item.hashCode(), result.hashCode()); in testPause() 250 assertEquals(item.hashCode(), result.hashCode()); in testResume() [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrinterId.java | 109 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/ |
D | RemoteResultTest.java | 107 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/ |
D | HidlSupport.java | 128 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/ |
D | AmbientBrightnessDayStatsTest.java | 122 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/ |
D | TransferOwnershipMetadataManager.java | 221 public int hashCode() { in hashCode() method in TransferOwnershipMetadataManager.Metadata 222 int hashCode = 1; in hashCode() local 223 hashCode = 31 * hashCode + userId; in hashCode() 224 hashCode = 31 * hashCode + sourceComponent.hashCode(); in hashCode() 225 hashCode = 31 * hashCode + targetComponent.hashCode(); in hashCode() 226 hashCode = 31 * hashCode + adminType.hashCode(); in hashCode() 227 return hashCode; in hashCode()
|
/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbAccessory.java | 118 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/wifi/tests/src/android/net/wifi/ |
D | SoftApConfigurationTest.java | 85 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testBasicSettings() 90 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testBasicSettings() 109 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa2() 114 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa2() 150 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa2WithAllFieldCustomized() 155 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa2WithAllFieldCustomized() 176 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa3Sae() 181 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa3Sae() 203 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa3SaeTransition() 208 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa3SaeTransition()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/ |
D | EuiccSpecVersionTest.java | 55 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/ |
D | InputMethodSubtypeTest.java | 55 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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordLoggerTest.java | 84 final int hash = SmallHash.hash(tag.hashCode()); in testGetNotificationIdHash() 92 SmallHash.hash(-1 ^ tag.hashCode()), in testGetNotificationIdHash() 95 SmallHash.hash(-1 ^ tag.hashCode())); in testGetNotificationIdHash() 101 SmallHash.hash(CHANNEL_ID.hashCode()), in testGetChannelIdHash() 104 SmallHash.hash(CHANNEL_ID.hashCode()), in testGetChannelIdHash() 105 CHANNEL_ID.hashCode()); in testGetChannelIdHash() 116 SmallHash.hash(group.hashCode()), in testGetGroupIdHash()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | InjectedSetting.java | 123 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/ |
D | Pin.java | 31 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/content/res/ |
D | ResourcesKey.java | 76 hash = 31 * hash + Objects.hashCode(mResDir); in ResourcesKey() 77 hash = 31 * hash + Arrays.hashCode(mSplitResDirs); in ResourcesKey() 78 hash = 31 * hash + Arrays.hashCode(mOverlayDirs); in ResourcesKey() 79 hash = 31 * hash + Arrays.hashCode(mLibDirs); in ResourcesKey() 81 hash = 31 * hash + Objects.hashCode(mOverrideConfiguration); in ResourcesKey() 82 hash = 31 * hash + Objects.hashCode(mCompatInfo); in ResourcesKey() 83 hash = 31 * hash + Arrays.hashCode(mLoaders); in ResourcesKey() 124 public int hashCode() { in hashCode() method in ResourcesKey
|
/frameworks/base/media/java/android/media/ |
D | DrmInitData.java | 118 public int hashCode() { in hashCode() method in DrmInitData.SchemeInitData 119 return uuid.hashCode() + 31 * (mimeType.hashCode() + 31 * Arrays.hashCode(data)); in hashCode()
|