Commit Graph

1187 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
35ab7fc33b Merge mozilla-central to b2g-inbound 2015-01-20 13:23:50 +01:00
Carsten "Tomcat" Book
4eedb12bdb merge b2g-inbound to mozilla-central a=merge 2015-01-20 12:12:12 +01:00
Thomas Zimmermann
78fac53b18 Bug 1065336: Implement Bluetooth backend selection; use daemon by default, r=shawnjohnjr
This patch adds proper selection of the Bluetooth backend. The backend
is configurable via environment property 'ro.moz.bluetooth.backend'. The
default value is bluetoothd.

On systems that are not Android 4.2 or later, the code does not return
a backend. These systems should use BlueZ instead.
2015-01-20 10:05:45 +01:00
Nicholas Nethercote
b03aa682f8 Bug 1123527 - Fix syntax error in BT_WARNING and BT_LOGD. r=btian.
cppcheck identified the extra ')' at the end of these macros. This code must
not be compiled in any of our standard configurations.

--HG--
extra : rebase_source : 4044d377e3a15ef725ac276ab54a192df63a8eb6
2015-01-19 19:12:43 -08:00
Thomas Zimmermann
ee862b25f8 Bug 1119746: Support random postfix for Bluetooth daemon socket name, r=btian
This patch adds support for a random postfix for bluetoothd's socket
name. The postfix is re-generated for every instance of the daemon.
This prevents name collisions between mutliple sessions and malicious
programs from taking over the connection easily.
2015-01-20 10:17:45 +08:00
Thomas Zimmermann
e9656fbfb0 Bug 1119746: Listen for socket connections when starting Bluetooth, r=btian
Currently, Gecko connects to a running instance of bluetoothd when
it starts the daemon backend. This contains a race condition between
the startup of the daemon and the startup of Gecko.

This patch changes the initialization and cleanup of Bluetooth's
daemon backend so that the Bluetooth daemon connects to Gecko. The
daemon process is now started as part of the initialization and
quits during shutdown. The steps are strictly ordered, so no race
condition exists.

The initialization and cleanup procedures should now be compatible
with BlueZ 5.
2015-01-20 10:17:40 +08:00
Thomas Zimmermann
fcc2137c6d Bug 1119746: Fix ref-counting of bluetoothd channels, r=btian
The class |BluetoothDaemonChannel| for the bluetoothd channels
supports reference counting. This patch fixes the respective
variable to use |nsRefPtr| instead of |nsAutoPtr|.
2015-01-20 10:17:31 +08:00
Bruce Sun
f57b3e7929 Bug 1121930: Sync Bluetooth daemon protocol with BlueZ 5.27, r=shuang 2015-01-15 19:44:02 +08:00
Ms2ger
230617c722 Bug 914067 - Remove JSVAL_VOID from dom/; r=jst 2015-01-14 08:59:06 +01:00
Masatoshi Kimura
f70d08c5aa Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Carsten "Tomcat" Book
6e440d02fe Merge mozilla-central to mozilla-inbound 2015-01-09 15:26:58 +01:00
Ben Tian
a035b9d1d1 Bug 1118163 - Restore received file for small size (1-packet) file, r=shuang 2015-01-08 18:11:37 +08:00
Ryan VanderMeulen
c200388252 Backed out 10 changesets (bug 1102703) for B2G JB bustage.
Backed out changeset fae7478f55e5 (bug 1102703)
Backed out changeset d9d1879fc90f (bug 1102703)
Backed out changeset b61bf281e991 (bug 1102703)
Backed out changeset f62155e4fb9c (bug 1102703)
Backed out changeset ff47d1b9e86c (bug 1102703)
Backed out changeset ece26b235282 (bug 1102703)
Backed out changeset 9f067e4973eb (bug 1102703)
Backed out changeset db035be5bc6c (bug 1102703)
Backed out changeset 411ab2917e49 (bug 1102703)
Backed out changeset 50eed0f4edc7 (bug 1102703)
2015-01-08 10:22:18 -05:00
Bruce Sun
7ef81a6baa Bug 1102703 - Porting bluetooth interface of bluez 5.26 (handsfree). r=btian, f=tzimmermann 2015-01-08 11:50:21 +08:00
Bruce Sun
556b70a0b3 Bug 1102703 - Porting bluetooth interface of bluez 5.26 (a2dp). r=btian, f=tzimmermann 2015-01-08 11:49:49 +08:00
Bruce Sun
50e8d1f50d Bug 1102703 - Porting bluetooth interface of bluez 5.26 (core). r=btian, f=tzimmermann 2015-01-08 11:49:17 +08:00
Bruce Sun
b5d7cc651d Bug 1102703 - Porting bluetooth interface of android lollipop (handsfree). r=shawnjohnjr, r=btian, r=tzimmermann 2015-01-08 11:48:21 +08:00
Bruce Sun
d5ac971d56 Bug 1102703 - Porting bluetooth interface of android lollipop (a2dp). r=shawnjohnjr 2015-01-08 11:47:42 +08:00
Bruce Sun
88cbb3859c Bug 1102703 - Porting bluetooth interface of android lollipop (core). r=btian, r=tzimmermann, r=shawnjohnjr 2015-01-08 11:47:12 +08:00
Bruce Sun
0386176808 Bug 1102703 - Extend internal interfaces to sync with android lollipop and bluez 5.26 (handsfree). r=btian, r=tzimmermann 2015-01-08 11:46:43 +08:00
Bruce Sun
e44f886222 Bug 1102703 - Extend internal interfaces to sync with android lollipop and bluez 5.26 (a2dp). r=shawnjohnjr 2015-01-08 11:46:10 +08:00
Bruce Sun
11a23df117 Bug 1102703 - Extend internal interfaces to sync with android lollipop and bluez 5.26 (core). r=btian, f=tzimmermann 2015-01-08 11:44:49 +08:00
Szu-Yu Chen [:aknow]
e1fb36b3ca Bug 1115603 - Part 4: Use nsITelephonyCallInfo for call data (bluetooth). r=btian 2015-01-08 16:33:51 +08:00
Bruce Sun
9682d53074 Bug 1102703: (9/10) Porting bluetooth interface of bluez 5.26 (handsfree) r=btian, f=tzimmermann 2015-01-09 13:39:27 +08:00
Bruce Sun
0b8236445d Bug 1102703: (8/10) Porting bluetooth interface of bluez 5.26 (a2dp) r=btian, f=tzimmermann 2015-01-09 13:38:53 +08:00
Bruce Sun
8a6305822c Bug 1102703: (7/10) Porting bluetooth interface of bluez 5.26 (core) r=btian, f=tzimmermann 2015-01-09 13:38:15 +08:00
Bruce Sun
f3c50557d9 Bug 1102703: (6/10) Porting bluetooth interface of android lollipop (handsfree) r=shawnjohnjr, r=btian, r=tzimmermann 2015-01-09 13:37:40 +08:00
Bruce Sun
b29ab61868 Bug 1102703: (5/10) Porting bluetooth interface of android lollipop (a2dp) r=shawnjohnjr 2015-01-09 13:37:05 +08:00
Bruce Sun
77bd5a12ba Bug 1102703: (4/10) Porting bluetooth interface of android lollipop (core) r=btian, r=tzimmermann, r=shawnjohnjr 2015-01-09 13:36:32 +08:00
Bruce Sun
ef3297f96e Bug 1102703: (3/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (handsfree) r=btian, r=tzimmermann 2015-01-09 13:35:01 +08:00
Bruce Sun
2790c513b6 Bug 1102703: (2/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (a2dp) r=shawnjohnjr 2015-01-09 13:34:28 +08:00
Bruce Sun
93e542d46b 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
Giovanny Andres Gongora Granada
4488413a43 Bug 1116371 - Correct #endif comment in BluetoothMessageUtils.h, r=btian 2015-01-08 14:43:10 +08:00
Thomas Zimmermann
124ef763fd Bug 1095488: Added AVRCP support for Bluetooth daemon backend, r=shuang 2015-01-07 11:32:06 +01:00
Thomas Zimmermann
a8732066cf Bug 1095488: Added Bluetooth AVRCP interface, r=shuang 2015-01-07 11:32:05 +01:00
Thomas Zimmermann
e15bcd35ac Bug 1095488: Add Bluetooth AVRCP module, r=shuang 2015-01-07 11:32:05 +01:00
Thomas Zimmermann
3b4945b7f8 Bug 1095488: Add Bluetooth AVRCP helpers, r=shuang 2015-01-07 11:32:05 +01:00
Dave Huseby
92bef33f19 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
37980cbb30 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
Edgar Chen
3e0b27eed9 Bug 1087847 - Make sure the Icc status in MobileConnection and IccManager are synced. r=hsinyi,smaug 2014-11-13 19:12:11 +08:00
Ben Hsu
ac73adeb79 Bug 1070831 - Part 6: Clean up BluetoothRilListener. r=btian 2014-12-21 17:37:00 +01:00
Botond Ballo
b08ca88b2a Bug 1073081 - Fix -Wsign-compare and -Wsign-conversion warnings. r=ehsan
--HG--
extra : source : 88c58a8cc276a4691ed23fd8b8f2f6c0713b50fd
2014-11-24 19:54:33 -05:00
Botond Ballo
d13f39481d Bug 1073081 - Fix -Wdelete-non-virtual-dtor warnings by marking some classes as MOZ_FINAL. r=ehsan
--HG--
extra : source : 7a909c534cf723b252ea5b0a225a6656399b5b2e
2014-11-24 18:38:23 -05:00
Thomas Zimmermann
e4253f6262 Bug 1095487: Add Blueooth A2DP support when using daemon backend, r=shuang 2014-12-11 10:53:14 +01:00
Thomas Zimmermann
62ce5d9ed8 Bug 1095487: Added Blueooth A2DP interface for daemon backend, r=shuang 2014-12-11 10:53:14 +01:00
Thomas Zimmermann
3976193d63 Bug 1095487: Added Bluetooth A2DP module for daemon backend, r=shuang 2014-12-11 10:53:14 +01:00
Thomas Zimmermann
eac431fc55 Bug 1095487: Add Bluetooth A2DP helpers, r=shuang 2014-12-11 10:53:14 +01:00
Wes Kocher
c659ea6bce Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
c3639f1324 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Thomas Zimmermann
dd11d3edf8 Bug 1105308: Merge BluetoothUtils.{cpp,h}, r=btian
This patch merges BluetoothUtils.{cpp,h} from BlueZ and Bluedroid
backends. The resulting files of the same name are located in the
generic code's directory.

This change requires a rebuild of dependency information, so the
patch touches CLOBBER as well.

--HG--
rename : dom/bluetooth/bluedroid/BluetoothUtils.cpp => dom/bluetooth/BluetoothUtils.cpp
rename : dom/bluetooth/bluedroid/BluetoothUtils.h => dom/bluetooth/BluetoothUtils.h
2014-11-28 11:49:40 +01:00