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

Commit b7f72f05 authored by Ioana Alexandru's avatar Ioana Alexandru Committed by Automerger Merge Worker
Browse files

Merge "Don't spam consecutive parent suppressions in NotifLog." into...

Merge "Don't spam consecutive parent suppressions in NotifLog." into tm-qpr-dev am: 7ab95c84 am: f1ae1b3a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20456625



Change-Id: I0f686a7635b12cec6b3d3b0640a4af3da734dfe2
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 09dcebb9 f1ae1b3a
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -1160,12 +1160,21 @@ public class ShadeListBuilder implements Dumpable, PipelineDumpable {
                mLogger.logParentChanged(mIterationCount, prev.getParent(), curr.getParent());
            }

            if (curr.getSuppressedChanges().getParent() != null) {
                mLogger.logParentChangeSuppressed(
            GroupEntry currSuppressedParent = curr.getSuppressedChanges().getParent();
            GroupEntry prevSuppressedParent = prev.getSuppressedChanges().getParent();
            if (currSuppressedParent != null && (prevSuppressedParent == null
                    || !prevSuppressedParent.getKey().equals(currSuppressedParent.getKey()))) {
                mLogger.logParentChangeSuppressedStarted(
                        mIterationCount,
                        curr.getSuppressedChanges().getParent(),
                        currSuppressedParent,
                        curr.getParent());
            }
            if (prevSuppressedParent != null && currSuppressedParent == null) {
                mLogger.logParentChangeSuppressedStopped(
                        mIterationCount,
                        prevSuppressedParent,
                        prev.getParent());
            }

            if (curr.getSuppressedChanges().getSection() != null) {
                mLogger.logSectionChangeSuppressed(
+16 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ class ShadeListBuilderLogger @Inject constructor(
        })
    }

    fun logParentChangeSuppressed(
    fun logParentChangeSuppressedStarted(
        buildId: Int,
        suppressedParent: GroupEntry?,
        keepingParent: GroupEntry?
@@ -207,6 +207,21 @@ class ShadeListBuilderLogger @Inject constructor(
        })
    }

    fun logParentChangeSuppressedStopped(
            buildId: Int,
            previouslySuppressedParent: GroupEntry?,
            previouslyKeptParent: GroupEntry?
    ) {
        buffer.log(TAG, INFO, {
            long1 = buildId.toLong()
            str1 = previouslySuppressedParent?.logKey
            str2 = previouslyKeptParent?.logKey
        }, {
            "(Build $long1)     Change of parent to '$str1' no longer suppressed; " +
                    "replaced parent '$str2'"
        })
    }

    fun logGroupPruningSuppressed(
        buildId: Int,
        keepingParent: GroupEntry?