Merge "Add carousel size info to dumpsys"

This commit is contained in:
Beth Thibodeau
2022-01-07 18:05:43 +00:00
committed by Android (Google) Code Review
3 changed files with 9 additions and 1 deletions

View File

@@ -865,6 +865,10 @@ class MediaCarouselController @Inject constructor(
println("playerKeys: ${MediaPlayerData.playerKeys()}")
println("smartspaceMediaData: ${MediaPlayerData.smartspaceMediaData}")
println("shouldPrioritizeSs: ${MediaPlayerData.shouldPrioritizeSs}")
println("current size: $currentCarouselWidth x $currentCarouselHeight")
println("location: $desiredLocation")
println("state: ${desiredHostState?.expansion}, " +
"only active ${desiredHostState?.showsOnlyActiveMedia}")
}
}
}

View File

@@ -401,6 +401,9 @@ public abstract class QSPanelControllerBase<T extends QSPanel> extends ViewContr
pw.print(" "); pw.println(record.tileView.toString());
}
}
if (mMediaHost != null) {
pw.println(" media bounds: " + mMediaHost.getCurrentBounds());
}
}
public QSPanel.QSTileLayout getTileLayout() {

View File

@@ -218,7 +218,8 @@ public class QSPanelControllerBaseTest extends SysuiTestCase {
String expected = "TestableQSPanelControllerBase:\n"
+ " Tile records:\n"
+ " " + mockTileString + "\n"
+ " " + mockTileViewString + "\n";
+ " " + mockTileViewString + "\n"
+ " media bounds: null\n";
assertEquals(expected, w.getBuffer().toString());
}