Home
last modified time | relevance | path

Searched refs:notificationKey (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/dot/
DDotInfo.java49 public boolean addOrUpdateNotificationKey(NotificationKeyData notificationKey) { in addOrUpdateNotificationKey() argument
50 int indexOfPrevKey = mNotificationKeys.indexOf(notificationKey); in addOrUpdateNotificationKey()
54 if (prevKey.count == notificationKey.count) { in addOrUpdateNotificationKey()
59 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
60 prevKey.count = notificationKey.count; in addOrUpdateNotificationKey()
63 boolean added = mNotificationKeys.add(notificationKey); in addOrUpdateNotificationKey()
65 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
73 public boolean removeNotificationKey(NotificationKeyData notificationKey) { in removeNotificationKey() argument
74 boolean removed = mNotificationKeys.remove(notificationKey); in removeNotificationKey()
76 mTotalCount -= notificationKey.count; in removeNotificationKey()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationKeyData.java38 public final String notificationKey; field in NotificationKeyData
44 private NotificationKeyData(String notificationKey, String shortcutId, int count, in NotificationKeyData() argument
46 this.notificationKey = notificationKey; in NotificationKeyData()
63 keysOnly.add(notificationKeyData.notificationKey); in extractKeysOnly()
82 return ((NotificationKeyData) obj).notificationKey.equals(notificationKey); in equals()
DNotificationInfo.java50 public final String notificationKey; field in NotificationInfo
68 notificationKey = statusBarNotification.getKey(); in NotificationInfo()
116 launcher.getPopupDataProvider().cancelNotification(notificationKey); in onClick()
DNotificationListener.java303 keys.stream().map(n -> n.notificationKey).toArray(String[]::new)); in getNotificationsForKeys()
341 NotificationKeyData notificationKey); in onNotificationPosted() argument
343 NotificationKeyData notificationKey); in onNotificationRemoved() argument
DNotificationMainView.java122 listener.setNotificationsShown(new String[] {mNotificationInfo.notificationKey}); in applyNotificationInfo()
170 mNotificationInfo.notificationKey); in onChildDismissed()
DNotificationFooterLayout.java226 if (!notifications.contains(overflowIterator.next().notificationKey)) { in trimNotifications()
233 if (!notifications.contains(childInfo.notificationKey)) { in trimNotifications()
DNotificationItemView.java185 mMainView.getNotificationInfo().notificationKey); in trimNotifications()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/notificationmsg/
DNotificationMsgDelegate.java94 String notificationKey = message.getNotificationKey(); in onMessageReceived() local
98 initializeNewConversation(device, message.getConversation(), notificationKey); in onMessageReceived()
101 initializeNewMessage(device.getDeviceId(), message.getMessage(), notificationKey); in onMessageReceived() local
107 storeIcon(new ConversationKey(device.getDeviceId(), notificationKey), in onMessageReceived()
188 ConversationNotification notification, String notificationKey) { in initializeNewConversation() argument
190 ConversationKey convoKey = new ConversationKey(deviceAddress, notificationKey); in initializeNewConversation()
199 logw(TAG, "Conversation already exists! " + notificationKey); in initializeNewConversation()
204 notification, notificationKey); in initializeNewConversation()
225 MessagingStyleMessage messagingStyleMessage, String notificationKey) { in initializeNewMessage() argument
226 ConversationKey convoKey = new ConversationKey(deviceAddress, notificationKey); in initializeNewMessage()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java78 NotificationKeyData notificationKey) { in onNotificationPosted() argument
84 if (dotInfo.addOrUpdateNotificationKey(notificationKey)) { in onNotificationPosted()
91 NotificationKeyData notificationKey) { in onNotificationRemoved() argument
93 if (oldDotInfo != null && oldDotInfo.removeNotificationKey(notificationKey)) { in onNotificationRemoved()
183 public void cancelNotification(String notificationKey) { in cancelNotification() argument
188 notificationListener.cancelNotificationFromLauncher(notificationKey); in cancelNotification()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DConversationNotificationInfo.java76 @NonNull ConversationNotification conversation, @NonNull String notificationKey) { in createConversationNotificationInfo() argument
97 messagingStyle.getIsGroupConvo(), notificationKey, in createConversationNotificationInfo()
118 String convoTitle, boolean isGroupConvo, @Nullable String notificationKey, in ConversationNotificationInfo() argument
138 this.mNotificationKey = notificationKey; in ConversationNotificationInfo()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationDataManager.java128 for (String notificationKey : currentNotificationKeys) { in updateUnseenNotification()
129 mUnseenNotificationMap.remove(notificationKey); in updateUnseenNotification()
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/feature/notificationmsg/
DNotificationMsgDelegateTest.java673 private void verifyCarToPhoneActionMessage(CarToPhoneMessage message, String notificationKey, in verifyCarToPhoneActionMessage() argument
675 assertThat(message.getNotificationKey()).isEqualTo(notificationKey); in verifyCarToPhoneActionMessage()
677 assertThat(message.getActionRequest().getNotificationKey()).isEqualTo(notificationKey); in verifyCarToPhoneActionMessage()