Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java128 assertThat(history.getNotificationsToWrite().size()).isEqualTo(2); in testAddNotificationToWrite()
129 assertThat(history.getNotificationsToWrite().get(0)).isSameInstanceAs(n2); in testAddNotificationToWrite()
130 assertThat(history.getNotificationsToWrite().get(1)).isSameInstanceAs(n); in testAddNotificationToWrite()
152 assertThat(history.getNotificationsToWrite().size()).isEqualTo(5); in testAddNotificationsToWrite()
153 assertThat(history.getNotificationsToWrite().get(0)).isSameInstanceAs(n3); in testAddNotificationsToWrite()
154 assertThat(history.getNotificationsToWrite().get(1)).isSameInstanceAs(n); in testAddNotificationsToWrite()
155 assertThat(history.getNotificationsToWrite().get(2)).isSameInstanceAs(n4); in testAddNotificationsToWrite()
156 assertThat(history.getNotificationsToWrite().get(3)).isSameInstanceAs(n2); in testAddNotificationsToWrite()
157 assertThat(history.getNotificationsToWrite().get(4)).isSameInstanceAs(n5); in testAddNotificationsToWrite()
250 assertThat(history.getNotificationsToWrite().size()).isEqualTo(10); in testRemoveNotificationsFromWrite()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryProtoHelperTest.java103 assertThat(actualHistory.getNotificationsToWrite()) in testReadWriteNotifications()
129 assertThat(actualHistory.getNotificationsToWrite()) in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
170 assertThat(actualHistory.getNotificationsToWrite()) in testReadNotificationsWithPkgFilter()
212 assertThat(actualHistory.getNotificationsToWrite()) in testReadNotificationsWithNumberFilter()
264 assertThat(actualHistory.getNotificationsToWrite()) in testReadNotificationsWithNumberFilter_preExistingNotifs()
313 assertThat(actualHistory.getNotificationsToWrite()) in testReadMergeIntoExistingHistory()
DNotificationHistoryManagerTest.java533 when(nhSystem.getNotificationsToWrite()).thenReturn(nhSystemList); in testReadNotificationHistory()
541 when(nhAll.getNotificationsToWrite()).thenReturn(nhAllList); in testReadNotificationHistory()
547 assertThat(nh.getNotificationsToWrite()).contains(hnSystem); in testReadNotificationHistory()
548 assertThat(nh.getNotificationsToWrite()).contains(hnAll); in testReadNotificationHistory()
559 when(nhSystem.getNotificationsToWrite()).thenReturn(nhSystemList); in testReadNotificationHistory_historyDisabled()
570 assertThat(nh.getNotificationsToWrite()).isEmpty(); in testReadNotificationHistory_historyDisabled()
577 assertThat(nh.getNotificationsToWrite()).isEmpty(); in testReadFilteredNotificationHistory_userLocked()
589 assertThat(nh.getNotificationsToWrite()).isEmpty(); in testReadFilteredNotificationHistory_historyDisabled()
DNotificationHistoryDatabaseTest.java185 assertThat(mDataBase.mBuffer.getNotificationsToWrite()).contains(n); in testAddNotification()
190 assertThat(mDataBase.mBuffer.getNotificationsToWrite()).contains(n2); in testAddNotification()
204 assertThat(mDataBase.mBuffer.getNotificationsToWrite().get(0)).isEqualTo(n2); in testAddNotification_newestFirst()
205 assertThat(mDataBase.mBuffer.getNotificationsToWrite().get(1)).isEqualTo(n); in testAddNotification_newestFirst()
229 assertThat(nh.getNotificationsToWrite()).contains(hn); in testReadNotificationHistory_readsBuffer()
390 when(nh.getNotificationsToWrite()).thenReturn(new ArrayList<>()); in testWriteBufferRunnable()
/frameworks/base/core/java/android/app/
DNotificationHistory.java345 for (HistoricalNotification hn : notificationHistory.getNotificationsToWrite()) { in addNotificationsToWrite()
438 public @NonNull List<HistoricalNotification> getNotificationsToWrite() { in getNotificationsToWrite() method in NotificationHistory
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryProtoHelper.java334 List<HistoricalNotification> notificationsToWrite = notifications.getNotificationsToWrite(); in write()