summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-05-20 18:03:31 -0700
committerRoboErik <epastern@google.com>2014-05-21 17:43:18 -0700
commit33983a901176adcc16c820444b667a37e6472243 (patch)
tree85da46326a455cd7cc9617e21ab638241a827398 /api
parentc106c12e566d48e81a0ad0bf7ee614c50c6aef39 (diff)
downloadframeworks_base-33983a901176adcc16c820444b667a37e6472243.zip
frameworks_base-33983a901176adcc16c820444b667a37e6472243.tar.gz
frameworks_base-33983a901176adcc16c820444b667a37e6472243.tar.bz2
Add stream/volume apis to sessions
This adds RemoteVolumeProviders which handle volume change events and a way to switch a session between local stream playback and remote playback handling. This also adds a way for an app to specify the PendingIntent to launch when we want to show their ongoing playback UI. Change-Id: I3a72bf2ec7ca55f61f50859ddc2988eebd491e9d
Diffstat (limited to 'api')
-rw-r--r--api/current.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index b2fe641..646c495 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -15746,6 +15746,9 @@ package android.media.session {
method public void sendEvent(java.lang.String, android.os.Bundle);
method public void setActive(boolean);
method public void setFlags(int);
+ method public void setLaunchPendingIntent(android.app.PendingIntent);
+ method public void useLocalPlayback(android.media.AudioAttributes);
+ method public void useRemotePlayback(android.media.session.RemoteVolumeProvider);
field public static final int FLAG_HANDLES_MEDIA_BUTTONS = 1; // 0x1
field public static final int FLAG_HANDLES_TRANSPORT_CONTROLS = 2; // 0x2
}
@@ -15814,6 +15817,18 @@ package android.media.session {
field public static final int PLAYSTATE_STOPPED = 1; // 0x1
}
+ public abstract class RemoteVolumeProvider {
+ ctor public RemoteVolumeProvider(int, int);
+ method public abstract int getCurrentVolume();
+ method public final int getFlags();
+ method public final int getMaxVolume();
+ method public final void notifyVolumeChanged();
+ method public void onAdjustVolume(int);
+ method public void onSetVolume(int);
+ field public static final int FLAG_VOLUME_ABSOLUTE = 2; // 0x2
+ field public static final int FLAG_VOLUME_RELATIVE = 1; // 0x1
+ }
+
public final class TransportController {
method public void addStateListener(android.media.session.TransportController.TransportStateListener);
method public void addStateListener(android.media.session.TransportController.TransportStateListener, android.os.Handler);