summaryrefslogtreecommitdiffstats
path: root/core/jni/android_server_BluetoothService.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add error codes for channel disconnection / connection.Jaikumar Ganesh2011-09-081-46/+38
| | | | | | | | Channel connection / disconnection was handled as boolean, doesn't capture all the values. Also make it asynchronous instead of the dbus call being synchronous. Change-Id: If30177b9f93b7c83f162fbbc1233edf3e46dbfea
* Make Bluetooth Health APIs public.Jaikumar Ganesh2011-09-081-1/+2
| | | | | | | | Fix a few bugs: a) Pass a integer token to identify the channel. b) Close fds in case of errors. Change-Id: I2046787be5008769435f2f72a5bd67c19b749da0
* Change setDevicePropertyNative to no block.Matthew Xie2011-07-291-13/+7
| | | | | | | | Change setDevicePropertyNative to use async dbus call to bluez instead of blocking call. The old call was dbus_connection_send_with_reply_and_block. It is replaced by dbus_connection_send_with_reply. Change-Id: I1a772b33b54c8aad71a6f4d86dcd289354d8155b
* Provide an API to set the friendly name of a remote device.Matthew Xie2011-07-281-0/+14
| | | | | | | | BluetoothDevice setName overwrite the locally cached remote name. The changed name is saved in the local storage so that the change is preserved over power cycle. bug 5081605 Change-Id: I486966033828d153bfb1076a99e274c8a7f41636
* Merge "Bluetooth Health APIs"Jaikumar Ganesh2011-07-111-9/+0
|\
| * Bluetooth Health APIsJaikumar Ganesh2011-07-111-9/+0
| | | | | | | | | | | | | | | | | | | | 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
* | Incoming Bluetooth Connection requests - dialog.Matthew Xie2011-07-071-1/+31
|/ | | | | | | | This sends the intents to the Settings app to show the dialogs for the incoming connection requests. Includes down merged contributions from Jaikumar Ganesh. Change-Id: Ic8b857aad3554315aae39a0e871eb94d0ac98a91
* Implement APIs for Bluetooth Health profile.Jaikumar Ganesh2011-06-241-1/+417
| | | | | | | 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
* Bluetooth: correcting return value from cancelDiscoveryAlbert Mojir2011-06-021-3/+8
| | | | | | | BluetoothAdapter.cancelDiscovery was previously always returning false. Change-Id: Ic1fd134d4b710438d95c5b8ca009104529dd1bf5
* Fix usages of PopLocalFrame to include returned local referenceBrian Carlstrom2011-04-051-5/+2
| | | | Change-Id: Ibd7a37b4035862718cb625110cfbba741537c17a
* Fix compiler errors when compiled with debug option.Jaikumar Ganesh2011-02-221-47/+47
| | | | | | The Logv statement was missing the format specifier. Change-Id: Ibf986d28dabfdbb3fbfd75381cb349448c6e57e7
* Distinguish between NAP and PAN role disconnectionsJaikumar Ganesh2011-02-141-0/+41
| | | | | | | | | | | | | | | Distinguish between NAP and PANU disconnect in BT tethering and call appropriate functions. We were never disconnecting NAP role devices. ToDo: BluetoothService needs to be refactored, its become too big 1) BluetoothAdapter and BluetoothDevice properties need to be moved to separate classes. 2) BluetoothPanProfile and BluetoothInputDeviceProfile which are handled by BluetoothService need to be moved to a separate file. 3) Integrate PAN to the profile state machine. Change-Id: I32a8d274f38c78931434bd9738c8f6570ba89fcf
* Fix PANU - Bluetooth tethering - JNI calls.Jaikumar Ganesh2010-12-161-5/+2
| | | | Change-Id: Ia0b37a03e65be6632cc0bb8f1a98f268d42c9d87
* Remove function when Bluetooth is not present in the hardware.Jaikumar Ganesh2010-12-131-3/+2
| | | | Change-Id: I3892044723402597b7db1f7df683c08804c1fb96
* Add direct calls to Bluez to add SDP records.Jaikumar Ganesh2010-12-131-0/+75
| | | | | | This helps Settings app to enable just the Headset service. Change-Id: Ia9c39467df1e83d665e377313e16e6c54991f6d6
* Make setting the adapter properties asynchronous.Jaikumar Ganesh2010-10-251-12/+5
| | | | | | | | | 1. These involve disk operations and multiple processes. 2. onPropertyChange already informs us asychronously. 3. Settings app is the only user, will have to revisit the function if we make them public. Change-Id: If019a83c05a0c9e625f27faf99063d33f369f0d8
* resolved conflicts for merge of 0522f5e9 to masterJaikumar Ganesh2010-09-131-0/+113
|\ | | | | | | Change-Id: Ie0a7ece33dced1042948087053e49665f6235fc2
| * Out Of Band API for Secure Simple Pairing.Jaikumar Ganesh2010-09-131-0/+113
| | | | | | | | Change-Id: I54ded27ab85d46eef3d2cca84f2394b1ffe88ced
* | bluetooth tetheringDanica Chang2010-08-181-0/+111
| | | | | | | | Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
* | Add HID to the state machine and add native call backs.Jaikumar Ganesh2010-07-211-8/+27
| | | | | | | | Change-Id: Ib9f3e476d4176bc04e23e7674dc54aa5a6417308
* | HID profile.Jaikumar Ganesh2010-06-171-0/+42
|/ | | | Change-Id: I52e965a6537bce02c751ba26fe7b44dd03832510
* Add an API to set the link timeout.Jaikumar Ganesh2010-03-091-0/+21
| | | | | | | This fixes the problem where the car dock is powered on and off pretty quickly. Change-Id: I8724641b8c337019f089b005cb236fc90549cf6f
* Provide an API for apps to use a dynamic RFCOMM channel and SDP record.Nick Pelly2009-10-061-0/+44
| | | | | | | | | | | | | | | | | | | | | | Hide listenUsingRfcommOn(int channel) Add listenUsingRfcomm(String name, ParcelUuid uuid) The new API automatically finds a free RFCOMM channel and registers an SDP record with the given uuid and name. The SDP record is automatically removed when the socket is closed, or if the application dies. Apps are prevented from registering SDP records with the uuid of system Bluetooth profiles, such as A2DP, HFP and OPP. Apps are prevented from removing SDP records that they did not create. This is tracked by pid. TODO: Provide an API for the connecting app to look up an SDP record. Bug: 2158900 DrNo: eastham Joke: "What did the dog say to the tree? bark." Change-Id: Ia92f51c34615a7270a403255ad2b8faa98c4a3f5
* Make removeBond() call async.Jaikumar Ganesh2009-09-201-20/+11
| | | | | | | | | This call has been synchronus since Bluez3.36. However, since the semantics for all Bluetooth API calls are asynchronous make this so too. It does fix an occasional ANR seen while unpairing. Change-Id: If81f8ec262ea1f6f62775282ab33855a8669c41a
* Add new API for fetching UUIDs using SDP.Jaikumar Ganesh2009-09-191-0/+73
| | | | | | | | | Add new API which clients can use to force an SDP query. The result is broadcast using an intent having the UUIDs. The intent is broadcast after a timeout, in case of an error. This timeout is greater than the page timeout. Change-Id: I61e6db4c05b34c42f679a66987e37e2063a793b6
* Changes for BT 2.1Jaikumar Ganesh2009-09-111-2/+2
| | | | | | | | | | 1) Handle incoming 2.1 pairing requests 2) Modify displaying error messages on bond failures. 3) Add delay while accepting incoming pairing for certain 2.1 devices. When MITM is on, the link key request might come more than once. Auto accept with a delay. 4) Handle DisplayPasskey callback for pairing a 2.1 keyboard with a 2.1 device
* Add Bluetooth Device trustLixin Yue2009-09-011-0/+57
|
* Add local frames for parsing properties and processing events.Jaikumar Ganesh2009-08-251-0/+10
| | | | | | | We were running out of local refs when there are lots of devices. Instead of deleting every single local ref, create a local stack frame. This operation is inexpensive so doesn't add a high overload and keeps the code clean instead of deleting every single local ref.
* Bluetooth: API change.Nick Pelly2009-08-181-0/+740
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter. BluetoothAdapter: Represents the local BT adapter. Operations on the local adapter (start a scan, etc). BluetoothDevice: Represents a remote BT device. Operations on remote devices (pair, connect, etc). IBluetoothDevice.aidl -> Bluetooth.aidl BluetoothDeviceService.java -> BluetoothDeviceService.java TODO: Javadoc