Home
last modified time | relevance | path

Searched refs:alertEntry (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DCarHeadsUpNotificationManager.java124 (launchResult, alertEntry) -> dismissHun(alertEntry)); in CarHeadsUpNotificationManager()
151 AlertEntry alertEntry, in maybeShowHeadsUp() argument
166 alertEntry) in maybeShowHeadsUp()
193 alertEntry.getKey()); in maybeRemoveHeadsUp()
204 removeHun(alertEntry); in maybeRemoveHeadsUp()
267 alertEntry.getKey()); in isUpdate()
272 alertEntry); in isUpdate()
280 alertEntry.getKey()); in canUpdate()
341 alertEntry); in showHeadsUp()
405 shouldDismissOnSwipe(alertEntry), () -> resetView(alertEntry))); in showHeadsUp()
[all …]
H A DCarNotificationListener.java142 AlertEntry alertEntry = new AlertEntry(sbn); in onNotificationPosted() local
144 notifyNotificationPosted(alertEntry); in onNotificationPosted()
157 if (alertEntry != null) { in onNotificationRemoved()
162 alertEntry = new AlertEntry(sbn); in onNotificationRemoved()
165 removeNotification(alertEntry); in onNotificationRemoved()
257 updateOverrideGroupKey(alertEntry); in notifyNotificationPosted()
258 postNewNotification(alertEntry); in notifyNotificationPosted()
274 updateOverrideGroupKey(alertEntry); in onStateChange()
275 postNewNotification(alertEntry); in onStateChange()
286 mActiveNotifications.put(alertEntry.getKey(), alertEntry); in postNewNotification() local
[all …]
H A DNotificationDataManager.java110 alertEntry.getStatusBarNotification())) { in addNewMessageNotification()
116 mVisibleNotifications.add(alertEntry); in addNewMessageNotification()
159 for (AlertEntry alertEntry : alertEntries) { in updateUnseenAlertEntries()
180 boolean isNotificationSeen(AlertEntry alertEntry) { in isNotificationSeen() argument
190 addNewMessageNotification(alertEntry); in isMessageNotificationMuted()
200 public void toggleMute(AlertEntry alertEntry) { in toggleMute() argument
202 alertEntry.getStatusBarNotification())) { in toggleMute()
203 String sbnKey = alertEntry.getKey(); in toggleMute()
209 + alertEntry.getKey()); in toggleMute()
232 for (AlertEntry alertEntry : alertEntries) { in setNotificationsAsSeen()
[all …]
H A DNotificationClickHandlerFactory.java119 alertEntry.getKey(), in getClickHandler()
124 if (shouldAutoCancel(alertEntry)) { in getClickHandler()
125 clearNotification(alertEntry); in getClickHandler()
130 handleNotificationClicked(result, alertEntry); in getClickHandler()
147 alertEntry.getKey(), in getActionClickHandler()
174 alertEntry.getKey(), in getActionClickHandler()
297 return v -> clearNotification(alertEntry);
337 .forEach(alertEntry -> clearNotification(alertEntry));
361 private void clearNotification(AlertEntry alertEntry) {
365 alertEntry.getKey(),
[all …]
H A DPreprocessingManager.java169 AlertEntry alertEntry, in updateNotifications() argument
176 mOldNotifications.remove(alertEntry.getKey()); in updateNotifications()
211 || isMediaOrNavigationNotification(alertEntry); in shouldFilter()
224 notifications.removeIf(alertEntry -> shouldFilter(alertEntry, rankingMap)); in filter()
232 alertEntry.getNotification().category)); in filter()
244 (alertEntry.getNotification().flags in isLessImportantForegroundNotification()
312 AlertEntry optimizeForDriving(AlertEntry alertEntry) { in optimizeForDriving() argument
314 return alertEntry; in optimizeForDriving()
317 Bundle extras = alertEntry.getNotification().extras; in optimizeForDriving()
330 return alertEntry; in optimizeForDriving()
[all …]
H A DNotificationGroup.java56 public NotificationGroup(AlertEntry alertEntry) { in NotificationGroup() argument
57 addNotification(alertEntry); in NotificationGroup()
65 for (AlertEntry alertEntry : group.getChildNotifications()) { in NotificationGroup()
66 addNotification(alertEntry); in NotificationGroup()
81 public void addNotification(AlertEntry alertEntry) { in addNotification() argument
82 assertSameGroupKey(alertEntry.getStatusBarNotification().getGroupKey()); in addNotification()
83 mNotifications.add(alertEntry); in addNotification()
91 public boolean removeNotification(AlertEntry alertEntry) { in removeNotification() argument
93 if (mNotifications.get(i).getKey().equals(alertEntry.getKey())) { in removeNotification()
H A DNotificationUtils.java64 public static boolean isSystemPrivilegedOrPlatformKey(Context context, AlertEntry alertEntry) { in isSystemPrivilegedOrPlatformKey() argument
65 return isSystemPrivilegedOrPlatformKeyInner(context, alertEntry, in isSystemPrivilegedOrPlatformKey()
78 public static boolean isSystemOrPlatformKey(Context context, AlertEntry alertEntry) { in isSystemOrPlatformKey() argument
79 return isSystemPrivilegedOrPlatformKeyInner(context, alertEntry, in isSystemOrPlatformKey()
110 public static CarNotificationTypeItem getNotificationViewType(AlertEntry alertEntry) { in getNotificationViewType() argument
111 String category = alertEntry.getNotification().category; in getNotificationViewType()
130 Bundle extras = alertEntry.getNotification().extras; in getNotificationViewType()
160 AlertEntry alertEntry, boolean checkForPrivilegedApp) { in isSystemPrivilegedOrPlatformKeyInner() argument
161 PackageInfo packageInfo = getPackageInfo(context, alertEntry.getStatusBarNotification()); in isSystemPrivilegedOrPlatformKeyInner()
H A DNotificationViewController.java130 boolean showLessImportantNotifications, int what, AlertEntry alertEntry) { in updateNotifications() argument
132 if (mPreprocessingManager.shouldFilter(alertEntry, in updateNotifications()
140 alertEntry, in updateNotifications()
144 mCarNotificationView.removeNotification(alertEntry); in updateNotifications()
H A DCarNotificationItemTouchListener.java128 for (AlertEntry alertEntry in CarNotificationItemTouchListener()
130 clearNotification(alertEntry); in CarNotificationItemTouchListener()
472 private void clearNotification(AlertEntry alertEntry) { in clearNotification() argument
476 alertEntry.getKey(), in clearNotification()
482 alertEntry.getStatusBarNotification().getPackageName(), in clearNotification()
483 alertEntry.getStatusBarNotification().getUser().getIdentifier(), in clearNotification()
484 alertEntry.getStatusBarNotification().getKey(), in clearNotification()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAlertingNotificationManager.java84 if (alertEntry == null) { in removeNotification()
90 alertEntry.removeAsSoonAsPossible(); in removeNotification()
108 if (alertEntry == null) { in updateNotification()
183 AlertEntry alertEntry = createAlertEntry(); in addAlertEntry() local
184 alertEntry.setEntry(entry); in addAlertEntry()
186 onAlertEntryAdded(alertEntry); in addAlertEntry()
203 if (alertEntry == null) { in removeAlertEntry()
214 onAlertEntryRemoved(alertEntry); in removeAlertEntry()
216 alertEntry.reset(); in removeAlertEntry()
247 return alertEntry == null || alertEntry.wasShownLongEnough() in canRemoveImmediately()
[all …]
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/template/
H A DMessageNotificationViewHolder.java96 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
98 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
100 mHeaderView.bind(alertEntry, isInGroup); in bind()
101 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
109 super.bind(alertEntry, isInGroup, isHeadsUp); in bindRestricted()
111 mHeaderView.bind(alertEntry, isInGroup); in bindRestricted()
113 mActionsView.bind(mClickHandlerFactory, alertEntry); in bindRestricted()
128 Log.d(TAG, "Has driver restrictions: " + alertEntry); in bindBody()
140 Notification notification = alertEntry.getNotification(); in bindBody()
158 Log.d(TAG, "Is a group conversation: " + alertEntry); in bindBody()
[all …]
H A DBasicNotificationViewHolder.java48 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
50 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
51 bindBody(alertEntry); in bind()
52 mHeaderView.bind(alertEntry, isInGroup); in bind()
53 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
59 private void bindBody(AlertEntry alertEntry) { in bindBody() argument
60 Notification notification = alertEntry.getNotification(); in bindBody()
64 mBodyView.bind(title, text, loadAppLauncherIcon(alertEntry.getStatusBarNotification()), in bindBody()
H A DCallNotificationViewHolder.java48 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
50 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
51 bindBody(alertEntry); in bind()
52 mHeaderView.bind(alertEntry, isInGroup); in bind()
53 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
59 private void bindBody(AlertEntry alertEntry) { in bindBody() argument
60 Notification notification = alertEntry.getNotification(); in bindBody()
64 mBodyView.bind(title, text, loadAppLauncherIcon(alertEntry.getStatusBarNotification()), in bindBody()
H A DInboxNotificationViewHolder.java49 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
51 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
52 bindBody(alertEntry); in bind()
53 mHeaderView.bind(alertEntry, isInGroup); in bind()
54 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
60 private void bindBody(AlertEntry alertEntry) { in bindBody() argument
61 Notification notification = alertEntry.getNotification(); in bindBody()
66 mBodyView.bind(title, text, loadAppLauncherIcon(alertEntry.getStatusBarNotification()), in bindBody()
H A DNavigationNotificationViewHolder.java48 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
50 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
51 bindBody(alertEntry); in bind()
52 mHeaderView.bind(alertEntry, isInGroup); in bind()
53 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
59 private void bindBody(AlertEntry alertEntry) { in bindBody() argument
60 Notification notification = alertEntry.getNotification(); in bindBody()
65 mBodyView.bind(title, text, loadAppLauncherIcon(alertEntry.getStatusBarNotification()), in bindBody()
H A DProgressNotificationViewHolder.java59 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
61 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
62 bindBody(alertEntry); in bind()
63 mHeaderView.bind(alertEntry, isInGroup); in bind()
64 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
70 private void bindBody(AlertEntry alertEntry) { in bindBody() argument
71 Notification notification = alertEntry.getNotification(); in bindBody()
77 mBodyView.bind(title, text, loadAppLauncherIcon(alertEntry.getStatusBarNotification()), in bindBody()
H A DCarNotificationActionsView.java181 Notification notification = alertEntry.getNotification(); in bind()
191 mAlertEntry = alertEntry; in bind()
196 alertEntry.getStatusBarNotification())) { in bind()
202 createPlayButton(clickHandlerFactory, alertEntry); in bind()
205 createReplyButton(clickHandlerFactory, alertEntry); in bind()
207 createMuteButton(clickHandlerFactory, alertEntry, canReplyMessage); in bind()
277 AlertEntry alertEntry) { in createPlayButton() argument
285 clickHandlerFactory.getPlayClickHandler(alertEntry)); in createPlayButton()
293 AlertEntry alertEntry) { in createReplyButton() argument
302 clickHandlerFactory.getReplyClickHandler(alertEntry)); in createReplyButton()
[all …]
H A DEmergencyNotificationViewHolder.java62 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind() argument
64 super.bind(alertEntry, isInGroup, isHeadsUp); in bind()
66 Notification notification = alertEntry.getNotification(); in bind()
69 mHeaderView.bind(alertEntry, isInGroup); in bind()
70 mActionsView.bind(mClickHandlerFactory, alertEntry); in bind()
76 mBodyView.bind(title, text, loadAppLauncherIcon(alertEntry.getStatusBarNotification()), in bind()
H A DCarNotificationBaseViewHolder.java153 public void bind(AlertEntry alertEntry, boolean isInGroup, boolean isHeadsUp) { in bind() argument
155 mAlertEntry = alertEntry; in bind()
159 mInnerView.setOnClickListener(mClickHandlerFactory.getClickHandler(alertEntry)); in bind()
161 mCardView.setOnClickListener(mClickHandlerFactory.getClickHandler(alertEntry)); in bind()
163 updateDismissButton(alertEntry, isHeadsUp); in bind()
334 void updateDismissButton(AlertEntry alertEntry, boolean isHeadsUp) { in updateDismissButton() argument
350 mDismissButton.setOnClickListener(getDismissHandler(alertEntry)); in updateDismissButton()
407 View.OnClickListener getDismissHandler(AlertEntry alertEntry) { in getDismissHandler() argument
408 return mClickHandlerFactory.getDismissHandler(alertEntry); in getDismissHandler()
H A DCarNotificationHeaderView.java109 public void bind(AlertEntry alertEntry, boolean isInGroup) { in bind() argument
121 Notification notification = alertEntry.getNotification(); in bind()
122 StatusBarNotification sbn = alertEntry.getStatusBarNotification(); in bind()
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
H A DNotificationUtilsTest.java204 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
205 assertThat(NotificationUtils.getNotificationViewType(alertEntry)).isEqualTo(typeItem); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
218 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox() local
220 assertThat(NotificationUtils.getNotificationViewType(alertEntry)).isEqualTo( in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
228 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic() local
230 assertThat(NotificationUtils.getNotificationViewType(alertEntry)).isEqualTo( in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
H A DCarNotificationListenerTest.java260 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onStateChange_hunNoLongerHun_notifiesHandler() local
262 mCarNotificationListener.onStateChange(alertEntry, /* isHeadsUp= */ false); in onStateChange_hunNoLongerHun_notifiesHandler()
270 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onStateChange_overrideGroupKeySet() local
272 mCarNotificationListener.onStateChange(alertEntry, /* isHeadsUp= */ false); in onStateChange_overrideGroupKeySet()
290 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onNotificationRemoved_notificationPreviouslyAdded_removesNotification() local
291 mCarNotificationListener.getNotifications().put(alertEntry.getKey(), alertEntry); in onNotificationRemoved_notificationPreviouslyAdded_removesNotification() local
295 assertThat(mCarNotificationListener.getNotifications().containsKey(alertEntry.getKey())) in onNotificationRemoved_notificationPreviouslyAdded_removesNotification()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DHeadsUpManager.java175 protected void onAlertEntryAdded(AlertEntry alertEntry) { in onAlertEntryAdded() argument
176 NotificationEntry entry = alertEntry.mEntry; in onAlertEntryAdded()
178 setEntryPinned((HeadsUpEntry) alertEntry, shouldHeadsUpBecomePinned(entry)); in onAlertEntryAdded()
186 protected void onAlertEntryRemoved(AlertEntry alertEntry) { in onAlertEntryRemoved() argument
187 NotificationEntry entry = alertEntry.mEntry; in onAlertEntryRemoved()
189 setEntryPinned((HeadsUpEntry) alertEntry, false /* isPinned */); in onAlertEntryRemoved()
420 public int compareTo(@NonNull AlertEntry alertEntry) { in compareTo() argument
421 HeadsUpEntry headsUpEntry = (HeadsUpEntry) alertEntry; in compareTo()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DHeadsUpManagerPhone.java375 protected void onAlertEntryRemoved(AlertEntry alertEntry) { in onAlertEntryRemoved() argument
376 mKeysToRemoveWhenLeavingKeyguard.remove(alertEntry.mEntry.getKey()); in onAlertEntryRemoved()
377 super.onAlertEntryRemoved(alertEntry); in onAlertEntryRemoved()
378 mEntryPool.release((HeadsUpEntryPhone) alertEntry); in onAlertEntryRemoved()
527 public int compareTo(AlertEntry alertEntry) { in compareTo() argument
528 HeadsUpEntryPhone headsUpEntry = (HeadsUpEntryPhone) alertEntry; in compareTo()
536 return super.compareTo(alertEntry); in compareTo()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
H A DNotificationVisibilityLogger.java61 for (AlertEntry alertEntry : mNotificationDataManager.getVisibleNotifications()) {
63 alertEntry.getKey(),

12