List of usage examples for android.view Display getPixelFormat
@Deprecated public int getPixelFormat()
From source file:org.acra.collector.DisplayManagerCollector.java
@NonNull private Object collectDisplayData(@NonNull Display display) { final DisplayMetrics metrics = new DisplayMetrics(); display.getMetrics(metrics);/*from w w w . j a va 2 s . co m*/ //noinspection deprecation return collectCurrentSizeRange(display) + collectFlags(display) + display.getDisplayId() + ".height=" + display.getHeight() + '\n' + collectMetrics(display) + collectName(display) + display.getDisplayId() + ".orientation=" + display.getRotation() + '\n' + display.getDisplayId() + ".pixelFormat=" + display.getPixelFormat() + '\n' + collectRealMetrics(display) + collectRealSize(display) + collectRectSize(display) + display.getDisplayId() + ".refreshRate=" + display.getRefreshRate() + '\n' + collectRotation(display) + collectSize(display) + display.getDisplayId() + ".width=" + display.getWidth() + '\n' + collectIsValid(display); }
From source file:me.wimanacra.collector.DisplayManagerCollector.java
@NonNull private JSONObject collectDisplayData(@NonNull Display display) throws JSONException { final DisplayMetrics metrics = new DisplayMetrics(); display.getMetrics(metrics);//from w w w. j a v a2s . c o m final JSONObject result = new JSONObject(); collectCurrentSizeRange(display, result); collectFlags(display, result); collectMetrics(display, result); collectRealMetrics(display, result); collectName(display, result); collectRealSize(display, result); collectRectSize(display, result); collectSize(display, result); collectRotation(display, result); collectIsValid(display, result); result.put("orientation", display.getRotation()).put("refreshRate", display.getRefreshRate()); //noinspection deprecation result.put("height", display.getHeight()).put("width", display.getWidth()).put("pixelFormat", display.getPixelFormat()); return result; }