Ed Morley
035a32e441
Merge latest green b2g-inbound changeset and mozilla-central; a=merge
2014-08-15 16:54:17 +01:00
Thomas Zimmermann
2beb2d299c
Bug 1050126: Convert Bluedroid status codes and error handlers (under bluetooth2/), r=btian
...
This patch converts Bluedroid status codes in Gecko to the
backend-neutral data type |BluetoothStatus|. All error handlers
have been adapted. The Bluedroid type |bt_status_t| only remains
in |BluetoothInterface|.
2014-08-15 13:41:19 +02:00
Thomas Zimmermann
130fb0dc4d
Bug 1050126: Convert Bluetooth AVRCP data types in |BluetoothAvrcpInterface| (under bluetooth2/), r=btian
...
With this patch |BluetoothAvrcpInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-15 13:41:19 +02:00
Thomas Zimmermann
3150db52c4
Bug 1050126: Convert Bluetooth A2DP data types in |BluetoothA2dpInterface| (under bluetooth2/), r=btian
...
With this patch |BluetoothA2dpInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-15 13:41:19 +02:00
Thomas Zimmermann
f845891a85
Bug 1050126: Convert Bluetooth Handsfree data types in |BluetoothHandsfreeInterface| (under bluetooth2/), r=btian
...
With this patch |BluetoothHandsfreeInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-15 13:41:19 +02:00
Thomas Zimmermann
535397805b
Bug 1050126: Convert Bluetooth Socket data types in |BluetoothSocketInterface| (under bluetooth2/), r=btian
...
With this patch |BluetoothSocketInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-15 13:41:18 +02:00
Thomas Zimmermann
3033b334e8
Bug 1050126: Convert Bluetooth data types in |BluetoothInterface| (under bluetooth2/), r=btian
...
With this patch, |BluetoothInterface| is responsible for converting
all Bluetooth data types to Bluedroid types. All callers have been
adapted.
2014-08-15 13:41:18 +02:00
Jamin Liu
927837ef0c
Bug 1043180 - Write a marionette test for Bluetooth pairing based on Bluetooth API v2. r=btian
2014-08-14 11:34:22 +08:00
Jamin Liu
182368b8f5
Bug 1036234 - Fix the follow-up errors from implementation of pairing event handlers. r=btian
2014-08-14 11:34:10 +08:00
Jamin Liu
ce6e38e6ed
Bug 1036234 - Implement pairing event handlers of BluetoothAdapter. r=btian, r=mrbkap
...
- EventHandler ondevicepaired;
- EventHandler ondeviceunpaired;
2014-08-12 16:30:42 +08:00
Jamin Liu
5d07e5487b
Bug 1036233 - Implement pairing methods of Bluetooth API v2. r=btian, r=mrbkap
...
- Promise<void> pair(DOMString aAddress)
- Promise<void> unpair(DOMString aAddress)
- sequence<BluetoothDevice> getPairedDevices()
2014-08-12 16:30:36 +08:00
Jamin Liu
9699a70dd0
Bug 1036233 - Initialize the data member of BluetoothDevice. r=btian
2014-08-12 16:30:26 +08:00
Nigel Babu
aa716c50f3
Backed out changeset 2d0ebc1bc7d6 (bug 1036233) for build bustage ON A CLOSED TREE
2014-08-12 09:00:30 +05:30
Nigel Babu
5d366768d5
Backed out changeset c5d50f1bc995 (bug 1036233) for build bustage ON A CLOSED TREE
2014-08-12 09:00:20 +05:30
Nigel Babu
7e2132868b
Backed out changeset a471c7c73409 (bug 1036234) for build bustage on A CLOSED TREE
2014-08-12 09:00:08 +05:30
Jamin Liu
3f63587fec
Bug 1036234 - Implement pairing event handlers of BluetoothAdapter. r=btian, r=mrbkap
...
- EventHandler ondevicepaired;
- EventHandler ondeviceunpaired;
2014-08-12 10:49:59 +08:00
Jamin Liu
875bc52b44
Bug 1036233 - Implement pairing methods of Bluetooth API v2. r=btian, r=mrbkap
...
- Promise<void> pair(DOMString aAddress)
- Promise<void> unpair(DOMString aAddress)
- sequence<BluetoothDevice> getPairedDevices()
2014-08-12 10:49:53 +08:00
Jamin Liu
d7fd552bb2
Bug 1036233 - Initialize the data member of BluetoothDevice. r=btian
2014-08-12 10:49:43 +08:00
Vicamo Yang
12b2ecd464
Bug 1048098: remove redundant flushPermissions, flushPrefEnv from tearing down procedure. r=btian, r=echen
2014-08-08 18:28:58 +08:00
Jocelyn Liu
5ca98183ca
Bug 1050494: Clear sBluetoothThread in BluetoothDBusService on shutdown to fix memory leak. r=shuang
2014-08-08 16:22:32 +08:00
Thomas Zimmermann
3f2d8f20dd
Bug 1048770: Rename |ConnectResultHandler| to |ConnectSocketResultHandler| (under bluetooth2/), r=btian
...
The linker mixes up |ConnectResultHandler| from BluetoothSocket.cpp
and BluetoothHfpManager.cpp. Consequently one of them gets removed
when linking libxul.so.
This patch works around the problem by renaming |ConnectResultHandler|
in BluetoothSocket.cpp to |ConnectSocketResultHandler|.
2014-08-08 09:58:18 +02:00
Thomas Zimmermann
6ab0255ab4
Bug 1048770: Fix member types of |BluetoothInterfaceRunnable{1,3}<>| (under bluetooth2/), r=btian
...
When sending a |BluetoothInterfaceRunnable3<>| to the main thread,
in the case of BluetoothSocketResultHandler, the connect and accept
operations transfer string objects by reference from the I/O thread.
When the reference is accessed, the actual string might be removed
already.
The patch fixes the problem by storing the strings as value in the
runnable object.
2014-08-08 09:58:17 +02:00
Jocelyn Liu
17daee6cee
Bug 1047757: Call ClearOnShutdown(sBluetoothService) to fix memory leak. r=shuang
2014-08-07 14:01:24 +08:00
Ed Morley
802659f09d
Backed out changeset 9281f9896ce0 (bug 1048098) for webapi test failures
2014-08-05 12:22:00 +01:00
Jocelyn Liu
b2561ccaba
Bug 1036228 - Patch3: Handle pairing requests and fire pairing events in BluetoothAdapter. r=btian, r=bz
2014-08-05 18:25:54 +08:00
Jocelyn Liu
14321ac0ae
Bug 1036228 - Patch2: Handle pairing requests reported by bluedroid in bluetooth services. r=btian
2014-08-05 18:25:47 +08:00
Jocelyn Liu
de07876952
Bug 1036228 - Patch1: Add BluetoothPairingRequestListeningHandle.webidl and implement it. r=btian, r=bz
2014-08-05 18:25:42 +08:00
Vicamo Yang
02b4e50f12
Bug 1048098: remove redundant flushPermissions, flushPrefEnv from tearing down procedure. r=btian, r=echen
2014-08-05 16:19:06 +08:00
Nathan Froyd
d86ff9f990
Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium
2014-07-24 11:55:33 -04:00
Thomas Zimmermann
c8fa379487
Bug 1045461: Fix HFP fallback code to work with latest Bluetooth changes (under bluetooth2/), r=btian
...
Recent patches to Bluetooth introduced asynchronous initialization of
profile manager. The code in hfp-fallback was not adapted then. This
patch updates the broken code.
2014-07-29 10:47:31 +02:00
Jocelyn Liu
d161c4ec6c
Bug 1033898 - Patch1: Add BluetoothPairingEvent and BluetoothPairingHandlewebidls and their class implementations. r=btian, r=bz
2014-07-28 22:09:00 +02:00
Thomas Zimmermann
79dd9999b0
Bug 1042691: Asynchronous |BluetoothAvrcpInterface::SetVolume| (under bluetooth2/), r=btian
2014-07-28 09:52:52 +02:00
Thomas Zimmermann
a53418b155
Bug 1042691: Asynchronous AVRCP response interfaces (under bluetooth2/), r=btian
2014-07-28 09:52:51 +02:00
Thomas Zimmermann
0cd53752c7
Bug 1042691: Asynchronous A2DP connect/disconnect (under bluetooth2/), r=btian
2014-07-28 09:52:51 +02:00
Thomas Zimmermann
a64b96f7a6
Bug 1042691: Asynchronous init and cleanup of A2DP/AVRCP (under bluetooth2/), r=btian
2014-07-28 09:52:51 +02:00
Thomas Zimmermann
a28fd77f06
Bug 1042691: Add A2DP/AVRCP result-handler infrastructure (under bluetooth2/), r=btian
2014-07-28 09:52:50 +02:00
Jocelyn Liu
5219a61f5d
Bug 1036232 - Remove redundant code of entering compartment in BT manager and adapter. r=btian
2014-07-25 03:24:00 +02:00
Jocelyn Liu
818562fc76
Bug 1038632 - Patch2: Maintain device objects in BluetoothAdapter. r=btian
2014-07-25 15:21:44 +08:00
Mike Hommey
9ae3c48776
Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal
2014-07-23 08:37:51 +09:00
Thomas Zimmermann
92c28a5c88
Bug 1038645: Asynchronous |BluetoothHandsfreeInterface::PhoneStateChange| (under bluetooth2/), r=btian
2014-07-22 13:53:29 +02:00
Thomas Zimmermann
f6e102e1b2
Bug 1038645: Asynchronous Bluetooth Handsfree response methods (under bluetooth2/), r=btian
2014-07-22 13:53:29 +02:00
Thomas Zimmermann
761b718fd9
Bug 1038645: Asynchronous |BluetoothHandsfreeInterface::DeviceStatusNotification| (under bluetooth2/), r=btian
2014-07-22 13:53:29 +02:00
Thomas Zimmermann
c6f9bb3981
Bug 1038645: Asynchronous |BluetoothHandsfreeInterface::VolumeControl| (under bluetooth2/), r=btian
2014-07-22 13:53:28 +02:00
Thomas Zimmermann
2f9bac6204
Bug 1038645: Asynchronous Bluetooth Handsfree voice-recognition functions (under bluetooth2/), r=btian
2014-07-22 13:53:28 +02:00
Thomas Zimmermann
0d80c39c22
Bug 1038645: Asynchronous Bluetooth Handsfree connection handling (under bluetooth2/), r=btian
2014-07-22 13:53:28 +02:00
Thomas Zimmermann
7d9b6e07cc
Bug 1038645: Asynchronous Bluetooth Handsfree init and cleanup methods (under bluetooth2/), r=btian
2014-07-22 13:53:28 +02:00
Thomas Zimmermann
3274cb40bb
Bug 1038645: Add result-handler class for Bluetooth Handsfree profile (under bluetooth2/), r=btian
2014-07-22 13:53:27 +02:00
Thomas Zimmermann
5ce9f7d64a
Bug 1038645: Asynchronous starting and stopping of profile managers (under bluetooth2/), r=btian
...
Profile managers use the new class |BluetoothProfileResultHandler|
to signal the result of initializing of cleaning up operations to
|BluetoothServiceBluedroid|. |BluetoothServiceBluedroid| proceeds
once all profile handlers have finished.
Future patches will build upon this patch to create completely
asynchronous profile managers.
2014-07-22 13:53:27 +02:00
Thomas Zimmermann
6344f16624
Bug 1041440: Create Promise using |Promise::Create|, r=btian
...
This patch fixes a call to the private constructor of |Promise|.
2014-07-21 12:41:29 +02:00
Ben Tian
826912823a
Bug 1038026 - Fire onattributechanged event when adapter fails to turn on/off BT and restores state to Disabled/Enabled, r=echou
2014-07-21 10:44:09 +08:00