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)
committerBryce Lee <brycelee@google.com>
Sun, 9 Oct 2016 19:54:42 +0000 (12:54 -0700)
commitb1301fa2849bafd6daa422281dc5200863bc761e
treee8ac4f3984c81e5f2bf116f89a9bd55dc7a6c894
parent4a1ea9ba7ed48b2c0e5096dbc0dd10b13830de50
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
core/java/android/bluetooth/BluetoothAdapter.java
core/java/android/bluetooth/BluetoothProfile.java
core/java/android/bluetooth/IBluetooth.aidl