OSDN Git Service

Track the global setting of BT A2DP on/off
authorSungsoo Lim <sungsoo@google.com>
Thu, 24 Aug 2017 01:25:06 +0000 (10:25 +0900)
committerSungsoo Lim <sungsoo@google.com>
Thu, 31 Aug 2017 06:57:56 +0000 (15:57 +0900)
commit76512a3d80dff2d32b68f3b3b6a14d4ed81ae90a
tree0c5a4b480f597bd285087ba65540447d40403636
parent8d1a86ca0f0c2aa10928e47a1bcc6bfab7e741ba
Track the global setting of BT A2DP on/off

The default phone speaker, bluetooth audio devices, and wired audio
devices are handled as system audio routes. When an app starts to
make sound to a system audio route, the system audio route will be
selected with the following order.

1. The slected route by the app after the latest connection of
   an audio device.
2. The lastly connected audio device.
3. The default phone speaker if not connected.

Bug: 64811580
Test: Passed MediaRouterTest, manual
Change-Id: I77badb14596bc661c44237957504164f5476e595
media/java/android/media/IMediaRouterService.aidl
media/java/android/media/MediaRouter.java
services/core/java/com/android/server/media/MediaRouterService.java