Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java158 for (NotificationLifetimeExtender extender : extenders) { in addNotificationLifetimeExtenders()
159 addNotificationLifetimeExtender(extender); in addNotificationLifetimeExtenders()
164 public void addNotificationLifetimeExtender(NotificationLifetimeExtender extender) { in addNotificationLifetimeExtender() argument
165 mNotificationLifetimeExtenders.add(extender); in addNotificationLifetimeExtender()
166 extender.setCallback(key -> removeNotification(key, mLatestRankingMap, in addNotificationLifetimeExtender()
289 for (NotificationLifetimeExtender extender : mNotificationLifetimeExtenders) { in removeNotificationInternal()
290 if (extender.shouldExtendLifetime(entry)) { in removeNotificationInternal()
292 extendLifetime(entry, extender); in removeNotificationInternal()
513 private void extendLifetime(NotificationEntry entry, NotificationLifetimeExtender extender) { in extendLifetime() argument
515 if (activeExtender != null && activeExtender != extender) { in extendLifetime()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java459 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved() local
460 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
461 mEntryManager.addNotificationLifetimeExtender(extender); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
467 verify(extender).setShouldManageLifetime(mEntry, true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
478 final FakeNotificationLifetimeExtender extender = new FakeNotificationLifetimeExtender(); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved() local
479 mEntryManager.addNotificationLifetimeExtender(extender); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
481 assertTrue(extender.isManaging(mEntry.key)); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
484 extender.setExtendLifetimes(false); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
485 extender.getCallback().onSafeToRemove(mEntry.key); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
497 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_whenNotificationUpdatedRetainersAreCanceled() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java84 for (NotificationLifetimeExtender extender : mRemoteInputManager.getLifetimeExtenders()) { in setUp()
85 extender.setCallback( in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java460 Notification.TvExtender extender) { in generateNotificationRecord() argument
461 return generateNotificationRecord(channel, extender, false /* isBubble */); in generateNotificationRecord()
465 Notification.TvExtender extender, boolean isBubble) { in generateNotificationRecord() argument
472 if (extender != null) { in generateNotificationRecord()
473 nb.extend(extender); in generateNotificationRecord()
/frameworks/base/core/java/android/app/
DNotification.java1731 public Builder extend(Extender extender) { in extend() argument
1732 extender.extend(this); in extend()
4538 public Builder extend(Extender extender) { in extend() argument
4539 extender.extend(this); in extend()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...