History log of /packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
70ec6e99b31e283aa14fe236a487901718e84d6f 19-May-2018 Powei Feng <powei@google.com> On STR_START, request audio focus for TV only

Bug: 79779046
Test: Manual
Change-Id: Ic44eb897ef755b25680122bdd505e38a5b072679
(cherry picked from commit 4745665d2d26c9d74752baf8ce1dc5414a07c7d0)
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
52bb423cb93e7b9434e077081aacd9944d61f1f2 14-Mar-2018 Joseph Pirozzo <pirozzoj@google.com> Playback resume after call

Under normal circumstances music is paused automatically when placing a
call, when there are multiple phones involved it is sometimes necessary
to pause the music on phones not making a call. When audio is resumed
there needs to be sufficient time for all devices to register that the
call has ended before music can resume.

Bug: 73133707
Test: runtest bluetooth -p com.android.bluetooth.hfpclient and manual
testing

(cherry picked from commit 13405d11e19b9d636ea7613121b041d33638c6c0)

Change-Id: I93c5eb9786664b1251dc7c4d2d846d33eb58e72c
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
bb2a6719d64cc3384470863655a29de76116e8c2 06-Dec-2017 Joseph Pirozzo <pirozzoj@google.com> Prepare Media Session

Update A2DP Sink such that when the associated media session is prepared
audio focus is acquired and streaming is permitted to begin from either
the phone or car until another app takes permanent media focus.

Bug: 69833231
Test: Manually run all associated music apps.
Change-Id: I9e180b0558d80b8f4185c6cc724aeaf833891df5
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
c4fbd756e2645147470c486ae96f2253f5e13a52 12-Oct-2017 Jack He <siyuanh@google.com> [Script] Fix checkstyle errors (1/2)

Format code using Intellij to conform to CheckStyle requirements

Bug: 63597465
Test: make checkbuild, no manual changes, no functional changes
Change-Id: I70cd2ab8e5e6d5428ab1556658735b0d83f4fb15
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
2fbb1d97d08d5d72fe824e543c714e56cd7be236 10-Oct-2017 Jack He <siyuanh@google.com> [Script] Add @Override annotations to overriden methods

* Run "Missing @Override annotation" inspection in Intellij and perform
automatic fixes

Bug: 63597465
Test: make checkbuild, no manual changes, no functional changes
Change-Id: I3607581a0538ecce382dbb68742f40662bca6cad
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
b35be832f50ad31e2b100fea1344136a32173d60 28-Sep-2017 David Rim <davidrim@google.com> Merge "Enable bluetooth a2dpsink to request audio focus from source"
597356381e0aa89b908094c9cfcd94f30bfd124d 15-Sep-2017 Joseph Pirozzo <pirozzoj@google.com> A2DP sink audio focus

Update AudioFocusRequest to receive notification on
AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK.

Bug: 38389934
Test: stream music over Bluetooth and play Nav guidance, observe music
is ducked.

Change-Id: I1b4d33fd63cc6033c06bf24ac0f9a41aeeaf292d
Merged-In: Id0403116019e46191508ed9a4f6f627467db1726
(cherry picked from commit c1a28a6353131f59c23865440ee37a7e208d7d2c)
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
c65865e15d7ffd254a16a8cc0b1afd0e8b68fa70 01-Sep-2017 Joseph Pirozzo <pirozzoj@google.com> AVRCP getConnectedDevices

Utilize the same connectedDevice list rather than asking the
avrcpService for the list multiple times possibly yielding different
lists.

Bug: 63103934
Test: Insert delays and disconnect BT while in the middle of sending
play/pause commands.

Change-Id: Ib6016d853cf1e7e72923df851e7a17752bfee07d
Merged-In: I85b6ce47b1724557b298c54e0a73bef8849ac3ba
(cherry picked from commit 673e4dc38242dcdfcd294e720dd392d8b1fd68c1)
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
99be05cc9c25d4d9f541b0c3bc5f4e28996a06b4 18-May-2017 Dave Rim <davidrim@google.com> Enable bluetooth a2dpsink to request audio focus from source

- Allow source to initiate play on IoT devices without having audiofocus
first
- Added mockPackageManager and testSrcPlayIot to A2dpSinkStreamHandler
unit test

Test: Bluetooth a2dp sink works using the sample-audio-bluetooth
sample app
Bug: 38098044
Change-Id: I98472c857afa4922ae9ce118c1bcf0f801ffd304
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
2938b62a0f172680d726a351b609e83c4b2e81f7 19-Apr-2017 Joseph Pirozzo <pirozzoj@google.com> A2DP sink audio focus

Resolved a bug where BT media fails to pause and subsequently resume during
a transient audio focus loss as is seen during voice recognition.
Resolved a bug where BT media may not resume after a phone call due to an
audio focus race condition.
Resolved a bug where BT phone notifications could interrupt and disrupt
an ongoing media session such as radio or local media player.

Bug: 34853256
Bug: 36529639
Bug: 37288772
Test: runtest bluetooth -c
com.android.bluetooth.a2dpsink.A2dpSinkStreamHandlerTest
Change-Id: I5261d24fd7bbe49bf61c48fdf2c9ae86934dcd3d
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java
b591f3801c7de7a12e52f47483e8c2a714c7c131 25-Jan-2017 Joseph Pirozzo <pirozzoj@google.com> A2DP Audio Focus

Update A2dpSinkStateMachine to handle audio focus for notifications and
navigation. Simplified state machine to boolean flags to track user
intent and availability of audio stream and audio focus.

Bug: 31215324
Test: Manual music streaming, navigation, and assistant. Tested
navigation, assistant and music streaming with phones from several major
manufacturers. Tests were to verify proper transitions in both audio
and playback state while music was playing locally and streamed via
Bluetooth. Additionally b/34722788 was written to capture unit tests.

Change-Id: If8e89588ca24bdedf2c57c989f8a960353ccbe9a
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandler.java