/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | GutsCoordinatorTest.kt | 78 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 D | RemoteInputCoordinatorTest.kt | 104 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 D | HeadsUpCoordinatorTest.java | 144 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 D | SelfTrackingLifetimeExtenderTest.kt | 80 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 D | NotifCollectionTest.java | 469 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 D | NotificationRemoteInputManagerTest.java | 144 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 D | AlertingNotificationManagerTest.java | 217 assertTrue(mAlertingNotificationManager.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationEntryManagerTest.java | 437 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 D | NotificationLifetimeExtender.java | 27 boolean shouldExtendLifetime(@NonNull NotificationEntry entry); in shouldExtendLifetime() method
|
H A D | NotificationRemoteInputManager.java | 939 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 D | AlertingNotificationManager.java | 260 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 D | NotifLifetimeExtender.java | 48 boolean shouldExtendLifetime(@NonNull NotificationEntry entry, @CancellationReason int reason); in shouldExtendLifetime() method
|
H A D | SelfTrackingLifetimeExtender.kt | 76 final override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean {
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | GutsCoordinator.kt | 87 override fun shouldExtendLifetime(entry: NotificationEntry, reason: Int): Boolean {
|
H A D | HeadsUpCoordinator.java | 178 public boolean shouldExtendLifetime(@NonNull NotificationEntry entry, int reason) {
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | HeadsUpManagerPhone.java | 343 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 D | NotificationGutsManagerTest.java | 458 assertTrue(mGutsManager.shouldExtendLifetime(entry)); in testShouldExtendLifetime()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationGutsManager.java | 677 public boolean shouldExtendLifetime(NotificationEntry entry) { in shouldExtendLifetime() method in NotificationGutsManager
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotifCollection.java | 581 if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { in updateLifetimeExtension()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationEntryManager.java | 499 if (extender.shouldExtendLifetime(entry)) { in removeNotificationInternal()
|