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

Commit 073eacec authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Make NEM spammy with new pipeline enabled.

Test: run with the new pipeline
Change-Id: Ide518edcf5c106df8c8dcba4016b910ee2a787fe
parent 86ef373a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -791,6 +791,7 @@ public class NotificationEntryManager implements
     * these don't exist, although there are a couple exceptions.
     */
    public Iterable<NotificationEntry> getPendingNotificationsIterator() {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return mPendingNotifications.values();
    }

@@ -803,6 +804,7 @@ public class NotificationEntryManager implements
     * @return a {@link NotificationEntry} if it has been prepared, else null
     */
    public NotificationEntry getActiveNotificationUnfiltered(String key) {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return mActiveNotifications.get(key);
    }

@@ -811,6 +813,7 @@ public class NotificationEntryManager implements
     * notification doesn't exist.
     */
    public NotificationEntry getPendingOrActiveNotif(String key) {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        NotificationEntry entry = mPendingNotifications.get(key);
        if (entry != null) {
            return entry;
@@ -945,6 +948,7 @@ public class NotificationEntryManager implements
     * @return A read-only list of the currently active notifications
     */
    public List<NotificationEntry> getVisibleNotifications() {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return mReadOnlyNotifications;
    }

@@ -954,17 +958,20 @@ public class NotificationEntryManager implements
     */
    @Override
    public Collection<NotificationEntry> getAllNotifs() {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return mReadOnlyAllNotifications;
    }

    @Nullable
    @Override
    public NotificationEntry getEntry(String key) {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return getPendingOrActiveNotif(key);
    }

    /** @return A count of the active notifications */
    public int getActiveNotificationsCount() {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return mReadOnlyNotifications.size();
    }

@@ -972,6 +979,7 @@ public class NotificationEntryManager implements
     * @return {@code true} if there is at least one notification that should be visible right now
     */
    public boolean hasActiveNotifications() {
        mNotifPipelineFlags.checkLegacyPipelineEnabled();
        return mReadOnlyNotifications.size() != 0;
    }