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

Commit f4e1275c authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android-build-merger
Browse files

Merge "(Test only) A little more debug output for voice interaction test" into nyc-dev

am: 5fa590b2

* commit '5fa590b2':
  (Test only) A little more debug output for voice interaction test

Change-Id: Iae71f25fe93e14f6e0cf1ff7e7ed5eb48964c552
parents 3ba3ad21 5fa590b2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ public class AssistVisualizer extends View {
        final int parentLeft, parentTop;
        final Matrix matrix;
        final String className;
        final float textSize;
        final int textColor;
        final CharSequence text;
        final int scrollY;
        final int[] lineCharOffsets;
@@ -50,6 +52,8 @@ public class AssistVisualizer extends View {
            this.parentTop = parentTop;
            this.matrix = new Matrix(matrix);
            this.className = node.getClassName();
            this.textSize = node.getTextSize();
            this.textColor = node.getTextColor();
            this.text = node.getText() != null ? node.getText() : node.getContentDescription();
            this.scrollY = node.getScrollY();
            this.lineCharOffsets = node.getTextLineCharOffsets();
@@ -113,7 +117,9 @@ public class AssistVisualizer extends View {
            TextEntry te = mTextRects.get(i);
            Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString()
                    + " in " + te.parentLeft + "," + te.parentTop
                    + " matrix=" + te.matrix.toShortString() + ": "
                    + " matrix=" + te.matrix.toShortString()
                    + " size=" + te.textSize + " color=#" + Integer.toHexString(te.textColor)
                    + ": "
                    + te.text);
            if (te.lineCharOffsets != null && te.lineBaselines != null) {
                final int num = te.lineCharOffsets.length < te.lineBaselines.length