aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothDevice.java
Commit message (Collapse)AuthorAgeFilesLines
...
| * Bluetooth: fix connectGatt overload invocationsJakub Pawlowski2017-06-081-2/+2
| | | | | | | | | | | | Test: sl4a GattOverBrEdrTest Bug: 62387078 Change-Id: I5bfb87683e25f8862587e8000eb4c9bb6ff14f99
| * Fix Bluetooth GATT API default handler assignmentRuben Brunk2017-05-051-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Restores previous behaviour where GATT callbacks are invoked on the binder thread and not the calling process main looper thread. This fixes performance regressions as well as some NetworkOnMainThreadException's for some applications. Bug: 37544152 Bug: 37871717 Test: Covered by prior API tests. Change-Id: Id8ab705dd4d7f00030e6ac29e056dde5180670e9 (cherry picked from commit 98024a83d50f8cfcc02701403de5f99bcf8e50d6)
| * Bluetooth: expand comments on new PHY constantsJakub Pawlowski2017-04-251-6/+12
| | | | | | | | | | | | Bug: 37544152 Test: the all-knowing eyes of the reviewers Change-Id: I8f5a756a204fe90960700e1dc42f64824d3b844a
| * Bluetooth: Add handler parameter to connectGattJakub Pawlowski2017-04-251-4/+39
| | | | | | | | | | | | Bug: 37544152 Test: sl4a GattReadTest GattWriteTest Change-Id: I043dfefaafe9f3700418f2c855c52aac3644310f
| * Bluetooth 5 PHY simplificationJakub Pawlowski2017-04-121-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having PHY_LE_* constants defined in four different places, with one value being different than others is misleading. Leave just PHY_LE_* definitions in BluetoothDevice, and add PHY_LE*_MASK for the mask used in PHY update API. This patch also removes need to translate PHY value between PHY update request and event, as mask is used for request, and the value is returned in event. Bug: 30622771 Test: manual Change-Id: I897effa1204a024465d55501c83c542566c4d37c
* | Fix Bluetooth GATT API default handler assignmentRuben Brunk2017-05-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Restores previous behaviour where GATT callbacks are invoked on the binder thread and not the calling process main looper thread. This fixes performance regressions as well as some NetworkOnMainThreadException's for some applications. Bug: 37544152 Bug: 37871717 Test: Covered by prior API tests. Change-Id: Id8ab705dd4d7f00030e6ac29e056dde5180670e9
* | Bluetooth: expand comments on new PHY constantsJakub Pawlowski2017-04-251-6/+12
| | | | | | | | | | | | | | Bug: 37544152 Test: the all-knowing eyes of the reviewers Change-Id: I8f5a756a204fe90960700e1dc42f64824d3b844a (cherry picked from commit 60c7dac77533163ed951dee09ec7b42a49bdf54a)
* | Bluetooth: Add handler parameter to connectGattJakub Pawlowski2017-04-251-4/+39
| | | | | | | | | | | | | | Bug: 37544152 Test: sl4a GattReadTest GattWriteTest Change-Id: I043dfefaafe9f3700418f2c855c52aac3644310f (cherry picked from commit 4eab49652e48159fd37f827d30b822f2f187551e)
* | More auto-doc work.Jeff Sharkey2017-04-211-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for AnyThread, CallSuper, and UiThread. Another related CL started documenting @RequiresPermission, so remove duplicated information in existing APIs. Suppress auto-doc on a handful of classes that are already well-documented. Test: make -j32 offline-sdk-docs Bug: 37526420 Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
* | Bluetooth 5 PHY simplificationJakub Pawlowski2017-04-141-9/+19
|/ | | | | | | | | | | | | | | | Having PHY_LE_* constants defined in four different places, with one value being different than others is misleading. Leave just PHY_LE_* definitions in BluetoothDevice, and add PHY_LE*_MASK for the mask used in PHY update API. This patch also removes need to translate PHY value between PHY update request and event, as mask is used for request, and the value is returned in event. Bug: 30622771 Test: manual Change-Id: I897effa1204a024465d55501c83c542566c4d37c (cherry picked from commit 9e377194e35c0fb9ac5771f5658c095ed97e0838)
* BluetoothGattCallbackExt removalJakub Pawlowski2017-03-221-38/+1
| | | | | | | | | New methods should be added to BluetoothGattCallback, instead of creating Ext class. Test: manual Bug: 30622771 Change-Id: I2567df5baace6bd2d2f30c36d2f62056408ca5d0
* Bluetooth 5 PHY selection APIJakub Pawlowski2017-03-081-1/+98
| | | | | | | Bug: 30622771 Test: manual Change-Id: I50262a56a70466439f9700549c3c0e7bd49e2e8d (cherry picked from commit db5a87d50db9d4b3d642603f6c329b83ee5851f6)
* Bluetooth: Expose L2CAP API to support OPP 1.2Hemant Gupta2017-03-071-0/+21
| | | | | | | | | | | | | Add changes to expose L2CAP API to create an insecure L2CAP socket for supporting OPP 1.2. Test: Connect with Remote OPP Client supporting OPP 1.2 and verify that connection and transfer happens over L2CAP. Connect with Remote OPP Client supporting OPP 1.1 and verify that connection and transfer happens over RFCOMM. Bug: 33010988 Change-Id: I21ed672afb4ed5d2355ff0a0f9691af220921c1f
* Merge "Fix connecting to profiles when bonding from local device (1/3)" am: ↵Jakub Pawlowski2016-10-061-0/+8
|\ | | | | | | | | | | | | | | 44c013d739 am: 6fe3900791 am: 853e3e50ac Change-Id: I3bdacc816923d012f061e5310d5e076fcaf9d387
| * Merge "Fix connecting to profiles when bonding from local device (1/3)" am: ↵Jakub Pawlowski2016-10-061-0/+8
| |\ | | | | | | | | | | | | | | | | | | | | | 44c013d739 am: 6fe3900791 Change-Id: I8e04aa89379c4a50031fade065c288fd1cc30668
| | * Fix connecting to profiles when bonding from local device (1/3)Jakub Pawlowski2016-10-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When bond is created from Bluetooth Settings, profiles gets properly auto connected when services are discovered. If pairing is done from any other app, i.e. NFC app, the bond is not being recognized as initiated from local device, and profiles are not connected. This patch makes sure that if bonding is initiated, no matter from which app, it will cause proper profiles to connect. Bug: 30211618 Change-Id: I71131f33eb5b9db2f5b4a8737b191d541bf1fd3d
| | * Fix links to Bluetooth GuideMarie Janssen2016-06-201-1/+1
| | | | | | | | | | | | Change-Id: I5798c3d71c7cc9c509e0f7b04fa140168b0fdc11
| | * Merge commit '26ada7e78993241d702a908eae93d174cbb3c8b3' into HEADBill Yi2016-02-171-0/+13
| | |\ | | | | | | | | | | | | Change-Id: Ifc45930160cf01ee78ecfbfdc48697055f82e0a7
| | * | Implementation of BluetoothDevice.createBondOutOfBandJakub Pawlowski2016-02-031-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements out of band pairing that uses optional data. Currently, it works only for LE transport, using Temporary Key value. In the future fields might be added to OOBData to support other options for optional data. Change-Id: I0811182efb72ac5f80521ed4876b32603cb628c1
* | | | Remove unused mContext from BluetoothGatt[Server].Jeremy Klein2016-09-281-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | All that this member variable is doing right now is leaking a reference to a context without any benefit. Bug: 31752040 Bug: 31710795 Change-Id: If2241422533318b866340e8dcc9f5fbd9518349c
* | | Fix setPairingConfirmation permissions issue (2/2) am: 39b883b6f6 am: ↵Marie Janssen2016-09-211-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3106e3ae27 am: c7a343fcb6 am: 532d2b11a3 Change-Id: Iee468d3bcfd72b33475e9bf1d51865f3c5e8a4a2
| * \ \ Fix setPairingConfirmation permissions issue (2/2) am: 39b883b6f6Marie Janssen2016-09-211-2/+2
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | am: 3106e3ae27 Change-Id: I0748eed7b884294d993b4538e4e65397b6f0dbb2
| | * | Fix setPairingConfirmation permissions issue (2/2)Marie Janssen2016-09-081-2/+2
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | setPairingConfirmation was set to only require BLUETOOTH_ADMIN permission which shouldn't be able to set the confirmation itself. This is restricted to BLUETOOTH_PRIVILEGED permission. Bug: 29043989 Change-Id: I887de32d156e672ec44aa0b286cd7ea7f9f8ad55
* | | Docs: Fixed the Bluetooth guide linkHemal Patel2016-08-171-2/+5
| | | | | | | | | | | | | | | | | | | | | Fixed the link that points to the Bluetooth guide. Bug: 29268546 Change-Id: I51c48cebf45c78481f8853a93ff7bcd8483d69ba
* | | Implementation of BluetoothDevice.createBondOutOfBandJakub Pawlowski2016-01-151-7/+5
|/ / | | | | | | | | | | | | | | | | This patch implements out of band pairing that uses optional data. Currently, it works only for LE transport, using Temporary Key value. In the future fields might be added to OOBData to support other options for optional data. Change-Id: I0811182efb72ac5f80521ed4876b32603cb628c1
* / Log API calls to createBond(), cancelBondProcess(), removeBond()Christine Hallstrom2015-12-031-0/+13
|/ | | | | | | | | In an attempt to better be able to debug Bluetooth-related parts of the system, add info-level logging including calling process and thread whenever the aforementioned functions are called. Bug: 25996120 Change-Id: I5a72b2ab929f805ec1c43cc54879ed079a8dfe34
* Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcastFyodor Kupolov2015-07-141-1/+2
| | | | | | | | Receivers of ACTION_FOUND intent are now required to have ACCESS_COARSE_LOCATION permission. Bug: 21852542 Change-Id: I8306f7431f067ca36bfc568a912385153fa3d496
* SAP: Make it possible to enforce a 16-digit pin code (4/5)Casper Bonde2015-06-091-2/+9
| | | | | | | | | | This change enable the posibility to enforce using a 16-digit pin or MITM for a RFCOMM or L2CAP connection. This is needed for the SIM access profile. Change-Id: I3205013f9e758c353381442a86845dab467780f8 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* Un-hide connectGatt() variant with selective transportAndre Eisenbach2015-06-021-4/+0
| | | | Change-Id: I1d3c512160de2bd68550faf243bb151d5cf7f3c9
* Add bluetooth permission annotationsTor Norbye2015-05-151-0/+12
| | | | Change-Id: I5bc86f8ec6ea5c873f1e14dab0e0c47c5c9df7f7
* Add support for Bluetooth Sim Access Profile (2/4)Casper Bonde2015-04-151-0/+41
| | | | Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
* Bluetooth LE background operation mode (2/2)Nitin Arora2015-04-151-13/+42
| | | | | | | | Changes include new framework APIs to enable and disable Bluetooth LE separately from Bluetooth Classic. Along with handling the new states in the Bluetooth manager service. Change-Id: Idf667981f48fcbcb6dfda1aa77ea8bab1b2361f0
* OBEX Over L2CAP + SDP search API for BT profilesCasper Bonde2015-04-111-3/+66
| | | | | | | | | | | | | | | - Updated OBEX to support SRM - Added support for OBEX over l2cap and SRM. - Minor bugfixes, and reduce CPU load ALOT - Added support to send responses without body data. - Extend BluetoothSocket to support L2CAP - Added functionality to get the channel number needed to be able to create an SDP record with the channel number. - Added interface to get socket type and max packet sizes. - Added interface to perform SDP search and get the resulting SDP record data. Change-Id: I9d37a00ce73dfffc0e3ce03eab5511ba3a86e5b8
* Add API to check if a Bluetooth connection is encrypted (1/2)Andre Eisenbach2015-02-091-1/+33
| | | | | Bug: 19186961 Change-Id: I24656a07ee23ebfe067a9dfb9c1bc4041c782d8c
* Adds APIs for Bluetooth PBAP and MAP access permission.Edward Jee2014-09-091-34/+97
| | | | | | | | | | | | | Currently, users' preference in phonebook and call history or message access per each Bluetooth-paired device is stored in Settings application's shared preferences. However, some privileged applications other than Settings need to access such data. So we decided to migrate the data from Settings application's shared preferences to Bluetooth application's. Bug: 17158953 Change-Id: I3771f03eaea3f57cf60d93ab9fd41c9eb3e1e99c
* Add transport parameter to createBond() function (4/4)Andre Eisenbach2014-08-051-1/+32
| | | | | Bug: 14063256 Change-Id: I096248b60752992aa23ce5bfbfc47fda95773db2
* Bluetooth: Support MAP Client role on Bluedroid.Hemant Gupta2014-07-011-2/+22
| | | | | | | Implementation changes to support MAP client and PBAP client role on Bluedroid stack. Change-Id: I1733a67bf5256bd7b181bd5e68e40b476994ebfd
* Adding a method to know if there is a connection to a BluetoothDevice.Jay Civelli2014-06-041-0/+20
| | | | | | | Adding a new method to BluetoothDevice that lets callers know whether a remote device is connected. Change-Id: I6f7cb99147f3cdad1d676a93183856dbb4083a06
* Add transport param to Connect APIsGanesh Ganapathi Batta2014-05-061-1/+42
| | | | | | | Support for passing preferred transport for GATT connections as part of Connect APIs Change-Id: I93938dce519b8fa12de41d7e8690dc9355ce2dc5
* Merge "NPE in BluetoothDevice.fetchUuidsWithSdp"Zhihai Xu2014-01-141-1/+6
|\
| * NPE in BluetoothDevice.fetchUuidsWithSdpZhihai Xu2014-01-131-1/+6
| | | | | | | | | | | | | | | | | | This is caused by access fetchUuidsWithSdp after bluetooth is turned off. We can add check null pointer for sService, before call sService.fetchRemoteUuids(this) to fix this problem; bug:12533948 Change-Id: Id2cab92a56185073fabcabcfb21a243e99a60cee
* | Remove unused imports from frameworks/base.John Spurlock2013-11-201-2/+0
|/ | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Change pairing api/intent permission from PRIVILEGED to ADMINMatthew Xie2013-10-211-6/+6
| | | | | | | | The APIs are createBond, setPin, setPairingConfirmation The intent is ACTION_PAIRING_REQUEST bug 11101076 Change-Id: I3a314efd973b3ce078ab5347159c336f222d9f15
* Makes ACTION_PAIRING_REQUEST require BLUETOOTH_PRIVILEGED.Edward Jee2013-10-101-1/+2
| | | | | Bug: 11087521 Change-Id: I99cc584987bf12fe0648b048398b4eb9836e6172
* Revert "Allow L2CAP sockets"Mike Lockwood2013-10-021-27/+0
| | | | This reverts commit 008ce9e07b5e58c5ab31c5d73ec3d1ad1a6cf605.
* Unhide setPin, setPin, setPairingConfirmation, and relevant intent fieldsMatthew Xie2013-09-291-14/+42
| | | | | | bug 9987787 Change-Id: Id1c149964137e35703310e2f2893c8830aacddea
* Allow L2CAP socketsDmitry Grinberg2013-09-061-0/+27
| | | | Change-Id: Icb498e6c0430789b6168bec3beb1d4650e4f1238
* Bluetooth MAP profile - sms and mms support initial check-inMatthew Xie2013-08-091-0/+3
| | | | | | bug:10116530 Change-Id: I57d022005bcff5bc3e56438a81ac92566f957744
* Update javadoc to give app write better guidenceMatthew Xie2013-05-301-1/+1
| | | | | | | | 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-0/+4
| | | | | | bug 8664724 Change-Id: I9b9222cd5877babcded73798a5d1ff13fd10e791