Commit Graph

247 Commits

Author SHA1 Message Date
Wes Kocher
126b4f108e Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
0f94bddfc8 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Thomas Zimmermann
0fd8a33278 Bug 1103872: Support Handsfree profile when using Bluetooth daemon (under bluetooth2/), r=btian 2014-11-28 11:37:47 +01:00
Thomas Zimmermann
f1c6c7ae79 Bug 1103872: Add Handsfree interface for Bluetooth daemon (under bluetooth2/), r=btian 2014-11-28 11:37:47 +01:00
Thomas Zimmermann
e7723624c9 Bug 1103872: Add Handsfree module for Bluetooth daemon (under bluetooth2/), r=btian 2014-11-28 11:37:47 +01:00
Thomas Zimmermann
28c30fed04 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
bd5f4fc799 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
67e7eb5b54 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
c0dd5f6357 Bug 1102161: Move |ToggleBtAck| into |BluetoothService| (under bluetooth2/), r=btian
|ToggleBtAck| completes a start of stop operation on the main thread.

This patch moves the runnable's functionality into |BluetoothService|
and makes it available for methods running on the main thread.
2014-11-28 11:18:15 +01:00
Thomas Zimmermann
c7eed9ce1c Bug 1102161: Move helpers of |BluetoothServiceBluedroid| into its namespace (under bluetooth2/), r=btian 2014-11-28 11:18:15 +01:00
Thomas Zimmermann
9bd9aa53a8 Bug 1091575: Add support for Bluetooth daemon backend (under bluetooth2/), r=btian 2014-11-14 10:04:34 +01:00
Thomas Zimmermann
4f56ee0d82 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
6ff9e20ab8 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
2b6d77373a 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
Thomas Zimmermann
6568591a99 Bug 1091575: Added general-purpose notification runnables for Bluetooth (under bluetooth2/), r=btian
A backend notification runnable in Bluetooth is used to transfer
a notification from the I/O thread to the main thread; an interface
runnable transfers and executes a result handler. Both are currently
implemented by Bluetooth backends.

This patch adds new runnables that are independend from any backend
code or data structures.
2014-11-14 10:04:33 +01:00
Thomas Zimmermann
b2a41bba13 Bug 1091575: Cleanup Bluetooth's CONVERT macro (under bluetooth2/), r=btian
The patch moves the array handling out of Bluetooth's CONVERT
macro. The change allows the use of the functionality in non-
conversion code.
2014-11-14 10:04:33 +01:00
Shawn Huang
042f661de2 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
9aa9fd587b Bug 1079649: Use a temporary (.part) file to store incoming file. (bluetooth2/bluedroid) r=btian 2014-11-10 18:55:50 +08:00
Bruce Sun
0fb740de24 Bug 1079649: Use a temporary (.part) file to store incoming file. (bluetooth2/bluez) r=btian 2014-11-10 18:56:24 +08:00
Thomas Zimmermann
9133e20f81 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
5c750e1803 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
0f7868876e 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
Edgar Chen
6c4b7b4e65 Bug 1083843 - [MobileConnection] Deprecate CFStateChangeEvent.success. r=hsinyi,smaug,btian 2014-10-23 22:13:35 +08:00
Jamin Liu
cbd95cfe18 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
51eba88842 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
973c70e366 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
Jessica Jong
da2b2114dc Bug 1052842 - Part 4: Use enums for NetworkSelectionMode in nsIMobileConnectionService.idl (bt). r=btian 2014-10-21 14:31:48 +08:00
Thomas Zimmermann
b3e7325890 Bug 1074419: Close received socket file descriptors on errors, r=shawnjohnjr 2014-10-01 10:50:33 +02:00
Jocelyn Liu
15364358ea Bug 1083646: Overwrite BLE config in bluedroid to enable BLE for bluetooth2. r=shuang 2014-10-17 14:25:16 +08:00
Thomas Zimmermann
a4ed330ba0 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
aa28d3eb31 Merge inbound to m-c. a=merge
CLOSED TREE
2014-10-15 14:31:16 -04:00
Thomas Zimmermann
3fac940f89 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
701f1dd745 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
cfc8df3183 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
9cc97e58af Bug 1080463 - Patch1: [bluetooth2] Porting DOMFile/DOMBlob to WebIDL(Bug 1047483). r=shuang 2014-10-15 17:49:00 +08:00
Ryan VanderMeulen
652c5d4a4f Merge inbound to m-c. a=merge 2014-10-07 16:00:48 -04:00
Thomas Zimmermann
ff995ec1bd 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
584a54888c Bug 994461 - Part 3: BT changes for IccInfo WebIDL. r=echou 2014-09-15 23:14:49 +08:00
Bobby Holley
f4c38cee30 Bug 1065185 - Stop using Promise.jsm over SpecialPowers in marionette tests. r=bz 2014-10-03 10:05:50 +02:00
Ben Tian
74d76f3171 Bug 1075331 - [bluetooth2] Fix build break resulting from bug 994190, r=shuang 2014-10-01 14:04:07 +08:00
Ben Tian
08372cd684 Bug 1074132 - [bluetooth2] Fix build break resulting from bug 1053966, r=shuang 2014-09-29 18:56:48 +08:00
Ben Turner
d081140cb0 Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey. 2014-09-26 16:21:57 -07:00
Jocelyn Liu
f511114c44 Bug 1054830 - Patch3: Add init/cleanup and notification handling functions into GattManager. r=tzimmermann 2014-09-26 11:16:40 +08:00
Jocelyn Liu
4583c43422 Bug 1054830 - Patch2: Implement gatt main/client interface and notifications. r=tzimmermann 2014-09-26 11:16:36 +08:00
Jocelyn Liu
2ca293f81a Bug 1054830 - Patch1: Define structures to represent bluedroid's gatt data structures. r=tzimmermann 2014-09-26 11:16:32 +08:00
Ben Tian
ab68065206 Bug 1063066 - [Flame][KK] Bluetooth transfer does not work in Gallery App. r=tzimmermann 2014-09-25 18:35:54 +08:00
Mike Habicher
c0376bc34a Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot 2014-09-16 13:15:16 -04:00
Thomas Zimmermann
a1f41b2ca9 Bug 1065897: Distribute Bluetooth HAL implementation among multiple files (unter bluetooth2/), r=btian
The files BluetoothHALInterface.{cpp,h} are getting too large. This patch
moves helper functions and profile implementations into separate files.
2014-09-23 09:41:57 +08:00
Thomas Zimmermann
d9b7d2733c Bug 1065897: Move Bluedroid code out of BluetoothInterface.{cpp,h} (under bluetooth2/), r=btian
This patch moves BluetoothInterface.{cpp,h} to the generic section
of Gecko's Bluetooth code, and the Bluedroid implementation into
the new files BluetoothHalImplementation.{cpp,h}.

BluetoothHalImplementation.{cpp,h} contains all Bluedroid-specific
code. The classes in BluetoothInterface.{cpp,h} are now interfaces
for Gecko.

--HG--
rename : dom/bluetooth2/bluedroid/BluetoothInterface.cpp => dom/bluetooth2/bluedroid/BluetoothHALInterface.cpp
2014-09-23 09:40:36 +08:00
Kyle Machulis
6568414f5d Bug 1069115 - Make bluetooth webapi marionette tests wait for transaction success when changing settings; r=echou
--HG--
extra : rebase_source : c4fdc80f904987c848bca4b839d8b3f36fefd667
2014-09-22 16:15:07 -07:00