Adds system service dump for the fullscreen magnification region
Checks if the magnification region is expected for developer. Bug: 151129165 Test: turn on magnification & adb shell dumpsys window windows Change-Id: I483353e6ed312aa7451ef3868d6467068891362a Merged-In: I483353e6ed312aa7451ef3868d6467068891362a
This commit is contained in:
@@ -6052,11 +6052,21 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
pw.print(" mHasPermanentDpad="); pw.println(mHasPermanentDpad);
|
||||
mRoot.dumpTopFocusedDisplayId(pw);
|
||||
mRoot.forAllDisplays(dc -> {
|
||||
final int displayId = dc.getDisplayId();
|
||||
final WindowState inputMethodTarget = dc.mInputMethodTarget;
|
||||
if (inputMethodTarget != null) {
|
||||
pw.print(" mInputMethodTarget in display# "); pw.print(dc.getDisplayId());
|
||||
pw.print(" mInputMethodTarget in display# "); pw.print(displayId);
|
||||
pw.print(' '); pw.println(inputMethodTarget);
|
||||
}
|
||||
if (mAccessibilityController != null) {
|
||||
final Region magnificationRegion = new Region();
|
||||
mAccessibilityController.getMagnificationRegionLocked(displayId,
|
||||
magnificationRegion);
|
||||
pw.print(" mMagnificationRegion in display# ");
|
||||
pw.print(displayId);
|
||||
pw.print(' ');
|
||||
pw.println(magnificationRegion);
|
||||
}
|
||||
});
|
||||
pw.print(" mInTouchMode="); pw.println(mInTouchMode);
|
||||
pw.print(" mLastDisplayFreezeDuration=");
|
||||
|
||||
Reference in New Issue
Block a user