Commit Graph

1324 Commits

Author SHA1 Message Date
Andrew McCreight
57f46c9d71 Bug 1152551, part 3 - Fix more mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight
c979f253c0 Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Jocelyn Liu
0645784a7e Bug 1159685 - Fix BluetoothSspVariant argument passing for SspRequestNotification. r=shuang 2015-04-30 01:04:00 -04:00
Jocelyn Liu
e9ac933144 Bug 1159650 - Remove incorrect value assertions in BluetoothGattCharacteristic and BluetoothGattDescriptor. r=btian 2015-04-29 19:53:00 -04:00
Bruce Sun
e249860bd1 Bug 1159552 - Clear local arrays while discovering. r=jocelyn 2015-04-30 14:41:08 +08:00
Shawn Huang
99f3383c74 Bug 1143925 - Restart bluetoothd daemon automatically for API V2. r=tzimmermann 2015-04-30 05:46:00 -04:00
Shawn Huang
180dc51f66 Bug 1143925 - Avoid crash for HFP/A2DP manager during restart daemon. r=tzimmermann 2015-04-30 05:14:00 -04:00
Shawn Huang
23f371696b Bug 1143925 - Restart bluetoothd daemon automatically for V1 API. r=tzimmermann 2015-04-30 05:13:00 -04:00
Thomas Zimmermann
f0efefb121 Bug 1159709: Cleanup inherited methods of BlueZ's |BluetoothSocket|, r=kmachulis
This patch cleans up the inherited methods of BlueZ's |BluetooothSocket|.
Methods of the same base class are grouped within the file, and each
method is labeled with 'override'.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann
0668ec0afd Bug 1159709: Cleanup inherited methods of Bluedroid's |BluetoothSocket|, r=kmachulis
This patch cleans up the inherited methods of Bluedroid's
|BluetooothSocket|. Methods of the same base class are grouped
within the file, and each method is labeled with 'override'.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann
a1f27cda16 Bug 1159709: Inherit |BluetoothDaemonConnection| from |DataSocket|, r=kmachulis
|BluetoothDaemonConnection| sends and receives data. With this patch
it inherits from |DataSocket|, which provides the respective abstract
interfaces.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann
680ee86ba7 Bug 1158818: Only store Bluetooth result runnable after command has been sent successfully, r=shuang
With the current code, the Bluetooth result runnable is saved for
receiving before a command has been sent successfully. If sending
fails afterwards, the saved result runnable will still sit in the
result queue, and interfere with later, successful commands.

With this patch, the result runnable is saved only if the sending
was successful.
2015-04-30 11:29:25 +02:00
Thomas Zimmermann
9d654e96e7 Bug 1159209: Remove template parameters from |DataSocketIO|, r=kmachulis
This patch removes the template parameters from |DataSocketIO| and
moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann
97a6e261a2 Bug 1159209: Remove template parameters from |SocketIOShutdownTask|, r=kmachulis
This patch removes the template parameters from |SocketIOShutdownTask|
and moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann
108688d07a Bug 1159209: Remove template parameters from |SocketIORequestClosingRunnable|, r=kmachulis
This patch removes the template parameters from
|SocketIORequestClosingRunnable| and moves its methods into
the C++ source file. All users have been adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann
3e99239e23 Bug 1159209: Remove template parameters from |SocketIOEventRunnable|, r=kmachulis
This patch removes the template parameters from |SocketIOEventRunnable|
and moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Ben Tian
1f25ec0b52 Bug 1158081 - Patch (2/2): Simplify |BluetoothOppManager::SendObexData| function, r=tzimmermann 2015-04-28 11:12:35 +08:00
Ben Tian
fcbc137d58 Bug 1158081 - Patch (1/2): Define macro to declare SocketObserver functions, r=tzimmermann 2015-04-28 11:12:13 +08: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
Thomas Zimmermann
f348be8538 Bug 1158876: Move |DataSocket::ReceiveSocketData| into sub classes, r=kmachulis
|ReceiveSocketData| receives socket data on the main thread. This
is a specific detail of the current socket classes, which should not
be required by future implementations.

This patch moves the receive method and the corresponding runnable
into socket classes.
2015-04-28 10:18:13 +02:00
Thomas Zimmermann
bd2114ae82 Bug 1158876: Move management of socket I/O buffers into socket I/O classes, r=kmachulis
This patch moves management of received socket I/O buffers from
|DataSocketIO| into the I/O classes. Each I/O class is responsible
for (de-)allocating buffers, and consuming them once data has been
received.

All current I/O classes forward their buffers to the main thread,
but other operations are possible. For example, received data can
be parsed and processed directly in the I/O thread.
2015-04-28 10:18:13 +02:00
Thomas Zimmermann
a59255399c Bug 1158876: Rename |SocketConsumerBase| to |DataSocket|, r=kmachulis
This patch renames |SocketConsumerBase| to |DataSocket|, and for the
I/O classes |SocketConsumerIO| to |DataSocketIO|. |DataSocketIO| also
contains send and receive functionality from |SocketBaseIO|.

|DataSocket| is a virtual base class that represents a socket that
transfers data, without a particular constraints to what the data
represents. |DataSocketIO| is the corresponding helper class on the
I/O thread.
2015-04-28 10:18:12 +02:00
Szu-Yu Chen [:aknow]
2df4e432d8 Bug 1155063 - Part 3: CallStateChanged accepts an array (bluetooth dom). r=btian 2015-04-24 18:10:37 +08:00
Bruce Sun
e3c47abb93 Bug 1153159 - Pass |promise| as a parameter in |BT_ENSURE_TRUE_RESOLVE| and |BT_ENSURE_TRUE_REJECT| macros. r=btian 2015-04-23 11:07:59 +08:00
Thomas Zimmermann
b8aef5264e Bug 1156352: Remove |UnixSocketRawData| from socket I/O interfaces, r=kmachulis 2015-04-23 13:48:48 +02:00
Thomas Zimmermann
befbf30c0b Bug 1156352: Remove |UnixSocketRawData| from Bluetooth interfaces, r=btian 2015-04-23 13:48:47 +02:00
Thomas Zimmermann
8190fe227a Bug 1156716: Build GATT backend as part of Bluetooth v1, r=joliu
This patch enables building the GATT backend code in Bluetooth v1. V1 still
doesn't support GATT, only some of the code gets build.
2015-04-23 10:43:51 +02:00
Thomas Zimmermann
9869595612 Bug 1156716: Build GATT HAL helpers in Bluetooth v1, r=joliu 2015-04-23 10:43:51 +02:00
Wes Kocher
8959687abb Merge inbound to m-c a=merge CLOSED TREE 2015-04-22 17:15:53 -07:00
Thomas Zimmermann
737962d237 Bug 1156229: Update GATT support to include Android L, r=joliu
This patch adds L support to the GATT implementation. Only the HAL
backend is currently supported.
2015-04-22 09:35:36 +02:00
Thomas Zimmermann
231f6fcba2 Bug 1156229: Make ref-counted class destructors non-public, r=joliu
To build Bluetooth v2 with gcc 4.8 and later, all ref-counted classes
must have non-public destructors.
2015-04-22 09:35:36 +02:00
Jocelyn Liu
9721aed285 Bug 1015796 - Use sequence<DOMString> as the type of attribute |attrs| in BluetoothAttributeEvent instead of any. r=btian, r=mrbkap 2015-04-19 20:09:00 -04: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
3d86b21078 Bug 1154281: Merge |UnixSocketConsumer| into |BluetoothSocket|, r=btian
|BluetoothSocket| is the last remaining user of |UnixSocketConsumer|. Since
the latter class is deprecated, it's the best option to merge it into the
socket class.

The functionality of |UnixSocketConsumer| is provided by |ListenSocket| and
|StreamSocket|.
2015-04-21 10:33:06 +02:00
Wes Kocher
57f45f7372 Merge inbound to m-c a=merge CLOSED TREE 2015-04-20 16:44:05 -07: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
Denis Volk
cd6346cce0 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04: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
Bruce Sun
20b4932a5e Bug 1152653 - Implement BluetoothGatt.oncharacteristicchanged. r=jocelyn, r=mrbkap 2015-04-16 16:47:01 +08:00
Bruce Sun
ed20986dc1 Bug 1140952 - Implement read/write value of a descriptor for GATT client API (ipc part). f=jocelyn, r=btian 2015-04-16 16:45:20 +08:00
Bruce Sun
2340b61ab6 Bug 1140952 - Implement read/write value of a descriptor for GATT client API (webapi part). f=jocelyn, r=btian, r=mrbkap 2015-04-16 16:44:58 +08:00
Bruce Sun
4741ae263d Bug 1140952 - Implement read/write value of a characteristic for GATT client API (ipc part). f=jocelyn, r=btian 2015-04-16 16:44:37 +08:00
Bruce Sun
414b1252d4 Bug 1140952 - Implement read/write value of a characteristic for GATT client API (webapi part). f=jocelyn, r=shawnjohnjr, r=mrbkap 2015-04-16 16:44:17 +08:00
Thomas Zimmermann
b61080dac2 Bug 1154235: Use |snprintf| in Bluetooth utililities, r=btian
The use of |sprintf| is unsafe and generally deprecated. This patch
replaces |sprintf| in the Bluetooth utilities with |snprintf|.
2015-04-16 10:48:21 +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