summaryrefslogtreecommitdiffstats
path: root/tests/OneMedia/src/com/android/onemedia/PlayerController.java
Commit message (Collapse)AuthorAgeFilesLines
* rename add/removeCallback to register/unregisterCallbackRoboErik2014-09-051-2/+2
| | | | | bug:17390821 Change-Id: Id610b481083686dba2a28b6c7c47b747f89eef4f
* Add metadata and notifications to OneMediaDaniel Sandler2014-08-141-0/+28
| | | | | | | This wires up a notification and some basic metadata for testing in OneMedia. Change-Id: I0f2e922536c85caa63f66dae7deb55ffe94fe231
* Add display metadata and change strings to CharSequencesRoboErik2014-08-051-2/+1
| | | | | | | | | This adds some fields for display purposes to MediaMetadata and also makes the default for all text CharSequence instead of String. Also adds a hidden method for getting a Description for the metadata. bug: 11708293 Change-Id: I0ed58d9ac3aeff41325c4ccf5fed0539bbf03b4d
* Fix checkbuildRoboErik2014-07-291-1/+1
| | | | Change-Id: I66321c6da4f921cee2db6f9f05312a6a8edc66d3
* Make MediaSession and MediaController constructors publicRoboErik2014-07-161-1/+1
| | | | | | | | | | This makes the MediaSession/Controller constructors public and registers with the system behind the scenes. This also adds a bit about needing to call setActive(true) to start receiving commands in MediaSession's docs. Change-Id: If882d229b54c36bf0831aca0255052dda667a2bc
* Add API to set a default session in ActivityRoboErik2014-07-141-3/+9
| | | | | | | | | | We may have multiple remote sessions at once so an app needs a way to specify a default session to route media and volume commands to when its activity is in the foreground. This adds an api that works in parallel with the default stream api on Activity. bug:15727927 Change-Id: I5b67cb3e20647f9437d90aa65be63efe8c7865cf
* Update media session test application for new media router.Jeff Brown2014-07-141-7/+1
| | | | Change-Id: I3c19e008d211099b4d7320e3f195850cfb4dd927
* Refactor transport controls APIsRoboErik2014-05-301-10/+3
| | | | | | | | | | This merges TransportPerformer into MediaSession + a TransportControlsCallback and makes TransportController into an inner class on MediaController called TransportControls. Also makes the PlaybackState and Metadata part of the session APIs instead of transport controls. Change-Id: I16ad392e6d318abe3119ad5d89656d253af25e16
* Rename session classes to have media prefix, hide routesRoboErik2014-05-161-8/+8
| | | | | | | 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
* Add RouteProviders to the new Media APIsRoboErik2014-04-171-8/+13
| | | | | | | | | | Compiles and works with OneMedia. This currently is a rough test of the system for finding, connecting to, and sending messages to routes. This will just connect to the first route it finds when a request to open the route picker is made (and disconnect when another request is made). Change-Id: I5de5521a079471b9e02664be4654c0591dfd9a6d
* Adds a TransportController and TransportPerformer to sessionRoboErik2014-03-121-13/+65
| | | | | | | | | This makes transport controls a primitive interface on sessions with a way to create the performer, register callbacks, and send commands and updates between controllers and performers. This still needs some cleanup but has been tested with OneMedia. Change-Id: I373d35f7ccc383b8421bd14044457467d80425f3
* Move Session apis to android.media.sessionRoboErik2014-02-251-2/+2
| | | | | | | This is to make it easier to distinguish the new apis from the old ones. Change-Id: Ic5eaf65e8bd054a844f87b9118c4bb18f30ac8a7
* Initial commit for MediaSession test appRoboErik2014-02-191-0/+157
This app creates a service and UI in separate processes and uses the new MediaSession APIs. This is still a rough work in progress. Change-Id: I9692c95bf2fdbee7255da86dff59044c893e3a1f