From 12e0ac295d54b983b7f9b19c2cd90298232cd8e7 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 30 Jun 2021 12:02:00 -0700 Subject: [PATCH] Add shade radius to systraces This way it will be easier to analyse blur bugs. Test: adb shell perfetto ... Fixes: 191969790 Change-Id: Ia6e73130ba41d85616a79143d43811f619d5a3ac --- .../systemui/statusbar/NotificationShadeDepthController.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt index a2048e21199ed..f6b16b065b6f9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt @@ -21,6 +21,7 @@ import android.animation.AnimatorListenerAdapter import android.animation.ValueAnimator import android.app.WallpaperManager import android.os.SystemClock +import android.os.Trace import android.util.IndentingPrintWriter import android.util.Log import android.util.MathUtils @@ -198,6 +199,7 @@ class NotificationShadeDepthController @Inject constructor( blur = (blur * (1f - brightnessMirrorSpring.ratio)).toInt() val opaque = scrimsVisible && !blursDisabledForAppLaunch + Trace.traceCounter(Trace.TRACE_TAG_APP, "shade_blur_radius", blur) blurUtils.applyBlur(blurRoot?.viewRootImpl ?: root.viewRootImpl, blur, opaque) try { if (root.isAttachedToWindow && root.windowToken != null) {