Home
last modified time | relevance | path

Searched refs:AlertEntry (Results 1 – 25 of 45) sorted by relevance

12

/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationGroup.java40 private final List<AlertEntry> mNotifications = new ArrayList<>();
45 private AlertEntry mGroupSummaryNotification;
56 public NotificationGroup(AlertEntry alertEntry) { in NotificationGroup()
81 public void addNotification(AlertEntry alertEntry) { in addNotification()
91 public boolean removeNotification(AlertEntry alertEntry) { in removeNotification()
226 for (AlertEntry notification : mNotifications) { in isDismissible()
240 public List<AlertEntry> getChildNotifications() { in getChildNotifications()
248 public AlertEntry getGroupSummaryNotification() { in getGroupSummaryNotification()
273 for (AlertEntry notification : mNotifications) { in generateChildTitles()
305 public AlertEntry getSingleNotification() { in getSingleNotification()
[all …]
H A DCarNotificationListener.java71 private Map<String, AlertEntry> mActiveNotifications = new HashMap<>();
142 AlertEntry alertEntry = new AlertEntry(sbn); in onNotificationPosted()
155 AlertEntry alertEntry = mActiveNotifications.get(sbn.getKey()); in onNotificationRemoved()
162 alertEntry = new AlertEntry(sbn); in onNotificationRemoved()
172 for (AlertEntry alertEntry : mActiveNotifications.values()) { in onNotificationRankingUpdate()
182 private boolean updateOverrideGroupKey(AlertEntry alertEntry) { in updateOverrideGroupKey()
217 Map<String, AlertEntry> getNotifications() { in getNotifications()
244 private void notifyNotificationPosted(AlertEntry alertEntry) { in notifyNotificationPosted()
271 public void onStateChange(AlertEntry alertEntry, boolean isHeadsUp) { in onStateChange()
285 private void postNewNotification(AlertEntry alertEntry) { in postNewNotification()
[all …]
H A DPreprocessingManager.java76 private Map<String, AlertEntry> mOldNotifications;
169 AlertEntry alertEntry, in updateNotifications()
218 protected List<AlertEntry> filter( in filter()
220 List<AlertEntry> notifications, in filter()
297 private List<AlertEntry> optimizeForDriving(List<AlertEntry> notifications) { in optimizeForDriving()
312 AlertEntry optimizeForDriving(AlertEntry alertEntry) { in optimizeForDriving()
366 List<NotificationGroup> group(List<AlertEntry> list) { in group()
371 AlertEntry alertEntry = list.get(i); in group()
404 AlertEntry summaryNotification = in group()
639 private boolean hasSameGroupKey(AlertEntry notification1, AlertEntry notification2) { in hasSameGroupKey()
[all …]
H A DNotificationDataManager.java108 void addNewMessageNotification(AlertEntry alertEntry) { in addNewMessageNotification()
128 void untrackUnseenNotification(AlertEntry alertEntry) { in untrackUnseenNotification()
141 List<AlertEntry> alertEntries = new ArrayList<>(); in updateUnseenNotificationGroups()
153 void updateUnseenAlertEntries(List<AlertEntry> alertEntries) { in updateUnseenAlertEntries()
159 for (AlertEntry alertEntry : alertEntries) { in updateUnseenAlertEntries()
180 boolean isNotificationSeen(AlertEntry alertEntry) { in isNotificationSeen()
188 public boolean isMessageNotificationMuted(AlertEntry alertEntry) { in isMessageNotificationMuted()
200 public void toggleMute(AlertEntry alertEntry) { in toggleMute()
230 void setNotificationsAsSeen(List<AlertEntry> alertEntries) { in setNotificationsAsSeen()
232 for (AlertEntry alertEntry : alertEntries) { in setNotificationsAsSeen()
[all …]
H A DCarNotificationDiff.java125 static boolean sameNotificationKey(AlertEntry oldItem, AlertEntry newItem) { in sameNotificationKey()
141 static boolean sameNotificationKeyAndFlags(AlertEntry oldItem, AlertEntry newItem) { in sameNotificationKeyAndFlags()
172 List<AlertEntry> oldChildNotifications = oldItem.getChildNotifications(); in areContentsTheSame()
173 List<AlertEntry> newChildNotifications = newItem.getChildNotifications(); in areContentsTheSame()
176 AlertEntry oldNotification = oldChildNotifications.get(i); in areContentsTheSame()
177 AlertEntry newNotification = newChildNotifications.get(i); in areContentsTheSame()
193 private boolean sameNotificationContent(AlertEntry oldItem, AlertEntry newItem) { in sameNotificationContent()
H A DCarHeadsUpNotificationManager.java151 AlertEntry alertEntry, in maybeShowHeadsUp()
153 Map<String, AlertEntry> activeNotifications) { in maybeShowHeadsUp()
191 public void maybeRemoveHeadsUp(AlertEntry alertEntry) { in maybeRemoveHeadsUp()
265 private boolean isUpdate(AlertEntry alertEntry) { in isUpdate()
278 private boolean canUpdate(AlertEntry alertEntry) { in canUpdate()
327 private void showHeadsUp(AlertEntry alertEntry, in showHeadsUp()
453 private void playSound(AlertEntry alertEntry, in playSound()
532 private void dismissHun(AlertEntry alertEntry) { in dismissHun()
536 private void removeHun(AlertEntry alertEntry) { in removeHun()
544 private void resetView(AlertEntry alertEntry) { in resetView()
[all …]
H A DNotificationClickHandlerFactory.java68 void onNotificationClicked(int launchResult, AlertEntry alertEntry); in onNotificationClicked()
98 public View.OnClickListener getClickHandler(AlertEntry alertEntry) { in getClickHandler()
142 public View.OnClickListener getActionClickHandler(AlertEntry alertEntry, int index) { in getActionClickHandler()
191 public View.OnClickListener getPlayClickHandler(AlertEntry messageNotification) {
219 public View.OnClickListener getReplyClickHandler(AlertEntry messageNotification) {
247 CarNotificationActionButton muteButton, AlertEntry messageNotification,
296 public View.OnClickListener getDismissHandler(AlertEntry alertEntry) {
333 AlertEntry summaryNotification = notificationGroup.getGroupSummaryNotification();
356 private void handleNotificationClicked(int launchResult, AlertEntry alertEntry) {
361 private void clearNotification(AlertEntry alertEntry) {
[all …]
H A DAlertEntry.java27 public class AlertEntry { class
34 public AlertEntry(StatusBarNotification statusBarNotification) { in AlertEntry() method in AlertEntry
42 protected AlertEntry() {} in AlertEntry() method in AlertEntry
H A DNotificationUtils.java64 public static boolean isSystemPrivilegedOrPlatformKey(Context context, AlertEntry alertEntry) { in isSystemPrivilegedOrPlatformKey()
78 public static boolean isSystemOrPlatformKey(Context context, AlertEntry alertEntry) { in isSystemOrPlatformKey()
110 public static CarNotificationTypeItem getNotificationViewType(AlertEntry alertEntry) { in getNotificationViewType()
160 AlertEntry alertEntry, boolean checkForPrivilegedApp) { in isSystemPrivilegedOrPlatformKeyInner()
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
H A DCarNotificationDiffTest.java65 private AlertEntry mNotification1;
66 private AlertEntry mNotification2;
67 private AlertEntry mNotification3;
313 AlertEntry oldStatusBarNotification = new AlertEntry( in areBundleEqual_sameSize_shouldReturnTrue()
317 AlertEntry newStatusBarNotification = new AlertEntry( in areBundleEqual_sameSize_shouldReturnTrue()
402 AlertEntry oldAlertEntry = new AlertEntry( in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue()
405 AlertEntry newAlertEntry = new AlertEntry( in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue()
445 AlertEntry oldAlertEntry = new AlertEntry( in areBundleEqual_sameKeySetWithDiffValue_shouldReturnFalse()
448 AlertEntry newAlertEntry = new AlertEntry( in areBundleEqual_sameKeySetWithDiffValue_shouldReturnFalse()
488 AlertEntry oldAlertEntry = new AlertEntry( in areBundleEqual_diffKeySet_shouldReturnFalse()
[all …]
H A DPreprocessingManagerTest.java152 private AlertEntry mMedia;
153 private AlertEntry mNavigation;
154 private AlertEntry mImportantBackground;
163 private List<AlertEntry> mAlertEntries;
724 AlertEntry additionalAlertEntry = new AlertEntry(mAdditionalStatusBarNotification); in onAdditionalGroupAndRank_isGroupSummary_returnsTheSameGroupsAsStandardGroup()
765 AlertEntry newEntry = new AlertEntry(newSbn); in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking()
805 AlertEntry newEntry = new AlertEntry(newSbn); in onAdditionalGroupAndRank_isGroupSummary_prependsHighRankNotification()
827 AlertEntry newEntry = new AlertEntry(newSbn); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated()
871 AlertEntry updated = (AlertEntry) mPreprocessingManager.getOldNotifications().get( in onUpdateNotification_notificationPosted_isUpdate_putsNotification()
888 AlertEntry additionalAlertEntry = new AlertEntry(mAdditionalStatusBarNotification); in onUpdateNotification_notificationPosted_isNotUpdate_addsNotification()
[all …]
H A DCarNotificationListenerTest.java98 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
110 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
122 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
145 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager()
180 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager()
206 verify(mNotificationDataManager).untrackUnseenNotification(any(AlertEntry.class)); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification()
217 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_isForAllUsers_addsAlertEntryToDataManager()
243 verify(mNotificationDataManager).untrackUnseenNotification(any(AlertEntry.class)); in onNotificationPosted_lowPriority_isForAllUsers_untracksUnseenNotification()
260 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onStateChange_hunNoLongerHun_notifiesHandler()
270 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onStateChange_overrideGroupKeySet()
[all …]
H A DCarHeadsUpNotificationManagerTest.java102 private AlertEntry mAlertEntryMessageHeadsUp;
103 private AlertEntry mAlertEntryNavigationHeadsUp;
104 private AlertEntry mAlertEntryCallHeadsUp;
105 private AlertEntry mAlertEntryInboxHeadsUp;
106 private AlertEntry mAlertEntryWarningHeadsUp;
107 private AlertEntry mAlertEntryEmergencyHeadsUp;
184 mAlertEntryMessageHeadsUp = new AlertEntry( in setup()
191 mAlertEntryCallHeadsUp = new AlertEntry( in setup()
194 mAlertEntryInboxHeadsUp = new AlertEntry( in setup()
198 mAlertEntryWarningHeadsUp = new AlertEntry( in setup()
[all …]
H A DNotificationUtilsTest.java52 private AlertEntry mAlertEntry;
64 mAlertEntry = new AlertEntry(mStatusBarNotification); in setup()
204 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
218 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
228 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
H A DNotificationClickHandlerFactoryTest.java81 private AlertEntry mAlertEntry1;
82 private AlertEntry mAlertEntry2;
83 private AlertEntry mAlertEntryMessageHeadsUp;
128 mAlertEntry1 = new AlertEntry(mStatusBarNotification1); in setUp()
129 mAlertEntry2 = new AlertEntry(mStatusBarNotification2); in setUp()
140 mAlertEntryMessageHeadsUp = new AlertEntry( in setUp()
164 verify(mListener1, never()).onNotificationClicked(anyInt(), any(AlertEntry.class)); in onClickClickHandler_noIntent_returnsImmediately()
193 verify(mListener1).onNotificationClicked(anyInt(), any(AlertEntry.class)); in onClickClickHandler_intentExists_invokesRegisteredClickListeners()
246 verify(mListener1, never()).onNotificationClicked(anyInt(), any(AlertEntry.class)); in onClickActionClickHandler_isReplyAction_doesNotInvokeRegisteredClickListeners()
291 verify(mListener1).onNotificationClicked(anyInt(), any(AlertEntry.class)); in onClickActionClickHandler_notCarCompatibleMessage_invokesRegisteredListeners()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAlertingNotificationManager.java83 AlertEntry alertEntry = mAlertEntries.get(key); in removeNotification()
107 AlertEntry alertEntry = mAlertEntries.get(key); in updateNotification()
142 AlertEntry entry = mAlertEntries.get(key); in getEntry()
183 AlertEntry alertEntry = createAlertEntry(); in addAlertEntry()
202 AlertEntry alertEntry = mAlertEntries.get(key); in removeAlertEntry()
235 protected AlertEntry createAlertEntry() { in createAlertEntry()
236 return new AlertEntry(); in createAlertEntry()
246 AlertEntry alertEntry = mAlertEntries.get(key); in canRemoveImmediately()
270 AlertEntry alertEntry = mAlertEntries.get(entry.getKey()); in setShouldManageLifetime()
278 protected class AlertEntry implements Comparable<AlertEntry> { class in AlertingNotificationManager
[all …]
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/
H A DCarNotificationActionsViewTest.java39 import com.android.car.notification.AlertEntry;
72 private AlertEntry mAlertEntryMessageHeadsUp;
100 mAlertEntryMessageHeadsUp = new AlertEntry( in setup()
138 new AlertEntry(mStatusBarNotification)); in onBind_noAction_doesNotCreateButtons()
339 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_buttonIsVisible()
351 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_buttonShowsActionTitle()
363 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_hasIntent_buttonHasClickListener()
380 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_hasNoIntent_buttonHasNoClickListener()
400 new AlertEntry(mStatusBarNotification)); in onBind_actionCountExceedsMaximum_notCarCompatibleMessage_doesNotThrowError()
409 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_isCall_firstButtonHasBackground()
[all …]
H A DGroupNotificationViewHolderTest.java34 import com.android.car.notification.AlertEntry;
172 AlertEntry groupSummaryAlertEntry = new AlertEntry( in getNotificationGroup()
183 AlertEntry alertEntry = new AlertEntry( in getNotificationGroup()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DHeadsUpManager.java175 protected void onAlertEntryAdded(AlertEntry alertEntry) { in onAlertEntryAdded()
186 protected void onAlertEntryRemoved(AlertEntry alertEntry) { in onAlertEntryRemoved()
237 AlertEntry entry = getHeadsUpEntry(key); in snooze()
269 for (AlertEntry entry: mAlertEntries.values()) { in getTopHeadsUpEntry()
295 for (AlertEntry entry: mAlertEntries.values()) { in dumpInternal()
315 AlertEntry entry = getHeadsUpEntry(key); in hasPinnedNotificationInternal()
360 AlertEntry aEntry = getHeadsUpEntry(a.getKey()); in compare()
361 AlertEntry bEntry = getHeadsUpEntry(b.getKey()); in compare()
409 protected class HeadsUpEntry extends AlertEntry {
420 public int compareTo(@NonNull AlertEntry alertEntry) { in compareTo()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/template/
H A DBasicNotificationViewHolder.java22 import com.android.car.notification.AlertEntry;
48 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind()
59 private void bindBody(AlertEntry alertEntry) { in bindBody()
H A DCallNotificationViewHolder.java22 import com.android.car.notification.AlertEntry;
48 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind()
59 private void bindBody(AlertEntry alertEntry) { in bindBody()
H A DInboxNotificationViewHolder.java22 import com.android.car.notification.AlertEntry;
49 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind()
60 private void bindBody(AlertEntry alertEntry) { in bindBody()
H A DNavigationNotificationViewHolder.java22 import com.android.car.notification.AlertEntry;
48 public void bind(AlertEntry alertEntry, boolean isInGroup, in bind()
59 private void bindBody(AlertEntry alertEntry) { in bindBody()
H A DCarNotificationBaseViewHolder.java35 import com.android.car.notification.AlertEntry;
92 private AlertEntry mAlertEntry;
153 public void bind(AlertEntry alertEntry, boolean isInGroup, boolean isHeadsUp) { in bind()
318 public AlertEntry getAlertEntry() { in getAlertEntry()
334 void updateDismissButton(AlertEntry alertEntry, boolean isHeadsUp) { in updateDismissButton()
407 View.OnClickListener getDismissHandler(AlertEntry alertEntry) { in getDismissHandler()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DAlertingNotificationManagerTest.java81 private AlertEntry mLastCreatedEntry;
90 protected void onAlertEntryAdded(AlertEntry alertEntry) {} in onAlertEntryAdded()
93 protected void onAlertEntryRemoved(AlertEntry alertEntry) {} in onAlertEntryRemoved()
96 protected AlertEntry createAlertEntry() { in createAlertEntry()

12