mLastCachedAppSizeUpdate = now;
}
}
+
+ // For debugging purposes
+ @Override
+ public String toString() {
+ synchronized (this) {
+ updateDisplayInfoLocked();
+ mDisplayInfo.getAppMetrics(mTempMetrics, mCompatibilityInfo);
+ return "Display id " + mDisplayId + ": " + mDisplayInfo
+ + ", " + mTempMetrics;
+ }
+ }
}
}
}
}
+
+ // 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";
+ }
}
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
+import android.hardware.display.DisplayManager;
import android.hardware.display.IDisplayManager;
import android.os.Binder;
import android.os.SystemProperties;
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));
}
}