Commit Graph

75 Commits

Author SHA1 Message Date
Eric Chou
e81e85b392 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
2687104d99 Backed out changeset b064b9271e0e (bug 942712) Build bustage on a CLOSED TREE 2013-11-28 12:09:46 +01:00
Eric Chou
198dd216ad Bug 942712 - Ensure event 'AdapterAdded' will be fired after 'Enabled' being fired, r=gyeh 2013-11-28 17:49:04 +08:00
Ed Morley
c4fca9c7f5 Merge mozilla-central and b2g-inbound 2013-10-29 16:34:46 +00:00
Vicamo Yang
ecd052d94f Bug 920551 - 2.i/2: fix Bluetooth. r=echou 2013-10-29 16:12:46 +08:00
Birunthan Mohanathas
98f3b9652a Bug 784739 - Switch from NULL to nullptr in dom/ (1/2); r=ehsan 2013-10-28 10:04:12 -04:00
Ben Tian
c828f32a76 Bug 925638 - Patch 2/3: implement new webidl functions, r=echou 2013-10-16 10:38:13 +08:00
Gina Yeh
53070ae399 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
c9954227d1 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
03e7828db2 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
d2a6dbc862 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
7819ee2c2f Bug 853550: Fix whitespace errors, r=echou 2013-08-29 01:21:52 +02:00
Gina Yeh
264c5a9f3d Bug 889795 - Reply 'Authorize' signal for supported profile, r=echou, sr=mrbkap 2013-08-14 13:54:18 +08:00
Ben Tian
79f2e1f7bf Bug 899014 - [Bluetooth][HID] HID dom bluetooth implementation, r=echou 2013-08-12 17:32:25 +08:00
Eric Chou
edd9c1a2e2 Bug 892392 - Execute BluetoothService::StartInternal() at startup, r=gyeh 2013-08-02 11:58:01 +08:00
Gina Yeh
d62aa07a21 Bug 842948 - Patch 6: Implement dictionaries, r=echou 2013-07-29 17:32:35 +08:00
Gina Yeh
797a139da7 Bug 842948 - Patch 4: Handle signal "GetPlayStatus", r=echou 2013-07-29 17:32:34 +08:00
Gina Yeh
5ab7491ae0 Bug 842948 - Patch 1: Implement API for AVRCP 1.3, r=echou, sr=mrbkap 2013-07-29 17:32:34 +08:00
Gina Yeh
c9e209a7b9 Bug 878745 - BluetoothService cleanup, r=echou 2013-06-10 12:18:00 +08:00
Gina Yeh
0d6dda1c7a Bug 872907 - Patch 2: Implement SendSinkMessage in BluetoothService, r=echou, r=mrbkap 2013-06-08 23:25:18 +08:00
Eric Chou
7da1f04cb2 Bug 839370 - Implement function UpdateSdpRecords(), r=gyeh 2013-05-22 19:08:17 +08:00
Gina Yeh
bccf590a6b Bug 830213 - Patch 1: Add ConnectSco, DisconnectSco, IsScoConnected in nsIDOMBluetoothAdapter, r=echou, sr=mrbkap 2013-05-10 18:58:59 +08:00
Eric Chou
181f73a601 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
5b81eec10f Bug 850157 - Add GetConnectedDevices() in nsIDOMBluetoothAdapter.idl, r=echou, sr= mrbkap 2013-04-26 18:48:21 +08:00
Eric Chou
c9b084301f 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
683613dfd8 Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap 2013-04-04 17:55:34 -07:00
Matt Brubeck
3ee37d2232 Back out bug 851046 because of rebase problems 2013-04-04 17:45:06 -07:00
Eric Chou
9b0ac5fced Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap
--HG--
extra : rebase_source : eb7d4a12566722c759c9badda579fe66ef689ff1
2013-04-04 17:25:44 -07:00
Ryan VanderMeulen
e3283fe2b4 Backed out 9 changesets (bug 851046) for B2G bustage on a CLOSED TREE. 2013-04-03 15:54:36 -04:00
Eric Chou
b28ef5bbeb 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
7baf99a668 Bug 834590 - Cache adapter path in BluetoothService, r=echou 2013-03-15 15:15:47 +08:00
Gina Yeh
15906456c0 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
222ba209a5 Bug 811569 - Patch 4: Remove asynchronous function GetProperty , r=echou 2013-01-29 14:52:58 +08:00
Eric Chou
8958926c13 Bug 827759 - Remove all listeners except BluetoothManagers, r=qdot 2013-01-09 16:51:53 +01:00
Gina Yeh
eb58c9b017 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
48668bc7b2 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
4893e62992 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
8ef660a117 Bug 808879 - Patch 1: Expose connection status for system app, r=qdot, sr=mrbkap 2012-11-07 10:12:41 -08:00
Eric Chou
45c56232ef 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
9e7732996a Bug 802590 - patch 2: IPC implementation, r=qdot 2012-10-19 14:16:13 +08:00
Gina Yeh
196a8f9079 Bug 797810 - Patch 2: Cleanup for profile connect function, r=qdot 2012-10-05 18:48:05 +08:00
Eric Chou
b04a37f44f Bug 796329 - implemented StopSendingFile() and fixed potential memory problem, r=qdot 2012-10-03 15:09:27 +08:00
Kyle Machulis
156f92210d Bug 790739: Patch 3 - Service and Manager changes for Bluetooth server sockets; r=cjones 2012-10-01 00:04:01 -07:00
Eric Chou
c95d365829 Bug 795410 - patch 1: Basic function prototype, r=qdot
From 2231ac9d0fb159edabb891f8b89afc176fb15c2b Mon Sep 17 00:00:00 2001
2012-09-28 18:59:12 +08:00
Kyle Machulis
3825fda6ae Backing out 9a88f0d57e7d (Bug 790739) due to bustage
--HG--
extra : rebase_source : 1f6e7eda80f1b66b854c5c112f1b0816381f27e2
2012-09-30 23:16:26 -07:00
Kyle Machulis
2a50397f57 Bug 790739: Patch 3 - Service and Manager changes for Bluetooth server sockets; r=cjones 2012-09-30 22:55:27 -07:00
Eric Chou
b1229bb92c Bug 794514 - patch 2: implemented newly added functions, r=qdot 2012-09-29 18:26:46 +08:00
Gina Yeh
d2213ee525 Bug 794903 - Final version: BluetoothScoManager implementation, r=qdot 2012-09-29 17:39:05 +08:00
Kyle Machulis
f87fb81b3d Bug 776182: Patch 3 - Socket I/O for ipc unix sockets; r=cjones r=echou
--HG--
rename : ipc/socket/Makefile.in => ipc/unixsocket/Makefile.in
rename : ipc/socket/Socket.cpp => ipc/unixsocket/UnixSocket.cpp
rename : ipc/socket/Socket.h => ipc/unixsocket/UnixSocket.h
extra : rebase_source : 18f401b047424a187863c9fbe8943364330d1f4d
2012-09-25 13:13:15 -07:00
Gina Yeh
1c0944f4fb Bug 791928 - Final version: Broadcast bonding-related events with device name, r=qdot 2012-09-21 14:17:35 +08:00