History log of /packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7d4aa832cb9a8a9f21ce0fad5510ae82526c3d28 27-Jul-2016 Marie Janssen <jamuraa@google.com> Fix bugs in play status and play pos notifications

Fix multiple issues with status notificatios:
* Playback state was not being sent when state wasn't sent
accompanying a metadata change
* Play state was being sent without an update
* Position was being sent without a change and with the wrong
indicator
* Position was not being scheduled for update when playing.
* Position was being scheduled for update when paused / stopped.

Bug: 30459664
Bug: 29400658
Bug: 28639383
Change-Id: Ic550dcab0430be45187b0267cc77875740388a2a
(cherry picked from commit fa81085f6cda571d56c62eb1d646ae4a52cb90ee)
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
84d3f084d4d1a65eb7a481e5a7fe4a6ac827be7b 12-Jul-2016 Marie Janssen <jamuraa@google.com> Fix AVRCP crash, position and state tracking

When the MediaController goes away (media stops) a NPE would cause a
crash.

Initialize the position so that an initial notification gets sent
when position is requested, send it when the music is paused, and
send play state whenever the app sends us a play state update.

Bug: 30039744
Bug: 29416450
Change-Id: I44397b3dc40d328fa75a2c15875fad298a5090dd
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
eb9e6ef0ecde4929fa2df1aa4cc8954d88d3b452 30-Jun-2016 Marie Janssen <jamuraa@google.com> Refactor playback position tracking

Use PlaybackState directly to track the position through time. Update
the state when necessary (track changes, etc.)

Remove complex logic and centralize sending of Play Position
Notificaiton response and scheduling.

Update dumpsys and add current package session.

Bug: 29416450
Bug: 29606822

Change-Id: Ie82b48d6d7f9e1a05b64835731433d05a3a3a41a
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
0fcd081cccbf624a3a886fe4eb68adc3498e695c 25-Apr-2016 Marie Janssen <jamuraa@google.com> AVRCP: Provide more media attributes

Add track number, total tracks, genre, and consolidate MediaAttribute
handling into a single place.

Bug: 28589463

Change-Id: I53049bc2a43c0f30af9639fbc3d6a02cd8a74900
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
2583f09407c8265c12d198d408692c75eabf22a3 09-Mar-2016 Liejun Tao <baibai@motorola.com> Absolute volume: Black list device if remote can't change volume

If remote device failed to change volume too many times, black list it
to avoid using Absolute volume feature.

Bug: 26694114
Change-Id: Idb7a772b0ef936b2351bfc92722ec3c0d748822c
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
2fc493d0ea2b504df25d783a488dfadfe301329e 19-Apr-2016 Marie Janssen <jamuraa@google.com> AVRCP: Use MediaController

RemoteController has been depreciated since M.
MediaController lets us track a lot more things and update data as the
state of audio changes.

This also should fix some bugs related to metadata display not happening
on startup / track change / app change.

Bug: 27178384
Bug: 27745277
Bug: 26837775
Bug: 27534794
Bug: 27153373
Change-Id: I246d9641a5e921ed4434495f5c2dfac67d568952
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
e2c4671a8c5d01f053b5b8e0c728d69d561abdc2 15-Apr-2016 Marie Janssen <jamuraa@google.com> AVRCP: Don't assume 0:00 on metadata change

When changing between apps, and changing between songs, the Media
framework sends us the position data before the metadata, so
setting it to 0 wipes out our position.

Fixes: 27745277
Change-Id: I2d309df424c8889928da9601b367d488bba89919
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
65e7943d098113c5aa56e9822b68f0c51c6dbe36 05-Apr-2016 Marie Janssen <jamuraa@google.com> Enable logging for AVRCP Metadata changes

We're seeing a lot of AVRCP metadata issues, so enable some logging of
metadata in hopes of collecting more information.

Bug: 26837775
Bug: 27153373
Bug: 27178384
Bug: 27745277
Change-Id: Ie425ad2a5e090aa4363dab6b853479eeda35cef6
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
7a51f31646fa78a10bb89ff691a9e1fb8b8a1e34 05-Feb-2016 Andre Eisenbach <eisenbach@google.com> Merge "Enhance AVRCP Absolute Volume control implementation" am: b8a26db0b7
am: 6b82837c0f

* commit '6b82837c0facc5f3c343a00f407abd6ee2312496':
Enhance AVRCP Absolute Volume control implementation
11798b011c962b602217b479130d413f3b30f19a 18-Dec-2015 Liejun Tao <baibai@motorola.com> Enhance AVRCP Absolute Volume control implementation

1. Remember the current local volume level, current remote volume level.
When user adjusts the volume, compare the returned remote volume
level with desired volume level, if they don't match, do retry.

2.Learn and remember the volume mapping between phone volume level and
remote volume level as the user adjusts volume. When user adjusts to one
remembered volume level, use the mapping directly. Otherwise calculate
the remote volume level and try with method described in step one.

3. Blacklist device if remote device does not tell its initial volume.

4. Define optional threshold for initial volume level to avoid headset
being too loud upon re-connection.

Signed-off-by: Liejun Tao <baibai@motorola.com>
Change-Id: I78112f5f401666f5a680561473a5c7f914071fbe
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
bba0a48e032a216f22722baadbe39f7e43fd124a 10-Nov-2015 Jean-Michel Trivi <jmtrivi@google.com> Remove useless imports

Change-Id: I306df32b76612d5de2b8741e858298fd7aae5c36
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
e8e870c24930f9b687572dbb80614e5aad6fbdfa 03-Jul-2015 beryl hou <beryl_hou@asus.com> Return no track selected if no track is currently selected.

Fix to satisfy AVRCP 1.4 spec.
In EVENT_TRACK_CHANGED response request,
if a track is selected , then return 0x0 in the response.
if no track currently selected,then return 0xFFFFFFFFFFFFFFFF in the INTERIN response.

Bug: 22519285

Change-Id: Iaaae1d4acf918049d99c27d9ad98bde15242ade1
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
838949d46a4cc054985a8cfd682004f8dd6d3bbb 28-Oct-2014 Mike Lockwood <lockwood@google.com> Add dumpsys support for bluetooth

Bug: 18159457
Change-Id: I807a7d921b6e5baf111d0f0e3e182c6633a93b7c
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
22bad7047263a6924423d12718738fdcc7b0352c 09-Oct-2014 Ravi Nagarajan <nravi@broadcom.com> Update AVRCP play status only if music is streaming

AVRCP play status was updated based on AVDTP stream state. Enhanced this
logic to update the status only when music is streaming
bug 12099469

Change-Id: Idef0180cd0d0b78fa392a5354320440fce9b81a7
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
881675b362bde18acbbcf69c513175addca4a8ba 27-Aug-2014 Zhenye Zhu <zhenye@broadcom.com> redirect the ff/rw key event to ff/rw enabled player

Added code to cleanup the forward/rewind
event queue and redirect the key event to
the ff/rw enabled player
Bug 16890205

Change-Id: If09c0693621d9f36fb7dc14177597e30450b87b6
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
9cf6c591c43c4dba90b5c2e26a5f93368682c9cc 25-Jun-2014 RoboErik <epastern@google.com> Merge "Disable debug messages that were left on"
8e0d927632cce4ad53df85fb7627b915c5fbd64b 24-Jun-2014 RoboErik <epastern@google.com> Disable debug messages that were left on

Forgot to disable with my last change.

Change-Id: I502e77071745bd5f9d98aa9ce963b927effc2d46
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
7af55657d171df8336cbcce0687d1225fe0f5312 25-Jun-2014 Matthew Xie <mattx@google.com> am d1d30b03: am 663fb577: Merge "Use round() instead of ceil() in calculation of a2dp vol slider position"

* commit 'd1d30b0340aa30982c85ba0d69f918ed127679ef':
Use round() instead of ceil() in calculation of a2dp vol slider position
6e29e12add362546784126119f26f04fc760f021 19-Jun-2014 RoboErik <epastern@google.com> Update Avrcp to use RemoteController

Avrcp was using IRemoteControlDisplay directly. This converts it to
the public api instead.

Change-Id: I0740687ed20da69d3522e9e9e7dc55bb1f374ecc
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java
066ad9e16a548218b139424f758b92db7af34af2 06-Jun-2014 Mike Lockwood <lockwood@google.com> Move AVRCP Controller support to new BluetoothAvrcpController profile

Change-Id: I865f77c85d971bf06dbc0643722abad7f6b94ab9
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/Avrcp.java