Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java661 final ArrayList<ToastRecord> mToastQueue = new ArrayList<>(); field in NotificationManagerService
3567 synchronized (mToastQueue) {
3576 record = mToastQueue.get(index);
3582 final int N = mToastQueue.size();
3584 final ToastRecord r = mToastQueue.get(i);
3602 int systemToastInsertIdx = mToastQueue.size();
3606 if (systemToastInsertIdx < mToastQueue.size()) {
3608 mToastQueue.add(index, record);
3610 mToastQueue.add(record);
3611 index = mToastQueue.size() - 1;
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java1366 assertWithMessage("toast queue").that(mService.mToastQueue).isEmpty(); in allowTestPackageToToast()
8071 assertEquals(0, mService.mToastQueue.size()); in testAllowForegroundCustomToasts()
8088 assertEquals(1, mService.mToastQueue.size()); in testAllowForegroundCustomToasts()
8095 assertEquals(0, mService.mToastQueue.size()); in testDisallowBackgroundCustomToasts()
8109 assertEquals(0, mService.mToastQueue.size()); in testDisallowBackgroundCustomToasts()
8116 assertEquals(0, mService.mToastQueue.size()); in testDontCallShowToastAgainOnTheSameCustomToast()
8146 assertEquals(0, mService.mToastQueue.size()); in testToastRateLimiterWontPreventShowCallForCustomToastWhenInForeground()
8170 assertEquals(0, mService.mToastQueue.size()); in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground()
8191 assertEquals(2, mService.mToastQueue.size()); // Both toasts enqueued. in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground()
8198 assertEquals(0, mService.mToastQueue.size()); // Both toasts processed. in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground()
[all …]