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

Commit a02e5f13 authored by András Kurucz's avatar András Kurucz Committed by Android (Google) Code Review
Browse files

Merge "Update RoundableState logs" into udc-dev

parents b4278fb5 af47fa73
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -383,11 +383,11 @@ class RoundableState(
    }

    fun debugString() = buildString {
        append("TargetView: ${targetView.hashCode()} ")
        append("Top: $topRoundness ")
        append(topRoundnessMap.map { "${it.key} ${it.value}" })
        append(" Bottom: $bottomRoundness ")
        append(bottomRoundnessMap.map { "${it.key} ${it.value}" })
        append("Roundable { ")
        append("top: { value: $topRoundness, requests: $topRoundnessMap}")
        append(", ")
        append("bottom: { value: $bottomRoundness, requests: $bottomRoundnessMap}")
        append("}")
    }

    companion object {
+2 −12
Original line number Diff line number Diff line
@@ -3649,16 +3649,12 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
            } else {
                pw.println("no viewState!!!");
            }
            pw.println("Roundness: " + getRoundableState().debugString());
            pw.println(getRoundableState().debugString());

            int transientViewCount = mChildrenContainer == null
                    ? 0 : mChildrenContainer.getTransientViewCount();
            if (mIsSummaryWithChildren || transientViewCount > 0) {
                pw.println();
                pw.print("ChildrenContainer");
                pw.print(" visibility: " + mChildrenContainer.getVisibility());
                pw.print(", alpha: " + mChildrenContainer.getAlpha());
                pw.print(", translationY: " + mChildrenContainer.getTranslationY());
                pw.println(mChildrenContainer.debugString());
                pw.println();
                List<ExpandableNotificationRow> notificationChildren = getAttachedChildren();
                pw.print("Children: " + notificationChildren.size() + " {");
@@ -3725,12 +3721,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        }
    }

    @Override
    public String toString() {
        String roundableStateDebug = "RoundableState = " + getRoundableState().debugString();
        return "ExpandableNotificationRow:" + hashCode() + " { " + roundableStateDebug + " }";
    }

    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
+1 −1
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ public abstract class ExpandableOutlineView extends ExpandableView {
        IndentingPrintWriter pw = DumpUtilsKt.asIndenting(pwOriginal);
        super.dump(pw, args);
        DumpUtilsKt.withIncreasedIndent(pw, () -> {
            pw.println("Roundness: " + getRoundableState().debugString());
            pw.println(getRoundableState().debugString());
            if (DUMP_VERBOSE) {
                pw.println("mCustomOutline: " + mCustomOutline + " mOutlineRect: " + mOutlineRect);
                pw.println("mOutlineAlpha: " + mOutlineAlpha);
+6 −4
Original line number Diff line number Diff line
@@ -1546,9 +1546,11 @@ public class NotificationChildrenContainer extends ViewGroup
        mUseRoundnessSourceTypes = enabled;
    }

    @Override
    public String toString() {
        String roundableStateDebug = "RoundableState = " + getRoundableState().debugString();
        return "NotificationChildrenContainer:" + hashCode() + " { " + roundableStateDebug + " }";
    public String debugString() {
        return TAG + " { "
                + "visibility: " + getVisibility()
                + ", alpha: " + getAlpha()
                + ", translationY: " + getTranslationY()
                + ", roundableState: " + getRoundableState().debugString() + "}";
    }
}