Commit Graph

143 Commits

Author SHA1 Message Date
Thomas Zimmermann
ae493b99c9 Bug 891276: Cleanup *ServiceRecords functions, r=echou
AddServiceRecords and RemoveServiceRecords are unused. This patch
removes any related code.
2013-07-11 09:58:26 +02:00
Thomas Zimmermann
79b015cfa0 Bug 884840: Reimplement GetServiceChannel without Bluetooth command thread, r=echou
The method BluetoothDBusService::GetServiceChannel currently blocks the
Bluetooth command thread while waiting for a DBus message, before it
dispatches a runnable to the main thread.

With this patch, the DBus message is processed asyncronously, and the
runnable gets dispatched from the DBus reply handler.

--HG--
extra : rebase_source : 24519b7dd8d59fcbbf78436092610c8db195f6a2
2013-07-09 09:56:14 +02:00
Trevor Saunders
795144e55a bug 887854 - remove most useage of pratom.h r=mounir, mcmanus, jrmuizel 2013-06-16 03:09:07 -04:00
Thomas Zimmermann
1163770feb Bug 880168: Replace RemoveDeviceTask by non-blocking implementation, r=echou,gyeh
This patch replaces RemoveDeviceTask by a non-blocking implementation
that does not use the Bluetooth command thread. The request gets send
directly to the DBus, and its reply gets processed in the DBus thread
itself.

--HG--
rename : netwerk/protocol/http/HttpLog.h => netwerk/protocol/http/nsHttp.h
extra : rebase_source : a99a9d6561d94df77d8d9cd53e39371aa1f6386d
2013-04-16 16:46:10 +02:00
Thomas Zimmermann
e72204009e Bug 880167: Replace SendDiscoveryTask by non-blocking implementation r=echou,gyeh
This patch replaces SendDiscoveryTask by a non-blocking implementation
that does not use the Bluetooth command thread. The request gets send
directly to the DBus, and its reply gets processed in the DBus thread
itself.
2013-04-16 16:42:35 +02:00
Gina Yeh
4f77f431bf Bug 881606 - BluetoothA2dpManager doesn't receive any sink property changed, r=echou 2013-06-11 14:47:48 +08:00
Gina Yeh
8b954097d7 Bug 878745 - followup patch, r=vyang 2013-06-10 19:17:25 +08:00
Gina Yeh
1d2d5b22e3 Bug 878745 - BluetoothService cleanup, r=echou 2013-06-10 12:18:00 +08:00
Gina Yeh
e7d0099af2 Bug 872907 - Patch 3: Handle Sink property change, r=echou, r=mrbkap 2013-06-08 23:25:41 +08:00
Gina Yeh
406431e0fa Bug 872907 - Patch 2: Implement SendSinkMessage in BluetoothService, r=echou, r=mrbkap 2013-06-08 23:25:18 +08:00
Arnaud Sourioux
4f029c7b82 Bug 877746 - Annotate ~230 methods with MOZ_OVERRIDE in /dom. r=Ms2ger 2013-06-05 12:15:48 -04:00
Thomas Zimmermann
2003d4265a Bug 875273 - Re-introduce assertion in RunDBusCallback. r=echou
With the landing of bug 830290, no DBus callback should ever run in
the main thread. This patch therefore re-introduces the corresponding
assertion statement.
2013-06-04 08:07:29 -04:00
Thomas Zimmermann
d31cb1d146 Bug 830290: Replace calls to dbus_connection_send_with_reply_and_block r=bent,qdot
There is one call to dbus_connection_send_with_reply_and_block in
the Bluetooth code. This patch replaces the call by a call to the
helper function dbus_func_send_and_block, which executes the DBus
operation within the DBus thread.
2013-03-11 15:22:50 +01:00
Thomas Zimmermann
dc0b14aedc Bug 830290: Replace dbus_connection_send by dbus_func_send r=bent,qdot
The Bluetooth system now uses dbus_func_send for sending DBus
messages where dbus_connection_send use used before. The former
function is similar to the latter one, but sends messages from
within the DBus thread; thus avoiding concurrency issues within
DBus.
2013-03-01 13:53:30 +01:00
Eric Chou
21442832e7 Bug 839370 - Implement callback function OnUpdateSdpRecords() in BluetoothProfileManagers, r=gyeh 2013-05-22 19:08:21 +08:00
Eric Chou
8f97249989 Bug 839370 - Implement function UpdateSdpRecords(), r=gyeh 2013-05-22 19:08:17 +08:00
Gina Yeh
414da4c45b Bug 853235 - Combine pairing-related system messages into one type, r=echou 2013-05-20 15:34:45 +08:00
Shawn Huang
d5b9ba0b02 Bug 870304: Fix misssing icon when getting paired/connected list, r=echou 2013-05-11 00:03:55 +08:00
Gina Yeh
bdd57e7f0f Bug 830213 - Patch 3: Remove BluetoothScoManager, r=echou 2013-05-10 19:03:25 +08:00
Gina Yeh
4fada6d52b Bug 830213 - Patch 1: Add ConnectSco, DisconnectSco, IsScoConnected in nsIDOMBluetoothAdapter, r=echou, sr=mrbkap 2013-05-10 18:58:59 +08:00
Eric Chou
d33055ad80 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
2864f876ff Bug 850157 - Add GetConnectedDevices() in nsIDOMBluetoothAdapter.idl, r=echou, sr= mrbkap 2013-04-26 18:48:21 +08:00
Eric Chou
084a1b39cc Bug 817972 - Make Gecko Bluetooth capable of queueing file-sending requests, r=gyeh 2013-04-26 18:09:00 +08:00
Gina Yeh
510eab17b7 Bug 857896 - Convert device property "Connected" into a boolean if bluez returns a two-byte array, r=echou,qdot 2013-04-16 11:10:29 +02:00
Eric Chou
e909254f82 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
a74626221d Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap 2013-04-04 17:55:34 -07:00
Eric Chou
e667f57802 Bug 851046: Patch 5 - Apply BluetoothSocket to BluetoothHfpManager; r=mrbkap 2013-04-04 17:54:22 -07:00
Eric Chou
28c1a3205a Bug 851046: Patch 3 - Replace (Bluetooth*Managers)->CloseSocket() with (Bluetooth*Managers)->Disconnect(); r=mrbkap 2013-04-04 17:52:48 -07:00
Matt Brubeck
79a6cd1876 Back out bug 851046 because of rebase problems 2013-04-04 17:45:06 -07:00
Eric Chou
616ce7b65f Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap
--HG--
extra : rebase_source : eb7d4a12566722c759c9badda579fe66ef689ff1
2013-04-04 17:25:44 -07:00
Eric Chou
7a5724f9f8 Bug 851046: Patch 5 - Apply BluetoothSocket to BluetoothHfpManager; r=mrbkap
--HG--
extra : rebase_source : ec6e75948230e4b94d2d539833dc9899444d9afe
2013-04-04 17:25:44 -07:00
Eric Chou
4dcbd2a0c8 Bug 851046: Patch 3 - Replace (Bluetooth*Managers)->CloseSocket() with (Bluetooth*Managers)->Disconnect(); r=mrbkap
--HG--
extra : rebase_source : 43524216294e08625619b5b1c6a35e0de9fadde6
2013-04-04 17:25:44 -07:00
Ryan VanderMeulen
0302be40e5 Backed out 9 changesets (bug 851046) for B2G bustage on a CLOSED TREE. 2013-04-03 15:54:36 -04:00
Eric Chou
ba4fb1b95f 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
Eric Chou
4b31e39c03 Bug 851046 - Apply BluetoothSocket to BluetoothHfpManager. r=mrbkap 2013-03-15 18:45:59 +08:00
Eric Chou
1da32d7594 Bug 851046 - Use (Bluetooth*Managers)->Disconnect() instead of (Bluetooth*Managers)->CloseSocket() since managers are not UnixSocketConsumer anymore. r=mrbkap 2013-03-15 14:55:19 +08:00
Ehsan Akhgari
124e2f7dca Bug 579517 follow-up: Remove NSPR types that crept in 2013-04-02 20:59:27 -04:00
shuang
a1f06a50ef Bug 841336 - Remove assertion in RunDBusCallback if platform is gonk, r=echou 2013-03-26 13:15:09 +08:00
Gina Yeh
7276942610 Bug 834590 - Cache adapter path in BluetoothService, r=echou 2013-03-15 15:15:47 +08:00
Eric Chou
fbc0120ad1 Bug 836715 - Fix potential memory problem in RemoveDeviceTask, r=qdot
From 6e3780271509a502462560717f7cc768dafb673b Mon Sep 17 00:00:00 2001
2013-03-04 18:47:41 +08:00
Eric Chou
d8ce2154f7 Bug 841984 - Fixed potential memory problem in SetProperty(), r=qdot 2013-03-08 12:10:09 +08:00
Eric Chou
9d915cdd0d Bug 841576 - Check if nsTHashtable has been initialized before calling Init(), r=qdot 2013-03-07 21:36:13 +08:00
Gina Yeh
786670aa37 Bug 844707 - Fix warnings in debug build, r=echou 2013-02-25 15:04:38 +08:00
Gina Yeh
5bb3f08035 Bug 842471 - Invalid value type in BluetoothDevicePropertiesRunnable(), r=echou 2013-02-20 14:19:34 +08:00
Eric Chou
08f90d420f Bug 834816 - Disconnect all acl connections before disabling Bluetooth, r=qdot 2013-02-14 23:16:37 +08:00
shuang
9efe073453 Bug 828837:Fix COD equals 0x20080c cause icon empty, r=echou 2013-02-01 17:04:07 +08:00
Eric Chou
fa09a368dc Bug 834551 - Insert BT_LOG at several important check points, r=gyeh 2013-01-29 18:37:51 +08:00
Eric Chou
515d75fd39 Bug 834551 - Replace 'LOG()' with 'BT_WARNING()' defined in BluetoothCommon.h for consistency, r=qdot 2013-01-29 18:37:51 +08:00
Gina Yeh
dc5200d225 Bug 811569 - Patch 4: Remove asynchronous function GetProperty , r=echou 2013-01-29 14:52:58 +08:00
Gina Yeh
93ca9b9bee Bug 811569 - Patch 1: Remove unused files in bluetooth, r=echou 2013-01-29 14:52:30 +08:00