Commit Graph

87 Commits

Author SHA1 Message Date
Shawn Huang
d792b10578 Bug 1160126 - Restart bluetoothd daemon automatically for API V2, r=jocelyn 2015-07-07 15:16:57 +08:00
Thomas Zimmermann
0140d781db Bug 1172914: Merge duplicated code in |BluetoothServiceBluedroid| for simple cases, r=btian 2015-06-16 17:28:07 +02:00
Thomas Zimmermann
60782955f2 Bug 1172914: Minimize Bluetooth v1/v2 duplication in BluetoothServiceBluedroid.cpp, r=btian 2015-06-16 17:28:07 +02:00
Jocelyn Liu
d2c814a4a9 Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang 2015-06-16 09:38:50 +08:00
Shawn Huang
3e63545c77 Backed out changesets 0832ffdd8144 for Bug 1167064 2015-06-15 19:05:03 +08:00
Jocelyn Liu
cb70c4f158 Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang 2015-06-15 17:11:35 +08:00
Ryan VanderMeulen
f54e393bde Backed out changeset 150544a28405 (bug 1167064) for B2G mochitest failures. 2015-06-08 15:41:26 -04:00
Jocelyn Liu
c0d4703750 Bug 1167064 - Switch to bluetooth APIv2. r=shuang 2015-06-04 02:59:00 -04:00
Jamin Liu
6dc20eecb2 Bug 1168343 - Remove the improper MOZ_ASSERT in |BluetoothServiceBluedroid::BondStateChangedNotification|. r=shuang 2015-05-27 13:38:21 +08:00
Ben Tian
51c206f445 Bug 1166180 - [cleanup] Remove function |EnsureBluetoothHalLoad| in BluetoothServiceBluedroid, r=shuang 2015-05-19 17:02:01 +08:00
Thomas Zimmermann
2d3b5deca1 Bug 1164498: Remove |DispatchBluetoothReply| from |BluetoothServiceBluedroid|, r=btian
This patch replaces |DispatchBluetoothReply| in |BluetoothServiceBluedroid|
by corresponding calls to |DispatchReplySuccess| or |DispatchReplyError|.
2015-05-19 12:28:38 +02:00
Andrea Marchesini
99c17a8938 Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan 2015-05-18 14:52:26 +01:00
Jamin Liu
88f0e80126 Bug 1098228 - Set Bluetooth discoverable to default value when BT state is BT_STATE_OFF. r=shuang 2015-05-18 09:27:23 +08:00
Ben Tian
fcaa4dc3b7 Bug 1164314 - Fire devicefound in RemoteDevicePropertiesNotification only during discovery, r=shuang 2015-05-15 14:14:02 +08:00
Ben Tian
ebfa766540 Bug 1159179 - Patch 2/3: [PBAP] Revise profile disconnection when BT stops, r=shuang 2015-05-13 16:29:50 +08:00
Shawn Huang
585e812594 Bug 1160127 - Send HFP/A2DP profile disconnection notification, r=btian 2015-05-11 11:47:31 +08:00
Ben Tian
a7a76ee61b Bug 1156503 - Update device name from |RemoteDevicePropertiesNotification| during discovery, r=shuang 2015-04-30 16:48:39 +08:00
Jamin Liu
19a0334c68 Bug 1063444 - Implement LE scan related methods and LE device event. r=joliu, r=mrbkap 2015-05-04 18:59:02 +08:00
Shawn Huang
e051fcbddc Bug 1143925 - Restart bluetoothd daemon automatically for API V2. r=tzimmermann 2015-04-30 05:46:00 -04:00
Shawn Huang
ab2f389b25 Bug 1143925 - Restart bluetoothd daemon automatically for V1 API. r=tzimmermann 2015-04-30 05:13:00 -04:00
Thomas Zimmermann
882e9e3a60 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
Bruce Sun
724d6626ed 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
b5c398dacb 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
Thomas Zimmermann
6186527baa Bug 1153796: Unify variants of |BluetoothInterface::SspReply|, r=btian
Bluetooth use different types for the second argument of their variant
of |BluetoothInterface::SspReply|. This patch standardizes them on the
v2 version.
2015-04-15 11:46:33 +02:00
Carsten "Tomcat" Book
59df1710b1 Backed out changeset 3a16edeb9ed2 (bug 1153796) for bustage on a CLOSED TREE 2015-04-15 11:33:02 +02:00
Thomas Zimmermann
23b6e22872 Bug 1153796: Unify variants of |BluetoothInterface::SspReply|, r=btian
Bluetooth use different types for the second argument of their variant
of |BluetoothInterface::SspReply|. This patch standardizes them on the
v2 version.
2015-04-15 11:04:43 +02:00
Jamin Liu
f50a0c31f6 Bug 1154136 - Update Bluetooth connection state when BT stack updates device properties. r=shuang 2015-04-14 18:46:23 +08:00
Thomas Zimmermann
378e6e438e Bug 1146335: Prepare |BluetoothServiceBluedroid|, r=joliu
The only classes with significant differences between Bluetooth v1 and
v2 is |BluetoothServicebluedroid| and its helpers. The patch copies the
code from v2 into the shared backend's implementation and integrates
them by the use of ifdef. More fine-grained integration can be done later
on.
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
5ea70e2567 Bug 1146923: Pass SSP variant as enum instead of string, r=btian 2015-03-26 10:29:58 +01:00
Ryan VanderMeulen
d1cffd4446 Backed out 4 changesets (bug 1146923) for bustage.
Backed out changeset 926351238914 (bug 1146923)
Backed out changeset 7d8eb56f1e24 (bug 1146923)
Backed out changeset c5d4efed15e9 (bug 1146923)
Backed out changeset 045020b31842 (bug 1146923)

CLOSED TREE
2015-03-25 10:05:42 -04:00
Thomas Zimmermann
616e74fe33 Bug 1146923: Pass SSP variant as enum instead of string, r=btian 2015-03-25 10:38:00 +01:00
Ehsan Akhgari
ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Bruce Sun
035b4982ec Bug 1128386 - Handle |STATUS_FAIL| in |BondStateChangedNotification()|. r=tzimmermann 2015-03-09 17:04:02 +08:00
Thomas Zimmermann
82b8184812 Bug 1132229: Survive crashes of bluetoothd, r=shuang
With this patch, Gecko will handle crashes of bluetoothd by clearing its
internal state. Switching Bluetooth off and on restarts the daemon and
the Bluetooth sub-system.
2015-02-26 09:52:45 +01:00
Bruce Sun
0dca72b917 Bug 1102703: (1/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (core) r=btian, f=tzimmermann 2015-01-09 13:33:53 +08:00
Thomas Zimmermann
be9263e584 Bug 1105308: Cleanup non-shared functions in Bluedroid's BluetoothUtils.{cpp,h}, r=btian
This patch moves functions out of Bluedroid's BluetoothUtils.{cpp,h}
that are specific to this backend.
2014-11-28 11:49:40 +01:00
Thomas Zimmermann
8ca51fb460 Bug 1100883: Cleanup |BluetoothServiceBluedroid::AdapterStateChangedNotification|, 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-20 11:06:01 +01:00
Thomas Zimmermann
160eec2ebf Bug 1100883: Replace most instances of |ToggleBtAck| with calls to |AcknowledgeToggleBt|, 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-20 11:06:01 +01:00
Thomas Zimmermann
e3fc628a83 Bug 1100883: Move helpers of |BluetoothServiceBluedroid| into its namespace, r=btian 2014-11-20 11:06:00 +01:00
Jamin Liu
8d19ae65ef 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
4dda125166 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
Jocelyn Liu
8c1a4cc758 Bug 1072802: Use nsRefPtr to avoid ReplyRunnable being released during IPC process. r=tzimmermann 2014-10-07 16:46:05 +08:00
Eric Chou
e3d3c629bc Bug 1067206 - Fire DOM request even when Bluetooth pairing failed, f=jaliu, r=shuang 2014-09-16 13:14:01 +08:00
Ryan VanderMeulen
4583fbf1a8 Merge b2g-inbound to m-c. a=merge 2014-08-29 15:26:40 -04:00
Jamin Liu
6db21ddc74 Bug 1060216 - [Bluedroid] Distribute "PropertyChanged" signal to notify BluetoothAdapter when discovery state changed. r=shuang 2014-08-29 02:10:00 -04:00
Jamin Liu
740bd7276b Bug 1056413 - Broadcast system message to notify Gaia when Bluetooth authentication failure occurs. r=shuang 2014-08-29 09:58:52 +08:00
Jamin Liu
e8f84b6b60 Bug 929376 - Part 2: Move 'IsConnected' from BluetoothManager to BluetoothAdapter and allow it to be used on content process. r=shawnjohnjr 2014-08-26 18:50:35 +08:00
Ryan VanderMeulen
e86402d5ee Backed out changesets d9cbdfbed1f5 and a38ad201299f (bug 929376) for bustage. 2014-08-25 10:46:22 -04:00
Jamin Liu
fbf33a8fae Bug 929376 - Part 2: Move 'IsConnected' from BluetoothManager to BluetoothAdapter and allow it to be used on content process. r=shawnjohnjr 2014-08-25 03:53:00 -04:00
Thomas Zimmermann
33c67db869 Bug 1048915: Cleanup |BluetoothServiceBluedroid| and related functions, r=shuang
This patch removes unsued code from |BluetoothServiceBluedroid|, related
functions, and cleans up the file. It

 * removes callbacks,
 * removes callback helper tasks,
 * removes helper functions, and
 * cleans up global variables.
2014-08-14 18:12:52 +02:00