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

Commit e44b5fe7 authored by Lucas Dupin's avatar Lucas Dupin Committed by Automerger Merge Worker
Browse files

Merge "Add trace tags for notifications" into sc-v2-dev am: 46386914 am: f320c2c7

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

Change-Id: I2ee02045d1dfb484b5b00c754b3d4e2b026b67e3
parents e3caf568 f320c2c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.os.Handler;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemClock;
import android.os.Trace;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;
import android.util.ArrayMap;
@@ -166,6 +167,9 @@ public class NotificationLogger implements StateListener {

            mExpansionStateLogger.onVisibilityChanged(
                    mTmpCurrentlyVisibleNotifications, mTmpCurrentlyVisibleNotifications);
            Trace.traceCounter(Trace.TRACE_TAG_APP, "Notifications [Active]", N);
            Trace.traceCounter(Trace.TRACE_TAG_APP, "Notifications [Visible]",
                    mCurrentlyVisibleNotifications.size());

            recycleAllVisibilityObjects(mTmpNoLongerVisibleNotifications);
            mTmpCurrentlyVisibleNotifications.clear();