Lines Matching defs:display

21 import android.hardware.display.DisplayManager;
22 import android.hardware.display.DisplayManager.DisplayListener;
37 * content on a secondary display. A {@link Presentation} is associated with
39 * resource configuration according to the display's metrics.
44 * to ensure that assets of the correct size and density for the target display
48 * the display to which it is attached is removed. An activity should take
53 * <h3>Choosing a presentation display</h3>
56 * on which it will appear. Choosing a presentation display is sometimes difficult
58 * which display is best, an application should let the system choose a suitable
59 * presentation display.
64 * <h4>Using the media router to choose a presentation display</h4>
66 * The easiest way to choose a presentation display is to use the
70 * or when the preferred presentation display of a route changes.
72 * a presentation on the preferred presentation display automatically.
74 * The preferred presentation display is the display that the media router recommends
75 * that the application should use if it wants to show content on the secondary display.
76 * Sometimes there may not be a preferred presentation display in which
80 * presentation display using {@link android.media.MediaRouter.RouteInfo#getPresentationDisplay()}.
95 * the content in a presentation when a presentation display is available.
100 * <h4>Using the display manager to choose a presentation display</h4>
102 * Another way to choose a presentation display is to use the {@link DisplayManager} API
103 * directly. The display manager service provides functions to enumerate and describe all
107 * The display manager keeps track of all displays in the system. However, not all
109 * attempted to show a presentation on the main display it might obscure its own content
120 * // If there is more than one suitable presentation display, then we could consider
121 * // giving the user a choice. For this example, we simply choose the first display
122 * // which is the one the system recommends as the preferred presentation display.
123 * Display display = presentationDisplays[0];
128 * The following sample code from <code>ApiDemos</code> demonstrates how to use the display
136 * video routes and how to obtain the preferred presentation display for the
150 * Creates a new presentation that is attached to the specified display
155 * on this context and information about the associated display.
156 * @param display The display to which the presentation should be attached.
158 public Presentation(Context outerContext, Display display) {
159 this(outerContext, display, 0);
163 * Creates a new presentation that is attached to the specified display
168 * on this context and information about the associated display.
169 * @param display The display to which the presentation should be attached.
176 public Presentation(Context outerContext, Display display, int theme) {
177 super(createPresentationContext(outerContext, display, theme), theme, false);
179 mDisplay = display;
189 * @return The display.
198 * display that the presentation appears on.
211 // Since we were not watching for display changes until just now, there is a
212 // chance that the display metrics have changed. If so, we will need to
217 + "display metrics have changed since it was created.");
254 * If the display metrics have changed (for example, if the display has been
273 // If the display metrics have changed in any way then the current configuration
278 + "display metrics have changed since it was created.");
290 Context outerContext, Display display, int theme) {
294 if (display == null) {
295 throw new IllegalArgumentException("display must not be null");
298 Context displayContext = outerContext.createDisplayContext(display);
306 // Derive the display's window manager from the outer window manager.