summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-06-16 14:58:39 -0700
committerAdam Powell <adamp@google.com>2012-06-16 17:21:57 -0700
commit4599696591f745b3a546197d2ba7e5cfc5562484 (patch)
treedeb99136c03e9100fa6727fe8b7b23dcf7f21c8c /media
parent39d5c6172503620ac3761148adac5fd7fa20d02d (diff)
downloadframeworks_base-4599696591f745b3a546197d2ba7e5cfc5562484.zip
frameworks_base-4599696591f745b3a546197d2ba7e5cfc5562484.tar.gz
frameworks_base-4599696591f745b3a546197d2ba7e5cfc5562484.tar.bz2
Volume control in MediaRouter dialogs
MediaRouter dialogs now intercept the volume keys for altering the current volume. The status icon indicates if the slider/buttons are currently controlling the local device volume or a remote device's volume. Group volume for user routes is handled by using the RemoteControlClient supplied by the first route in the group. Change-Id: I40a0d054847ed5acce7a4c3b669487841b4dca15
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaRouter.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/media/java/android/media/MediaRouter.java b/media/java/android/media/MediaRouter.java
index 60f3698..715e752 100644
--- a/media/java/android/media/MediaRouter.java
+++ b/media/java/android/media/MediaRouter.java
@@ -198,6 +198,13 @@ public class MediaRouter {
}
/**
+ * @hide for use by framework routing UI
+ */
+ public RouteCategory getSystemAudioCategory() {
+ return sStatic.mSystemCategory;
+ }
+
+ /**
* Return the currently selected route for the given types
*
* @param type route types
@@ -740,6 +747,16 @@ public class MediaRouter {
}
/**
+ * Retrieve the RemoteControlClient associated with this route, if one has been set.
+ *
+ * @return the RemoteControlClient associated with this route
+ * @see #setRemoteControlClient(RemoteControlClient)
+ */
+ public RemoteControlClient getRemoteControlClient() {
+ return mRcc;
+ }
+
+ /**
* Set an icon that will be used to represent this route.
* The system may use this icon in picker UIs or similar.
*