Home
last modified time | relevance | path

Searched refs:shouldExtendLifetime (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceNotificationListenerTest.java78 assertTrue(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_should_foreground()
87 assertFalse(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_shouldNot_foreground()
96 assertFalse(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_shouldNot_notForeground()
108 assertFalse(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_shouldNot_interruped()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifCollectionTest.java413 verify(mExtender1, never()).shouldExtendLifetime(eq(entry1), anyInt()); in testDismissedNotificationsCannotBeLifetimeExtended()
464 mExtender1.shouldExtendLifetime = true; in testDismissingLifetimeExtendedSummaryDoesNotDismissChildren()
825 mExtender1.shouldExtendLifetime = true; in testLifetimeExtendersAreQueriedWhenNotifRemoved()
826 mExtender2.shouldExtendLifetime = true; in testLifetimeExtendersAreQueriedWhenNotifRemoved()
840 verify(mExtender1).shouldExtendLifetime(entry2, REASON_CLICK); in testLifetimeExtendersAreQueriedWhenNotifRemoved()
841 verify(mExtender2).shouldExtendLifetime(entry2, REASON_CLICK); in testLifetimeExtendersAreQueriedWhenNotifRemoved()
842 verify(mExtender3).shouldExtendLifetime(entry2, REASON_CLICK); in testLifetimeExtendersAreQueriedWhenNotifRemoved()
854 mExtender2.shouldExtendLifetime = true; in testWhenLastLifetimeExtenderExpiresAllAreReQueried()
870 mExtender1.shouldExtendLifetime = true; in testWhenLastLifetimeExtenderExpiresAllAreReQueried()
871 mExtender2.shouldExtendLifetime = false; in testWhenLastLifetimeExtenderExpiresAllAreReQueried()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHeadsUpCoordinatorTest.java145 assertTrue(mNotifLifetimeExtender.shouldExtendLifetime(mEntry, /* cancellationReason */ 0)); in testLifetimeExtendsCurrentHUN()
146 assertFalse(mNotifLifetimeExtender.shouldExtendLifetime( in testLifetimeExtendsCurrentHUN()
154 assertTrue(mNotifLifetimeExtender.shouldExtendLifetime( in testLifetimeExtensionEndsOnNewHUN()
169 assertTrue(mNotifLifetimeExtender.shouldExtendLifetime( in testLifetimeExtensionEndsOnNoHUNs()
DAppOpsCoordinatorTest.java181 .shouldExtendLifetime(mEntry, NotificationListenerService.REASON_CLICK)); in extendLifetimeText_notForeground()
198 .shouldExtendLifetime(mEntry, NotificationListenerService.REASON_CLICK)); in extendLifetimeText_foregroundNotifRecentlyPosted()
216 .shouldExtendLifetime(mEntry, NotificationListenerService.REASON_CLICK)); in extendLifetimeText_foregroundNotifOld()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceLifetimeExtender.java63 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in ForegroundServiceLifetimeExtender
83 return shouldExtendLifetime(entry); in shouldExtendLifetimeForPendingNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java118 assertTrue(mRemoteInputActiveExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_remoteInputActive()
126 assertTrue(mRemoteInputHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_isSpinning()
134 assertTrue(mRemoteInputHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_recentRemoteInput()
142 assertTrue(mSmartReplyHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_smartReplySending()
DAlertingNotificationManagerTest.java213 assertTrue(mAlertingNotificationManager.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLifetimeExtender.java27 boolean shouldExtendLifetime(@NonNull NotificationEntry entry); in shouldExtendLifetime() method
DNotificationRemoteInputManager.java664 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationRemoteInputManager.RemoteInputHistoryExtender
713 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationRemoteInputManager.SmartReplyHistoryExtender
751 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationRemoteInputManager.RemoteInputActiveExtender
DAlertingNotificationManager.java253 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in AlertingNotificationManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DNotifLifetimeExtender.java46 boolean shouldExtendLifetime(NotificationEntry entry, @CancellationReason int reason); in shouldExtendLifetime() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java386 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
424 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_whenNotificationUpdatedRetainersAreCanceled()
443 when(extender1.shouldExtendLifetime(mEntry)).thenReturn(false); in testLifetimeExtenders_whenNewExtenderTakesPrecedenceOldExtenderIsCanceled()
445 when(extender2.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_whenNewExtenderTakesPrecedenceOldExtenderIsCanceled()
455 when(extender1.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_whenNewExtenderTakesPrecedenceOldExtenderIsCanceled()
612 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationEntryManagerTest.FakeNotificationLifetimeExtender
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpManagerPhone.java329 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in HeadsUpManagerPhone
333 return mVisualStabilityManager.isReorderingAllowed() && super.shouldExtendLifetime(entry); in shouldExtendLifetime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHeadsUpCoordinator.java172 public boolean shouldExtendLifetime(NotificationEntry entry, int reason) {
DAppOpsCoordinator.java141 public boolean shouldExtendLifetime(NotificationEntry entry, int reason) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java447 assertTrue(mGutsManager.shouldExtendLifetime(entry)); in testShouldExtendLifetime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java656 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in NotificationGutsManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java470 if (extender.shouldExtendLifetime(entry)) { in removeNotificationInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java566 if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { in updateLifetimeExtension()