Rename setShouldExtendLifetime in LifetimeExtender
Rename NotificationLifetimeExtender.setShouldExtendLifetime to
setShouldManageLifetime. This is more clear in what the logic actually
is and reads better.
Test: runtest systemui
Change-Id: Ic5792322ef0a557812d58f07285acee32cce0c1a
diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java
index 32c972c..f21ce27 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java
+++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java
@@ -34,7 +34,6 @@
import com.android.systemui.R;
import com.android.systemui.SysuiTestCase;
-import com.android.systemui.statusbar.AlertingNotificationManager;
import com.android.systemui.statusbar.notification.NotificationData;
import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow;
@@ -183,19 +182,19 @@
}
@Test
- public void testSetShouldExtendLifetime_setShouldExtend() {
+ public void testSetShouldManageLifetime_setShouldManage() {
mAlertingNotificationManager.showNotification(mEntry);
- mAlertingNotificationManager.setShouldExtendLifetime(mEntry, true /* shouldExtend */);
+ mAlertingNotificationManager.setShouldManageLifetime(mEntry, true /* shouldManage */);
assertTrue(mAlertingNotificationManager.mExtendedLifetimeAlertEntries.contains(mEntry));
}
@Test
- public void testSetShouldExtendLifetime_setShouldNotExtend() {
+ public void testSetShouldManageLifetime_setShouldNotManage() {
mAlertingNotificationManager.mExtendedLifetimeAlertEntries.add(mEntry);
- mAlertingNotificationManager.setShouldExtendLifetime(mEntry, false /* shouldExtend */);
+ mAlertingNotificationManager.setShouldManageLifetime(mEntry, false /* shouldManage */);
assertFalse(mAlertingNotificationManager.mExtendedLifetimeAlertEntries.contains(mEntry));
}