Add dumpsys log for AmbientState#hideAmount to debug notification alpha

Notification alpha is 0 when we collapse from fullscreen quick settings
and should not be

Bug: 189313235
Test: treehugger
Change-Id: Id68931977a7e80f9304bd0146c07ebf2b0663faa
This commit is contained in:
Lyn Han
2021-06-01 10:54:00 -05:00
parent 285aee4a3a
commit f954c84355

View File

@@ -4667,8 +4667,9 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
@ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
pw.println(String.format("[%s: pulsing=%s qsCustomizerShowing=%s visibility=%s"
+ " alpha:%f scrollY:%d maxTopPadding:%d showShelfOnly=%s"
+ " qsExpandFraction=%f]",
+ " alpha=%f scrollY:%d maxTopPadding=%d showShelfOnly=%s"
+ " qsExpandFraction=%f"
+ " hideAmount=%f]",
this.getClass().getSimpleName(),
mPulsing ? "T" : "f",
mAmbientState.isQsCustomizerShowing() ? "T" : "f",
@@ -4679,7 +4680,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
mAmbientState.getScrollY(),
mMaxTopPadding,
mShouldShowShelfOnly ? "T" : "f",
mQsExpansionFraction));
mQsExpansionFraction,
mAmbientState.getHideAmount()));
int childCount = getChildCount();
pw.println(" Number of children: " + childCount);
pw.println();