Increase the max size of emulated displays am: 825dd5d1c6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19046026

Change-Id: I276fcc8830e7bf430e8fed10b48ffe2eeeb2edf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jordan Demeulenaere
2022-06-25 07:40:53 +00:00
committed by Automerger Merge Worker

View File

@@ -2941,9 +2941,10 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
// Set some sort of reasonable bounds on the size of the display that we will try
// to emulate.
final int minSize = 200;
final int maxScale = 2;
width = Math.min(Math.max(width, minSize), mInitialDisplayWidth * maxScale);
height = Math.min(Math.max(height, minSize), mInitialDisplayHeight * maxScale);
final int maxScale = 3;
final int maxSize = Math.max(mInitialDisplayWidth, mInitialDisplayHeight) * maxScale;
width = Math.min(Math.max(width, minSize), maxSize);
height = Math.min(Math.max(height, minSize), maxSize);
}
Slog.i(TAG_WM, "Using new display size: " + width + "x" + height);