Home
last modified time | relevance | path

Searched refs:getNotifications (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DCtsNotificationListenerServiceUtils.kt71 val notifications = getNotifications(packageName) in <lambda>()
77 { Assert.assertTrue(getNotifications(packageName).isEmpty()) }, in <lambda>()
85 return getNotifications(packageName).firstOrNull { it.id == notificationId } in <lambda>()
89 fun getNotifications(packageName: String): List<StatusBarNotification> { in <lambda>() method
113 val notifications: List<StatusBarNotification> = getNotifications(pkg) in <lambda>()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationViewController.java97 mPreprocessingManager.init(mCarNotificationListener.getNotifications(), in resetNotifications()
102 + mCarNotificationListener.getNotifications()); in resetNotifications()
106 mCarNotificationListener.getNotifications(), in resetNotifications()
DCarNotificationListener.java237 Map<String, AlertEntry> getNotifications() { in getNotifications() method in CarNotificationListener
DCarNotificationView.java186 List<NotificationGroup> getNotifications() { in getNotifications() method in CarNotificationView
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationListenerTest.java155 assertThat(mCarNotificationListener.getNotifications().containsKey( in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications()
178 assertThat(mCarNotificationListener.getNotifications().containsKey( in onNotificationPosted_isHun_isForAllUsers_doesNotAddItToActiveNotifications()
212 assertThat(mCarNotificationListener.getNotifications().containsKey( in onNotificationPosted_isNotHun_isForCurrentUser_addsItToActiveNotifications()
249 assertThat(mCarNotificationListener.getNotifications().containsKey( in onNotificationPosted_isNotHun_isForAllUsers_addsItToActiveNotifications()
347 mCarNotificationListener.getNotifications().put(alertEntry.getKey(), alertEntry); in onNotificationRemoved_notificationPreviouslyAdded_removesNotification()
353 assertThat(mCarNotificationListener.getNotifications().containsKey(alertEntry.getKey())) in onNotificationRemoved_notificationPreviouslyAdded_removesNotification()
DCarNotificationViewTest.java243 assertThat(mCarNotificationView.getNotifications()).isEqualTo(notifications); in removeNotification_notificationNotRemoved()
257 assertThat(mCarNotificationView.getNotifications()).isEqualTo(List.of(notDismissible)); in removeNotification_notificationRemoved_wholeGroupRemoved()
271 assertThat(mCarNotificationView.getNotifications().toString()) in removeNotification_notificationRemoved_partOfGroupRemoved()