Commit Graph

182 Commits

Author SHA1 Message Date
Ben Tian
f71d34f608 Bug 1106017 - Patch 2/2: Merge BluetoothUtils.{cpp,h}, r=tzimmermann 2015-02-03 10:06:53 +08:00
Thomas Zimmermann
5dd13997fc Bug 1118693: Added AVRCP support for Bluetooth daemon backend (bluetooth2/), r=btian 2015-01-30 10:05:48 +01:00
Thomas Zimmermann
1b98195676 Bug 1118693: Added Bluetooth AVRCP interface (under bluetooth2/), r=btian 2015-01-30 10:05:48 +01:00
Thomas Zimmermann
390c20302b Bug 1118693: Add Bluetooth AVRCP module (under bluetooth2/), r=btian 2015-01-30 10:05:48 +01:00
Thomas Zimmermann
4079df980c Bug 1118693: Add Bluetooth AVRCP helpers (under bluetooth2/), r=btian 2015-01-30 10:05:48 +01:00
Jamin Liu
7f8d9af35c Bug 1121404 - Cache addresses of bonded devices and notify adapter properly. r=btian 2015-01-29 15:49:53 +08:00
Jocelyn Liu
292504ecd6 Bug 1126151 - Fix build break resulting from bug 1125356. r=shuang 2015-01-26 22:28:00 -05:00
Thomas Zimmermann
7ba6e2ff5e Bug 1110049: Add Blueooth A2DP support when using daemon backend (under bluetooth2/), r=btian 2015-01-26 18:39:09 +01:00
Thomas Zimmermann
df30b95947 Bug 1110049: Added Blueooth A2DP interface for daemon backend (under bluetooth2/), r=btian 2015-01-26 18:39:09 +01:00
Thomas Zimmermann
345e6fe9c1 Bug 1110049: Added Bluetooth A2DP module for daemon backend (under bluetooth2/), r=btian 2015-01-26 18:39:08 +01:00
Thomas Zimmermann
d811bf517b Bug 1110049: Add Bluetooth A2DP helpers (under bluetooth2/), r=btian 2015-01-26 18:39:08 +01:00
Tom Schuster
55082c80f4 Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz 2015-01-24 16:38:08 +01:00
Ben Tian
9c4717e1d4 Bug 1121334 - [bluetooth2] Append device name to BluetoothDevice in BluetoothPairingEvent, r=shuang, f=jaliu 2015-01-16 10:53:55 +08:00
Ben Tian
3fcb4bc500 Bug 1118163 - Restore received file for small size (1-packet) file, r=shuang 2015-01-08 18:11:37 +08:00
Dave Huseby
2dd498d6d5 Bug 1107681 - fix up the dom uses of WrapptedJSToDictionary to use the cx-less interface. r=bholley 2014-12-29 11:56:00 +01:00
Jamin Liu
6fb6ee9265 Bug 1088527 - Modify BluetoothOppManager.IsConnected to indicate whether profile is connected or not. r=btian
BluetoothOppManager.IsConnected() couldn't represent the connection status
of Opp profile since it only return true if there is an ongoing
file-transfer session.

This function was used to named |IsTransferring()| in Bug 827267, however,
it was renamed to |IsConnected()| when Bug 842948 landed.
2014-12-26 16:58:11 +08:00
Jamin Liu
59147d78cd Bug 1096266 - Avoid to create Bluetooth profiles on content process since HFP manager need permission to create setting lock. r=shuang, f=btian 2014-12-25 14:46:37 +08:00
Jamin Liu
4dfa0f58f1 Bug 1100818 - Launch bluetooth certified app by sending system message if it's not ready for receiving BluetoothPairingEvent. r=btian 2014-12-19 11:12:33 +08:00
Thomas Zimmermann
bc6983a8ff Bug 1103872: Support Handsfree profile when using Bluetooth daemon (under bluetooth2/), r=btian 2014-11-28 11:37:47 +01:00
Thomas Zimmermann
f2eb4e47ed Bug 1103872: Add Handsfree interface for Bluetooth daemon (under bluetooth2/), r=btian 2014-11-28 11:37:47 +01:00
Thomas Zimmermann
116c09f452 Bug 1103872: Add Handsfree module for Bluetooth daemon (under bluetooth2/), r=btian 2014-11-28 11:37:47 +01:00
Thomas Zimmermann
f671dd876c Bug 1103872: Add helpers for Bluetooth daemon Handsfree support (under bluetooth2/), r=btian
This patch adds helpers for packing, unpacking and converting
Handsfree values to and from Bluetooth PDUs.
2014-11-28 11:37:46 +01:00
Thomas Zimmermann
a2bb78eb0e Bug 1102161: Cleanup |BluetoothServiceBluedroid::AdapterStateChangedNotification| (under bluetooth2/), r=btian
This patch replaces |ToggleBtAck| with |AcknowledgeToggleBt| in
|BluetoothServiceBluedroid::AdapterStateChangedNotification| and
cleans up the remaining runnables used by this method.

All runnables need to be handled in the same patch, because the
order of operation must not be changed.
2014-11-28 11:18:15 +01:00
Thomas Zimmermann
ec896128a0 Bug 1102161: Replace most instances of |ToggleBtAck| with calls to |AcknowledgeToggleBt| (under bluetooth2/), r=btian
|AcknowledgeToggleBt| completes a Bluetooth start or stop operation
in the context of |BluetoothService|; That was done by |ToggleBtAck|
before.

This patch replaces |ToggleBtAck| with calls to |AcknowledgeToggleBt|
in |BluetoothServiceBluedroid| for all the trivial cases.
2014-11-28 11:18:15 +01:00
Thomas Zimmermann
141299c7c9 Bug 1102161: Move helpers of |BluetoothServiceBluedroid| into its namespace (under bluetooth2/), r=btian 2014-11-28 11:18:15 +01:00
Thomas Zimmermann
4a0e8a500e Bug 1091575: Implement Socket module for Bluetooth daemon (under bluetooth2/), r=btian
This patch adds support for the Bluetooth daemon's Socket module,
which provides OPP functionality.
2014-11-14 10:04:34 +01:00
Thomas Zimmermann
afe367e8b7 Bug 1091575: Implement Bluetooth Core module for Bluetooth daemon (under bluetooth2/), r=btian
This patch adds support for the Bluetooth daemon's Core module. It
provides the basic Bluetooth functionality, such as searching and
pairing with devices, and accessing device properties.
2014-11-14 10:04:34 +01:00
Thomas Zimmermann
5ffa7a6ed4 Bug 1091575: Add core interfaces and Setup module for Bluetooth daemon (under bluetooth2/), r=btian
This patch adds the core interfaces and the Setup module for
the Bluetooth Daemon. The Setup module implements commands
for enabling and disabling Bluetooth profiles in the daemon.
2014-11-14 10:04:33 +01:00
Shawn Huang
593f8bce45 Bug 1096194 - Responding Enhanced call control with ERROR if enhanced call control is not supported, r=btian 2014-11-12 11:15:21 +08:00
Bruce Sun
8c58b464d5 Bug 1079649: Use a temporary (.part) file to store incoming file. (bluetooth2/bluedroid) r=btian 2014-11-10 18:55:50 +08:00
Thomas Zimmermann
9f3537f1e7 Bug 1084342: Copy received ancillary data into |SocketMessageWatcher|, r=shawnjohnjr
The cast-and-assign pattern for retrieving file descriptors is prone to
SIGBUS signals on platforms that don't support unaligned memory access.
This patch fixes the problem by copying the received data directly.
2014-10-28 10:34:29 +01:00
Thomas Zimmermann
1dc3c01e56 Bug 1084342: Fix receive buffer size in |SocketMessageWatcher|, r=shawnjohnjr
|SocketMessageWatcher| currently allocates a large amount of memory
for holding ancillary data. The only actually transfered value is a
file descriptor. This patch fixes the buffer size accordingly.
2014-10-28 10:34:18 +01:00
Thomas Zimmermann
9645691f14 Bug 1084342: Move |SocketMessageWatcher| to separate file, r=shawnjohnjr
This patch moves |SocketMessageWatcher| into a separate file. The new
Bluetooth daemon will require it's functionality for OPP profiles.
2014-10-28 10:34:09 +01:00
Jamin Liu
2b891c7e6f Bug 1069868 - Set Bluetooth property |discoverable| to |false| after Bluetooth enabled. r=shuang
Bluetooth scan mode is BT_SCAN_MODE_CONNECTABLE by default, it means it
should be connectable and non-discoverable.
2014-10-21 01:27:00 -04:00
Thomas Zimmermann
368c9b8be6 Bug 1083092: Data parameter for |mozilla::ipc::SocketIOSendTask| template, r=shawnjohnjr
The data class in |SocketIOSendTask| is now a template parameter, instead
of being hard-coded to |UnixSocketRawData|. The patch also adds soem minor
cleanups to the file.
2014-10-21 10:52:12 +02:00
Thomas Zimmermann
8136d65793 Bug 1083092: Introduce |mozilla::ipc::SocketBase|, r=shawnjohnjr
The new class |SocketBase| contains the notification mechanism of
|SocketConsumerBase|. The latter still contains I/O methods.
2014-10-21 10:52:11 +02:00
Thomas Zimmermann
3a8da53d02 Bug 1074419: Close received socket file descriptors on errors, r=shawnjohnjr 2014-10-01 10:50:33 +02:00
Jocelyn Liu
6e06db1251 Bug 1083646: Overwrite BLE config in bluedroid to enable BLE for bluetooth2. r=shuang 2014-10-17 14:25:16 +08:00
Thomas Zimmermann
7b70c83aca Bug 1083708: Handle non-existant Bluetooth profile interfaces correctly, r=shawnjohnjr
Bluetooth profile managers just return an error if a profile interface is
not available. Doing so breaks the initialization and cleanup routines. This
patch changes the profile managers to still report an error, but signal
progress to the given result runnable.
2014-10-16 16:40:49 +02:00
Ryan VanderMeulen
1444bbde76 Merge inbound to m-c. a=merge
CLOSED TREE
2014-10-15 14:31:16 -04:00
Thomas Zimmermann
d478ea1fbb Bug 1081981: Fix Out-of-bounds read when decoding BT properties, r=shawnjohnjr
Bluetooth's RSSI property is encoded as pointer to a signed 8-bit
value. Gecko currently interprets this as pointer to a 32-bit
value; so the result of dereferencing the pointer is undefined.

This patch fixes the bug by interpreting the RSSI property correctly.
2014-10-15 11:38:06 +02:00
Jocelyn Liu
9bcf445a00 Bug 1080463 - Patch3: [bluetooth2] Notify OPP manager when Bluetooth socket message error occurs(Bug 1052304). r=shuang 2014-10-15 17:49:08 +08:00
Jocelyn Liu
aaf628ca3e Bug 1080463 - Patch2: [bluetooth2] Use nsRefPtr to avoid ReplyRunnable being released during IPC process(Bug 1072802). r=shuang 2014-10-15 17:49:04 +08:00
Jocelyn Liu
264267ddea Bug 1080463 - Patch1: [bluetooth2] Porting DOMFile/DOMBlob to WebIDL(Bug 1047483). r=shuang 2014-10-15 17:49:00 +08:00
Thomas Zimmermann
e123efaefa Bug 1065999: Ignore unknown Bluetooth properties, r=shuang
This patch is a workaround for unknown Bluetooth properties. Instead of
failing completely, we simply ignore them.
2014-09-29 11:41:02 +02:00
Edgar Chen
5e5f03c964 Bug 994461 - Part 3: BT changes for IccInfo WebIDL. r=echou 2014-09-15 23:14:49 +08:00
Ben Tian
b676478223 Bug 1074132 - [bluetooth2] Fix build break resulting from bug 1053966, r=shuang 2014-09-29 18:56:48 +08:00
Ben Turner
b5f643fa70 Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey. 2014-09-26 16:21:57 -07:00
Jocelyn Liu
2cd7dcf779 Bug 1054830 - Patch3: Add init/cleanup and notification handling functions into GattManager. r=tzimmermann 2014-09-26 11:16:40 +08:00
Jocelyn Liu
799920c60e Bug 1054830 - Patch2: Implement gatt main/client interface and notifications. r=tzimmermann 2014-09-26 11:16:36 +08:00