Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DGutsCoordinatorTest.kt78 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isFalse()
80 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isTrue()
83 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isFalse()
88 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isFalse()
90 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isTrue()
92 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isTrue()
95 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isFalse()
103 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isTrue()
106 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry1, 0)).isTrue()
107 assertThat(notifLifetimeExtender.shouldExtendLifetime(entry2, 0)).isTrue()
[all …]
H A DRemoteInputCoordinatorTest.kt104 assertThat(remoteInputActiveExtender.shouldExtendLifetime(entry1, 0)).isTrue()
105 assertThat(remoteInputHistoryExtender.shouldExtendLifetime(entry1, 0)).isFalse()
106 assertThat(smartReplyHistoryExtender.shouldExtendLifetime(entry1, 0)).isFalse()
113 assertThat(remoteInputActiveExtender.shouldExtendLifetime(entry1, 0)).isFalse()
114 assertThat(remoteInputHistoryExtender.shouldExtendLifetime(entry1, 0)).isTrue()
115 assertThat(smartReplyHistoryExtender.shouldExtendLifetime(entry1, 0)).isFalse()
122 assertThat(remoteInputActiveExtender.shouldExtendLifetime(entry1, 0)).isFalse()
123 assertThat(remoteInputHistoryExtender.shouldExtendLifetime(entry1, 0)).isFalse()
124 assertThat(smartReplyHistoryExtender.shouldExtendLifetime(entry1, 0)).isTrue()
139 assertThat(remoteInputActiveExtender.shouldExtendLifetime(entry1, 0)).isTrue()
H A DHeadsUpCoordinatorTest.java144 assertTrue(mNotifLifetimeExtender.shouldExtendLifetime(mEntry, /* cancellationReason */ 0)); in testLifetimeExtendsCurrentHUN()
145 assertFalse(mNotifLifetimeExtender.shouldExtendLifetime( in testLifetimeExtendsCurrentHUN()
153 assertTrue(mNotifLifetimeExtender.shouldExtendLifetime( in testLifetimeExtensionEndsOnNewHUN()
168 assertTrue(mNotifLifetimeExtender.shouldExtendLifetime( in testLifetimeExtensionEndsOnNoHUNs()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/notifcollection/
H A DSelfTrackingLifetimeExtenderTest.kt80 assertThat(extender.shouldExtendLifetime(entry1, 0)).isFalse()
89 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
111 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
122 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
145 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
149 assertThat(extender.shouldExtendLifetime(entry2, 0)).isTrue()
163 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
167 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
177 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
191 assertThat(extender.shouldExtendLifetime(entry1, 0)).isTrue()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
H A DNotifCollectionTest.java469 mExtender1.shouldExtendLifetime = true; in testRetractingLifetimeExtendedSummaryDoesNotDismissChildren()
490 mExtender1.shouldExtendLifetime = true; in testNMSReportsUserDismissalAlwaysRemovesNotif()
846 mExtender1.shouldExtendLifetime = true; in testLifetimeExtendersAreQueriedWhenNotifRemoved()
847 mExtender2.shouldExtendLifetime = true; in testLifetimeExtendersAreQueriedWhenNotifRemoved()
875 mExtender2.shouldExtendLifetime = true; in testWhenLastLifetimeExtenderExpiresAllAreReQueried()
891 mExtender1.shouldExtendLifetime = true; in testWhenLastLifetimeExtenderExpiresAllAreReQueried()
893 mExtender3.shouldExtendLifetime = true; in testWhenLastLifetimeExtenderExpiresAllAreReQueried()
911 mExtender1.shouldExtendLifetime = true; in testExtendersAreNotReQueriedUntilFinalActiveExtenderExpires()
912 mExtender2.shouldExtendLifetime = true; in testExtendersAreNotReQueriedUntilFinalActiveExtenderExpires()
1503 public boolean shouldExtendLifetime( in shouldExtendLifetime() method in NotifCollectionTest.RecordingLifetimeExtender
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationRemoteInputManagerTest.java144 assertTrue(mRemoteInputActiveExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_remoteInputActive()
153 assertTrue(mRemoteInputHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_isSpinning()
162 assertTrue(mRemoteInputHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_recentRemoteInput()
171 assertTrue(mSmartReplyHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_smartReplySending()
H A DAlertingNotificationManagerTest.java217 assertTrue(mAlertingNotificationManager.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
H A DNotificationEntryManagerTest.java437 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_ifNotificationIsRetainedItIsntRemoved()
475 when(extender.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_whenNotificationUpdatedRetainersAreCanceled()
494 when(extender1.shouldExtendLifetime(mEntry)).thenReturn(false); in testLifetimeExtenders_whenNewExtenderTakesPrecedenceOldExtenderIsCanceled()
496 when(extender2.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_whenNewExtenderTakesPrecedenceOldExtenderIsCanceled()
506 when(extender1.shouldExtendLifetime(mEntry)).thenReturn(true); in testLifetimeExtenders_whenNewExtenderTakesPrecedenceOldExtenderIsCanceled()
670 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationEntryManagerTest.FakeNotificationLifetimeExtender
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationLifetimeExtender.java27 boolean shouldExtendLifetime(@NonNull NotificationEntry entry); in shouldExtendLifetime() method
H A DNotificationRemoteInputManager.java939 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationRemoteInputManager.LegacyRemoteInputLifetimeExtender.RemoteInputHistoryExtender
980 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationRemoteInputManager.LegacyRemoteInputLifetimeExtender.SmartReplyHistoryExtender
1018 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry) { in shouldExtendLifetime() method in NotificationRemoteInputManager.LegacyRemoteInputLifetimeExtender.RemoteInputActiveExtender
H A DAlertingNotificationManager.java260 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in AlertingNotificationManager
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
H A DNotifLifetimeExtender.java48 boolean shouldExtendLifetime(@NonNull NotificationEntry entry, @CancellationReason int reason); in shouldExtendLifetime() method
H A DSelfTrackingLifetimeExtender.kt76 final override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DGutsCoordinator.kt87 override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean {
H A DHeadsUpCoordinator.java178 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry, int reason) {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DHeadsUpManagerPhone.java343 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in HeadsUpManagerPhone
347 return mVisualStabilityManager.isReorderingAllowed() && super.shouldExtendLifetime(entry); in shouldExtendLifetime()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotificationGutsManagerTest.java458 assertTrue(mGutsManager.shouldExtendLifetime(entry)); in testShouldExtendLifetime()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationGutsManager.java677 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in NotificationGutsManager
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
H A DNotifCollection.java581 if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { in updateLifetimeExtension()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationEntryManager.java499 if (extender.shouldExtendLifetime(entry)) { in removeNotificationInternal()