OSDN Git Service

Always move Bluetooth Adapter to cold state when turn off Bluetooth.
authorMatthew Xie <mattx@google.com>
Wed, 2 May 2012 20:09:58 +0000 (13:09 -0700)
committerMatthew Xie <mattx@google.com>
Wed, 2 May 2012 21:15:10 +0000 (14:15 -0700)
commit7f58b36fec386b3e403a1eb32b506d60be080f10
tree2d33508c84533bf3639e18ccc8e15dd3807f68a2
parentd72ad2ac88ae8477a95e18a800062446a58c524d
Always move Bluetooth Adapter to cold state when turn off Bluetooth.

quick switch feature introduced in ICS does not work very well. Reported
logs indicate the Bluez stack cannot sustain the long time ON/hotoff state.
This change will always move the adapter to code but move it to hotoff
to be able to turn on quickly.
bug 5792792

Change-Id: I41c39d4bf11bb5eb3cd83279e8ec81e01774e008
core/java/android/server/BluetoothAdapterStateMachine.java