Lines Matching refs:Display
22 import android.hardware.display.DisplayManagerGlobal;
28 * Provides information about the size and density of a logical display.
30 * The display area is described in two different ways.
32 * <li>The application display area specifies the part of the display that may contain
33 * an application window, excluding the system decorations. The application display area may
34 * be smaller than the real display area because the system subtracts the space needed
36 * application display area: {@link #getSize}, {@link #getRectSize} and {@link #getMetrics}.</li>
37 * <li>The real display area specifies the part of the display that contains content
38 * including the system decorations. Even so, the real display area may be smaller than the
39 * physical size of the display if the window manager is emulating a smaller display
40 * using (adb shell am display-size). Use the following methods to query the
41 * real display area: {@link #getRealSize}, {@link #getRealMetrics}.</li>
44 * A logical display does not necessarily represent a particular physical display device
46 * display may be presented on one or more physical displays according to the devices
50 public final class Display {
51 private static final String TAG = "Display";
65 // Temporary display metrics structure used for compatibility mode.
78 * The default Display id, which is the id of the built-in primary display
84 * Display flag: Indicates that the display supports compositing content
87 * If this flag is set then the display device supports compositing protected buffers.
89 * If this flag is not set then the display device may not support compositing
95 * display sink. If a hardware-protected path is not available, then content stored
99 * buffers for this display because the content may not be visible. For example,
101 * display, show an informative error message, select an alternate content stream
111 * Display flag: Indicates that the display has a secure video output and
114 * If this flag is set then the display device has a secure video output
118 * If this flag is not set then the display device may not have a secure video
134 * secure surfaces or protected buffers on this display because the content may
136 * choose not to show content on this display, show an informative error message,
146 * Display type: Unknown display type.
152 * Display type: Built-in display.
158 * Display type: HDMI display.
164 * Display type: WiFi display.
170 * Display type: Overlay display.
176 * Internal method to create a display.
178 * or {@link android.hardware.display.DisplayManager#getDisplay}
179 * to get a display object.
183 public Display(DisplayManagerGlobal global,
192 // Cache properties that cannot change as long as the display is valid.
200 * Gets the display id.
202 * Each logical display has a unique id.
203 * The default display has id {@link #DEFAULT_DISPLAY}.
211 * Returns true if this display is still valid, false if the display has been removed.
213 * If the display is invalid, then the methods of this class will
214 * continue to report the most recently observed display information.
216 * {@link Display} object after the display's demise.
218 * It's possible for a display that was previously invalid to become
219 * valid again if a display with the same id is reconnected.
221 * @return True if the display is still valid.
231 * Gets a full copy of the display information.
233 * @param outDisplayInfo The object to receive the copy of the display information.
234 * @return True if the display is still valid.
246 * Gets the display's layer stack.
248 * Each display has its own independent layer stack upon which surfaces
251 * @return The display's layer stack number.
259 * Returns a combination of flags that describe the capabilities of the display.
261 * @return The display flags.
271 * Gets the display type.
273 * @return The display type.
287 * Gets the display address, or null if none.
288 * Interpretation varies by display type.
290 * @return The display address.
298 * Gets the compatibility info used by this display instance.
308 * Gets the name of the display.
313 * @return The display's name.
323 * Gets the size of the display, in pixels.
327 * along the edges of the display that reduce the amount of application
331 * The size is adjusted based on the current rotation of the display.
334 * actual raw size (native resolution) of the display. The returned size may
352 * Gets the size of the display as a rectangle, in pixels.
366 * Return the range of display sizes an application can expect to encounter
441 display.
443 * into the display on that side.
479 * @return orientation of this display.
487 * Gets the pixel format of the display.
499 * Gets the refresh rate of this display in frames per second.
509 * Gets display metrics that describe the size and density of this display.
511 * The size is adjusted based on the current rotation of the display.
514 * actual raw size (native resolution) of the display. The returned size may
530 * Gets the real size of the display without subtracting any window decor or
533 * The size is adjusted based on the current rotation of the display.
536 * window manager is emulating a smaller display (using adb shell am display-size).
539 * @param outSize Set to the real size of the display.
550 * Gets display metrics based on the real size of this display.
552 * The size is adjusted based on the current rotation of the display.
555 * window manager is emulating a smaller display (using adb shell am display-size).
568 // Note: The display manager caches display info objects on our behalf.
571 // Preserve the old mDisplayInfo after the display is removed.
575 Log.d(TAG, "Logical display " + mDisplayId + " was removed.");
579 // Use the new display info. (It might be the same object if nothing changed.)
584 Log.d(TAG, "Logical display " + mDisplayId + " was recreated.");
607 return "Display id " + mDisplayId + ": " + mDisplayInfo