Searched refs:hashCode (Results 1 - 25 of 333) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DHashCodeHelpers.java27 * <p>Useful to implement a {@link Object#hashCode} for uniformly distributed data.</p>
33 public static int hashCode(int[] array) { method in class:HashCodeHelpers
40 * and used elsewhere in the runtime (e.g. Arrays#hashCode)
57 * <p>Useful to implement a {@link Object#hashCode} for uniformly distributed data.</p>
63 public static int hashCode(float[] array) { method in class:HashCodeHelpers
80 * <p>Useful to implement a {@link Object#hashCode} for uniformly distributed data.</p>
86 public static <T> int hashCode(T[] array) { method in class:HashCodeHelpers
93 int x = (o == null) ? 0 : o.hashCode();
100 public static <T> int hashCode(T a) { method in class:HashCodeHelpers
101 return (a == null) ? 0 : a.hashCode();
104 public static <T> int hashCode(T a, T b) { method in class:HashCodeHelpers
113 public static <T> int hashCode(T a, T b, T c) { method in class:HashCodeHelpers
122 public static <T> int hashCode(T a, T b, T c, T d) { method in class:HashCodeHelpers
131 public static int hashCode(int x) { method in class:HashCodeHelpers
135 public static int hashCode(int x, int y) { method in class:HashCodeHelpers
139 public static int hashCode(int x, int y, int z) { method in class:HashCodeHelpers
143 public static int hashCode(int x, int y, int z, int w) { method in class:HashCodeHelpers
147 public static int hashCode(int x, int y, int z, int w, int t) { method in class:HashCodeHelpers
[all...]
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/
H A DReferencedByAnnotationWithOtherReferences.java25 return a.hashCode();
32 return b.hashCode();
H A DReferencedByClassInAnnotation.java25 return a.hashCode();
32 return b.hashCode();
/frameworks/base/core/java/android/print/
H A DPrinterId.java109 public int hashCode() { method in class:PrinterId
111 int hashCode = 1;
112 hashCode = prime * hashCode + ((mServiceName != null)
113 ? mServiceName.hashCode() : 1);
114 hashCode = prime * hashCode + mLocalId.hashCode();
115 return hashCode;
/frameworks/base/core/java/android/transition/
H A DTransitionValues.java74 public int hashCode() { method in class:TransitionValues
75 return 31*view.hashCode() + values.hashCode();
80 String returnValue = "TransitionValues@" + Integer.toHexString(hashCode()) + ":\n";
/frameworks/base/core/java/android/accounts/
H A DAccountAndUser.java42 public int hashCode() { method in class:AccountAndUser
43 return account.hashCode() + userId;
H A DAccount.java25 * {@link Parcelable} and also overrides {@link #equals} and {@link #hashCode}, making it
39 public int hashCode() { method in class:Account
41 result = 31 * result + name.hashCode();
42 result = 31 * result + type.hashCode();
/frameworks/base/core/tests/inputmethodtests/src/android/os/
H A DInputMethodSubtypeTest.java41 // Make sure InputMethodSubtype#hashCode() returns the same hash code.
42 assertEquals(createDummySubtype(localeString).hashCode(),
43 createDummySubtype(localeString).hashCode());
44 assertEquals(createDummySubtype(localeString).hashCode(),
45 cloneViaParcel(createDummySubtype(localeString)).hashCode());
46 assertEquals(createDummySubtype(localeString).hashCode(),
47 cloneViaParcel(cloneViaParcel(createDummySubtype(localeString))).hashCode());
69 assertFalse(Objects.equals(subtypeIw.hashCode(), subtypeHe.hashCode()));
/frameworks/base/libs/usb/src/com/android/future/usb/
H A DUsbAccessory.java118 public int hashCode() { method in class:UsbAccessory
119 return ((mManufacturer == null ? 0 : mManufacturer.hashCode()) ^
120 (mModel == null ? 0 : mModel.hashCode()) ^
121 (mDescription == null ? 0 : mDescription.hashCode()) ^
122 (mVersion == null ? 0 : mVersion.hashCode()) ^
123 (mUri == null ? 0 : mUri.hashCode()) ^
124 (mSerial == null ? 0 : mSerial.hashCode()));
/frameworks/base/core/java/android/util/
H A DPair.java64 public int hashCode() { method in class:Pair
65 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode());
/frameworks/support/v4/java/android/support/v4/util/
H A DPair.java66 public int hashCode() { method in class:Pair
67 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode());
/frameworks/base/location/tests/locationtests/src/android/location/
H A DCountryTester.java31 assertTrue(countryA.hashCode() == countryD.hashCode());
/frameworks/base/drm/java/android/drm/
H A DDrmSupportInfo.java132 public int hashCode() { method in class:DrmSupportInfo
133 return mFileSuffixList.hashCode() + mMimeTypeList.hashCode() + mDescription.hashCode();
/frameworks/base/opengl/java/android/opengl/
H A DEGLObjectHandle.java61 public int hashCode() { method in class:EGLObjectHandle
/frameworks/base/telephony/java/android/telephony/
H A DCellSignalStrength.java72 public abstract int hashCode(); method in class:CellSignalStrength
/frameworks/native/opengl/tools/glgen/static/egl/
H A DEGLObjectHandle.java61 public int hashCode() { method in class:EGLObjectHandle
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DVerificationParamsTest.java156 assertEquals(params1.hashCode(), params2.hashCode());
166 assertFalse(params1.hashCode() == params2.hashCode());
177 assertFalse(params1.hashCode() == params2.hashCode());
188 assertFalse(params1.hashCode() == params2.hashCode());
199 assertFalse(params1.hashCode() == params2.hashCode());
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPorterDuffColorFilter.java122 public int hashCode() { method in class:PorterDuffColorFilter
123 return 31 * mMode.hashCode() + mColor;
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
H A DWakeUpController.java36 Log.i(LOG_TAG, "Created instance: 0x" + Integer.toHexString(this.hashCode()));
51 Log.i(LOG_TAG, "Create wakelock: 0x" + Integer.toHexString(mWakeLock.hashCode()));
/frameworks/base/media/java/android/media/
H A DAudioHandle.java46 public int hashCode() { method in class:AudioHandle
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLDisplayImpl.java40 public int hashCode() { method in class:EGLDisplayImpl
/frameworks/base/sax/java/android/sax/
H A DChildren.java31 int hash = uri.hashCode() * 31 + localName.hashCode();
66 int hash = uri.hashCode() * 31 + localName.hashCode();
/frameworks/base/core/java/android/content/res/
H A DResourcesKey.java42 hash = 31 * hash + (mResDir == null ? 0 : mResDir.hashCode());
45 ? mOverrideConfiguration.hashCode() : 0);
55 public int hashCode() { method in class:ResourcesKey
/frameworks/base/core/java/android/view/
H A DDisplayAdjustments.java79 public int hashCode() { method in class:DisplayAdjustments
81 hash = hash * 31 + mCompatInfo.hashCode();
83 hash = hash * 31 + (mActivityToken == null ? 0 : mActivityToken.hashCode());
/frameworks/base/telecomm/java/android/telecom/
H A DPhoneAccountHandle.java71 public int hashCode() { method in class:PhoneAccountHandle
72 return Objects.hashCode(mComponentName) + Objects.hashCode(mId);

Completed in 8892 milliseconds

1234567891011>>