OSDN Git Service

Bluetooth: Add convenience method to convert connection state to string
authorJack He <siyuanh@google.com>
Mon, 11 Dec 2017 21:11:20 +0000 (13:11 -0800)
committerJack He <siyuanh@google.com>
Mon, 11 Dec 2017 21:18:13 +0000 (13:18 -0800)
commit5252b97d6c8417e92a8918862be83e8afff1ca35
tree5904bde419030ab96a55019315029cc1d3414ed6
parent403c8f72e38114d0aadfd852b98b323827068e5b
Bluetooth: Add convenience method to convert connection state to string

* Add method to convert the following state values to string
  - BluetoothHeadset.STATE_DISCONNECTED
  - BluetoothHeadset.STATE_CONNECTING
  - BluetoothHeadset.STATE_CONNECTED
  - BluetoothHeadset.STATE_DISCONNECTING

Test: make
Change-Id: Iaa5b6e35d3214ded8edbe29d626e0869651417d1
core/java/android/bluetooth/BluetoothProfile.java