am bf5740e7: Improve display manager debugging.
* commit 'bf5740e75efd87ae0213486e78e029403804c6f0': Improve display manager debugging.
This commit is contained in:
@@ -382,5 +382,16 @@ public final class Display {
|
|||||||
mLastCachedAppSizeUpdate = now;
|
mLastCachedAppSizeUpdate = now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For debugging purposes
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
synchronized (this) {
|
||||||
|
updateDisplayInfoLocked();
|
||||||
|
mDisplayInfo.getAppMetrics(mTempMetrics, mCompatibilityInfo);
|
||||||
|
return "Display id " + mDisplayId + ": " + mDisplayInfo
|
||||||
|
+ ", " + mTempMetrics;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -223,4 +223,17 @@ public final class DisplayInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For debugging purposes
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "app " + appWidth + " x " + appHeight
|
||||||
|
+ ", real " + logicalWidth + " x " + logicalHeight
|
||||||
|
+ ", largest app " + largestNominalAppWidth + " x " + largestNominalAppHeight
|
||||||
|
+ ", smallest app " + smallestNominalAppWidth + " x " + smallestNominalAppHeight
|
||||||
|
+ ", " + refreshRate + " fps"
|
||||||
|
+ ", rotation " + rotation
|
||||||
|
+ ", density " + logicalDensityDpi
|
||||||
|
+ ", " + physicalXDpi + " x " + physicalYDpi + " dpi";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ package com.android.server.display;
|
|||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
|
import android.hardware.display.DisplayManager;
|
||||||
import android.hardware.display.IDisplayManager;
|
import android.hardware.display.IDisplayManager;
|
||||||
import android.os.Binder;
|
import android.os.Binder;
|
||||||
import android.os.SystemProperties;
|
import android.os.SystemProperties;
|
||||||
@@ -166,7 +167,10 @@ public final class DisplayManagerService extends IDisplayManager.Stub {
|
|||||||
pw.println("Adapter: " + adapter.getName());
|
pw.println("Adapter: " + adapter.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
pw.println("Default display: " + mDefaultDisplayInfo);
|
pw.println("Default display info: " + mDefaultDisplayInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw.println("Default display: "
|
||||||
|
+ DisplayManager.getInstance().getRealDisplay(Display.DEFAULT_DISPLAY));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user