From 779f2f94f6129a8bccd7c1a541480438716e55d8 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Tue, 1 Jun 2021 12:32:10 -0500 Subject: [PATCH] Add system property to enable nssl debug mode via adb Bug: 189313235 Test: adb shell setprop persist.debug.nssl [true|false] && adb reboot Change-Id: Id2bca01664ef18a2791d04e53c9abe63cd608bb8 --- .../notification/stack/NotificationStackScrollLayout.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 94edbd092a4d4..84f2ced2b2540 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -43,6 +43,7 @@ import android.graphics.Paint; import android.graphics.PointF; import android.graphics.Rect; import android.os.Bundle; +import android.os.SystemProperties; import android.os.UserHandle; import android.provider.Settings; import android.util.AttributeSet; @@ -129,7 +130,12 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable public static final float BACKGROUND_ALPHA_DIMMED = 0.7f; private static final String TAG = "StackScroller"; - private static final boolean DEBUG = false; + + // Usage: + // adb shell setprop persist.debug.nssl true && adb reboot + private static final boolean DEBUG = SystemProperties.getBoolean("persist.debug.nssl", + false /* default */); + private static final float RUBBER_BAND_FACTOR_NORMAL = 0.35f; private static final float RUBBER_BAND_FACTOR_AFTER_EXPAND = 0.15f; private static final float RUBBER_BAND_FACTOR_ON_PANEL_EXPAND = 0.21f;