Searched refs:maxNotifications (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 264 public NotificationTestManager(ArrayList<Alert> alerts, int maxNotifications) { in NotificationTestManager() argument 267 mExpectedNotifications = new NotificationInstance[maxNotifications + 1]; in NotificationTestManager() 446 int maxNotifications = 10; in testGenerateAlerts_multiple() local 450 NotificationTestManager ntm = new NotificationTestManager(at.mAlerts, maxNotifications); in testGenerateAlerts_multiple() 492 currentTime, maxNotifications); in testGenerateAlerts_multiple() 505 currentTime, maxNotifications); in testGenerateAlerts_multiple() 514 currentTime, maxNotifications); in testGenerateAlerts_multiple() 553 int maxNotifications = 6; in testGenerateAlerts_maxAlerts() local 554 NotificationTestManager ntm = new NotificationTestManager(at.mAlerts, maxNotifications); in testGenerateAlerts_maxAlerts() 564 currentTime, maxNotifications); in testGenerateAlerts_maxAlerts() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertService.java | 309 final long currentTime, final int maxNotifications) { in generateAlerts() argument 335 maxNotifications); in generateAlerts() 411 if (currentNotificationId <= maxNotifications) { in generateAlerts() 412 nm.cancelAllBetween(currentNotificationId, maxNotifications); in generateAlerts() 415 + maxNotifications); in generateAlerts() 447 ArrayList<NotificationInfo> lowPriorityEvents, int maxNotifications) { in redistributeBuckets() argument 453 if (highPriorityEvents.size() > maxNotifications) { in redistributeBuckets() 459 0, highPriorityEvents.size() - maxNotifications); in redistributeBuckets() 471 if (mediumPriorityEvents.size() + highPriorityEvents.size() > maxNotifications) { in redistributeBuckets() 472 int spaceRemaining = maxNotifications - highPriorityEvents.size(); in redistributeBuckets()
|