History log of /packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
80fb98cd67e2cd8273ca78042c51fd7cbefd76bd 09-May-2018 Ajay Panicker <apanicke@google.com> Use custom metadata object for all logging

The metadata object in AVRCP handles null checks and fields properly
helping prevent crashes caused by poorly behaving media apps. Also add
the duration and track number and total number of tracks fields to the
metadata string.

Bug: 78562371
Test: Compile and "adb shell dumpsys bluetooth_manager"
Change-Id: Iaa9739f429795cbbb64b24eddfbf90beb8f090ba
Merged-In: Iaa9739f429795cbbb64b24eddfbf90beb8f090ba
(cherry picked from commit a9edfd4544b3091d597d61d99ccfa2475d3816d5)
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
faabf3d4b9f33c20183751911d4a88590c8af585 12-Apr-2018 Ajay Panicker <apanicke@google.com> Prevent NPE from null metadata in GPM

Bug: 77238060
Test: Compile
Change-Id: I360e1da83dcb147013cca7ccf6d14ee0f162ec54
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
99a82a9d6d6b7d86a2bd0aabeef7b193cfe623db 15-Mar-2018 Ajay Panicker <apanicke@google.com> Add the MediaPlayerList and fix some checks

The MediaPlayerList class handles keeping track of all the Browsers and
Media Controllers. It will also keep track of which is the active
controller and be able to return the most current metadata.

Fix the metadata equals check as it was comparing more than we wanted.
Depending on where you retrieve the information certain fields may be
filled out differenty even though the song represented was the same.

Also add a queue ID check for the MediaPlayerWrapper in addition to a
null queue.

Bug: 68854188
Test: Compile and Manual testing on full build
Change-Id: I1a25f5a44eb2b5b1775c04baefbfc66c018251e9
(cherry picked from commit 97229a2406d884b4692d77b5e12c0de0063e70f7)
Merged-In: I1a25f5a44eb2b5b1775c04baefbfc66c018251e9
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
de778443fdb539d38db92069661fdc18626a4c9c 09-Mar-2018 Ajay Panicker <apanicke@google.com> Add the BrowsedPlayerWrapper

The BrowserPlayerWrapper provides a convienent interface for AVRCP to
use that handles all connections, and requests with a convienent API.
Also this patch adds a mockable MediaBrowser as well as adding the
MediaControllerFactory and MediaBrowserFactory classes in order to make
injecting test objects much easier.

Bug: 68854188
Test: runtest -c com.android.bluetooth.avrcp.BrowserPlayerWrapperTest
Change-Id: I34b5326eaf35d8db43f6a8d709f60ade4c642e88
(cherry picked from commit 390145f1fd2f83bbfb2576823a9c9d7831efa152)
Merged-In: I4f80c17e4290d36c9948eb46cce6745b810173a0
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
f4a6530f8771f88baec6f6e1f7ee3ce9cc64e2f0 09-Mar-2018 Ajay Panicker <apanicke@google.com> Add utility objects to unify all media metadata types.

Right now there are four types of metadata in the media framework.
MediaMetadata, MediaDescripion, MediaSession.QueueItem, and
MediaBrowser.MediaItem. This patch provides utility functions to merge
all of these into the Metadata class to be used throughout AVRCP.

Bug: 68854188
Test: runtest bluetooth -c com.android.bluetooth.avrcp.MediaPlayerWrapperTest
Change-Id: I0213473b7a6e54e8a1ca7a3d651bf12ad6139f8e
(cherry picked from commit dbed4ea9ddc73fb248feb2e2f513752696ce4536)
Merged-In: I24b3816db2410dd7428f443036cbf869da1fb89e
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
22dc412f7fb88631376c9f2f407304945e389efa 08-Mar-2018 Ajay Panicker <apanicke@google.com> Remove browsing requirement from MediaPlayerWrapper for queue support

An incorrect asumption was made that browsing was required in order to
have a now playing list. For AVRCP this is true, but in the Media
Framework a player can support browsing but have no queue and vice
versa.

Bug: 68854188
Test: runtest bluetooth -c com.android.bluetooth.avrcp.MediaPlayerWrapperTest
Change-Id: Ic4fa856e2576712f196316efe1b66f85fa1570bf
(cherry picked from commit 567a31d99c8da7bfcbf2eaad3d4f3276064932f4)
Merged-In: I11b1f4c2629476308939cdc424904b2aa2814b37
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java
d961c7811a632a467d4ee38ab7ba6469c0fc5ae2 17-Nov-2017 Ajay Panicker <apanicke@google.com> Add a MediaPlayerWrapper for Google Play Music

Google Play music hides metadata behind a special key in a special way.
This class adds a compatibilty wrapper that lets AVRCP retrieve data
from Google Play Music in a standard way.

Bug: 63117921
Test: See that we retrieve metadata from Google Play Music
Change-Id: I8890c9aa8d275b8382d250de57d9cd5f28b84295
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/GPMWrapper.java