Lines Matching defs:display

37  * Base class for remote display providers implemented as unbundled services.
39 * To implement your remote display provider service, create a subclass of
67 * Declare your remote display provider service in your application manifest
143 * Creates a remote display provider.
145 * @param context The application context for the remote display provider.
154 * Gets the context of the remote display provider.
164 * a remote display provider service.
182 * Called when the system would like to connect to a display.
184 * @param display The remote display.
186 public void onConnect(RemoteDisplay display) {
190 * Called when the system would like to disconnect from a display.
192 * @param display The remote display.
194 public void onDisconnect(RemoteDisplay display) {
198 * Called when the system would like to set the volume of a display.
200 * @param display The remote display.
203 public void onSetVolume(RemoteDisplay display, int volume) {
207 * Called when the system would like to adjust the volume of a display.
209 * @param display The remote display.
212 public void onAdjustVolume(RemoteDisplay display, int delta) {
234 * Adds the specified remote display and notifies the system.
236 * @param display The remote display that was added.
237 * @throws IllegalStateException if there is already a display with the same id.
239 public void addDisplay(RemoteDisplay display) {
240 if (display == null || mDisplays.containsKey(display.getId())) {
241 throw new IllegalArgumentException("display");
243 mDisplays.put(display.getId(), display);
248 * Updates information about the specified remote display and notifies the system.
250 * @param display The remote display that was added.
251 * @throws IllegalStateException if the display was n
253 public void updateDisplay(RemoteDisplay display) {
254 if (display == null || mDisplays.get(display.getId()) != display) {
255 throw new IllegalArgumentException("display");
261 * Removes the specified remote display and tells the system about it.
263 * @param display The remote display that was removed.
265 public void removeDisplay(RemoteDisplay display) {
266 if (display == null || mDisplays.get(display.getId()) != display) {
267 throw new IllegalArgumentException("display");
269 mDisplays.remove(display.getId());
274 * Finds the remote display with the specified id, returns null if not found.
276 * @param id Id of the remote display.
277 * @return The display, or null if none.
284 * Gets a pending intent to launch the remote display settings activity.
317 final RemoteDisplay display = mDisplays.valueAt(i);
318 state.displays.add(display.getInfo());
377 RemoteDisplay display = findRemoteDisplay((String)msg.obj);
378 if (display != null) {
379 onConnect(display);
384 RemoteDisplay display = findRemoteDisplay((String)msg.obj);
385 if (display != null) {
386 onDisconnect(display);
391 RemoteDisplay display = findRemoteDisplay((String)msg.obj);
392 if (display != null) {
393 onSetVolume(display, msg.arg1);
398 RemoteDisplay display = findRemoteDisplay((String)msg.obj);
399 if (display != null) {
400 onAdjustVolume(display, msg.arg1);