aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothHealthAppConfiguration.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "BluetoothHealth: hide auto-created default constructors" am: ↵Jack He2019-04-011-0/+7
|\ | | | | | | | | | | | | | | 463454432b am: f556ebd1c3 am: 2d8ec1f4be Change-Id: I042170e4b06ee298c063a84c8f7aaabe58a4c0dd
| * BluetoothHealth: hide auto-created default constructorsJack He2019-04-011-0/+7
| | | | | | | | | | | | Fixes: 123926561 Test: make Change-Id: I388472c82eaca245285b5ecf2959c415508d7e69
| * Deprecate BluetoothHealth APIsJack He2019-01-091-88/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 07ffaa447fdd967689901cca38eba386a8d97b23)
* | All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | | | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* | Deprecate BluetoothHealth APIsJack He2019-01-071-88/+34
|/ | | | | | | | | | | | | | * 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
* Fix checkstyle errors (2/2)Jack He2017-08-241-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * Manual style corrections with IDE assistance * Variable name refactors are done through IDE * Corrected general style errors such as: - "final private var" -> "private final var" - "&&", "+", "||" should not be at the end of line - Non-static private variable should be like "mVar" - Private static variable should be like "sVar" - Code file should always end with newline - Inherited methods should be annotated with @Override and no @hide tags - Public methods should always have a JavaDoc entry - "int[] array" is preferred over "int array[]" - private methods should be accessed without "this." when there is no name collisions. - "boolean ? true : false" -> boolean - "boolean ? false : true" -> !boolean - "boolean == true" OR "boolean != false" -> boolean - "boolean != true" OR "boolean == false" -> !boolean Bug: 63596319 Test: make checkbuild, no functional changes Change-Id: Iabdc2be912a32dd63a53213d175cf1bfef268ccd
* Fix checkstyle errors (1/2)Jack He2017-08-241-27/+23
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* Prevent NPE if someone creates a bad BluetoothHealthAppConfig objectAjay Panicker2016-09-231-1/+3
| | | | | Bug: 28271086 Change-Id: Ic8ebe3152e2b06c070316acc7e6a1f89763cd2a3
* Make Bluetooth Health APIs public.Jaikumar Ganesh2011-09-081-5/+3
| | | | | | | | Fix a few bugs: a) Pass a integer token to identify the channel. b) Close fds in case of errors. Change-Id: I2046787be5008769435f2f72a5bd67c19b749da0
* Bluetooth Health APIsJaikumar Ganesh2011-07-111-29/+16
| | | | | | | | | | 1. Remove the check of configs in BluetoothHealth. This check is useless since BluetoothHealth is a proxy. 2. Add a wrapper and a callback class. We shouldn't expose Binder interfaces as public APIs. Change-Id: If62620b4251cf93f3f97d2fe63099e40fae7da4d
* Implement APIs for Bluetooth Health profile.Jaikumar Ganesh2011-06-241-0/+180
This first patch implements all the APIs. The APIs wil be made public soon. The data specification API will be submited in another patchset. Change-Id: I2462683b7e07380e2c42474b0036b34d03b4bed1