Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java177 for (NotificationLifetimeExtender extender : mNotificationLifetimeExtenders) { in dump()
178 pw.println(" " + extender.getClass().getSimpleName()); in dump()
250 for (NotificationLifetimeExtender extender : extenders) { in addNotificationLifetimeExtenders()
251 addNotificationLifetimeExtender(extender); in addNotificationLifetimeExtenders()
256 public void addNotificationLifetimeExtender(NotificationLifetimeExtender extender) { in addNotificationLifetimeExtender() argument
257 mNotificationLifetimeExtenders.add(extender); in addNotificationLifetimeExtender()
258 extender.setCallback(key -> removeNotification(key, mLatestRankingMap, in addNotificationLifetimeExtender()
450 for (NotificationLifetimeExtender extender : mNotificationLifetimeExtenders) { in removeNotificationInternal()
451 if (extender.shouldExtendLifetimeForPendingNotification(pendingEntry)) { in removeNotificationInternal()
452 extendLifetime(pendingEntry, extender); in removeNotificationInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java200 void addNotificationLifetimeExtender(NotifLifetimeExtender extender) { in addNotificationLifetimeExtender() argument
203 if (mLifetimeExtenders.contains(extender)) { in addNotificationLifetimeExtender()
204 throw new IllegalArgumentException("Extender " + extender + " already added."); in addNotificationLifetimeExtender()
206 mLifetimeExtenders.add(extender); in addNotificationLifetimeExtender()
207 extender.setCallback(this::onEndLifetimeExtension); in addNotificationLifetimeExtender()
522 private void onEndLifetimeExtension(NotifLifetimeExtender extender, NotificationEntry entry) { in onEndLifetimeExtension() argument
529 if (!entry.mLifetimeExtenders.remove(extender)) { in onEndLifetimeExtension()
533 extender.getName(), in onEndLifetimeExtension()
534 extender))); in onEndLifetimeExtension()
539 extender, in onEndLifetimeExtension() local
[all …]
DNotifPipeline.java104 public void addNotificationLifetimeExtender(NotifLifetimeExtender extender) { in addNotificationLifetimeExtender() argument
105 mNotifCollection.addNotificationLifetimeExtender(extender); in addNotificationLifetimeExtender()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java385 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved() local
386 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
387 mEntryManager.addNotificationLifetimeExtender(extender); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
393 verify(extender).setShouldManageLifetime(mEntry, true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
404 final FakeNotificationLifetimeExtender extender = new FakeNotificationLifetimeExtender(); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved() local
405 mEntryManager.addNotificationLifetimeExtender(extender); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
407 assertTrue(extender.isManaging(mEntry.getKey())); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
410 extender.setExtendLifetimes(false); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
411 extender.getCallback().onSafeToRemove(mEntry.getKey()); in testLifetimeExtenders_whenRetentionEndsNotificationIsRemoved()
423 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_whenNotificationUpdatedRetainersAreCanceled() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DNotifCollectionLogger.kt157 fun logLifetimeExtended(key: String, extender: NotifLifetimeExtender) { in logLifetimeExtended()
160 str2 = extender.name in logLifetimeExtended()
168 extender: NotifLifetimeExtender, in logLifetimeExtensionEnded()
173 str2 = extender.name in logLifetimeExtensionEnded()
DNotifLifetimeExtender.java58 void onEndLifetimeExtension(NotifLifetimeExtender extender, NotificationEntry entry); in onEndLifetimeExtension() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java100 for (NotificationLifetimeExtender extender : mRemoteInputManager.getLifetimeExtenders()) { in setUp()
101 extender.setCallback( in setUp()
/frameworks/base/core/java/android/app/
DNotification.java1773 public Builder extend(Extender extender) { in extend() argument
1774 extender.extend(this); in extend()
4671 public Builder extend(Extender extender) { in extend() argument
4672 extender.extend(this); in extend()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java606 Notification.TvExtender extender) { in generateNotificationRecord() argument
613 if (extender != null) { in generateNotificationRecord()
614 nb.extend(extender); in generateNotificationRecord()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...