Home | History | Annotate | Download | only in alerts

Lines Matching defs:medium

910         ArrayList<NotificationInfo> medium = new ArrayList<NotificationInfo>();
912 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
914 assertEquals(0, medium.size());
917 // Test when max notifications at medium priority.
919 medium = threeItemList;
921 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
923 assertEquals(3, medium.size());
926 // Test when max notifications at high and medium priority
928 medium = new ArrayList<NotificationInfo>();
929 medium.add(high.remove(1));
931 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
933 assertEquals(1, medium.size());
940 ArrayList<NotificationInfo> medium = new ArrayList<NotificationInfo>();
950 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
958 // Verify medium priority untouched.
959 assertEquals(0, medium.size());
970 ArrayList<NotificationInfo> medium = new ArrayList<NotificationInfo>();
974 medium.add(createNotificationInfo(3));
975 medium.add(createNotificationInfo(2));
976 medium.add(createNotificationInfo(1));
980 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
987 // Verify some medium priority were kicked out (the ones near the end of the
989 assertEquals(1, medium.size());
990 assertEquals(3, medium.get(0).eventId);
1001 ArrayList<NotificationInfo> medium = new ArrayList<NotificationInfo>();
1008 medium.add(createNotificationInfo(3));
1009 medium.add(createNotificationInfo(2));
1010 medium.add(createNotificationInfo(1));
1014 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
1022 // Verify some medium priority.
1023 assertEquals(0, medium.size());