summaryrefslogtreecommitdiffstats
path: root/cmds/media
Commit message (Collapse)AuthorAgeFilesLines
* AVRCP 1.5 implementationAyan Ghosh2015-10-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AVRCP 1.5 Implementation Change-Id: I9a21348ec7e0c21735448ea29b781167f01e1580 Bluetooth: Add Total track number. Add support to add total number of tracks in Meta-data Change-Id: I5b1287f791615adcd4f920fe5c7cae0c7c7b04ea CRs-Fixed: 627869 Bluetooth: Modify Avrcp 1.5 implementation to adapt to latest AOSP changes Modify Avrcp 1.5 implementation to adapt to latest AOSP changes. CRs-Fixed: 719567 Change-Id: I0958fb12f573054f1da16df0ac46f3bec7374222 Move media player list management to Audioservice Move media player list management to Audioservice so that list is retained even after BT restart. Change-Id: Ia2455e6def1900b4af2225c50e1b5325a7ce1a98 Update RemoteController on Session update Update RemoteController on Session update in order to update AVRCP player list to honor peer initiated browsing command. This change fixes AVRCP browing failure due stale entry of player session upated to AVRCP player list after device reboot. Change-Id: I529a13e2c8a70e4b53319798c952b41f369b8bec Introduce new interface class for Avrcp Browsing feature Separate out Avrcp Browsing Apis from SDK interface class to ensure compatibility with all available apps implementing the mentioned SDK interface class. Change-Id: I713527ee3622ba28fe92d5bc743b9471632299b3
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-1/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Allow null queues to be set in MediaSessionRoboErik2014-09-241-1/+2
| | | | | | | Also add some test code for it to OneMedia. bug:17593962 Change-Id: I074e2bb0329d9a97f623e4309bb7dada157b8324
* Fix crash in legacy apps that register without a looperRoboErik2014-08-141-1/+9
| | | | | | | | | Some legacy apps registered their media button receiver in a thread without a looper. If this happens we need to use the main looper to prevent a crash. bug: 16306226 Change-Id: Idf472e649393e2a7ce2a3e1cbb3476003ab17f34
* Add an onSessionDestroyed callback to MediaController.CallbackRoboErik2014-08-131-0/+7
| | | | | | | | Callbacks on the controller need to know when the session ceases to exist. bug:17009030 Change-Id: I0f1c1cfc51f7dd2203955287cc269667d3765ee4
* Add display metadata and change strings to CharSequencesRoboErik2014-08-051-1/+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
* Add context to MediaController constructorRoboErik2014-07-281-20/+57
| | | | | | | | This also adds a convenience method to MediaSession to allow getting a controller instead of having to create and cache your own. bug:16561220 Change-Id: I87f551a7474e71f1cf2f07e0e541c3a4515cd977
* Add getPackageName to MediaControllerRoboErik2014-07-251-9/+7
| | | | | | | | | This removes the MediaSessionInfo class and adds a method on the controller to get the package name. This also converts code that depended on the session's UUID to use the token for comparison or the Tag in the case of test code that needs a string identifier. Change-Id: Icb8dc76c70e23e897da8fd07651c524b96372bf9
* Make MediaSession and MediaController constructors publicRoboErik2014-07-161-2/+2
| | | | | | | | | | 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
* Delete first draft of media routing APIs.Jeff Brown2014-07-141-6/+0
| | | | | | The new APIs will not be as tightly integrated into MediaSession. Change-Id: I5cfd37d9d8d0c5d46c55edb5cf0772a8f1ef13ab
* Remove some more old code and fix Media commandRoboErik2014-06-191-61/+105
| | | | | | | | | Removes some more hidden apis from AudioService/Manager. This also fixes up Media.java to support commands for the new service to help with debugging. Also fixes a couple bugs that were found while fixing up Media. Change-Id: I68e4aa80a4de430b98236aafc883664b9432c62b
* Also rely on enabled notification listeners for RemoteController registrationJean-Michel Trivi2013-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Registration of a RemoteController may succeed only if: - the caller has the MEDIA_CONTENT_CONTROL permission, - or if the RemoteController.OnClientUpdateListener it registers if one of the enabled notification listeners. For using the "enabled notification listener" functionality, the CL involved: - making OnClientUpdateListener an interface so a 3rd-party application may have its implementation extend NotificationListenerService, which is required for a listener to be enabled by the user. - add the concept of "enabled" status in an IRemoteControlDisplay, so a RemoteController (which encapsulates the IRemoteControlDisplay implementation) may be registered, but later temporarily disabled by the user, as a result of a user action in the security settings, or a user switch. - making MediaFocusControl, the component tied to AudioService, monitor changes in enabled notification listeners, and act upon enable/disable changes. Bug 8209392 Change-Id: Ia8dfa2156c65668b2b0d4ae92048005912652d84
* Have audio service clean up new receivers in crashing processes.Dianne Hackborn2013-04-085-0/+431
The new media button receiver with only a pending intent (no component name) could be left hanging if the process that registered it went away. These semantically need to be tied to the calling process's lifetime; we now clean them up when the calling process goes away. Also added some additional cleanup of media button receivers when packages change (updated, cleared). And on top of that, a new "media" command for doing media things. Currently lets you send media keys and monitor remote display data. Oh and finally added a new BaseCommand base class for implementing these command line utilities. Change-Id: Iba1d56f10bab1eec4a94a7bb1d1c2ae614c8bcf5