Searched refs:extender (Results 1 – 10 of 10) sorted by relevance
177 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() argument257 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 …]
200 void addNotificationLifetimeExtender(NotifLifetimeExtender extender) { in addNotificationLifetimeExtender() argument203 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() argument529 if (!entry.mLifetimeExtenders.remove(extender)) { in onEndLifetimeExtension()533 extender.getName(), in onEndLifetimeExtension()534 extender))); in onEndLifetimeExtension()539 extender, in onEndLifetimeExtension() local[all …]
104 public void addNotificationLifetimeExtender(NotifLifetimeExtender extender) { in addNotificationLifetimeExtender() argument105 mNotifCollection.addNotificationLifetimeExtender(extender); in addNotificationLifetimeExtender()
385 NotificationLifetimeExtender extender = mock(NotificationLifetimeExtender.class); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved() local386 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() local405 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 …]
157 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()
58 void onEndLifetimeExtension(NotifLifetimeExtender extender, NotificationEntry entry); in onEndLifetimeExtension() argument
100 for (NotificationLifetimeExtender extender : mRemoteInputManager.getLifetimeExtenders()) { in setUp()101 extender.setCallback( in setUp()
1773 public Builder extend(Extender extender) { in extend() argument1774 extender.extend(this); in extend()4671 public Builder extend(Extender extender) { in extend() argument4672 extender.extend(this); in extend()
606 Notification.TvExtender extender) { in generateNotificationRecord() argument613 if (extender != null) { in generateNotificationRecord()614 nb.extend(extender); in generateNotificationRecord()
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...