Home
last modified time | relevance | path

Searched refs:SmallHash (Results 1 – 9 of 9) sorted by relevance

/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationRecordLoggerTest.java63 assertEquals(0, SmallHash.hash(0)); in testSmallHash()
64 final int maxHash = SmallHash.MAX_HASH; in testSmallHash()
66 SmallHash.hash(maxHash)); in testSmallHash()
68 SmallHash.hash(17 * maxHash)); in testSmallHash()
70 SmallHash.hash(maxHash - 1)); in testSmallHash()
72 SmallHash.hash(-1)); in testSmallHash()
81 assertEquals(SmallHash.MAX_HASH - 1, 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()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DSmallHash.java24 public final class SmallHash { class
43 private SmallHash() {} in SmallHash() method in SmallHash
H A DMediaCarouselController.kt238 it.mInstanceId = SmallHash.hash(it.mUid +
290 it.mInstanceId = SmallHash.hash(it.mUid +
H A DMediaControlPanel.java302 mInstanceId = SmallHash.hash(mUid + (int) mSystemClock.currentTimeMillis()); in bindPlayer()
553 mInstanceId = SmallHash.hash(data.getTargetId());
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationChannelLogger.java214 return SmallHash.hash(channel.getId()); in getIdHash()
221 return SmallHash.hash(channel.getConversationId()); in getConversationIdHash()
228 return SmallHash.hash(group.getId()); in getIdHash()
H A DSmallHash.java25 public class SmallHash { class
H A DNotificationRecordLogger.java417 return SmallHash.hash(Objects.hashCode(r.getSbn().getTag()) ^ r.getSbn().getId()); in getNotificationIdHash()
424 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
431 return SmallHash.hash(r.getSbn().getGroup()); in getGroupIdHash()
/aosp12/frameworks/base/services/core/
H A DAndroid.bp188 srcs: ["java/com/android/server/notification/SmallHash.java"],
/aosp12/frameworks/base/services/
H A Dart-profile27523 HSPLcom/android/server/notification/SmallHash;->hash(I)I
27524 HSPLcom/android/server/notification/SmallHash;->hash(Ljava/lang/String;)I
54538 Lcom/android/server/notification/SmallHash;