Home
last modified time | relevance | path

Searched refs:extender (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java162 for (NotificationLifetimeExtender extender : extenders) { in addNotificationLifetimeExtenders()
163 addNotificationLifetimeExtender(extender); in addNotificationLifetimeExtenders()
168 public void addNotificationLifetimeExtender(NotificationLifetimeExtender extender) { in addNotificationLifetimeExtender() argument
169 mNotificationLifetimeExtenders.add(extender); in addNotificationLifetimeExtender()
170 extender.setCallback(key -> removeNotification(key, null, UNDEFINED_DISMISS_REASON)); in addNotificationLifetimeExtender()
288 for (NotificationLifetimeExtender extender : mNotificationLifetimeExtenders) { in removeNotificationInternal()
289 if (extender.shouldExtendLifetimeForPendingNotification(pendingEntry)) { in removeNotificationInternal()
290 extendLifetime(pendingEntry, extender); in removeNotificationInternal()
306 for (NotificationLifetimeExtender extender : mNotificationLifetimeExtenders) { in removeNotificationInternal()
307 if (extender.shouldExtendLifetime(entry)) { in removeNotificationInternal()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java462 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved() local
463 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
464 mEntryManager.addNotificationLifetimeExtender(extender); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
470 verify(extender).setShouldManageLifetime(mEntry, true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
481 final FakeNotificationLifetimeExtender extender = new FakeNotificationLifetimeExtender(); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved() local
482 mEntryManager.addNotificationLifetimeExtender(extender); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
484 assertTrue(extender.isManaging(mEntry.key)); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
487 extender.setExtendLifetimes(false); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
488 extender.getCallback().onSafeToRemove(mEntry.key); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
500 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_whenNotificationUpdatedRetainersAreCanceled() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java89 for (NotificationLifetimeExtender extender : mRemoteInputManager.getLifetimeExtenders()) { in setUp()
90 extender.setCallback( in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java470 Notification.TvExtender extender) { in generateNotificationRecord() argument
471 return generateNotificationRecord(channel, extender, false /* isBubble */); in generateNotificationRecord()
475 Notification.TvExtender extender, boolean isBubble) { in generateNotificationRecord() argument
482 if (extender != null) { in generateNotificationRecord()
483 nb.extend(extender); in generateNotificationRecord()
/frameworks/base/core/java/android/app/
DNotification.java1738 public Builder extend(Extender extender) { in extend() argument
1739 extender.extend(this); in extend()
4541 public Builder extend(Extender extender) { in extend() argument
4542 extender.extend(this); in extend()