summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-05-13 10:13:04 -0700
committerRoboErik <epastern@google.com>2014-05-14 13:19:48 -0700
commit4646d288821d62fdfe481be67d8b7fed7d7eabd8 (patch)
treeac21a45a6ad5829708056e375dd530f107224dd7 /api
parent515396a6b5ee3eab57fed87ee0f4aa63783e2e61 (diff)
downloadframeworks_base-4646d288821d62fdfe481be67d8b7fed7d7eabd8.zip
frameworks_base-4646d288821d62fdfe481be67d8b7fed7d7eabd8.tar.gz
frameworks_base-4646d288821d62fdfe481be67d8b7fed7d7eabd8.tar.bz2
Add UserRecords to separate user interactions
Each user record maintains the list of sessions and providers that are running under that user. Lifecycle for providers has been modified to stop discovery when the user is no longer current but keep the binder connection open so long as there's a session that has selected a route from that provider. When a user is stopped all providers on that user will be unbound even if they were still in use. Change-Id: Iadf1efded3415f7ecf384d3a73513883de9c86b0
Diffstat (limited to 'api')
-rw-r--r--api/current.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt
index 17f5e53..30bbc8b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -15548,7 +15548,7 @@ package android.media.session {
method public void addCallback(android.media.session.Session.Callback);
method public void addCallback(android.media.session.Session.Callback, android.os.Handler);
method public void connect(android.media.session.RouteInfo, android.media.session.RouteOptions);
- method public void disconnect(android.media.session.RouteInfo);
+ method public void disconnect();
method public android.media.session.SessionToken getSessionToken();
method public android.media.session.TransportPerformer getTransportPerformer();
method public boolean isActive();
@@ -15558,6 +15558,11 @@ package android.media.session {
method public void setActive(boolean);
method public void setFlags(int);
method public void setRouteOptions(java.util.List<android.media.session.RouteOptions>);
+ field public static final int DISCONNECT_REASON_PROVIDER_DISCONNECTED = 2; // 0x2
+ field public static final int DISCONNECT_REASON_ROUTE_CHANGED = 3; // 0x3
+ field public static final int DISCONNECT_REASON_SESSION_DESTROYED = 5; // 0x5
+ field public static final int DISCONNECT_REASON_SESSION_DISCONNECTED = 4; // 0x4
+ field public static final int DISCONNECT_REASON_USER_STOPPING = 1; // 0x1
field public static final int FLAG_HANDLES_MEDIA_BUTTONS = 1; // 0x1
field public static final int FLAG_HANDLES_TRANSPORT_CONTROLS = 2; // 0x2
}