Searched refs:getHistoricalNotification (Results 1 – 5 of 5) sorted by relevance
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationHistoryFilterTest.java | 37 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification() method in NotificationHistoryFilterTest 40 private HistoricalNotification getHistoricalNotification(String pkg, int index) { in getHistoricalNotification() method in NotificationHistoryFilterTest 41 return getHistoricalNotification(pkg, "channelId" + index, index); in getHistoricalNotification() 88 history.addNotificationToWrite(getHistoricalNotification(1)); in testMatchesCountFilter() 90 history.addNotificationToWrite(getHistoricalNotification(2)); in testMatchesCountFilter() 92 history.addNotificationToWrite(getHistoricalNotification(3)); in testMatchesCountFilter() 103 history.addNotificationToWrite(getHistoricalNotification(1)); in testMatchesCountFilter_noCountFilter() 113 HistoricalNotification hnMatches = getHistoricalNotification("pkg", 1); in testMatchesPackageAndChannelFilter_pkgOnly() 115 HistoricalNotification hnMatches2 = getHistoricalNotification("pkg", 2); in testMatchesPackageAndChannelFilter_pkgOnly() 118 HistoricalNotification hnNoMatch = getHistoricalNotification("pkg2", 2); in testMatchesPackageAndChannelFilter_pkgOnly() [all …]
|
H A D | NotificationHistoryProtoHelperTest.java | 47 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification() method in NotificationHistoryProtoHelperTest 48 return getHistoricalNotification("package" + index, index); in getHistoricalNotification() 87 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications() 114 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool() 142 getHistoricalNotification((i % 2 == 0) ? "pkgEven" : "pkgOdd", i); in testReadNotificationsWithPkgFilter() 184 HistoricalNotification n = getHistoricalNotification(i); in testReadNotificationsWithNumberFilter() 225 HistoricalNotification old1 = getHistoricalNotification(40); in testReadNotificationsWithNumberFilter_preExistingNotifs() 229 HistoricalNotification old2 = getHistoricalNotification(50); in testReadNotificationsWithNumberFilter_preExistingNotifs() 236 HistoricalNotification n = getHistoricalNotification(i); in testReadNotificationsWithNumberFilter_preExistingNotifs() 277 HistoricalNotification n = getHistoricalNotification(i); in testReadMergeIntoExistingHistory() [all …]
|
H A D | NotificationHistoryDatabaseTest.java | 68 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification() method in NotificationHistoryDatabaseTest 69 return getHistoricalNotification("package" + index, index); in getHistoricalNotification() 72 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification() method in NotificationHistoryDatabaseTest 196 HistoricalNotification n = getHistoricalNotification(1); in testAddNotification() 197 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification() 211 HistoricalNotification n = getHistoricalNotification(1); in testAddNotification_newestFirst() 212 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification_newestFirst() 239 HistoricalNotification hn = getHistoricalNotification(1); in testReadNotificationHistory_readsBuffer()
|
H A D | NotificationHistoryManagerTest.java | 66 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification() method in NotificationHistoryManagerTest 446 HistoricalNotification hn = getHistoricalNotification("pkg", 1); in testAddNotification_userLocked_noCrash() 453 HistoricalNotification hn = getHistoricalNotification("pkg", 1); in testAddNotification_historyDisabled() 467 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testAddNotification() 468 HistoricalNotification hnAll = getHistoricalNotification("pkg", MIN_SECONDARY_USER_ID); in testAddNotification() 488 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testReadNotificationHistory() 489 HistoricalNotification hnAll = getHistoricalNotification("pkg", MIN_SECONDARY_USER_ID); in testReadNotificationHistory() 519 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testReadNotificationHistory_historyDisabled()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | NotificationHistoryTest.java | 40 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification() method in NotificationHistoryTest 41 return getHistoricalNotification("package" + index, index); in getHistoricalNotification() 115 HistoricalNotification n = getHistoricalNotification(0); in testAddNotificationToWrite() 116 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationToWrite() 130 HistoricalNotification n = getHistoricalNotification(3); in testAddNotificationsToWrite() 131 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationsToWrite() 132 HistoricalNotification n5 = getHistoricalNotification(0); in testAddNotificationsToWrite() 138 HistoricalNotification n3 = getHistoricalNotification(4); in testAddNotificationsToWrite() 139 HistoricalNotification n4 = getHistoricalNotification(2); in testAddNotificationsToWrite() 163 HistoricalNotification n = getHistoricalNotification(i); in testPoolStringsFromNotifications() [all …]
|