Home | History | Annotate | Download | only in alerts

Lines Matching defs:high

908         // Test when max notifications at high priority.
909 ArrayList<NotificationInfo> high = threeItemList;
912 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
913 assertEquals(3, high.size());
918 high = new ArrayList<NotificationInfo>();
921 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
922 assertEquals(0, high.size());
926 // Test when max notifications at high and medium priority
927 high = new ArrayList<NotificationInfo>(threeItemList);
929 medium.add(high.remove(1));
931 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
932 assertEquals(2, high.size());
939 ArrayList<NotificationInfo> high = new ArrayList<NotificationInfo>();
942 high.add(createNotificationInfo(5));
943 high.add(createNotificationInfo(4));
944 high.add(createNotificationInfo(3));
945 high.add(createNotificationInfo(2));
946 high.add(createNotificationInfo(1));
950 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
952 // Verify some high priority were kicked out.
953 assertEquals(3, high.size());
954 assertEquals(3, high.get(0).eventId);
955 assertEquals(2, high.get(1).eventId);
956 assertEquals(1, high.get(2).eventId);
969 ArrayList<NotificationInfo> high = new ArrayList<NotificationInfo>();
972 high.add(createNotificationInfo(5));
973 high.add(createNotificationInfo(4));
980 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
982 // Verify high priority untouched.
983 assertEquals(2, high.size());
984 assertEquals(5, high.get(0).eventId);
985 assertEquals(4, high.get(1).eventId);
1000 ArrayList<NotificationInfo> high = new ArrayList<NotificationInfo>();
1003 high.add(createNotificationInfo(8));
1004 high.add(createNotificationInfo(7));
1005 high.add(createNotificationInfo(6));
1006 high.add(createNotificationInfo(5));
1007 high.add(createNotificationInfo(4));
1014 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
1016 // Verify high priority.
1017 assertEquals(3, high.size());
1018 assertEquals(6, high.get(0).eventId);
1019 assertEquals(5, high.get(1).eventId);
1020 assertEquals(4, high.get(2).eventId);