OSDN Git Service

BluetoothControllerImpl: track bluetooth better
authorJason Monk <jmonk@google.com>
Mon, 8 Dec 2014 21:36:16 +0000 (16:36 -0500)
committerJason Monk <jmonk@google.com>
Wed, 10 Dec 2014 15:32:43 +0000 (10:32 -0500)
commit4630c89a7642d1ae0d528f6d8e23cf89cba01b7d
tree062901e75db2b445332db5c32f6c7c17aba6c1ac
parentc5c93edd9354e956d9b0a4d85fc8372907e2b011
BluetoothControllerImpl: track bluetooth better

Match settings behavior better:
 - Get connection info from profiles so it is for all devices
   (CONNECTION_STATE_CHANGED only updates one)
 - Disconnect from all known connections so that 'x' does something
 - When device is disconnected without CONNECTION_STATE_CHANGED
   then find a new 'last' device that is connected
 - Listen to a bunch more broadcasts to make sure info is always
   up to date.

Bug: 18210666
Bug: 18638010
Change-Id: Ie003b67bbdd0d452b7472c644d90bca929e5cd29
packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothControllerImpl.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothUtil.java