diff options
author | Bill Lin <lbill@google.com> | 2020-02-18 15:00:39 +0800 |
---|---|---|
committer | Bill Lin <lbill@google.com> | 2020-02-20 07:20:04 +0000 |
commit | dd12316b0d6795f4d952110a04890c231dfa6da3 (patch) | |
tree | f1c0c66a60f84c38a94cf33868c40e0afae2e96c /packages/SystemUI/src | |
parent | e59b568ac462f173f89edc44cb5e5175edbc0ab3 (diff) | |
download | base-dd12316b0d6795f4d952110a04890c231dfa6da3.tar.gz |
Add DEBUG flag for rounded corner and display cutout path
There wasn't a good approach for engineers to distignlish bounds between
H/W display component and S/W anti-aliasing.
Allow enable color to review the anti-aliasing effect.
Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
Test: adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
Test: check visual following above steps
Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Change-Id: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
Merged-In: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ScreenDecorations.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index f38b4f259c88..6f597e83bda8 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -105,6 +105,7 @@ public class ScreenDecorations extends SystemUI implements Tunable, private static final boolean DEBUG_SCREENSHOT_ROUNDED_CORNERS = SystemProperties.getBoolean("debug.screenshot_rounded_corners", false); private static final boolean VERBOSE = false; + private static final boolean DEBUG_COLOR = DEBUG_SCREENSHOT_ROUNDED_CORNERS; private DisplayManager mDisplayManager; private DisplayManager.DisplayListener mDisplayListener; @@ -457,6 +458,9 @@ public class ScreenDecorations extends SystemUI implements Tunable, private void updateColorInversion(int colorsInvertedValue) { int tint = colorsInvertedValue != 0 ? Color.WHITE : Color.BLACK; + if (DEBUG_COLOR) { + tint = Color.RED; + } ColorStateList tintList = ColorStateList.valueOf(tint); ((ImageView) mOverlay.findViewById(R.id.left)).setImageTintList(tintList); ((ImageView) mOverlay.findViewById(R.id.right)).setImageTintList(tintList); |