| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
BluetoothAdapter.cancelDiscovery was previously always
returning false.
Change-Id: Ic1fd134d4b710438d95c5b8ca009104529dd1bf5
|
|
|
|
| |
Change-Id: Ibd7a37b4035862718cb625110cfbba741537c17a
|
|
|
|
|
|
| |
The Logv statement was missing the format specifier.
Change-Id: Ibf986d28dabfdbb3fbfd75381cb349448c6e57e7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ia0b37a03e65be6632cc0bb8f1a98f268d42c9d87
|
|
|
|
| |
Change-Id: I3892044723402597b7db1f7df683c08804c1fb96
|
|
|
|
|
|
| |
This helps Settings app to enable just the Headset service.
Change-Id: Ia9c39467df1e83d665e377313e16e6c54991f6d6
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| | |
Change-Id: Ie0a7ece33dced1042948087053e49665f6235fc2
|
| |
| |
| |
| | |
Change-Id: I54ded27ab85d46eef3d2cca84f2394b1ffe88ced
|
| |
| |
| |
| | |
Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
|
| |
| |
| |
| | |
Change-Id: Ib9f3e476d4176bc04e23e7674dc54aa5a6417308
|
|/
|
|
| |
Change-Id: I52e965a6537bce02c751ba26fe7b44dd03832510
|
|
|
|
|
|
|
| |
This fixes the problem where the car dock is
powered on and off pretty quickly.
Change-Id: I8724641b8c337019f089b005cb236fc90549cf6f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
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
|