Commit Graph

1190 Commits

Author SHA1 Message Date
Bruce Sun
6aa6d0cb4a Bug 1125719 - Redial from bluetooth device cause bluetoothd and gecko crash. r=tzimmermann
There is |aPDU.Consume(1)| at the beginning, so |aPDU.GetSize()| becomes 1
less than the actual data length we want to parse. As a result, |memchr()|
will always fail by missing the final character by using |aPDU.GetSize()| as
its |num| parameter.
2015-01-26 19:07:23 +08:00
Tom Schuster
66ad9a2e49 Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz 2015-01-24 16:38:08 +01:00
Thomas Zimmermann
f7a2e65a47 Bug 1124565: Fix position of const qualifiers for |sDefaultBackend|, r=shuang
This patch fixes the position of the second const qualifier for
|sDefaultBackend|. Both, pointer and memory, are now marked as
constant.
2015-01-22 10:52:18 +01:00
Carsten "Tomcat" Book
31479ad480 Merge mozilla-central to b2g-inbound 2015-01-20 13:23:50 +01:00
Carsten "Tomcat" Book
935a218dcb merge b2g-inbound to mozilla-central a=merge 2015-01-20 12:12:12 +01:00
Thomas Zimmermann
70fa9ef270 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
cc06604267 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
2eed89da86 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
b65367839d 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
dd06eecb9d 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
899a86f835 Bug 1121930: Sync Bluetooth daemon protocol with BlueZ 5.27, r=shuang 2015-01-15 19:44:02 +08:00
Ms2ger
b83d21c58c Bug 914067 - Remove JSVAL_VOID from dom/; r=jst 2015-01-14 08:59:06 +01:00
Masatoshi Kimura
bf312ad056 Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Carsten "Tomcat" Book
94b83cc9a3 Merge mozilla-central to mozilla-inbound 2015-01-09 15:26:58 +01:00
Ben Tian
a2cbd8e9e6 Bug 1118163 - Restore received file for small size (1-packet) file, r=shuang 2015-01-08 18:11:37 +08:00
Ryan VanderMeulen
0adb188a2b 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
0003a363ad Bug 1102703 - Porting bluetooth interface of bluez 5.26 (handsfree). r=btian, f=tzimmermann 2015-01-08 11:50:21 +08:00
Bruce Sun
057addefc5 Bug 1102703 - Porting bluetooth interface of bluez 5.26 (a2dp). r=btian, f=tzimmermann 2015-01-08 11:49:49 +08:00
Bruce Sun
068ab4fe55 Bug 1102703 - Porting bluetooth interface of bluez 5.26 (core). r=btian, f=tzimmermann 2015-01-08 11:49:17 +08:00
Bruce Sun
ee6dcf6c1d 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
07061fec3c Bug 1102703 - Porting bluetooth interface of android lollipop (a2dp). r=shawnjohnjr 2015-01-08 11:47:42 +08:00
Bruce Sun
29b4ba484c 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
08507e26e0 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
08634bb129 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
4ae7d4780a 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]
741ad71bdd Bug 1115603 - Part 4: Use nsITelephonyCallInfo for call data (bluetooth). r=btian 2015-01-08 16:33:51 +08:00
Bruce Sun
6d031a026a 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
c50c4aedc4 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
04614aebb8 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
050b6a1922 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
bc9200ec52 Bug 1102703: (5/10) Porting bluetooth interface of android lollipop (a2dp) r=shawnjohnjr 2015-01-09 13:37:05 +08:00
Bruce Sun
e281c7bdc4 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
602a02a783 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
0581a40170 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
6b9eecaa70 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
cb3533a9d3 Bug 1116371 - Correct #endif comment in BluetoothMessageUtils.h, r=btian 2015-01-08 14:43:10 +08:00
Thomas Zimmermann
bda5309bb5 Bug 1095488: Added AVRCP support for Bluetooth daemon backend, r=shuang 2015-01-07 11:32:06 +01:00
Thomas Zimmermann
562e509ca8 Bug 1095488: Added Bluetooth AVRCP interface, r=shuang 2015-01-07 11:32:05 +01:00
Thomas Zimmermann
1a8c4eb9fd Bug 1095488: Add Bluetooth AVRCP module, r=shuang 2015-01-07 11:32:05 +01:00
Thomas Zimmermann
7d48d22528 Bug 1095488: Add Bluetooth AVRCP helpers, r=shuang 2015-01-07 11:32:05 +01:00
Dave Huseby
83a6796724 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
3988677a6b 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
23f6b7be43 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
42d775afda Bug 1070831 - Part 6: Clean up BluetoothRilListener. r=btian 2014-12-21 17:37:00 +01:00
Botond Ballo
40dadf0d08 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
7b85bd5de5 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
e81f7a7fc6 Bug 1095487: Add Blueooth A2DP support when using daemon backend, r=shuang 2014-12-11 10:53:14 +01:00
Thomas Zimmermann
84cfd20bbb Bug 1095487: Added Blueooth A2DP interface for daemon backend, r=shuang 2014-12-11 10:53:14 +01:00
Thomas Zimmermann
8a19feb688 Bug 1095487: Added Bluetooth A2DP module for daemon backend, r=shuang 2014-12-11 10:53:14 +01:00
Thomas Zimmermann
2b853840cd Bug 1095487: Add Bluetooth A2DP helpers, r=shuang 2014-12-11 10:53:14 +01:00