Thomas Zimmermann
88c105db1f
Bug 1187904: Remove |BluetoothDaemonConnector| and random-address creator, r=shuang
2015-08-03 13:17:02 +02:00
Thomas Zimmermann
0954201c6a
Bug 1187904: Convert |BluetoothDaemonInterface| to use |DaemonSocketConnector|, r=shuang
2015-08-03 13:17:02 +02:00
Bruce Sun
70d3d84b52
Bug 1181478 - Expose BluetoothGattServer object in BluetoothAdapter. r=btian, r=mrbkap, a=me
2015-07-24 16:32:35 +08:00
Thomas Zimmermann
1fded4b5ba
Bug 1187249: Cleanup BluetoothInterfaceHelpers.{cpp,h}, r=shuang
...
This patch moves the last conversion function to Bluetooth's daemon
backend and removes the files BluetoothInterfaceHelpers.{cpp,h}.
2015-07-30 10:34:51 +02:00
Thomas Zimmermann
1271c602b3
Bug 1187249: Move Bluetooth init operators to ipc/hal, r=shuang
2015-07-30 10:34:51 +02:00
Thomas Zimmermann
a0dea3fa12
Bug 1183249: Move PDU helper functions to ipc/hal, r=shuang
2015-07-30 10:34:51 +02:00
Thomas Zimmermann
b0a37b8448
Bug 1187249: Move |DaemonSocketPDUHeader| to hal/ipc, r=shuang
2015-07-30 10:34:51 +02:00
Thomas Zimmermann
ef7a70b10b
Bug 1187872: Remove HAL backend from Bluetooth, r=shuang
...
Bluedroid's HAL backend has been superseded by the Bluetooth daemon, and
already been unused in current releases. This patch removes the code from
Gecko.
2015-07-30 09:09:26 +02:00
Ben Tian
71aac41a86
Bug 1127701 - Fix warning: NS_ENSURE_TRUE(value.isNumber()) failed, r=joliu
2015-07-29 16:40:39 +08:00
Ben Tian
a6a9afad4d
Bug 1188394 - Fix warning: NS_ENSURE_TRUE(aTypes.Length()) failed, r=joliu
2015-07-29 16:39:02 +08:00
Ryan VanderMeulen
3a588a1e6e
Backed out changeset beed8e3e86d9 (bug 1181478) for B2G test_interfaces.html failures.
2015-07-27 15:51:54 -04:00
Bruce Sun
fb5ccc4504
Bug 1181478 - Expose BluetoothGattServer object in BluetoothAdapter. r=btian, r=mrbkap
2015-07-24 16:32:35 +08:00
Thomas Zimmermann
cc18a3f482
Bug 1187230: Remove obsolete Bluetooth daemon runnables, r=shuang
2015-07-27 13:33:18 +02:00
Thomas Zimmermann
f5a65b5ee6
Bug 1187230: Convert Bluetooth to use daemon runnables, r=shuang
...
With this patch, Bluetooth uses the generic daemon runnables.
2015-07-27 13:33:17 +02:00
Ben Tian
4aa44f5c10
Bug 1181827 - [Aries-L] Store remote device address and name mapping for pairing, r=shuang
2015-07-22 10:23:45 +08:00
Carsten "Tomcat" Book
a14fb88fc7
Backed out changeset 83cd70d2b0bb (bug 1187230)
2015-07-24 15:42:08 +02:00
Carsten "Tomcat" Book
0b147e99cb
Backed out changeset fffe2fc4b8ab (bug 1187230)
2015-07-24 15:42:02 +02:00
Thomas Zimmermann
5c579ff4d9
Bug 1187230: Remove obsolete Bluetooth daemon runnables, r=shuang
2015-07-24 14:50:06 +02:00
Thomas Zimmermann
68812d5593
Bug 1187230: Convert Bluetooth to use daemon runnables, r=shuang
...
With this patch, Bluetooth uses the generic daemon runnables.
2015-07-24 14:50:06 +02:00
Thomas Zimmermann
cd79ba4ebf
Bug 1186331: Check for \0 when parsing Bluetooth device names, r=btian
...
This patch adds an explicit check for the terminal \0 character to
the parser that reads Bluetooth device names from bluetoothd. There's
a maximum length of 249 characters per name. If we don't find \0 we
interpret the whole range to contain the device name.
2015-07-24 11:24:47 +02:00
Ben Tian
90d84b0278
Bug 1186317 - [cleanup] Remove unused macros and unnecessary logs, r=shuang
2015-07-21 18:05:44 +08:00
Bruce Sun
0743a4018a
Bug 1176898 - Remove redundant DisconnectFromOwner of BluetoothDiscoveryHandle. r=btian
2015-07-21 14:09:53 +08:00
Thomas Zimmermann
ae3f007a39
Bug 1185478: Remove strong references from socket I/O class to socket classes
...
The shutdown procedure for socket classes ensures that the I/O class is
deleted independently from its socket class. If the socket class has been
deleted, no I/O is performed and no socket events are forwarded. The I/O
class therefore doesn't require a strong reference to its socket class.
This patch removes the remaining ref-counted pointers from the socket I/O
classes. The socket class clears the weak reference in its socket I/O class
when closing the socket.
2015-07-21 08:06:29 +02:00
Thomas Zimmermann
9e43771c76
Bug 1185478: Add leak checks to socket I/O classes
2015-07-21 08:06:29 +02:00
Thomas Zimmermann
b79581ffbb
Bug 1180965: Don't disable BT before daemon has been shut down, r=btian
...
The current shutdown code for Bluetooth contains a race condition
between closing the daemon sockets and re-opening them for the next
instance of the daemon.
This patch fixes the problem by not disabling the Bluetooth adapter
before the sockets have been closed. During the shutdown, no new
instances of the daemon can be started.
2015-07-14 13:28:18 +02:00
Jamin Liu
da5590c589
Bug 1179713 - fix the manifest of bluetooth2 marionette test set. r=btian
2015-07-14 18:37:49 +08:00
Birunthan Mohanathas
47ed3a3675
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Jocelyn Liu
b7ed1e5a94
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
0293af1415
Bug 1170071 - Part 3: Add gatt server support to GATT module for Bluetooth daemon. r=shuang
2015-07-08 04:33:00 -04:00
Jocelyn Liu
231cf139db
Bug 1170071 - Part 2: Add helpers for Bluetooth daemon GATT server support. r=shuang
2015-07-08 04:31:00 -04:00
Jocelyn Liu
66472476bf
Bug 1170071 - Part 1: Revise BluetoothGattInterface, result handler, and interface helper for daemon support of gatt server. r=shuang
2015-07-08 04:30:00 -04:00
Bruce Sun
8254610be5
Bug 1161991: Gatt server neutral-backend interface; r=jocelyn
2015-07-06 13:43:54 +08:00
Shawn Huang
0cc77daba1
Bug 1160126 - Restart bluetoothd daemon automatically for API V2, r=jocelyn
2015-07-07 15:16:57 +08:00
Phil Ringnalda
ac27299b59
Merge m-c to m-i
2015-07-03 19:15:06 -07:00
Juan Gomez
01df2f691b
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Ben Tian
6870438813
Bug 1179682 - Remove |mName| from BluetoothReplyRunnable, r=joliu
2015-07-02 17:55:54 +08:00
Jocelyn Liu
7c260bb718
Bug 1178654 - Fix the uuid length when parsing bluetooth low energy advertisement data. r=btian
2015-07-03 12:39:23 +08:00
Bruce Sun
db84460ac1
Bug 1164387 - Use |btgatt_client_interface_t.get_device_type| to get the device type. r=jocelyn
2015-07-02 12:07:43 +08:00
Ben Tian
9e41c939e8
Bug 1179141 - Remove macro |BT_API2_LOGR|, r=joliu
2015-07-02 15:13:41 +08:00
Jan de Mooij
3b8d7eed74
Bug 1177892 part 4 - Remove INT_TO_JSVAL. r=evilpie
2015-06-30 21:10:04 -07:00
Jan de Mooij
c3dfaeab46
Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie
2015-06-30 11:20:56 -07:00
Ryan VanderMeulen
e6131fc8b8
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
2128198065
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-06-24 14:11:00 -04:00
Jamin Liu
429d75ce44
Bug 1175067 - Switch Bluetooth marionette test set to BT API v2 and disable unsupported tests. r=joliu
2015-06-17 18:00:26 +08:00
Thomas Zimmermann
134831cabf
Bug 1172914: Merge duplicated code in |BluetoothServiceBluedroid| for simple cases, r=btian
2015-06-16 17:28:07 +02:00
Thomas Zimmermann
9435cf53e2
Bug 1172914: Minimize Bluetooth v1/v2 duplication in BluetoothServiceBluedroid.cpp, r=btian
2015-06-16 17:28:07 +02:00
Thomas Zimmermann
6c171ed369
Bug 1172914: Minimize Bluetooth v1/v2 duplication in BluetoothServiceBluedroid.h, r=btian
2015-06-16 17:28:07 +02:00
Jocelyn Liu
cb94db24ac
Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang
2015-06-16 09:38:50 +08:00
Jocelyn Liu
7bcf2039cd
Bug 1174717 - Passing fallible when calling AppendElement method for Sequence types in bluetooth2. r=shuang
2015-06-15 08:41:00 -04:00
Thomas Zimmermann
a7d6eb2631
Bug 1171017: Move classes from ipc/bluetooth to ipc/hal, r=shuang
...
The class |DaemonSocket| and its helpers implement a service-
neutral connection to a HAL daemon. This patch moves the code
to an appropriate directory and breaks up the code into smaller
pieces.
2015-06-15 14:44:03 +02:00