Commit Graph

18 Commits

Author SHA1 Message Date
Jocelyn Liu
ebfaca6b7a Bug 1170071 - Part 4: Add Gatt server interfaces for Bluetooth daemon. r=shuang
CLOSED TREE
2015-07-08 04:34:00 -04:00
Jocelyn Liu
53412d7367 Bug 1162910 - Make bluetooth daemon as the default backend of BT APIv2. r=tzimmermann 2015-05-11 03:44:00 -04:00
Andrew McCreight
92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Thomas Zimmermann
5c83daeba5 Bug 1153796: Share BluetoothInterface.{cpp,h} between Bluetooth v1 and v2, r=btian
With this patch, Bluetooth v1 and v2 share the same interfaces classes
for their backend code. Bluetooth v1 doesn't yet support GATT, so the
GATT interfaces are still not implemented.

The patch also fixes the GATT-specific classes to compile under recent GCC
versions 4.8 and later, which are used with Android L.

The patch also preserves the prefered backend for each version. Bluetooth
v1 defaults to 'bluetoothd,' v2 defaults to 'bluedroid.'
2015-04-15 11:46:33 +02:00
Thomas Zimmermann
709fbf5bf8 Bug 1153796: Move dom/bluetooth/bluetooth2/BluetoothInterface.{cpp,h} to dom/bluetooth, r=btian 2015-04-15 11:46:33 +02:00
Carsten "Tomcat" Book
26c794e871 Backed out changeset 0f94e1a00fcd (bug 1153796) 2015-04-15 11:32:21 +02:00
Carsten "Tomcat" Book
11dd717bbf Backed out changeset a74d1c644c84 (bug 1153796) 2015-04-15 11:32:16 +02:00
Thomas Zimmermann
365ca67202 Bug 1153796: Share BluetoothInterface.{cpp,h} between Bluetooth v1 and v2, r=btian
With this patch, Bluetooth v1 and v2 share the same interfaces classes
for their backend code. Bluetooth v1 doesn't yet support GATT, so the
GATT interfaces are still not implemented.

The patch also fixes the GATT-specific classes to compile under recent GCC
versions 4.8 and later, which are used with Android L.

The patch also preserves the prefered backend for each version. Bluetooth
v1 defaults to 'bluetoothd,' v2 defaults to 'bluedroid.'
2015-04-15 11:04:43 +02:00
Thomas Zimmermann
476a80118b Bug 1153796: Move dom/bluetooth/bluetooth2/BluetoothInterface.{cpp,h} to dom/bluetooth, r=btian 2015-04-15 11:04:43 +02:00
Thomas Zimmermann
7b1c8a0c6e Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu 2015-04-09 15:57:40 +02:00
Thomas Zimmermann
cd2c5f9aab Bug 1134821: Detect default Bluetooth backend, r=shuang
This patch adds code to select the default Bluetooth backend from a
list of supported ones, by detecting the backend's availability. Some
devices are missing bluetoothd support. With the patch, bluetoothd
can be the default backend, but unsupportive devices fall back to in-
Gecko Bluedroid.
2015-03-11 10:11:48 +01:00
Thomas Zimmermann
a05aae204d Bug 1132388: Use Bludroid until update problem has been solved, r=shuang
It seems impossible right now to update Bluetooths daemon. This leaves
dogfooders without bluetooth support. This patch restores the old back-
end code for Bluetooth until bug 1130288 has been solved.
2015-02-13 09:35:11 +01:00
Thomas Zimmermann
22711ed8ea Bug 1124565: Fix position of const qualifiers for |sDefaultBackend|, r=shuang
This patch fixes the position of the second const qualifier for
|sDefaultBackend|. Both, pointer and memory, are now marked as
constant.
2015-01-22 10:52:18 +01:00
Thomas Zimmermann
d152f1e47f Bug 1065336: Implement Bluetooth backend selection; use daemon by default, r=shawnjohnjr
This patch adds proper selection of the Bluetooth backend. The backend
is configurable via environment property 'ro.moz.bluetooth.backend'. The
default value is bluetoothd.

On systems that are not Android 4.2 or later, the code does not return
a backend. These systems should use BlueZ instead.
2015-01-20 10:05:45 +01:00
Thomas Zimmermann
e052ad1bb2 Bug 1073548: Add support for Bluetooth daemon backend, r=shawnjohnjr 2014-11-03 13:03:49 +01:00
Thomas Zimmermann
8d284d748d Bug 1061489: Move Bluedroid code out of BluetoothInterface.{cpp,h}, r=shuang
This patch moves BluetoothInterface.{cpp,h} to the generic section
of Gecko's Bluetooth code, and the Bluedroid implementation into
the new files BluetoothHalImplementation.{cpp,h}.

BluetoothHalImplementation.{cpp,h} contains all Bluedroid-specific
code. The classes in BluetoothInterface.{cpp,h} are now interfaces
for Gecko.
2014-09-11 12:23:01 +02:00
Carsten "Tomcat" Book
310dbb2688 Backed out changeset 8644a9c4b993 (bug 1061489) for bustage on a CLOSED TREE 2014-09-11 11:11:06 +02:00
Thomas Zimmermann
baaabc67ad Bug 1061489: Move Bluedroid code out of BluetoothInterface.{cpp,h}, r=shuang
This patch moves BluetoothInterface.{cpp,h} to the generic section
of Gecko's Bluetooth code, and the Bluedroid implementation into
the new files BluetoothHalImplementation.{cpp,h}.

BluetoothHalImplementation.{cpp,h} contains all Bluedroid-specific
code. The classes in BluetoothInterface.{cpp,h} are now interfaces
for Gecko.
2014-09-11 09:38:10 +02:00