Home
last modified time | relevance | path

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

12

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewTest.java105 List<NotificationGroup> notifications = new ArrayList<>(); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications() local
106 notifications.add(dismissible); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
107 notifications.add(notDismissible); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
108 mCarNotificationView.setNotifications(notifications); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
157 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_listViewIsVisible() local
158 notifications.add(dismissible); in setNotifications_notEmpty_listViewIsVisible()
159 notifications.add(notDismissible); in setNotifications_notEmpty_listViewIsVisible()
161 mCarNotificationView.setNotifications(notifications); in setNotifications_notEmpty_listViewIsVisible()
163 assertThat(mCarNotificationView.findViewById(R.id.notifications).getVisibility()) in setNotifications_notEmpty_listViewIsVisible()
173 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_emptyNotificationTextViewIsGone() local
[all …]
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsService.java63 final Notification[] notifications = intent.hasExtra(EXTRA_DEVICE_NOTIFICATIONS) ? in onStartCommand() local
66 return updateForegroundState(ids, notifications) ? START_STICKY : START_NOT_STICKY; in onStartCommand()
76 @Nullable int[] ids, @Nullable Notification[] notifications) { in updateForegroundState() argument
81 Preconditions.checkArgument(notifications != null); in updateForegroundState()
82 Preconditions.checkArgument(ids.length == notifications.length); in updateForegroundState()
89 startForeground(ids[i], notifications[i]); in updateForegroundState()
93 mNotificationManager.notify(ids[i], notifications[i]); in updateForegroundState()
118 final Notification[] notifications = new Notification[src.length]; in castToNotifications() local
120 notifications[i] = (Notification) src[i]; in castToNotifications()
122 return notifications; in castToNotifications()
DServiceIntentSender.java65 final Notification[] notifications = new Notification[records.length]; in sendUpdateNotificationIntent() local
68 notifications[i] = createNotification(mContext, records[i]); in sendUpdateNotificationIntent()
71 intent.putExtra(MtpDocumentsService.EXTRA_DEVICE_NOTIFICATIONS, notifications); in sendUpdateNotificationIntent()
/packages/apps/Car/Notification/src/com/android/car/notification/
DPreprocessingManager.java110 public void init(Map<String, AlertEntry> notifications, RankingMap rankingMap) { in init() argument
111 mOldNotifications = notifications; in init()
114 process(/* showLessImportantNotifications = */ false, notifications, rankingMap); in init()
128 Map<String, AlertEntry> notifications, in process() argument
134 new ArrayList<>(notifications.values()), in process()
205 List<AlertEntry> notifications, in filter() argument
209 notifications.removeIf(alertEntry -> shouldFilter(alertEntry, rankingMap)); in filter()
216 notifications.removeIf(alertEntry -> Notification.CATEGORY_CALL.equals( in filter()
219 return notifications; in filter()
255 private List<AlertEntry> optimizeForDriving(List<AlertEntry> notifications) { in optimizeForDriving() argument
[all …]
DCarNotificationView.java75 mListView = findViewById(R.id.notifications); in onFinishInflate()
146 public void setNotifications(List<NotificationGroup> notifications) { in setNotifications() argument
147 mNotifications = notifications; in setNotifications()
148 mAdapter.setNotifications(notifications, /* setRecyclerViewListHeaderAndFooter= */ true); in setNotifications()
255 List<NotificationGroup> notifications = new ArrayList<>(); in getAllDismissibleNotifications() local
258 notifications.add(notificationGroup); in getAllDismissibleNotifications()
261 return notifications; in getAllDismissibleNotifications()
270 private List<View> getNotificationViews(List<NotificationGroup> notifications) { in getNotificationViews() argument
272 notifications.forEach(notificationGroup -> { in getNotificationViews()
DCarNotificationViewAdapter.java358 public void setNotifications(List<NotificationGroup> notifications, in setNotifications() argument
361 notifications.removeIf(notificationGroup -> in setNotifications()
365 List<NotificationGroup> notificationGroupList = new ArrayList<>(notifications); in setNotifications()
491 List<AlertEntry> notifications = new ArrayList(); in setNotificationsAsSeen() local
493 notifications.addAll(mNotifications.get(i).getChildNotifications()); in setNotificationsAsSeen()
495 mNotificationDataManager.setNotificationsAsSeen(notifications); in setNotificationsAsSeen()
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel() local
74 String groupKey = findGroupKey(notifications, tag, id); in cancel()
77 getGroupSummaryAndCount(notifications, groupKey); in cancel()
93 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancelAll() local
94 for (StatusBarNotification notification : notifications) { in cancelAll()
108 @NonNull StatusBarNotification[] notifications, @NonNull String tag, int id) { in findGroupKey()
109 for (StatusBarNotification notification : notifications) { in findGroupKey()
119 @NonNull StatusBarNotification[] notifications, @NonNull String groupKey) { in getGroupSummaryAndCount()
122 for (StatusBarNotification notification : notifications) { in getGroupSummaryAndCount()
DNotificationThrottler.java99 List<StatusBarNotification> notifications = getSortedMatchingNotifications(context, groupKey); in throttle() local
101 notificationManager.cancel(notifications.get(i).getTag(), notifications.get(i).getId()); in throttle()
102 throttledNotificationSet.add(notifications.get(i)); in throttle()
110 List<StatusBarNotification> notifications = new ArrayList<>(); in getSortedMatchingNotifications() local
114 notifications.add(notification); in getSortedMatchingNotifications()
118 notifications, in getSortedMatchingNotifications()
125 return notifications; in getSortedMatchingNotifications()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryPackage.java32 TreeSet<NotificationHistory.HistoricalNotification> notifications; field in NotificationHistoryPackage
39 notifications = new TreeSet<>( in NotificationHistoryPackage()
44 if (notifications.isEmpty()) { in getMostRecent()
47 return notifications.first().getPostedTimeMs(); in getMostRecent()
57 Objects.equals(notifications, that.notifications) && in equals()
64 return Objects.hash(pkgName, uid, notifications, label, icon); in hashCode()
DNotificationHistoryActivity.java152 private HistoryLoader.OnHistoryLoaderListener mOnHistoryLoaderListener = notifications -> {
154 notifications.isEmpty() ? View.GONE : View.VISIBLE);
161 for (int i = 0, notificationsSize = notifications.size(); i < notificationsSize; i++) {
162 NotificationHistoryPackage nhp = notifications.get(i);
203 nhp.notifications.size(), nhp.notifications.size()));
217 new ArrayList<>(nhp.notifications));
DNotificationSbnAdapter.java163 public void onRebuildComplete(List<StatusBarNotification> notifications) { in onRebuildComplete() argument
164 for (int i = notifications.size() - 1; i >= 0; i--) { in onRebuildComplete()
165 StatusBarNotification sbn = notifications.get(i); in onRebuildComplete()
167 notifications.remove(i); in onRebuildComplete()
170 mValues = notifications; in onRebuildComplete()
DNotificationHistoryAdapter.java128 public void onRebuildComplete(List<HistoricalNotification> notifications) { in onRebuildComplete() argument
129 mValues = notifications; in onRebuildComplete()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java78 private Map<Call, NotificationInfo> notifications = new ArrayMap<>(); field in ExternalCallNotifier
95 Assert.checkArgument(!notifications.containsKey(call)); in onExternalCallAdded()
97 notifications.put(call, info); in onExternalCallAdded()
116 Assert.checkArgument(notifications.containsKey(call)); in onExternalCallUpdated()
117 postNotification(notifications.get(call)); in onExternalCallUpdated()
133 for (NotificationInfo info : notifications.values()) { in pullExternalCall()
170 if (notifications.containsKey(info.getCall())) { in showNotifcation()
180 if (notifications.containsKey(info.getCall())) { in showNotifcation()
189 Assert.checkArgument(notifications.containsKey(call)); in dismissNotification()
193 context, NOTIFICATION_TAG, notifications.get(call).getNotificationId()); in dismissNotification()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java172 List<NotificationKeyData> notifications = getNotificationsForItem( in getDotInfoForItem() local
174 if (notifications.isEmpty()) { in getDotInfoForItem()
245 @NonNull ItemInfo info, @NonNull List<NotificationKeyData> notifications) { in getNotificationsForItem() argument
248 return notifications; in getNotificationsForItem()
251 return notifications.stream().filter((NotificationKeyData notification) -> { in getNotificationsForItem()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarControllerTest.java531 CarSystemBarButton notifications = bottomBar.findViewById(R.id.notifications); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_hasUnseen_setCorrectly() local
537 assertThat(notifications.getUnseen()).isTrue(); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_hasUnseen_setCorrectly()
545 CarSystemBarButton notifications = bottomBar.findViewById(R.id.notifications); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_noUnseen_setCorrectly() local
551 assertThat(notifications.getUnseen()).isFalse(); in testToggleAllNotificationsUnseenIndicator_bottomEnabled_noUnseen_setCorrectly()
/packages/apps/Dialer/java/com/android/dialer/logging/
Ddialer_impression.proto157 // Spam notifications shown despite throttling
162 // Spam notifications not shown due to throttling
165 // Non spam notifications shown despite throttling
170 // Non spam notifications not shown due to throttling
228 // Incoming call was rejected from the notifications
530 // notifications is very high and the system may suppress future
531 // notifications.
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBots.java50 public final NotificationsBot notifications; field in Bots
63 notifications = new NotificationsBot(device, context, TIMEOUT); in Bots()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java305 StatusBarNotification[] notifications = getActiveNotifications( in getNotificationsForKeys() local
307 return notifications == null ? Collections.emptyList() : Arrays.asList(notifications); in getNotificationsForKeys()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileDeleteUiTest.java96 bots.notifications.setNotificationAccess(getActivity(), true); in setUp()
119 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown()
DCancelFromNotificationUiTest.java95 bots.notifications.setNotificationAccess(getActivity(), true); in setUp()
120 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.kt255 val notifications: Array<StatusBarNotification> = nm.getActiveNotifications() in getFirstActiveNotification() constant
257 for (statusBarNotification in notifications) { in getFirstActiveNotification()
274 val notifications: Array<StatusBarNotification> = nm.getActiveNotifications() in getActiveGroupSummaryNotification() constant
275 for (statusBarNotification in notifications) { in getActiveGroupSummaryNotification()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DNotificationsPreferenceController.java27 import com.android.car.settings.notifications.BaseNotificationsPreferenceController;
/packages/modules/ExtServices/
DREADME.md6 components such as storage cache, autofill, textclassifier, package watchdog, notifications and
/packages/apps/Car/Settings/src/com/android/car/settings/notifications/
DBaseNotificationsPreferenceController.java17 package com.android.car.settings.notifications;
DNotificationsAppListPreferenceController.java17 package com.android.car.settings.notifications;

12