Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java313 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(3); in testFindAfterRankingWithASplitGroup() local
314 notificationList.add(mRecordGroupGSortA); in testFindAfterRankingWithASplitGroup()
315 notificationList.add(mRecordGroupGSortB); in testFindAfterRankingWithASplitGroup()
316 notificationList.add(mRecordNoGroup); in testFindAfterRankingWithASplitGroup()
317 notificationList.add(mRecordNoGroupSortA); in testFindAfterRankingWithASplitGroup()
318 mHelper.sort(notificationList); in testFindAfterRankingWithASplitGroup()
319 assertTrue(mHelper.indexOf(notificationList, mRecordGroupGSortA) >= 0); in testFindAfterRankingWithASplitGroup()
320 assertTrue(mHelper.indexOf(notificationList, mRecordGroupGSortB) >= 0); in testFindAfterRankingWithASplitGroup()
321 assertTrue(mHelper.indexOf(notificationList, mRecordNoGroup) >= 0); in testFindAfterRankingWithASplitGroup()
322 assertTrue(mHelper.indexOf(notificationList, mRecordNoGroupSortA) >= 0); in testFindAfterRankingWithASplitGroup()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java460 public void sort(ArrayList<NotificationRecord> notificationList) { in sort() argument
461 final int N = notificationList.size(); in sort()
464 notificationList.get(i).setGlobalSortKey(null); in sort()
468 Collections.sort(notificationList, mPreliminaryComparator); in sort()
473 final NotificationRecord record = notificationList.get(i); in sort()
484 final NotificationRecord record = notificationList.get(i); in sort()
517 Collections.sort(notificationList, mFinalComparator); in sort()
520 public int indexOf(ArrayList<NotificationRecord> notificationList, NotificationRecord target) { in indexOf() argument
521 return Collections.binarySearch(notificationList, target, mFinalComparator); in indexOf()