Home
last modified time | relevance | path

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

12345678910>>...30

/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/
DBundleUtil.java165 hashCodes[hashCodeIdx++] = Arrays.hashCode(keys); in deepHashCode()
171 hashCodes[hashCodeIdx++] = Arrays.hashCode((int[]) value); in deepHashCode()
173 hashCodes[hashCodeIdx++] = Arrays.hashCode((byte[]) value); in deepHashCode()
175 hashCodes[hashCodeIdx++] = Arrays.hashCode((char[]) value); in deepHashCode()
177 hashCodes[hashCodeIdx++] = Arrays.hashCode((long[]) value); in deepHashCode()
179 hashCodes[hashCodeIdx++] = Arrays.hashCode((float[]) value); in deepHashCode()
181 hashCodes[hashCodeIdx++] = Arrays.hashCode((short[]) value); in deepHashCode()
183 hashCodes[hashCodeIdx++] = Arrays.hashCode((double[]) value); in deepHashCode()
185 hashCodes[hashCodeIdx++] = Arrays.hashCode((boolean[]) value); in deepHashCode()
188 hashCodes[hashCodeIdx++] = Arrays.hashCode((String[]) value); in deepHashCode()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java121 assertEquals(0, zero.hashCode()); in testZeroIsObviousForDebugging()
133 assertNotEquals(0, one.hashCode()); in testGetNetworkHandle()
134 assertNotEquals(0, two.hashCode()); in testGetNetworkHandle()
135 assertNotEquals(0, three.hashCode()); in testGetNetworkHandle()
138 assertNotEquals(one.hashCode(), two.hashCode()); in testGetNetworkHandle()
139 assertNotEquals(one.hashCode(), three.hashCode()); in testGetNetworkHandle()
140 assertNotEquals(two.hashCode(), three.hashCode()); in testGetNetworkHandle()
153 assertNotEquals(one.hashCode(), one.getNetworkHandle()); in testGetNetworkHandle()
154 assertNotEquals(two.hashCode(), two.getNetworkHandle()); in testGetNetworkHandle()
155 assertNotEquals(three.hashCode(), three.getNetworkHandle()); in testGetNetworkHandle()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java133 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testBasicSettings()
138 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testBasicSettings()
156 assertThat(unparceled.hashCode()).isEqualTo(utf8Config.hashCode()); in testSetWifiSsid()
171 assertThat(unparceled.hashCode()).isEqualTo(nonUtf8Config.hashCode()); in testSetWifiSsid()
190 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa2()
195 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa2()
263 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa2WithAllFieldCustomized()
268 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa2WithAllFieldCustomized()
289 assertThat(unparceled.hashCode()).isEqualTo(original.hashCode()); in testWpa3Sae()
294 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa3Sae()
[all …]
DWifiInfoTest.java693 assertEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
696 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
700 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
704 assertEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
707 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
711 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
715 assertEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
718 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
DWifiClientTest.java59 assertEquals(writeWifiClient.hashCode(), writeWifiClientEquals.hashCode()); in testWifiClientEquals()
73 assertNotEquals(writeWifiClient.hashCode(), writeWifiClientNotEquals.hashCode()); in testWifiClientNotEquals()
DSoftApCapabilityTest.java55 assertEquals(capability.hashCode(), copiedCapability.hashCode()); in testCopyOperator()
88 assertEquals(capability.hashCode(), fromParcel.hashCode()); in testParcelOperation()
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/
DValidationTests.java334 int metricId = metricName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
337 int partialWakelockIsOnId = partialWakelockIsOnName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
340 int partialWakelockOnId = partialWakelockOnName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
342 int partialWakelockOffId = partialWakelockOffName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
345 int partialWakelockAcquireId = partialWakelockAcquireName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
347 int partialWakelockChangeAcquireId = partialWakelockChangeAcquireName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
350 int partialWakelockReleaseId = partialWakelockReleaseName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
352 int partialWakelockChangeReleaseId = partialWakelockChangeReleaseName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
356 int screenOffBatteryOnId = screenOffBatteryOnName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
359 int screenStateUnknownId = screenStateUnknownName.hashCode(); in uploadWakelockDurationBatteryStatsConfig()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
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()
229 result = prime * result + ((mIntentExtraData == null) ? 0 : mIntentExtraData.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()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DPackageUserKeyTest.java126 assertThat(packageUserKey.hashCode()).isEqualTo(otherPackageUserKey.hashCode()); in hashCode_sameObject_shouldBeTheSame()
134 assertThat(packageUserKey.hashCode()).isEqualTo(otherPackageUserKey.hashCode()); in hashCode_differentObjectSameContent_shouldBeTheSame()
143 assertThat(packageUserKey.hashCode()).isNotEqualTo(otherPackageUserKey.hashCode()); in hashCode_differentPackage_shouldBeDifferent()
152 assertThat(packageUserKey.hashCode()).isNotEqualTo(otherPackageUserKey.hashCode()); in hashCode_differentCategory_shouldBeDifferent()
160 assertThat(packageUserKey.hashCode()).isNotEqualTo(otherPackageUserKey.hashCode()); in hashCode_differentUser_shouldBeDifferent()
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DValueMetricsTests.java121 MetricsUtils.startAtomMatcher(predicateTrueName.hashCode()); in testPullerAcrossBuckets()
123 MetricsUtils.stopAtomMatcher(predicateFalseName.hashCode()); in testPullerAcrossBuckets()
129 .setId(predicateName.hashCode()) in testPullerAcrossBuckets()
131 .setStart(predicateTrueName.hashCode()) in testPullerAcrossBuckets()
132 .setStop(predicateFalseName.hashCode()) in testPullerAcrossBuckets()
140 .setId(atomName.hashCode()) in testPullerAcrossBuckets()
147 .setWhat(atomName.hashCode()) in testPullerAcrossBuckets()
153 .setCondition(predicateName.hashCode()) in testPullerAcrossBuckets()
198 MetricsUtils.startAtomMatcher(predicateTrueName.hashCode()); in testMultipleEventsPerBucket()
200 MetricsUtils.stopAtomMatcher(predicateFalseName.hashCode()); in testMultipleEventsPerBucket()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpec.java88 public int hashCode() { in hashCode() method in MoreKeySpec
89 int hashCode = 1; in hashCode() local
90 hashCode = 31 + mCode; in hashCode()
91 hashCode = hashCode * 31 + mIconId; in hashCode()
93 hashCode = hashCode * 31 + (label == null ? 0 : label.hashCode()); in hashCode()
95 hashCode = hashCode * 31 + (outputText == null ? 0 : outputText.hashCode()); in hashCode()
96 return hashCode; in hashCode()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DHashUtils.java97 private static long asLong(@NonNull byte[] hashCode) { in asLong() argument
98 Preconditions.checkState(hashCode.length >= 8, "requires >= 8 bytes (it only has %s bytes)", in asLong()
99 hashCode.length); in asLong()
100 long retVal = (hashCode[0] & 0xFF); in asLong()
101 for (int i = 1; i < Math.min(hashCode.length, 8); i++) { in asLong()
102 retVal |= (hashCode[i] & 0xFFL) << (i * 8); in asLong()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/ccc/
DCccSpecificationParams.java240 public int hashCode() { in hashCode() method in CccSpecificationParams
241 return Arrays.hashCode( in hashCode()
243 mProtocolVersions.hashCode(), in hashCode()
244 mPulseShapeCombos.hashCode(), in hashCode()
245 mUwbConfigs.hashCode(), in hashCode()
247 mChapsPerSlot.hashCode(), in hashCode()
248 mSyncCodes.hashCode(), in hashCode()
249 mChannels.hashCode(), in hashCode()
250 mHoppingConfigModes.hashCode(), in hashCode()
251 mHoppingSequences.hashCode() in hashCode()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropValueTest.java1318 assertThat(value1.hashCode()).isEqualTo(value2.hashCode()); in testHashCodeHidl()
1324 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue3).hashCode()); in testHashCodeHidl()
1330 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue4).hashCode()); in testHashCodeHidl()
1336 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue5).hashCode()); in testHashCodeHidl()
1342 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue6).hashCode()); in testHashCodeHidl()
1348 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue7).hashCode()); in testHashCodeHidl()
1354 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue8).hashCode()); in testHashCodeHidl()
1360 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue9).hashCode()); in testHashCodeHidl()
1366 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue10).hashCode()); in testHashCodeHidl()
1372 assertThat(value1.hashCode()).isNotEqualTo(builder.build(hidlValue11).hashCode()); in testHashCodeHidl()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java62 return (accountTypeWithDataSet.hashCode() ^ accountName.hashCode()) & 0xFFF; in getAccountHashCode()
123 int hashCode = 0; in parse() local
133 hashCode = 0; in parse()
139 hashCode = hashCode * 10 + (c - '0'); in parse()
247 segment.accountHashCode = hashCode; in parse()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DCommonNicknameCache.java80 int hashCode = normalizedName.hashCode(); in preloadNicknameBloomFilter() local
81 mNicknameBloomFilter.set(hashCode & NICKNAME_BLOOM_FILTER_SIZE); in preloadNicknameBloomFilter()
99 int hashCode = normalizedName.hashCode(); in getCommonNicknameClusters() local
100 if (!mNicknameBloomFilter.get(hashCode & NICKNAME_BLOOM_FILTER_SIZE)) { in getCommonNicknameClusters()
/packages/modules/IPsec/src/java/android/net/eap/
DEapSessionConfig.java201 public int hashCode() { in hashCode() method in EapSessionConfig
202 return Objects.hash(Arrays.hashCode(mEapIdentity), mEapConfigs); in hashCode()
515 public int hashCode() { in hashCode() method in EapSessionConfig.EapMethodConfig
596 public int hashCode() { in hashCode() method in EapSessionConfig.EapUiccConfig
597 return Objects.hash(super.hashCode(), mSubId, mApptype); in hashCode()
782 public int hashCode() { in hashCode() method in EapSessionConfig.EapAkaPrimeConfig
783 return Objects.hash(super.hashCode(), mNetworkName, mAllowMismatchedNetworkNames); in hashCode()
870 public int hashCode() { in hashCode() method in EapSessionConfig.EapMsChapV2Config
871 return Objects.hash(super.hashCode(), mUsername, mPassword); in hashCode()
997 public int hashCode() { in hashCode() method in EapSessionConfig.EapTtlsConfig
[all …]
/packages/apps/ThemePicker/src/com/android/customization/module/
DStatsLogUserEventLogger.java211 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_COLOR))) in logThemeSelected()
212 .setFontPackageHash(Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_FONT))) in logThemeSelected()
214 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_SHAPE))) in logThemeSelected()
223 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_COLOR))) in logThemeApplied()
224 .setFontPackageHash(Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_FONT))) in logThemeApplied()
226 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_SHAPE))) in logThemeApplied()
243 .setClockPackageHash(Objects.hashCode(clock.getId())) in logClockSelected()
251 .setClockPackageHash(Objects.hashCode(clock.getId())) in logClockApplied()
301 return id != null ? id.hashCode() : 0; in getIdHashCode()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java326 public int hashCode() { in hashCode() method in IkeConfigPayload.ConfigAttribute
461 public int hashCode() { in hashCode() method in IkeConfigPayload.TunnelModeChildConfigAttrIpv4AddressBase
462 return Objects.hash(super.hashCode(), address); in hashCode()
535 public int hashCode() { in hashCode() method in IkeConfigPayload.IkeConfigAttrIpv4AddressBase
536 return Objects.hash(super.hashCode(), address); in hashCode()
768 public int hashCode() { in hashCode() method in IkeConfigPayload.ConfigAttributeIpv4Subnet
769 return Objects.hash(super.hashCode(), linkAddress); in hashCode()
871 public int hashCode() { in hashCode() method in IkeConfigPayload.TunnelModeChildConfigAttrIpv6AddressBase
872 return Objects.hash(super.hashCode(), address); in hashCode()
945 public int hashCode() { in hashCode() method in IkeConfigPayload.IkeConfigAttrIpv6AddressBase
[all …]
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/testing/
DEqualsHashCodeToStringTester.kt74 return o.toString().hashCode() in doHash()
86 return a.hashCode() == b.hashCode() in doEquivalent()
90 return o.hashCode() in doHash()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscoveredPrinter.java178 public int hashCode() { in hashCode() method in DiscoveredPrinter
180 result = 31 * result + name.hashCode(); in hashCode()
181 result = 31 * result + (uuid != null ? uuid.hashCode() : 0); in hashCode()
182 result = 31 * result + paths.hashCode(); in hashCode()
183 result = 31 * result + (location != null ? location.hashCode() : 0); in hashCode()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DPublicCredential.java122 public int hashCode() { in hashCode() method in PublicCredential
124 super.hashCode(), in hashCode()
125 Arrays.hashCode(mPublicKey), in hashCode()
126 Arrays.hashCode(mEncryptedMetadata), in hashCode()
127 Arrays.hashCode(mEncryptedMetadataKeyTag)); in hashCode()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DHomogenousBiMapTest.java84 assertThat(copy.hashCode()).isEqualTo(mBiMap.hashCode()); in hashCode_equalMaps_works()
92 assertThat(copy.hashCode()).isNotEqualTo(mBiMap.hashCode()); in hashCode_differentMaps_works()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionStoreDataTest.java309 appInfo.extNetworkSuggestions.put(ewns.hashCode(), ewns); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
343 appInfo1.extNetworkSuggestions.put(ewns.hashCode(), ewns); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps()
353 appInfo2.extNetworkSuggestions.put(ewns2.hashCode(), ewns2); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps()
376 appInfo1.extNetworkSuggestions.put(ewns1.hashCode(), ewns1); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
379 appInfo1.extNetworkSuggestions.put(ewns2.hashCode(), ewns2); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
392 appInfo2.extNetworkSuggestions.put(ewns3.hashCode(), ewns3); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
395 appInfo2.extNetworkSuggestions.put(ewns4.hashCode(), ewns4); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
485 appInfo.extNetworkSuggestions.put(ewns.hashCode(), ewns); in serializeDeserializeSinglePasspointSuggestionFromSingleApp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DIconInfoTest.java125 assertNotEquals(info1.hashCode(), info2.hashCode()); in testHashCode()
126 assertEquals(info1.hashCode(), info1Dup.hashCode()); in testHashCode()

12345678910>>...30