870c5a6593f723211a4a90766be9191c69f38570 |
|
03-Dec-2014 |
RoboErik <epastern@google.com> |
Tweak the behavior of the MediaSessionStack This makes the following changes in behavior: -We will only cache a pending intent for a session if it reaches the one of the playing states. -If a previously priority session is removed the next session only gets priority if it is in a playing state. Otherwise we use the removed session's PendingIntent. -The last session to have been playing or to have been added gets priority after any currently playing sessions, but only if it is still in the list of active sessions. -We will only use a session that isn't playing and isn't the most recently playing/added if we don't have a PendingIntent from the last playing session to fall back on. bug:18589421 Change-Id: I650c56a782bb1f1d5e64d7574a7d2387606f3b17
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
de9ba39c1714f5bc9e1785d8224ad26c132b6293 |
|
26-Sep-2014 |
RoboErik <epastern@google.com> |
Don't forward media keys to the app if the phone session is active This checks if the phone app is currently getting or in a call when a media key event is sent and sends it to the phone session instead of the foreground app if it is. bug:17527302 Change-Id: Ie5d6cf0c897da81d106f2b1a0561b79f4fc35e82
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
23b113592a5f461ec66026cbf8bce253cb8d3a46 |
|
24-Sep-2014 |
RoboErik <epastern@google.com> |
Clear the volume cache for all inactive state transitions bug:16988480 Change-Id: I0426c76681f8ec832c3f72842ee494d286050fea
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
d2b8c947ddfc6349a3ae6c3968b422b9cf50d7ed |
|
19-Aug-2014 |
RoboErik <epastern@google.com> |
Api updates to MediaSession components -renames get/setBufferPosition to get/setBufferedPosition -renames getLaunchActivity to getSessionActivity -adds doc link to setVolumeTo flags param -renames setLaunchActivity to setSessionActivity -hides setMediaRouter -moves PLAYBACK_TYPE_ constants to MediaController.AudioInfo -adds addOnActiveSessionsChangedListener version with a handler parameter -renames AudioInfo to PlaybackInfo bug:17114404 Change-Id: I0fbfe4eb979cb2af98e3f13095c654bb131f7ae5
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
4d26598677095e74e30fc12f46a769cac800f946 |
|
12-Aug-2014 |
RoboErik <epastern@google.com> |
Fix registering global priority sessions We were never setting a global priority session due to a change in the way sessions were registered. This makes sure a global session gets set correctly. bug:16930866 Change-Id: I859846c9265e98bb1a37ff9d22808137e787ce18
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
01a500ed1c6ae3fff66678144ae637aa8cad0ecc |
|
11-Jul-2014 |
Jeff Brown <jeffbrown@google.com> |
Delete first draft of media routing APIs. The new APIs will not be as tightly integrated into MediaSession. Change-Id: I5cfd37d9d8d0c5d46c55edb5cf0772a8f1ef13ab
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
19c9518f6a817d53d5234de0020313cab6950b2f |
|
24-Jun-2014 |
RoboErik <epastern@google.com> |
b/15729204 Pipe sessions through to VolumePanel When remote volume is changed via volume buttons we need to notify the system UI so it can show the slider. This also passes it the controller to use so adjustments to the slider are sent back to the correct session. Change-Id: If5847bcd5db16c56e0e9904b88c94e5b28954c41
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
2e7a9167aeefeb451f8d8c769175b9a0163744f3 |
|
05-Jun-2014 |
RoboErik <epastern@google.com> |
Adds listeners for changes to the list of active sessions The listeners get notified when sessions are added, removed, or reprioritized. Change-Id: I7f3bfc84049719c3b9c19016c6bac92e1a5c3179
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
b69ffd4dc2c8fa85e0064151141ebeee90de471e |
|
30-May-2014 |
RoboErik <epastern@google.com> |
Minimum work to make volume handling work with sessions This is the minimum change to make adjusting volume work with MediaSessions. This only affects adjusting the volume and adjusting the volume with a suggested stream. Adjusting a specific stream or setting a specific stream will still use the same code. This does not fix existing remote volume handling in RCC, which will require a separate change to MediaController. Change-Id: I5b957ff4bece1ee11e2364e1f216e1c08343c983
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
79fa4630bbca7c6c251eea99fe8997e4b45becee |
|
28-May-2014 |
RoboErik <epastern@google.com> |
API changes to sessions Changes requested by API Council review. A second CL will refactor TransportController and TransportPerformer based on feedback. Change-Id: Ie26a7d01d7021232a66c2edf1eb58120437fdfde
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
42ea7eecd149161ed192d3029f0d77d1d08a4aa5 |
|
17-May-2014 |
RoboErik <epastern@google.com> |
Rename session classes to have media prefix, hide routes This renames several of the core session classes to be prefixed with Media. It also adds @hide to all route references for now. Change-Id: Idb42897d490cf24626e4e93ca975b2cb93ec054c
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
4646d288821d62fdfe481be67d8b7fed7d7eabd8 |
|
13-May-2014 |
RoboErik <epastern@google.com> |
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
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
a5b02329209be355eafadbdf9ee685ffa58d3148 |
|
08-May-2014 |
RoboErik <epastern@google.com> |
Make sessions aware of user id This tags all sessions with the user id that they were created for. It also adds API for creating and querying sessions for a specific user. This does not wrap providers per user yet which will be done in a separate CL. Change-Id: Icdaf701b0614a95301657998602c45208d548c27
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|
a8f951462791a16f47e8c07e552232f31dcefac5 |
|
05-May-2014 |
RoboErik <epastern@google.com> |
Add a class for managing Session priority Priority is given first to the system priorty session, then to active local sessions, then to active remote sessions, then to the rest of the sessions. Ordering within categories is by whoever last performed an action we associate with the user. The stack has methods for getting filtered sets of this priority. This also: -Changes publish to setActive(boolean) -Adds a flag for handling media buttons. -Adds a flag for transport controls instead of enabling once. -Unhides the setFlags API. -Updates the legacy helper to use the flags. Change-Id: I6ebeb27410de1b24149fd6e1785613ac444f0774
/frameworks/base/services/core/java/com/android/server/media/MediaSessionStack.java
|