summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothGattCallback.java
AgeCommit message (Collapse)Author
2022-04-14Add Enhanced connection update SDK APIsSubramanian Srinivasan
Add support for following ECU support. 1. Enhanced connection update SDK APIs support. 2. Enhanced connection update support in Bluetooth apk and stack. CRs-Fixed: 3127801 Change-Id: I29a8d10aad4c797f7b082297dabaa3049bad5462
2022-03-17Address API council feedback on GATT API changes.Rahul Sabnis
This CL also updates the permission enforcement mechanism for GATT APIs so it now throws a SecurityException on new APIs as well as on older APIs called by apps targeting T+. Tag: #feature Bug: 217742355 Test: Manual Change-Id: I87fe2ffd088cbce4a9887538964e73f3f5198157
2021-11-05Deprecate GATT callbacks and methods that were not memory safe andRahul Sabnis
replace with memory safe versions. Tag: #feature Bug: 195157393 Test: Manual CTS-Coverage-Bug: 205190062 Merged-In: I5ae604ec20febcf646bfe6a8f866b218448349c1 Change-Id: I5ae604ec20febcf646bfe6a8f866b218448349c1
2020-09-26Make BluetoothGattCallback.onServiceChanged publicJakub Pawlowski
Bug: 154056389 Test: proper CTS test will be provided Change-Id: I2c9264910b65d62124c75c3ee3fd0b5bd18a2006
2020-09-24Expose service changed event to application (2/3)HsingYuan Lo
Handle service changed event from GattService Bug: 154056389 Tag: #feature Test: test service changed scenario Change-Id: If56dcbd7cf17b23c88cceb9c67c5d75b21320965
2020-09-14Update language to comply with Android's inclusive language guidanceJeff Sharkey
See https://source.android.com/setup/contribute/respectful-code for reference Test: none Bug: 168334533 Exempt-From-Owner-Approval: docs updates Change-Id: Id1a0f2a38e41badee3a34bd71af240511f273a7b
2017-08-24Fix checkstyle errors (1/2)Jack He
* Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
2017-04-25Bluetooth: document status value in PHY read/updateJakub Pawlowski
Bug: 37544152 Test: none Change-Id: I2bac468f833c73cd282b1dac80b6553917996604
2017-03-24Expose connection update callback (4/4)Jakub Pawlowski
Test: manual Bug: 30622771 Change-Id: I56a3c42814249abc33e95e84ce092c2d8df65434
2017-03-22BluetoothGattCallbackExt removalJakub Pawlowski
New methods should be added to BluetoothGattCallback, instead of creating Ext class. Test: manual Bug: 30622771 Change-Id: I2567df5baace6bd2d2f30c36d2f62056408ca5d0
2017-03-08Bluetooth 5 PHY selection APIJakub Pawlowski
Bug: 30622771 Test: manual Change-Id: I50262a56a70466439f9700549c3c0e7bd49e2e8d (cherry picked from commit db5a87d50db9d4b3d642603f6c329b83ee5851f6)
2014-09-11Remove onConnectionCongested callbackPrerepa Viswanadham
Bug:17289507 Change-Id: I49fd99d320084c618dcec756b832fb3b6a6aec51
2014-08-20LE: Rename new MTU and connection paramter update APIsAndre Eisenbach
bug 17005342 Change-Id: I23151e1e92fe86896fc2883f81aef82084bb4215
2014-07-08LE: Un-hide new congestion control and MTU APIsAndre Eisenbach
Change-Id: I5ce395481620dd7ab611b1ab0eaeb5e29c4f13fa
2014-06-27LE: Add notification sent and congestion callbacks (3/4)Andre Eisenbach
This change introduces two new callbacks for applications to better handle LE notification flow control and transport congestion. The notification callback is invoked when the remote platform confirms an indication or when a local notification has been passed to the controller. No new notifications should be sent until a callback is received. Congestion callbacks are triggered when a GATT operation cannot be sent to the local Bluetooth controller. Repeatedly calling writeCharacteristic() for example will eventually trigger a congestion callback. Applications cannot send additional data until a further callback is received, indicating that the congestion has cleared up. Also made server callbacks "oneway" in the AIDL definition file. Change-Id: I7fa3324712205c79efce58e5e3df8b80a265a442
2014-03-25LE: Add API to configure MTU for a given connection (3/4)Andre Eisenbach
bug:13571470 Change-Id: I3619617eaf864701a35f7802bc71805784d768d0
2013-05-30Update javadoc to give app write better guidenceMatthew Xie
Update javadoc of close methods of GATT cliet and server Update javadoc of BluetoothAdapter bug 8963528 Change-Id: I45ec618fd495225ed11a6171f33bfdc218397d4c
2013-04-03Change BluetoothGattCallback methods argument from BluetoothDevice to ↵Matthew Xie
BluetoothGatt Change name of BluetoothDevice#connectGattServer to BluetoothDevice#connectGatt Add BluetoothGatt#getDevice to retrieve device from BluetoothGatt Add BluetoothGatt#connect() to reconnect back to the server. Make BluetoothGatt#close() public to clean up/unregister callback Add BluetoothDevice.getType() to return int of bug 8529188 Change-Id: Iebd9ac68cc7a64c43972e617dd3068f66c8ea0b2
2013-03-28Unhide Bluetooth Low Energy public APIsMatthew Xie
Updated API headers. Add BluetoothManager to be retrieved by context.getSystemService(Context.BLUETOOTH_SERVICE). LE scan functions are placed in BluetoothAdapter The GATT API are device driven instead of a profile-driver. bug 8450158 Change-Id: I424a4cedaac3ef8120a05996500008dd210d2553
2013-02-27Initial version of BLE support for BluedroidGanesh Ganapathi Batta
The API classes are hidden for now. Will unhide after API console approval. Change-Id: I8283dd562fd6189fdd15c866ef2efb8bbdbc4109