summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-03-27 21:13:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-27 21:13:41 +0000
commit15427f80bb9632ec34f5491f0e9ac2c4f977074e (patch)
treeb82ef2c01ae38647f261ccea4dbd04cf1a20d709 /media
parent0f09c3d0b6d483bbb457c62d67fac921f85e073a (diff)
parent8a52c4491dfbb8354a92c0a1e6abc86848e187c6 (diff)
downloadframeworks_base-15427f80bb9632ec34f5491f0e9ac2c4f977074e.zip
frameworks_base-15427f80bb9632ec34f5491f0e9ac2c4f977074e.tar.gz
frameworks_base-15427f80bb9632ec34f5491f0e9ac2c4f977074e.tar.bz2
Merge "AudioService: Observe changes to output devices per-stream."
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/AudioManager.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/media/java/android/media/AudioManager.java b/media/java/android/media/AudioManager.java
index 28941b9..cb70e8b 100644
--- a/media/java/android/media/AudioManager.java
+++ b/media/java/android/media/AudioManager.java
@@ -134,6 +134,22 @@ public class AudioManager {
public static final String VOLUME_CHANGED_ACTION = "android.media.VOLUME_CHANGED_ACTION";
/**
+ * @hide Broadcast intent when the devices for a particular stream type changes.
+ * Includes the stream, the new devices and previous devices.
+ * Notes:
+ * - for internal platform use only, do not make public,
+ * - never used for "remote" volume changes
+ *
+ * @see #EXTRA_VOLUME_STREAM_TYPE
+ * @see #EXTRA_VOLUME_STREAM_DEVICES
+ * @see #EXTRA_PREV_VOLUME_STREAM_DEVICES
+ * @see #getDevicesForStream
+ */
+ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
+ public static final String STREAM_DEVICES_CHANGED_ACTION =
+ "android.media.STREAM_DEVICES_CHANGED_ACTION";
+
+ /**
* @hide Broadcast intent when a stream mute state changes.
* Includes the stream that changed and the new mute state
*
@@ -196,6 +212,18 @@ public class AudioManager {
"android.media.EXTRA_PREV_VOLUME_STREAM_VALUE";
/**
+ * @hide The devices associated with the stream for the stream devices changed intent.
+ */
+ public static final String EXTRA_VOLUME_STREAM_DEVICES =
+ "android.media.EXTRA_VOLUME_STREAM_DEVICES";
+
+ /**
+ * @hide The previous devices associated with the stream for the stream devices changed intent.
+ */
+ public static final String EXTRA_PREV_VOLUME_STREAM_DEVICES =
+ "android.media.EXTRA_PREV_VOLUME_STREAM_DEVICES";
+
+ /**
* @hide The new master volume mute state for the master mute changed intent.
* Value is boolean
*/