Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java212 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(7); in testSortShouldRespectCritical() local
217 notificationList.add(critical_ish); in testSortShouldRespectCritical()
218 notificationList.add(mRecordGroupGSortA); in testSortShouldRespectCritical()
219 notificationList.add(critical_notAtAll); in testSortShouldRespectCritical()
220 notificationList.add(mRecordGroupGSortB); in testSortShouldRespectCritical()
221 notificationList.add(mRecordNoGroup); in testSortShouldRespectCritical()
222 notificationList.add(mRecordNoGroupSortA); in testSortShouldRespectCritical()
223 notificationList.add(critical); in testSortShouldRespectCritical()
224 mHelper.sort(notificationList); in testSortShouldRespectCritical()
226 assertTrue(mHelper.indexOf(notificationList, critical) == 0); in testSortShouldRespectCritical()
[all …]
DZenPolicyTest.java611 assertEquals(policy.getVisualEffectNotificationList(), proto.notificationList); in assertProtoMatches()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java97 public void sort(ArrayList<NotificationRecord> notificationList) { in sort() argument
98 final int N = notificationList.size(); in sort()
101 notificationList.get(i).setGlobalSortKey(null); in sort()
105 Collections.sort(notificationList, mPreliminaryComparator); in sort()
110 final NotificationRecord record = notificationList.get(i); in sort()
121 final NotificationRecord record = notificationList.get(i); in sort()
155 Collections.sort(notificationList, mFinalComparator); in sort()
158 public int indexOf(ArrayList<NotificationRecord> notificationList, NotificationRecord target) { in indexOf() argument
159 return Collections.binarySearch(notificationList, target, mFinalComparator); in indexOf()
DNotificationManagerService.java7947 private void cancelAllNotificationsByListLocked(ArrayList<NotificationRecord> notificationList,
7952 for (int i = notificationList.size() - 1; i >= 0; --i) {
7953 NotificationRecord r = notificationList.get(i);
7977 notificationList.remove(i);
8078 private void cancelGroupChildrenByListLocked(ArrayList<NotificationRecord> notificationList,
8085 for (int i = notificationList.size() - 1; i >= 0; i--) {
8086 final NotificationRecord childR = notificationList.get(i);
8096 notificationList.remove(i);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotificationPanelLogger.java75 Notifications.NotificationList notificationList = new Notifications.NotificationList(); in toNotificationProto() local
77 return notificationList; in toNotificationProto()
100 notificationList.notifications = proto_array; in toNotificationProto()
101 return notificationList; in toNotificationProto()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java805 final int notificationList = safeInt(parser, SHOW_ATT_NOTIFICATION_LIST, in readZenPolicyXml() local
832 if (notificationList != ZenPolicy.STATE_UNSET) { in readZenPolicyXml()
833 builder.showInNotificationList(notificationList == ZenPolicy.STATE_ALLOW); in readZenPolicyXml()