OSDN Git Service

AVRCP: Passthrough through MediaSessionService
authorMarie Janssen <jamuraa@google.com>
Fri, 24 Mar 2017 18:35:08 +0000 (11:35 -0700)
committerMarie Janssen <jamuraa@google.com>
Thu, 20 Apr 2017 16:03:08 +0000 (16:03 +0000)
commitbdcf510515b5b251b0b88ba3c05937661ca5da3f
tree3e46afbe9ae9a3d4e3319a5bec57946ce57724da
parentb3436e976055f684050be9afdadc73645316806a
AVRCP: Passthrough through MediaSessionService

Send passthrough keys through MediaSessionService instead of trying to
interpret them ourselves, and log who they get dispatched to.

Remove the hack around down fast-forward / rewind.

This should result in a lot less confusion about which app is addressed
when the user is sending a command (such as at car connection time).

Test: play / skip, switch app on phone, reboot, start from carkit, dumpsys logs
Bug: 33828042
Bug: 37476911

Change-Id: I8c8c40cb3792254a3720f64707e67fdcc940edaa
(cherry picked from commit 44a4da788f878d1946301dbf297dd7b938dfd730)
src/com/android/bluetooth/avrcp/AddressedMediaPlayer.java
src/com/android/bluetooth/avrcp/Avrcp.java
src/com/android/bluetooth/avrcp/AvrcpHelperClasses.java
src/com/android/bluetooth/avrcp/AvrcpMediaRspInterface.java
tests/src/com/android/bluetooth/avrcp/AddressedMediaPlayerTest.java [deleted file]