Searched refs:extender (Results 1 – 5 of 5) sorted by relevance
162 for (NotificationLifetimeExtender extender : extenders) { in addNotificationLifetimeExtenders()163 addNotificationLifetimeExtender(extender); in addNotificationLifetimeExtenders()168 public void addNotificationLifetimeExtender(NotificationLifetimeExtender extender) { in addNotificationLifetimeExtender() argument169 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 …]
462 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved() local463 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() local482 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 …]
89 for (NotificationLifetimeExtender extender : mRemoteInputManager.getLifetimeExtenders()) { in setUp()90 extender.setCallback( in setUp()
470 Notification.TvExtender extender) { in generateNotificationRecord() argument471 return generateNotificationRecord(channel, extender, false /* isBubble */); in generateNotificationRecord()475 Notification.TvExtender extender, boolean isBubble) { in generateNotificationRecord() argument482 if (extender != null) { in generateNotificationRecord()483 nb.extend(extender); in generateNotificationRecord()
1738 public Builder extend(Extender extender) { in extend() argument1739 extender.extend(this); in extend()4541 public Builder extend(Extender extender) { in extend() argument4542 extender.extend(this); in extend()