OSDN Git Service

Add a way to query for supported Bluetooth profiles.
authorBryce Lee <brycelee@google.com>
Sun, 9 Oct 2016 19:54:42 +0000 (12:54 -0700)
committerSanket Agarwal <sanketa@google.com>
Tue, 1 Nov 2016 22:13:04 +0000 (15:13 -0700)
commitf6b74dea040e3be9693a977605e9eb46c7e4032a
treeb074571fffbb46441b822b0b6a67197ad7ed0fe0
parent8bcd1592344abe240308a4030d73838d89d17054
Add a way to query for supported Bluetooth profiles.

Currently there is no way to get the profiles supported by the Bluetooth
adapter. Asking for a profile proxy of an unsupported profile does not
fail and can lead to code indefinitely waiting for the proxy response. This
new code will allow for checking the supported profiles before asking for
the proxies.

Bug: 26451648
Change-Id: I4b48e7151f5ca53851aa3b967c143fae140ecd34
(cherry picked from commit b1301fa2849bafd6daa422281dc5200863bc761e)
core/java/android/bluetooth/BluetoothAdapter.java
core/java/android/bluetooth/BluetoothProfile.java
core/java/android/bluetooth/IBluetooth.aidl