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
Juan Gomez
01df2f691b
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07: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
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
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
Thomas Zimmermann
fbed99c8aa
Bug 1171017: Rename |BluetoothDaemonConnection| to |DaemonSocket|, r=shuang
2015-06-15 14:44:03 +02:00
Thomas Zimmermann
684c387001
Bug 1171017: Rename |BluetoothSocketPDU| to |DaemonSocketPDU|, r=shuang
2015-06-15 14:44:03 +02:00
Thomas Zimmermann
dcc57fc462
Bug 1171017: Rename |BluetoothDaemonPDUConsumer| to |DaemonSocketIOConsumer|, r=shuang
2015-06-15 14:44:03 +02:00
Thomas Zimmermann
3d22763878
Bug 1171017: Rename |BluetoothDaemonConnectionConsumer| to |DaemonSocketConsumer|, r=shuang
2015-06-15 14:44:03 +02:00
Shawn Huang
08e6a8dfbe
Backed out changesets 0832ffdd8144 for Bug 1167064
2015-06-15 19:05:03 +08:00
Jocelyn Liu
571fe4aad6
Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang
2015-06-15 17:11:35 +08:00
Bruce Sun
41d20692f2
Bug 1161945 - Fix empty characteristics and descriptors after searching services. f=elin, r=jocelyn
2015-06-12 10:44:57 +08:00
Bruce Sun
efa6ebbf99
Bug 1171866 - Remove ReversedUuidToString; f=tzimmermann, r=jocelyn
2015-06-11 18:01:00 +08:00
Thomas Zimmermann
c44f1139e2
Bug 1172479: Replace |nsIThread| by |MessageLoop| in socket I/O code, r=kmachulis
...
Dispatching events via |nsIThread| doesn't work with worker threads. This
patch replaces all uses of |nsIThread| in the socket code by equivalent
uses of |MessageLoop|.
2015-06-09 09:50:10 +02:00
Ryan VanderMeulen
fe34b60cf4
Backed out changeset 150544a28405 (bug 1167064) for B2G mochitest failures.
2015-06-08 15:41:26 -04:00
Jocelyn Liu
2165ebe1d8
Bug 1167064 - Switch to bluetooth APIv2. r=shuang
2015-06-04 02:59:00 -04:00
Jocelyn Liu
482d8da538
Bug 1171100 - Fix incorrect logic of handling Bluetooth Gatt Responses in daemon backend. r=tzimmermann
2015-06-04 02:53:00 -04:00
Jocelyn Liu
03ccd9e1cc
Bug 1170971 - Part 2: Fix BluetoothGattAdvData unpacking in daemon backend. r=tzimmermann
2015-06-04 02:56:00 -04:00
Jocelyn Liu
33db16cb89
Bug 1170971 - Part 1: Fix BluetoothGattReadParam unpacking in daemon backend. r=tzimmermann
2015-06-04 02:55:00 -04:00
Bruce Sun
6ec83ee4d3
Bug 1161956 - Fix crashes while using GATT client functions. r=jocelyn
2015-06-03 18:19:43 +08:00
Thomas Zimmermann
21a30b633f
Bug 1168806: Use 'consumer thread' in socket interface, r=kmachulis
...
The socket IPC interfaces still use 'main thread' in a number of
places. This patch changes all such interfaces and documentation
to speak of 'consumer thread' instead.
2015-06-02 10:01:58 +02:00
Thomas Zimmermann
364b0a0542
Bug 1168806: Configurable consumer thread for socket IPC classes, r=kmachulis
...
The consumer thread handles socket creation, destruction, and
data processing for socket IPC. Traditionally this has been
done on the main thread.
This patch extends the socket IPC classes to support arbitrary
consumer threads. The thread is configured when establishing a
connection, and performs all of the above operations until the
socket is closed.
2015-06-02 10:01:57 +02:00
Thomas Zimmermann
425da7831c
Bug 1168806: Configurable I/O thread for socket IPC classes, r=kmachulis
...
The I/O thread sends and receives data on a file descriptor. This
has traditionally been performed on a single I/O thread.
This patch extends the socket IPC classes to support arbitrary I/O
threads. The thread is configured when a connection is established
and used until the socket gets closed.
2015-06-02 10:01:57 +02:00
Jamin Liu
a6ba4ea445
Bug 1170086 - Fix the parameter type of DispatchReplyError() in StartLeScan result handler. r=joliu
2015-06-02 13:55:12 +08:00
Thomas Zimmermann
0ff93d975f
Bug 1168446: Don't store connection parameters in |BluetoothSocket|, r=shuang
2015-06-01 10:42:29 +02:00
Jocelyn Liu
e55bd11620
Bug 1163499 - Part 5: Support GATT profile when using Bluetooth daemon. r=tzimmermann
2015-05-27 00:05:00 -04:00
Jocelyn Liu
72f11918ec
Bug 1163499 - Part 4: Add GATT and GATT client interfaces for Bluetooth daemon. r=tzimmermann
2015-05-27 04:53:00 -04:00
Jocelyn Liu
4a1c855999
Bug 1163499 - Part 3: Add GATT module for Bluetooth daemon. r=tzimmermann
2015-05-27 04:52:00 -04:00
Jocelyn Liu
86ca3f75c7
Bug 1163499 - Part 2: Add helpers for Bluetooth daemon GATT client support. r=tzimmermann
2015-05-27 00:03:00 -04:00
Jocelyn Liu
e9c7840743
Bug 1163499 - Part 1: Revise BluetoothGattInterface and result handler for daemon support. r=tzimmermann
2015-05-27 04:50:00 -04:00
Thomas Zimmermann
92a42ffbe4
Bug 1167210: Replace |union sockaddr_any| with |struct sockaddr_storage|, r=kmachulis
...
Both types, |union sockaddr_any| and |struct sockaddr_storage|, provide
a sockaddr type that can hold any address. The latter is standardized by
POSIX, so we prefer it.
2015-05-27 13:49:07 +02:00
Jamin Liu
37bad3304d
Bug 1168343 - Remove the improper MOZ_ASSERT in |BluetoothServiceBluedroid::BondStateChangedNotification|. r=shuang
2015-05-27 13:38:21 +08:00
Jamin Liu
06c6b86506
Bug 1168266 - Add few member functions of ObexHeaderSet for PBAP. r=shuang
2015-05-27 09:48:02 +08:00
Thomas Zimmermann
19b95544ab
Bug 1167207: Remove |BluetoothDaemonChannel|, r=shuang
...
This patch integrates the functionality of |BluetoothDaemonChannel|
into |BluetoothDaemonConnection|. All users are adapted, the former
class is removed.
2015-05-26 18:29:02 +02:00
Thomas Zimmermann
d4f5bad1fa
Bug 1166638: Use |ListenSocketConsumer| in |ListenSocket|, r=kmachulis, dlee, chucklee, shuang
...
This patch converts |ListenSocket| to forward events to an instance
of |ListenSocketConsumer|. All users are converted and the related
listener and consumer classes are removed.
2015-05-26 13:24:20 +02:00
Jocelyn Liu
ff9f1eba0d
Bug 1167070 - Overwrite BLE related flags to enable BLE functionalities in bluedroid for both bluetooth1 and bluetooth2. r=shuang
2015-05-22 20:07:00 -04:00
Shawn Huang
34ba9ed276
Bug 1166469 - Add HandleBackendError for hfp-fallback product, r=btian
2015-05-22 11:45:54 +08:00
Carsten "Tomcat" Book
6115ce9657
Merge mozilla-central to b2g-inbound
2015-05-21 15:19:27 +02:00
Carsten "Tomcat" Book
0adcc581e9
merge mozilla-inbound to mozilla-central a=merge
2015-05-21 14:56:34 +02:00
Thomas Zimmermann
c3aad11cb9
Bug 1164417: Add |ConnectionOrientedSocket::PrepareAccept| for accepting socket connections, r=kmachulis
...
With this patch, stream and listening sockets handle the setup of
accepted sockets internally. Sub-classes of |StreamSocket| don't
have to overload StreamSocket's |GetIO| any longer.
2015-05-21 13:34:37 +02:00