Thomas Zimmermann
f76d832ae7
Bug 979370: Remove |BluetoothService::IsEnabledInternal|, r=echou
...
The method |IsEnabledInternal| of |BluetoothService| is not used
any longer. This patch removes it.
2014-03-14 10:50:29 +01:00
Thomas Zimmermann
06c550c2fb
Bug 979370: Move Bluetooth thread into BlueZ backend, r=echou
...
The Bluetooth thread is only necessary for starting and stopping
Bluetooth with the BlueZ backend. Bluedroid implements its multi-
threading internally.
This patch moves the Bluetooth thread into the BlueZ backend. Two
runnables implement the starting and stopping code. The methods
|StartInternal| and |StopInternal| of |BluetoothDBusService| each
create an instance of the respective runnable and send it to the
internal BT thread. The code in |BluetoothService| runs completely
on the main thread.
For the Bluedroid back end, the patch changes a number of thread
assertions.
2014-03-14 10:49:33 +01:00
Shawn Huang
9c0179433d
Bug 976485 - [bluedroid] Fix sometimes Avrcp 1.3 play status is out of sync. r=gyeh
2014-03-13 09:12:41 -04:00
Shawn Huang
e44679a57d
Bug 979160 - Outgoing connection failure shall trigger OnConnect instead of OnDisconnect, r=echou
2014-03-10 10:33:32 +08:00
Thomas Zimmermann
99747bb5a9
Bug 978809: Remove sToggleBtMonitor from Bluedroid backend, r=echou
...
When enabling or disabling Bluetooth, the Bluedroid backend waits
on sToggleBtMonitor until a BT adapter has been activated. Once
the monitor gets notified, the backend sends a ToggleBtAck runnable
to the main thread.
This patch removes sToggleBtMonitor from the Bluetooth Bluedroid
backend. Instead of signalling the monitor's notification, the
Bluedroid handler function sends the ToggleBtAck directly.
2014-03-06 12:43:35 +01:00
Eric Chou
73b0511a00
Bug 976943 - Replace OnConnect/OnDisconnect with one function, f=btian, r=gyeh
...
In BluetoothProfileController, it's meaningless to separate OnConnect
and OnDisconnect since the following steps would be the same for both
cases. Therefore I introduced a function called NotifyCompletion() for
each profile manager to report the completion of connecting/disconnecting
operations.
2014-03-06 19:26:28 +08:00
Eric Chou
54e43ece14
Bug 976943 - Add error handing for connect/disconnect process, f=btian, r=gyeh
2014-03-06 19:26:22 +08:00
Shawn Huang
2406f1830e
Bug 951634: Add TimerCallback in Profile Controller, r=gyeh
2014-01-29 19:13:10 +08:00
Thomas Zimmermann
a8ee0089df
Bug 977146: Push ToggleBtAck into implementations of {Start|Stop}Internal, r=echou
...
The methods {Start|Stop}Internal for BlueZ and Bluedroid now send
ToggleBtAck to signal completeness of the operation.
The current patch allows for further cleanups in the BlueZ code. It
does not change the semantics or code flow.
2014-03-03 13:07:17 +01:00
Ben Tian
2a9faeacea
Bug 939672 - Patch 2/2: Move NS_DECL_ISUPPORTS and NS_DECL_NSIOBSERVER into BluetoothProfileManagerBase.h
2014-02-20 18:15:47 +08:00
Ben Tian
ccbb3da8ce
Bug 939672 - Patch 1/2: [bluedroid] Add fallback BluetoothHfpManager, r=gyeh
...
--HG--
rename : dom/bluetooth/bluedroid/BluetoothHfpManager.cpp => dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.cpp
rename : dom/bluetooth/bluedroid/BluetoothHfpManager.h => dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.h
2014-02-25 11:37:37 +08:00
Ben Tian
dd16b6a00e
Bug 972732 - Patch 1/2: Remove bluez/linux and bluedroid/gonk folders, r=echou
...
--HG--
rename : dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp => dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp
rename : dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.h => dom/bluetooth/bluedroid/BluetoothServiceBluedroid.h
rename : dom/bluetooth/bluez/linux/BluetoothDBusService.cpp => dom/bluetooth/bluez/BluetoothDBusService.cpp
rename : dom/bluetooth/bluez/linux/BluetoothDBusService.h => dom/bluetooth/bluez/BluetoothDBusService.h
2014-02-25 10:38:51 +08:00
Sam Joch
c47f9b1be2
Bug 968215 - SettingsService needs to have a callback when transaction are completed. r=bent
2014-02-07 12:19:58 +01:00
Eric Chou
b095e499cf
Bug 962310 - Support in-process bt file transfer, f=bent, r=gyeh
...
Currently if an app which lives in chrome process calls SendFile()
to send a file via Bluetooth, it would crash.
2014-02-11 10:07:23 +08:00
Kyle Huey
b468137875
Bug 965498 - Don't lose an already_AddRefed<T> and leak blobs in bluetooth. r=qdot
2014-01-29 17:03:51 -05:00
Ben Tian
237dfc96b7
Bug 957949 - [HFP] Add B2G common bluedroid config file, r=echou
2014-01-15 11:50:27 +08:00
Ben Tian
7e13cdc02c
Bug 921999 - Bluetooth Device connection status in Settings is incorrect if remote headset restores connection, r=gyeh
2014-01-23 10:46:45 +08:00
Ryan VanderMeulen
33dcbbf27e
Merge m-c to inbound.
2014-01-16 15:07:22 -05:00
Ryan VanderMeulen
208917083a
Merge inbound to m-c.
2014-01-16 15:06:12 -05:00
Terrence Cole
3e141bbf5e
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
...
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Shawn Huang
9639f9ac86
Bug 953034 - Part 1: Reply RegisterNotification event EVENT_TRACK_CHANGED with correct parameter whether a track is selected or not. r=gyeh
2014-01-16 08:39:14 -05:00
Tom Schuster
5e3191afd2
Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence
2014-01-09 18:39:36 +01:00
Ben Tian
b50cd00092
Bug 948337 - create BluetoothHfpManagerBase for audio manager access
2014-01-13 13:58:43 +08:00
Ben Tian
bca0e37677
Bug 956258 - [cleanup] Patch 2/2: reduce warnings and remove cancel_discovery() in SendFile(), r=echou
2014-01-03 17:25:04 +08:00
Shawn Huang
0f6916429a
Bug 946240 - [Bluetooth][gonk-kk] Add flags to support different AVRCP profile version. r=echou
2014-01-08 09:32:19 -05:00
Birunthan Mohanathas
dfbad43639
Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
...
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Ehsan Akhgari
eaa7491d77
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ben Tian
b30d9c1665
Bug 947870 - Assertion in BluetoothOppManager::CreateFile (bluedroid), r=echou
2013-12-23 16:47:12 +08:00
Ben Tian
90fe54e775
Bug 939022 - BluetoothUtils for bluedroid. Patch 2/3: Modify files, r=echou
2013-12-23 11:24:11 +08:00
Ben Tian
0e8b08f307
Bug 939022 - BluetoothUtils for bluedroid. Patch 1/3: Move files, r=echou
...
--HG--
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluedroid/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluedroid/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluez/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluez/BluetoothUtils.h
2013-12-16 19:00:54 +08:00
Ms2ger
3f3cc744ed
Merge backout.
2013-12-20 11:36:27 +01:00
Ms2ger
2900763f15
Backout bug 942104 (changesets 4e5746a65a5e:62e32a84a9fb) for missing review.
2013-12-20 11:33:37 +01:00
Eric Chou
444938433c
Bug 949772 - Fire PropertyChanged to registered BluetoothDevice objects, r=gyeh
2013-12-18 18:21:37 +08:00
Eric Chou
3af35c0e8b
Bug 949772 - Make BluetoothAdpater be able to deal with multiple properties in one PropertyChanged event, f=btian, r=gyeh
2013-12-18 18:21:05 +08:00
Ben Tian
be0306f1a6
Bug 949843 - Don't use char* str = NS_ConvertUTF16toUTF8(aBdAddress).get();, r=echou
2013-12-18 09:53:11 +08:00
Eric Chou
f490f0563a
Bug 942104 - Fire event 'ondiscoverystatechanged', r=gyeh
...
From b03fc76c1810cf3f91aa9f92732c3df4ffd471a3 Mon Sep 17 00:00:00 2001
2013-11-25 14:13:26 +08:00
Eric Chou
31b12ffadb
Bug 942712 - Ensure event 'AdapterAdded' will be fired after 'Enabled' being fired, r=gyeh
2013-11-27 16:24:51 +08:00
Carsten "Tomcat" Book
bcf7e426ab
Backed out changeset b064b9271e0e (bug 942712) Build bustage on a CLOSED TREE
2013-11-28 12:09:46 +01:00
Eric Chou
241e66d77a
Bug 942712 - Ensure event 'AdapterAdded' will be fired after 'Enabled' being fired, r=gyeh
2013-11-28 17:49:04 +08:00
Ben Tian
1ad0367958
Bug 921991 - B2G BT: support multiple sim cards, r=echou, r=mrbkap
2013-11-26 14:11:06 +08:00
Shawn Huang
ced02707a8
Bug 939500 - [bluedroid] Avrcp 1.3 prototype, r=echou
2013-11-22 23:40:22 +08:00
Shawn Huang
c93895bf4e
Bug 941574 - [bluedroid] Fix sometimes outgoing connection fails due to Reset() mis-placed, r=echou
2013-11-21 20:17:10 +08:00
Shawn Huang
8fea4aff20
Bug 941564 - [bluedroid] Update BD address while an incoming connection established, r=echou
2013-11-21 20:17:07 +08:00
Shawn Huang
af24ad3ad4
Bug 935882 - [bluedroid] Support GetConnectedDevice API, r=echou
2013-11-21 18:12:45 +08:00
Shawn Huang
937b91c858
Bug 935578 - Patch 3: Enable connect/disconnect, r=echou
2013-11-20 16:19:09 +08:00
Shawn Huang
de7d3246e2
Bug 935578 - Patch 2: BluetoothA2dpManager bluedroid version, r=echou
2013-11-20 16:19:09 +08:00
Shawn Huang
3308e127dd
Bug 935578 - Patch 1: Separate BluetoothA2dpManager implementation for bluez/bluedroid stack, r=echou
2013-11-20 16:19:08 +08:00
Eric Chou
8855291faa
Bug 936995 - Fire event Disable after Bluetooth is really disabled, r=gyeh
2013-11-20 15:01:54 +08:00
Eric Chou
fc53895714
Backed out changeset 40ecdab580b3 (bug 936995) for potential JB build error
2013-11-20 15:17:00 +08:00
Eric Chou
e6daad1cd4
Bug 936995 - Fire event Disable after Bluetooth is really disabled, r=gyeh
2013-11-20 15:01:54 +08:00