Ben Tian
f5c943538a
Bug 1016243 - [cleanup] Remove unused function BluetoothService::RemoveObserverFromTable, r=shuang
2014-05-27 17:02:44 +08:00
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
18247847ee
Bug 979370: Split |BluetoothService::StartStopBluetooth|, r=echou
...
This patch splits |BluetoothService::StartStopBluetooth| into two
separate functions. Both have mostly different code paths.
2014-03-14 10:50:02 +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
Thomas Zimmermann
8ea9711415
Bug 977146: Declare ToggleBtAck in header file, r=echou
...
Declaring ToggleBtAck in the header file of BluetoothService makes
it available ot others classes.
2014-03-03 13:07:17 +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
Ben Tian
15a244dc81
Bug 946555 - Remove unused functions in BluetoothService classes and some warnings, r=echou
2013-12-06 12:20:07 +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
Ed Morley
4326269d4b
Merge mozilla-central and b2g-inbound
2013-10-29 16:34:46 +00:00
Vicamo Yang
5d8c284fed
Bug 920551 - 2.i/2: fix Bluetooth. r=echou
2013-10-29 16:12:46 +08:00
Birunthan Mohanathas
7b51758e7a
Bug 784739 - Switch from NULL to nullptr in dom/ (1/2); r=ehsan
2013-10-28 10:04:12 -04:00
Ben Tian
6a731ff719
Bug 925638 - Patch 2/3: implement new webidl functions, r=echou
2013-10-16 10:38:13 +08:00
Gina Yeh
4ac899ce79
Bug 906305 - Patch 3: Remove BluetoothReplyRunnable in SendInputMessage. Error handling for dbus error, r=echou
2013-09-06 19:20:27 +08:00
Gina Yeh
1d046be039
Bug 906305 - Patch 2: Make parameter service UUID of Connect() optional, r=echou, sr=mrbkap
2013-09-06 19:19:46 +08:00
Robert O'Callahan
8ca63f18ef
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Thomas Zimmermann
26fc503b83
Bug 853550: Replace Bluetooth command thread, r=echou,gyeh
...
Starting and stopping Bluetooth support can block the executing thread
for an indefinite amount of time. In most cases these operations are
only performed when Gecko starts and stops, so we don't want to keep
a separate Bluetooth command thread for this.
This patch replaces the Bluetooth command thread by a LazyIdleThread,
which only consumes resources while it executes actual code. After a
timeout period, the LazyIdleThread cleans up its internal state. The
timeout is currently 3 seconds, which has been choosen arbitrarily.
Thanks to bent for helping with the details of LazyIdleThread.
2013-08-30 20:18:43 +02:00
Thomas Zimmermann
7818ac47ad
Bug 853550: Fix whitespace errors, r=echou
2013-08-29 01:21:52 +02:00
Gina Yeh
9c16f4b490
Bug 889795 - Reply 'Authorize' signal for supported profile, r=echou, sr=mrbkap
2013-08-14 13:54:18 +08:00
Ben Tian
8f326963e9
Bug 899014 - [Bluetooth][HID] HID dom bluetooth implementation, r=echou
2013-08-12 17:32:25 +08:00
Eric Chou
6761fdbc75
Bug 892392 - Execute BluetoothService::StartInternal() at startup, r=gyeh
2013-08-02 11:58:01 +08:00
Gina Yeh
d0281d4eed
Bug 842948 - Patch 6: Implement dictionaries, r=echou
2013-07-29 17:32:35 +08:00
Gina Yeh
d06efcb8d9
Bug 842948 - Patch 4: Handle signal "GetPlayStatus", r=echou
2013-07-29 17:32:34 +08:00
Gina Yeh
d368c340e4
Bug 842948 - Patch 1: Implement API for AVRCP 1.3, r=echou, sr=mrbkap
2013-07-29 17:32:34 +08:00
Gina Yeh
ea0fa55fff
Bug 878745 - BluetoothService cleanup, r=echou
2013-06-10 12:18:00 +08:00
Gina Yeh
82daabdd9e
Bug 872907 - Patch 2: Implement SendSinkMessage in BluetoothService, r=echou, r=mrbkap
2013-06-08 23:25:18 +08:00
Eric Chou
a16b1e81ec
Bug 839370 - Implement function UpdateSdpRecords(), r=gyeh
2013-05-22 19:08:17 +08:00
Gina Yeh
2101483114
Bug 830213 - Patch 1: Add ConnectSco, DisconnectSco, IsScoConnected in nsIDOMBluetoothAdapter, r=echou, sr=mrbkap
2013-05-10 18:58:59 +08:00
Eric Chou
5460ee2214
Bug 860166 - New mechanism for establishing outboung Bluetooth connection, r=mrbkap
...
Things we have done in this patch:
1. Make BluetoothHfpManager/BluetoothOppManager implement BluetoothProfileManagerBase
2. Add function BluetoothService::GetServiceChannel()
3. Once GetServiceChannel() is done, callback Bluetooth*Manager::OnGetServiceChannel() will be invoked
4. Remove unused function BluetoothService::GetSocketViaService()
2013-05-10 14:39:12 +08:00
Gina Yeh
f1fd626ee2
Bug 850157 - Add GetConnectedDevices() in nsIDOMBluetoothAdapter.idl, r=echou, sr= mrbkap
2013-04-26 18:48:21 +08:00
Eric Chou
83d8ea0931
Bug 861085 - Enable/Disable Bluetooth based on mozSettings value at startup, r=gyeh, r=qdot
2013-04-16 11:02:23 +08:00
Eric Chou
edadb6b84d
Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap
2013-04-04 17:55:34 -07:00
Matt Brubeck
81b4a55b18
Back out bug 851046 because of rebase problems
2013-04-04 17:45:06 -07:00
Eric Chou
aa759d45b9
Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap
...
--HG--
extra : rebase_source : eb7d4a12566722c759c9badda579fe66ef689ff1
2013-04-04 17:25:44 -07:00
Ryan VanderMeulen
96b06b3745
Backed out 9 changesets (bug 851046) for B2G bustage on a CLOSED TREE.
2013-04-03 15:54:36 -04:00
Eric Chou
b98cd3e0f0
Bug 851046 - Remove function ListenSocketViaService(). r=mrbkap
...
Since we are now using BluetoothSocket directly for listening, this functions can be removed.
2013-03-19 13:53:43 -07:00
Gina Yeh
418152901b
Bug 834590 - Cache adapter path in BluetoothService, r=echou
2013-03-15 15:15:47 +08:00
Gina Yeh
c6d8aea525
Bug 838421 - After an instance of BluetoothAdapter is destroyed, no events can be received by other instances, r=echou
2013-02-08 18:03:09 +08:00
Gina Yeh
9ae2cfbdcb
Bug 811569 - Patch 4: Remove asynchronous function GetProperty , r=echou
2013-01-29 14:52:58 +08:00
Eric Chou
f354fcba12
Bug 827759 - Remove all listeners except BluetoothManagers, r=qdot
2013-01-09 16:51:53 +01:00
Gina Yeh
726dc442eb
Bug 815325 - Patch 1: Turning bluetooth on and off multiple times causes restart, r=echou
2012-11-30 17:46:55 +08:00
Gina Yeh
3d1f39fe89
Bug 812430 - Patch 1: First time connected by laptop would show empty pairing message, r=echou
2012-11-21 15:33:07 +08:00
Gina Yeh
b0a4410c20
Bug 812404 - Patch 1: Crash when connect with a bluetooth headset right after pairing completed, r=echou
2012-11-16 18:46:08 +08:00
Gina Yeh
9356d6f411
Bug 808879 - Patch 1: Expose connection status for system app, r=qdot, sr=mrbkap
2012-11-07 10:12:41 -08:00
Eric Chou
8b005928a8
Bug 805724 - patch 4: fire dom request events after calling OPP related functions, r=qdot
2012-11-03 09:36:43 +08:00
Eric Chou
99997a7a1d
Bug 802590 - patch 2: IPC implementation, r=qdot
2012-10-19 14:16:13 +08:00
Gina Yeh
771f15de9f
Bug 797810 - Patch 2: Cleanup for profile connect function, r=qdot
2012-10-05 18:48:05 +08:00
Eric Chou
aea8c16ff3
Bug 796329 - implemented StopSendingFile() and fixed potential memory problem, r=qdot
2012-10-03 15:09:27 +08:00
Kyle Machulis
57d3f019c3
Bug 790739: Patch 3 - Service and Manager changes for Bluetooth server sockets; r=cjones
2012-10-01 00:04:01 -07:00