Commit Graph

34 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
cc3a50cf79 Merge mozilla-central to b2g-inbound 2015-05-04 15:26:45 +02:00
Jamin Liu
a721ed32bd Bug 1063444 - Implement LE scan related methods and LE device event. r=joliu, r=mrbkap 2015-05-04 18:59:02 +08:00
Andrew McCreight
c979f253c0 Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Shawn Huang
23f371696b Bug 1143925 - Restart bluetoothd daemon automatically for V1 API. r=tzimmermann 2015-04-30 05:13:00 -04:00
Jocelyn Liu
3a89cd8397 Bug 1138267 - Unregister bluetooth signal handlers in unlink. r=shuang, r=bz
Without unregistering the bluetooth signal handler when a object unlinked, we
might end up exposing a deleted object to JS or accessing deleted objects while
receiving signals from parent process.

This patch unregister signal handlers in unlink for each Bluetooth* classes
which registers signal handlers. And also checks if the signal handler is not
unregistered before handling signals in content process.
2015-04-27 22:46:00 -04:00
Andrea Marchesini
0a7d105a0f Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan 2015-04-22 08:29:18 +02:00
Thomas Zimmermann
bc689e747f Bug 1154281: Remove references to UnixSocket.h from Bluetooth, r=btian
The code needs |UnixSocketRawData| from SocketBase.h and the data
structures in UnixSocketWatcher.h
2015-04-21 10:33:06 +02:00
Thomas Zimmermann
6486376974 Bug 1155718: Share ObexBase.{cpp,h} between Bluetooth v1 and v2, r=btian
Both implementations are the same.
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
af2b02c766 Bug 1155718: Share BluetoothSocketObserver.h between Bluetooth v1 and v2, r=btian
Both implementations are the same.
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
bacc86b985 Bug 1155718: Share BlueoothRilListener.{cpp,h} between Bluetooth v1 and v2, r=btian
This patch uses the v1 implementation, which include a fix for bug 1137151.
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
1edcbc4797 Bug 1155718: Share BluetoothProfileManagerBase.h between Bluetooth v1 and v2, r=btian
This patch uses the v1 implementation, which include a fix for bug 1137151.
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
457a325a8d Bug 1155718: Share BluetoothHidManager.{cpp,h} between Bluetooth v1 and v2, r=btian
This patch uses the v1 implementation, which include a fix for bug 1137151.
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
f2a72974bc Bug 1155718: Share BluetoothHfpMangerBase.h between Bluetooth v1 and v2, r=btian
Both implementations are the same, except coding-style fixes in v1.
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
fccc462506 Bug 1155082: Share BluetoothUUID.{cpp,h} between Bluetooth v1 and v2, r=btian
BluetoothUUID of v1 and v2 are the same, except for bug 1015819 in
v1. So this patch moves the v1 variant to a shared location and removes
the v2 variant completely.
2015-04-17 17:45:05 +02:00
Thomas Zimmermann
a17b8461b5 Bug 1154235: Share BluetoothUtils.{cpp,h} between Bluetooth v1 and v2, r=btian
With this patch, Bluetooth v1 and v2 share the same files for
BluetoothUtils.{cpp,h}. Some of the functions are still version specific
and cannot be shared. The v1 variants can be removed after switching to
v2.
2015-04-16 10:48:21 +02:00
Thomas Zimmermann
963b62d098 Bug 1154235: Use |BroadcastSystemMessage| in |BluetoothService::Notify|, r=btian
|BluetoothService::Notify| re-implements |BroadcastSystemMessage|. This
patch replaces this code with a call to the function.
2015-04-16 10:48:21 +02:00
Shawn Huang
37abae0a76 Bug 1152098 - Ignore subsequent toggling requests if toggling is already in progress. r=btian 2015-04-14 20:55:00 -04:00
Thomas Zimmermann
03d2fc746b Bug 1153796: Share BluetoothInterfaceHelpers.{cpp,h} between Bluetooth v1 and v2, r=btian
The v1 implementation of BluetoothInterfaceHelpers.{cpp,h} is more
up-to-date than the v2 variant. So we can just use the v1 version and
remove the v2 version entirely. Bluetooth v2 contains its own version
of |Convert(nsresult, BluetoothStatus)|, which has been removed in
favor of the shared implementation.
2015-04-15 11:46:33 +02:00
Thomas Zimmermann
5b4dbdf3f7 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
2375784a70 Bug 1153796: Unify variants of |BluetoothInterface::SspReply|, r=btian
Bluetooth use different types for the second argument of their variant
of |BluetoothInterface::SspReply|. This patch standardizes them on the
v2 version.
2015-04-15 11:46:33 +02:00
Carsten "Tomcat" Book
e3df58001f Backed out changeset 3a16edeb9ed2 (bug 1153796) for bustage on a CLOSED TREE 2015-04-15 11:33:02 +02:00
Carsten "Tomcat" Book
0ac7ee4607 Backed out changeset a74d1c644c84 (bug 1153796) 2015-04-15 11:32:16 +02:00
Carsten "Tomcat" Book
5555def988 Backed out changeset 868ace3fafba (bug 1153796) 2015-04-15 11:32:10 +02:00
Thomas Zimmermann
0cebf16a97 Bug 1153796: Share BluetoothInterfaceHelpers.{cpp,h} between Bluetooth v1 and v2, r=btian
The v1 implementation of BluetoothInterfaceHelpers.{cpp,h} is more
up-to-date than the v2 variant. So we can just use the v1 version and
remove the v2 version entirely. Bluetooth v2 contains its own version
of |Convert(nsresult, BluetoothStatus)|, which has been removed in
favor of the shared implementation.
2015-04-15 11:04:43 +02:00
Thomas Zimmermann
df36bdb153 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
2cc4962b9f Bug 1153796: Unify variants of |BluetoothInterface::SspReply|, r=btian
Bluetooth use different types for the second argument of their variant
of |BluetoothInterface::SspReply|. This patch standardizes them on the
v2 version.
2015-04-15 11:04:43 +02:00
Jamin Liu
240097641c Bug 1154136 - Update Bluetooth connection state when BT stack updates device properties. r=shuang 2015-04-14 18:46:23 +08:00
Thomas Zimmermann
ced37d6251 Bug 1152821: Share BluetoothCommon.h between Bluetooth v1 and v2, r=joliu
This patch integrates changes from Bluetooth v1 into the shared file
BluetoothCommon.h, and makes it available to both versions. The enum
constant TYPE_INVALID is replaced by NUM_TYPE.
2015-04-14 10:26:06 +02:00
Carsten "Tomcat" Book
9f84295bb8 Backed out changeset 81c108144278 (bug 1152821) 2015-04-13 10:53:59 +02:00
Thomas Zimmermann
fd9a3bab21 Bug 1152821: Share BluetoothCommon.h between Bluetooth v1 and v2, r=joliu
This patch integrates changes from Bluetooth v1 into the shared file
BluetoothCommon.h, and makes it available to both versions. The enum
constant TYPE_INVALID is replaced by NUM_TYPE.
2015-04-13 10:03:11 +02:00
Carsten "Tomcat" Book
7fd0349ce4 Backed out changeset eb14bd0103b6 (bug 1152821) 2015-04-10 15:29:00 +02:00
Thomas Zimmermann
b545f4bf37 Bug 1152821: Share BluetoothCommon.h between Bluetooth v1 and v2, r=joliu
This patch integrates changes from Bluetooth v1 into the shared file
BluetoothCommon.h, and makes it available to both versions.
2015-04-10 13:46:19 +02:00
Juan Gomez
0a492f3bcd Bug 1087161 - Upgrading B2G toolchain to gcc-4.9
* Fixed some -Werror=format issues by making function-style castings
2015-04-09 18:13:39 +02:00
Thomas Zimmermann
90dc6d375b Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu 2015-04-09 15:57:40 +02:00