summaryrefslogtreecommitdiffstats
path: root/core/java/android/bluetooth/BluetoothAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)Wei Wang2014-07-111-0/+10
| | | | Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
* Unhide the Bluetooth(BLE) offload capability apisPrerepa Viswanadham2014-07-091-3/+0
| | | | Change-Id: Ice3f4f5ff4b8318bf6afe7021b253fe9ea4661d3
* OnFound and Onlost callback integrationPrerepa Viswanadham2014-07-091-0/+6
| | | | Change-Id: I23473b18484f041c4dd808c85bb92545a77e20c2
* Implement batch scan APIWei Wang2014-07-081-14/+9
| | | | Change-Id: Ibb527280a221fbdd0fc6b805a7527c29079294b4
* Obtain capabilities from chipset for it's support of various featuresPrerepa Viswanadham2014-07-021-0/+48
| | | | Change-Id: I01bdb31136be63e4e46fb4e054c902eddc5647ab
* LE: Add notification sent and congestion callbacks (3/4)Andre Eisenbach2014-06-271-4/+7
| | | | | | | | | | | | | | | | | | | 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
* BluetoothAvrcpController: Move AVRCP controller support to new ↵Mike Lockwood2014-06-131-0/+7
| | | | | | BluetoothProfile subclass Change-Id: Id988040a7ce623ed68e0349920301ff48db1fbce
* BluetoothA2dpSink: Add new BluetoothProfile subclass for A2DP sinkMike Lockwood2014-06-131-0/+7
| | | | Change-Id: I09d5cb8fdaea4c4828f333949b7c18deffd22722
* Rename BluetoothHandsfreeClient to BluetoothHeadsetClientMike Lockwood2014-06-131-5/+5
| | | | | | | | This makes our terminology consistent with the existing BluetoothHeadset profile Also updated arguments to Context.bindService() Change-Id: I27cc5a6fde256b1f5dccca53a7a15ec8f58691c2
* Bluetooth: Add support for HFP Client role.Hemant Gupta2014-06-131-1/+8
| | | | | | | Implementation changes in frameworks to support HFP Client role. Change-Id: Ifb10527cd6c1301297cae4f923b20734af672034
* Address API review comments.Wei Wang2014-05-291-0/+2
| | | | | | | | | | | | | | | | 1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved AdvertisementData and ScanRecord out and removed AdvertiseBaseData 4. Removed newBuild and use new Builder for all builders. 5. Using setxxx in builders. 6. Misc other changes. Fixes b/15140940 Change-Id: I32ae3d24a9491baf96048040b5ac78f6f731e468 NO_SQ: multi-project submit
* Revert "Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost ↵Wei Wang2014-05-191-0/+32
| | | | | | | | and multiple advertising."" This reverts commit b1d9fbc0f8dea0c77ed810190b325bfdaaf21789. Change-Id: Ic8dec9385a7c763170ebeb1bcddd221c72f46e88
* Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost and ↵Wei Wang2014-05-201-32/+0
| | | | | | | | multiple advertising." This reverts commit 2c4e68a86b7a9b9f760a8907b93ff40ccad56c80. Change-Id: I98c91343d886ebe22d0bf75a710fa0b0abf738b6
* APIs for BLE scan, scan filter, batch scan, onFound/onLost and multipleWei Wang2014-05-191-0/+32
| | | | | | advertising. Change-Id: I1655eb9cffa890b6fe38108bf51078662e90bc03
* am 7d394df2: am ae1b763c: Merge "LE: Add API to configure MTU for a given ↵Zhihai Xu2014-03-311-0/+8
|\ | | | | | | | | | | | | connection (3/4)" into klp-modular-dev * commit '7d394df2ab8f951215a775df8d2bd9e6518e746a': LE: Add API to configure MTU for a given connection (3/4)
| * Merge "LE: Add API to configure MTU for a given connection (3/4)" into ↵Zhihai Xu2014-03-311-0/+8
| |\ | | | | | | | | | klp-modular-dev
| | * LE: Add API to configure MTU for a given connection (3/4)Andre Eisenbach2014-03-251-0/+8
| | | | | | | | | | | | | | | bug:13571470 Change-Id: I3619617eaf864701a35f7802bc71805784d768d0
* | | am 1b09c97d: am 4447405d: Merge "Callback on correct method when status is ↵Wei Wang2014-03-291-2/+14
|\ \ \ | |/ / | | | | | | | | | | | | | | | unsuccessful." into klp-modular-dev * commit '1b09c97d8a7156a9f35ebab3c98db7b103852a58': Callback on correct method when status is unsuccessful.
| * | Callback on correct method when status is unsuccessful.Wei Wang2014-03-291-2/+14
| | | | | | | | | | | | Change-Id: I63c07bbae559765af1aecb492379ab18268336d8
* | | am 0d68a52a: am 9d3e0996: Merge "Add comment of using same callback for ↵Wei Wang2014-03-281-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | start/stop advertising." into klp-modular-dev * commit '0d68a52ad32bb2c07314721b19e7973df6045d34': Add comment of using same callback for start/stop advertising.
| * | Add comment of using same callback for start/stop advertising.Wei Wang2014-03-271-1/+1
| |/ | | | | | | Change-Id: Ice268e83e4f2ceb5053a0e03f73b877f548bd13b
| * DO NOT MERGE: Move advetise clean up to callback code. fixes b/13289050Wei Wang2014-03-191-5/+21
| | | | | | | | | | | | Cherrypick from master to fix b/13289050 Change-Id: Ibf3c772561125821817c947730cf21defafd4cb2
| * DO NOT MERGE: Add status callback for start/stop advertising.Wei Wang2014-03-201-68/+115
| | | | | | | | | | | | | | | | | | Cherrypick from master to fix b/13289050 Change-Id: I231ba51aaa67b1f917e476ef0f2c8f82c762df77 Conflicts: core/java/android/bluetooth/BluetoothAdapter.java core/java/android/bluetooth/BluetoothGatt.java
| * DO NOT MERGE BLE peripheral mode (3/4): Add peripheral mode API.Wei Wang2014-03-061-11/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add bluetooth adv data, APIs in BluetoothAdpater etc. Cherry picking ble advertising changes from master to KLP MR2. b/13137996 Change-Id: Id9d2f566b6d9ed0fffe73b67efad2e3d045360b4 Conflicts: core/java/android/bluetooth/BluetoothAdapter.java core/java/android/bluetooth/BluetoothGatt.java Conflicts: core/java/android/bluetooth/BluetoothAdapter.java
* | Move advetise clean up to callback code. fixes b/13289050Wei Wang2014-03-201-5/+21
| | | | | | Change-Id: Ibf3c772561125821817c947730cf21defafd4cb2
* | Add status callback for start/stop advertising.Wei Wang2014-03-181-68/+115
| | | | | | | | | | | | Fixes b/13289050, b/13418851, also fixes 13418671. Change-Id: I231ba51aaa67b1f917e476ef0f2c8f82c762df77
* | BLE peripheral mode (3/4): Add peripheral mode API.Wei Wang2013-12-191-10/+199
| | | | | | | | | | | | | | | | Change-Id: Id9d2f566b6d9ed0fffe73b67efad2e3d045360b4 Conflicts: core/java/android/bluetooth/BluetoothAdapter.java core/java/android/bluetooth/BluetoothGatt.java
* | Remove unused imports from frameworks/base.John Spurlock2013-11-201-4/+0
|/ | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Revert "Allow L2CAP sockets"Mike Lockwood2013-10-021-36/+0
| | | | This reverts commit 34b0f926135b4697f091b3b39bfca8c70512af6c.
* Fixed review commentsKim Schulz2013-09-121-2/+8
| | | | | | | | | | | - fixed review comments (internal+google) - corrected tabs/spaces - Add connection id header for obex client operations - added support for implementing ProfileService class Change-Id: Idab8b4fa54a0f31bec4ffa263a69a9850a07f858 Bug:10692365
* Allow L2CAP socketsDmitry Grinberg2013-09-061-0/+36
| | | | Change-Id: Icb498e6c0430789b6168bec3beb1d4650e4f1238
* LE: Add peripheral role support (1/4)Andre Eisenbach2013-08-141-0/+4
| | | | | | Initial stack support for the LE peripheral role. Change-Id: I6222493488822b4289b90888ccc97ad9306f54d1
* LE: Add instance ID to descriptors (1/4)Andre Eisenbach2013-08-131-3/+3
| | | | | | | If a remote devices offers multiple descriptors with the same UUID, the instance ID is used to differentiate between them. Change-Id: I0c36494c980c86abd23f9647196af8d59ef663e9
* Merge "Add debug menu to enable btsnoop"Zhihai Xu2013-07-261-0/+19
|\
| * Add debug menu to enable btsnoopZhihai Xu2013-06-171-0/+19
| | | | | | | | | | bug: 8059358 Change-Id: I2d5f13e68defefb92e0b11b749fe77ad67215f36
* | Explicit locale when formatting machine strings.Jeff Sharkey2013-06-111-1/+2
|/ | | | | Bug: 9390451 Change-Id: I3581c53407554a1dffd541fb42b06d68f20a7be0
* Update javadoc to give app write better guidenceMatthew Xie2013-05-301-3/+8
| | | | | | | | Update javadoc of close methods of GATT cliet and server Update javadoc of BluetoothAdapter bug 8963528 Change-Id: I45ec618fd495225ed11a6171f33bfdc218397d4c
* Donot bind to GATT service when BLE is not supportedMatthew Xie2013-05-081-1/+5
| | | | | | bug 8664724 Change-Id: I9b9222cd5877babcded73798a5d1ff13fd10e791
* Change permission of LE scan APIs from BLUETOOTH to BLUETOOTH_ADMINMatthew Xie2013-04-241-3/+3
| | | | | | bug 8667898 Change-Id: Iaff19fe72b16a96a6cf2f5b9140e369098567d2b
* Remove BluetoothAdapterCallback. Simplify leScan ApiMatthew Xie2013-04-171-165/+257
| | | | | | | App does not need to explicitly register/unregister callback bug 8599881 Change-Id: I18cfef14d7ddb344722945e657dcb959823b412b
* Unhide Bluetooth Low Energy public APIsMatthew Xie2013-03-281-8/+230
| | | | | | | | | | 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
* Fix docs bug.Stephen Hines2013-02-281-2/+1
| | | | Change-Id: I8c69963b339d703757bf1cd8f43161175783566d
* Initial version of BLE support for BluedroidGanesh Ganapathi Batta2013-02-271-2/+17
| | | | | | The API classes are hidden for now. Will unhide after API console approval. Change-Id: I8283dd562fd6189fdd15c866ef2efb8bbdbc4109
* Clean up debug messagesMatthew Xie2012-11-291-2/+2
| | | | | | bug 7626174 Change-Id: I65cdcaf2c48a78468b6cef0b8591289435068b24
* Turn off verbose debug message in BluetoothAdapterMatthew Xie2012-08-291-1/+2
| | | | Change-Id: I30245ab911b5428f7af38f195b941db02d36b18f
* Implement enableNoAutoconnect()Ganesh Ganapathi Batta2012-08-141-3/+12
| | | | | | | Adding enableNoAutoconnect() API support in Bluetooth service to let BT enable in quiet mode Change-Id: I546f3ceb298082a9c9a698f406379470e3cc0d4f
* Bluetooth: fix enableNoAutoConnect() call.Martijn Coenen2012-08-031-4/+2
| | | | | | For now, just do a regular connect. Change-Id: Ibc43098d45c82177298cb17d72a32c7904924021
* Moved BluetoothAdapter.ACTION_STATE_CHANGED broadcast from AdapterService to ↵fredc2012-07-161-8/+11
| | | | | | BluetoothManagerService Change-Id: I88e5f3fe050cf11eae9c5cf1b7c393a178b8f9b1
* Fixed socket not closing on BT off. Used RemoteCallbackList to monitor ↵fredc2012-07-161-4/+14
| | | | | | binder deaths in BluetoothManagerService. Change-Id: I524964bd2836d8c5a4bae095b93ac9481337941d
* Fixed issue with Settings app crashing after during on/off and unpair.fredc2012-07-161-7/+24
| | | | | | Fixed issue with BluetoothAdapter.getRemoteDevice() returning null. Change-Id: Ie86813532530a6b57bde1c430c7b4875ecc7354c