OSDN Git Service

Deprecate BluetoothHealth APIs
authorJack He <siyuanh@google.com>
Fri, 4 Jan 2019 00:23:41 +0000 (16:23 -0800)
committerJack He <siyuanh@google.com>
Thu, 10 Jan 2019 02:09:21 +0000 (18:09 -0800)
commit6b73b32c7a37a9d17f85079a35ea003240dbf62b
treecf9ff013e787515d353f61f022dcb5c77f4e69bf
parentdcfef16295126c0197e5e1f6449280efdf787fea
Deprecate BluetoothHealth APIs

* Mark all BluetoothHealth related APIs as deprecated
* Make BluetoothAdapter#getProfileProxy(context, BluetoothProfile.HEALTH)
  always return false
* Remove all logic behind BluetoothHealth APIs and add deprecation error log
* Health Device Profile (HDP) and MCAP protocol has been largely
  replaced by BLE. New applications should use Bluetooth Low Energy
  instead of legacy Bluetooth Health Device Profile

Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
Merged-In: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
(cherry picked from commit 2be70a11a2dff8c801fdf044d34657b41c2006c5)
api/current.txt
core/java/android/bluetooth/BluetoothAdapter.java
core/java/android/bluetooth/BluetoothHealth.java
core/java/android/bluetooth/BluetoothHealthAppConfiguration.java
core/java/android/bluetooth/BluetoothHealthCallback.java
core/java/android/bluetooth/BluetoothProfile.java