Lines Matching defs:display

17 package android.hardware.display;
52 * Broadcast receiver that indicates when the Wifi display status changes.
62 "android.hardware.display.action.WIFI_DISPLAY_STATUS_CHANGED";
69 "android.hardware.display.extra.WIFI_DISPLAY_STATUS";
85 "android.hardware.display.category.PRESENTATION";
88 * Virtual display flag: Create a public display.
92 * When this flag is set, the virtual display is public.
94 * A public virtual display behaves just like most any other display that is connected
95 * to the system such as an HDMI or Wireless display. Applications can open
96 * windows on the display and the system may mirror the contents of other displays
99 * Creating a public virtual display that isn't restricted to own-content only implicitly
100 * creates an auto-mirroring display. See {@link #VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR} for
101 * restrictions on who is allowed to create an auto-mirroring display.
106 * When this flag is not set, the virtual display is private as defined by the
107 * {@link Display#FLAG_PRIVATE} display flag.
111 * A private virtual display belongs to the application that created it.
112 * Only the a owner of a private virtual display is allowed to place windows upon it.
113 * The private virtual display also does not participate in display mirroring: it will
114 * neither receive mirrored content from another display nor allow its own content to
116 * enumerate or interact with the private display are those that have the same UID as the
117 * application that originally created the private virtual display.
127 * Virtual display flag: Create a presentation display.
131 * When this flag is set, the virtual display is registered as a presentation
132 * display in the {@link #DISPLAY_CATEGORY_PRESENTATION presentation display category}.
139 * When this flag is not set, the virtual display is not registered as a presentation
140 * display. Applications can still project their content on the display but they
153 * Virtual display flag: Create a secure display.
157 * When this flag is set, the virtual display is considered secure as defined
158 * by the {@link Display#FLAG_SECURE} display flag. The caller promises to take
160 * of the display from being intercepted or recorded on a persistent medium.
162 * Creating a secure virtual display requires the
170 * When this flag is not set, the virtual display is considered unsecure.
171 * The content of secure windows will be blanked if shown on this display.
180 * Virtual display flag: Only show this display's own content; do not mirror
181 * the content of another display.
186 * default display if they have no windows of their own. When this flag is
187 * specified, the virtual display will only ever show its own content and
199 * override the default behavior when creating a public display.
208 * Virtual display flag: Allows content to be mirrored on private displays when no content is
219 * required to override the default behavior when creating a private display.
223 * Creating an auto-mirroing virtual display requires the
230 * auto-mirroring virtual display.
244 * Gets information about a logical display.
246 * The display metrics may be adjusted to provide compatibility
249 * @param displayId The logical display id.
250 * @return The display object, or null if there is no valid display with the given id.
273 * then the displays are sorted so that the first display in the returned array
274 * is the most preferred presentation display. The application may simply
275 * use the first display or allow the user to choose.
278 * @param category The requested display category or null to return all displays.
304 Display display = getOrCreateDisplayLocked(displayIds[i], true /*assumeValid*/);
305 if (display != null) {
306 displays.add(display);
314 Display display = getOrCreateDisplayLocked(displayIds[i], true /*assumeValid*/);
315 if (display != null
316 && (display.getFlags() & Display.FLAG_PRESENTATION) != 0
317 && display.getType() == matchType) {
318 displays.add(display);
324 Display display = mDisplays.get(displayId);
325 if (display == null) {
326 display = mGlobal.getCompatibleDisplay(displayId,
328 if (display != null) {
329 mDisplays.put(displayId, display);
331 } else if (!assumeValid && !display.isValid()) {
332 display = null;
334 return display;
338 * Registers an display listener to receive notifications about when
352 * Unregisters a display listener.
391 * Connects to a Wifi display.
394 * Automatically remembers the display after a successful connection, if not
418 * Disconnects from the current Wifi display.
427 * Renames a Wifi display.
429 * The display must already be remembered for this call to succeed. In other words,
430 * we must already have successfully connected to the display at least once and then
446 * Forgets a previously remembered Wifi display.
448 * Automatically disconnects from the display if currently connected to it.
461 * Gets the current Wifi display status.
465 * @return The current Wifi display status.
473 * Creates a virtual display.
484 * Creates a virtual display.
486 * The content of a virtual display is rendered to a {@link Surface} provided
489 * The virtual display should be {@link VirtualDisplay#release released}
490 * when no longer needed. Because a virtual display renders to a surface
494 * The behavior of the virtual display depends on the flags that are provided
501 * was called and could not be changed for the lifetime of the display.
503 * Detaching the surface that backs a virtual display has a similar effect to
507 * @param name The name of the virtual display, must be non-empty.
508 * @param width The width of the virtual display in pixels, must be greater than 0.
509 * @param height The height of the virtual display in pixels, must be greater than 0.
510 * @param densityDpi The density of the virtual display in dpi, must be greater than 0.
511 * @param surface The surface to which the content of the virtual display should
513 * @param flags A combination of virtual display flags:
520 * @return The newly created virtual display, or null if the application could
521 * not create the virtual display.
524 * a virtual display with the specified flags.
542 * Listens for changes in available display devices.
546 * Called whenever a logical display has been added to the system.
548 * the display.
550 * @param displayId The id of the logical display that was added.
555 * Called whenever a logical display has been removed from the system.
557 * @param displayId The id of the logical display that was removed.
562 * Called whenever the properties of a logical display have changed.
564 * @param displayId The id of the logical display that changed.