Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47251e47 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Delete flag reject_old_notifications

Flag: EXEMPT flag cleanup
Fixes: 409606197
Test: TH
Change-Id: I78c0a09e0ac57c5f28780ddc330c0790f845f56a
parent f915cadf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9219,7 +9219,7 @@ public class NotificationManagerService extends SystemService {
            return false;
        }
        if (Flags.rejectOldNotifications() && n.hasAppProvidedWhen() && n.getWhen() > 0
        if (n.hasAppProvidedWhen() && n.getWhen() > 0
                && (System.currentTimeMillis() - n.getWhen()) > NOTIFICATION_MAX_AGE_AT_POST) {
            Slog.d(TAG, "Ignored enqueue for old " + n.getWhen() + " notification " + r.getKey());
            mUsageStats.registerTooOldBlocked(r);
+0 −7
Original line number Diff line number Diff line
@@ -122,13 +122,6 @@ flag {
  bug: "337077643"
}

flag {
  name: "reject_old_notifications"
  namespace: "systemui"
  description: "This flag does not allow notifications older than 2 weeks old to be posted"
  bug: "339833083"
}

flag {
  name: "notification_minimalism"
  namespace: "systemui"
+0 −4
Original line number Diff line number Diff line
@@ -145,7 +145,6 @@ import static com.android.server.am.PendingIntentRecord.FLAG_SERVICE_SENDER;
import static com.android.server.notification.Flags.FLAG_ALL_NOTIFS_NEED_TTL;
import static com.android.server.notification.Flags.FLAG_LOG_CACHED_POSTS;
import static com.android.server.notification.Flags.FLAG_MANAGED_SERVICES_CONCURRENT_MULTIUSER;
import static com.android.server.notification.Flags.FLAG_REJECT_OLD_NOTIFICATIONS;
import static com.android.server.notification.GroupHelper.AUTOGROUP_KEY;
import static com.android.server.notification.NotificationManagerService.BITMAP_DURATION;
import static com.android.server.notification.NotificationManagerService.DEFAULT_MAX_NOTIFICATION_ENQUEUE_RATE;
@@ -17486,7 +17485,6 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
    }
    @Test
    @EnableFlags(FLAG_REJECT_OLD_NOTIFICATIONS)
    public void testRejectOldNotification_oldWhen() throws Exception {
        Notification n = new Notification.Builder(mContext, mTestNotificationChannel.getId())
                .setSmallIcon(android.R.drawable.sym_def_app_icon)
@@ -17501,7 +17499,6 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
    }
    @Test
    @EnableFlags(FLAG_REJECT_OLD_NOTIFICATIONS)
    public void testRejectOldNotification_mediumOldWhen() throws Exception {
        Notification n = new Notification.Builder(mContext, mTestNotificationChannel.getId())
                .setSmallIcon(android.R.drawable.sym_def_app_icon)
@@ -17516,7 +17513,6 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
    }
    @Test
    @EnableFlags(FLAG_REJECT_OLD_NOTIFICATIONS)
    public void testRejectOldNotification_zeroWhen() throws Exception {
        Notification n = new Notification.Builder(mContext, mTestNotificationChannel.getId())
                .setSmallIcon(android.R.drawable.sym_def_app_icon)