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

123456

/frameworks/base/core/java/com/android/internal/util/
H A DObjects.java45 * calling {@link Arrays#hashCode(Object[])}.
47 * <p>This is useful for implementing {@link Object#hashCode()}. For example,
51 * public int hashCode() {
52 * return Objects.hashCode(getX(), getY(), getZ());
58 public static int hashCode(Object... objects) { method in class:Objects
59 return Arrays.hashCode(objects);
/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/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.java29 * Constructor for a Pair. If either are null then equals() and hashCode() will throw
60 public int hashCode() { method in class:Pair
62 result = 31 * result + first.hashCode();
63 result = 31 * result + 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/com/google/android/gles_jni/
H A DEGLDisplayImpl.java40 public int hashCode() { method in class:EGLDisplayImpl
H A DEGLSurfaceImpl.java45 public int hashCode() { method in class:EGLSurfaceImpl
H A DEGLContextImpl.java47 public int hashCode() { method in class:EGLContextImpl
/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/hardware/usb/
H A DUsbAccessory.java176 public int hashCode() { method in class:UsbAccessory
177 return ((mManufacturer == null ? 0 : mManufacturer.hashCode()) ^
178 (mModel == null ? 0 : mModel.hashCode()) ^
179 (mDescription == null ? 0 : mDescription.hashCode()) ^
180 (mVersion == null ? 0 : mVersion.hashCode()) ^
181 (mUri == null ? 0 : mUri.hashCode()) ^
182 (mSerial == null ? 0 : mSerial.hashCode()));
/frameworks/base/core/java/android/text/util/
H A DRfc822Token.java172 public int hashCode() { method in class:Rfc822Token
174 if (mName != null) result = 31 * result + mName.hashCode();
175 if (mAddress != null) result = 31 * result + mAddress.hashCode();
176 if (mComment != null) result = 31 * result + mComment.hashCode();
/frameworks/base/core/java/android/os/
H A DMessenger.java79 public int hashCode() { method in class:Messenger
80 return mTarget.asBinder().hashCode();
H A DParcelUuid.java77 public int hashCode() { method in class:ParcelUuid
78 return mUuid.hashCode();
H A DRemoteCallback.java83 public int hashCode() { method in class:RemoteCallback
84 return mTarget.asBinder().hashCode();
/frameworks/base/core/tests/coretests/src/android/net/
H A DLinkPropertiesTest.java42 assertTrue(source.hashCode() == target.hashCode());
76 assertTrue(source.hashCode() == target.hashCode());
166 assertTrue(source.hashCode() == target.hashCode());
194 assertTrue(source.hashCode() == target.hashCode());
/frameworks/base/test-runner/src/android/test/
H A DClassPathPackageInfo.java76 public int hashCode() { method in class:ClassPathPackageInfo
77 return packageName.hashCode();
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceInfo.java152 public int hashCode() { method in class:WifiP2pServiceInfo
154 result = 31 * result + (mQueryList == null ? 0 : mQueryList.hashCode());
/frameworks/native/opengl/tools/glgen/src/
H A DCType.java93 public int hashCode() { method in class:CType
94 return baseType.hashCode() ^ (isPointer ? 2 : 0) ^ (isConst ? 1 : 0);
/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java233 final int hashCode;
235 hashCode = 0;
237 hashCode = subtype.hashCode();
239 sService.setCurrentSpellCheckerSubtype(null, hashCode);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DContainerEncryptionParamsTest.java242 assertEquals(params1.hashCode(), params2.hashCode());
256 assertFalse(params1.hashCode() == params2.hashCode());
270 assertFalse(params1.hashCode() == params2.hashCode());
284 assertFalse(params1.hashCode() == params2.hashCode());
298 assertFalse(params1.hashCode() == params2.hashCode());
[all...]
/frameworks/base/core/java/android/content/pm/
H A DContainerEncryptionParams.java259 public int hashCode() { method in class:ContainerEncryptionParams
262 hash += 5 * mEncryptionAlgorithm.hashCode();
263 hash += 7 * Arrays.hashCode(mEncryptionSpec.getIV());
264 hash += 11 * mEncryptionKey.hashCode();
265 hash += 13 * mMacAlgorithm.hashCode();
266 hash += 17 * mMacKey.hashCode();
267 hash += 19 * Arrays.hashCode(mMacTag);
/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestMethod.java135 public int hashCode() { method in class:TestMethod
137 result = (enclosingClassname != null ? enclosingClassname.hashCode() : 0);
138 result = 31 * result + (testMethodName != null ? testMethodName.hashCode() : 0);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealthAppConfiguration.java81 public int hashCode() { method in class:BluetoothHealthAppConfiguration
83 result = 31 * result + (mName != null ? mName.hashCode() : 0);

Completed in 2557 milliseconds

123456