aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothHidDeviceAppSdpSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bluetooth: Check descriptors size in BluetoothHidDeviceAppSdpSettingsJakub Pawlowski2018-11-291-0/+9
| | | | | | Bug: 119819889 Test: compilation Change-Id: If51d0e2af74d99758f79a603d40cc2f5c84e4dde
* HIDD: Address API Review concernsIvan Podogov2018-03-221-27/+33
| | | | | | | | | | | | | | * Replace bare field usage with getter methods; * Remove Builder; * Move BluetoothHidDeviceCallback to inner class; * Remove toArray() and equals(); * Throw IllegalArgumentException where applicable; * Add an Executor parameter before Callback; Bug: 72168436, 72168126 Test: make update-api, make, make sl4a.Common Change-Id: I13095458bf3ded7a376e8d20fd13df12ef426693 (cherry picked from commit f2f5dc355fa9a962ded0d29368535796aa4116d8)
* Publish Bluetooth HID Device Profile Service APIHansong Zhang2017-12-141-2/+0
| | | | | | | | Enable the BluetoothHidDevice API in framework. Bug: 63384609 Test: SL4A HID test; test with apps using BluetoothHidDevice Change-Id: I52ca4674f11179f865bdff22e0289dfe893c40f5
* Bluetooth HID Device: format code, fix docstring, hide unplug()Hansong Zhang2017-12-061-13/+12
| | | | | | | | | | | | * Reformat code with google-java-format * Add the note that When an application is registered, the HID Host service will be disabled until it is unregistered * Fix the links in docstring * Add @hide to unplug(); this is not a public API Bug: 63384609 Test: make Change-Id: I5dfcaab58b02c19e5745461c16602064a0ad8b83
* Bluetooth HID Device API docs and helperHansong Zhang2017-11-151-1/+19
| | | | | | | | | | | | * Add a builder for BluetoothHidDeviceAppQosSettings * Add documentation for BluetoothHidDeviceAppSdpSettings and BluetoothHidDeviceAppQosSettings * Fix the behavior of and BluetoothHidDeviceAppSdpSettings.equals() and BluetoothHidDeviceAppQosSettings.equals() Bug: 63384609 Test: test with HID device apps Change-Id: I933f4ec3034e1f704ddd614e48b76d27fda8b6ff
* Enable HID Device Profile Service (2/2)Hansong Zhang2017-10-271-3/+18
| | | | | | | | | | | | | Add Profile Proxy for HID Device Profile. * Add a helper method doUnbind() to deal with unbinding to Bluetooth HID Service. * Fix docstrings. Bug: 63384609 Test: SL4A Bluetooth HID test Change-Id: I168c21c3b010baac9889c556635b914c0ba3f267
* Fix checkstyle errors (2/2)Jack He2017-08-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-13/+11
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* Bluetooth: Add support for HID Device RoleHemant Gupta2016-12-291-0/+80
This patch adds the HID Device Role support in Bluetooth framework. Also AIDL and callback related files for HID Device role are added to provide interface for third party applications to communicate with HID Device Service. Change-Id: Id03a362b7bcfa2e76056fa0197eaac12ce49b5a2