Thomas Zimmermann
35b15b205d
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.
2013-04-16 16:46:10 +02:00
Thomas Zimmermann
646e3022d5
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
d5524a4ca1
Bug 881606 - BluetoothA2dpManager doesn't receive any sink property changed, r=echou
2013-06-11 14:47:48 +08:00
Gina Yeh
04853773e3
Bug 878745 - followup patch, r=vyang
2013-06-10 19:17:25 +08:00
Gina Yeh
0b87dcaaef
Bug 878745 - BluetoothService cleanup, r=echou
2013-06-10 12:18:00 +08:00
Gina Yeh
a8ff703250
Bug 872907 - Patch 3: Handle Sink property change, r=echou, r=mrbkap
2013-06-08 23:25:41 +08:00
Gina Yeh
bcd0b28e63
Bug 872907 - Patch 2: Implement SendSinkMessage in BluetoothService, r=echou, r=mrbkap
2013-06-08 23:25:18 +08:00
Thomas Zimmermann
fd008d1e74
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
88488e2e6d
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
ec534dda81
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
6356519df9
Bug 839370 - Implement callback function OnUpdateSdpRecords() in BluetoothProfileManagers, r=gyeh
2013-05-22 19:08:21 +08:00
Eric Chou
bee1ab98ba
Bug 839370 - Implement function UpdateSdpRecords(), r=gyeh
2013-05-22 19:08:17 +08:00
Gina Yeh
918e53965c
Bug 853235 - Combine pairing-related system messages into one type, r=echou
2013-05-20 15:34:45 +08:00
Shawn Huang
be63515ffd
Bug 870304: Fix misssing icon when getting paired/connected list, r=echou
2013-05-11 00:03:55 +08:00
Gina Yeh
42bde29f46
Bug 830213 - Patch 3: Remove BluetoothScoManager, r=echou
2013-05-10 19:03:25 +08:00
Gina Yeh
b2091bc940
Bug 830213 - Patch 1: Add ConnectSco, DisconnectSco, IsScoConnected in nsIDOMBluetoothAdapter, r=echou, sr=mrbkap
2013-05-10 18:58:59 +08:00
Eric Chou
2818ed37f4
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
d801c37a63
Bug 850157 - Add GetConnectedDevices() in nsIDOMBluetoothAdapter.idl, r=echou, sr= mrbkap
2013-04-26 18:48:21 +08:00
Eric Chou
66e4932441
Bug 817972 - Make Gecko Bluetooth capable of queueing file-sending requests, r=gyeh
2013-04-26 18:09:00 +08:00
Gina Yeh
c9ddc1dd9b
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
3456e6169a
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
18b7d42ec0
Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap
2013-04-04 17:55:34 -07:00
Eric Chou
880b2efd1a
Bug 851046: Patch 5 - Apply BluetoothSocket to BluetoothHfpManager; r=mrbkap
2013-04-04 17:54:22 -07:00
Eric Chou
78d7407be7
Bug 851046: Patch 3 - Replace (Bluetooth*Managers)->CloseSocket() with (Bluetooth*Managers)->Disconnect(); r=mrbkap
2013-04-04 17:52:48 -07:00
Matt Brubeck
b7dabb3866
Back out bug 851046 because of rebase problems
2013-04-04 17:45:06 -07:00
Eric Chou
695c12a24d
Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap
2013-04-04 17:25:44 -07:00
Eric Chou
a52b098819
Bug 851046: Patch 5 - Apply BluetoothSocket to BluetoothHfpManager; r=mrbkap
2013-04-04 17:25:44 -07:00
Eric Chou
7828fcb1a8
Bug 851046: Patch 3 - Replace (Bluetooth*Managers)->CloseSocket() with (Bluetooth*Managers)->Disconnect(); r=mrbkap
2013-04-04 17:25:44 -07:00
Ryan VanderMeulen
c906a315ce
Backed out 9 changesets (bug 851046) for B2G bustage on a CLOSED TREE.
2013-04-03 15:54:36 -04:00
Eric Chou
66ed7c8b6a
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
b991f74db8
Bug 851046 - Apply BluetoothSocket to BluetoothHfpManager. r=mrbkap
2013-03-15 18:45:59 +08:00
Eric Chou
208901b4f9
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
f013f1eca9
Bug 579517 follow-up: Remove NSPR types that crept in
2013-04-02 20:59:27 -04:00
shuang
d05dcf02ef
Bug 841336 - Remove assertion in RunDBusCallback if platform is gonk, r=echou
2013-03-26 13:15:09 +08:00
Gina Yeh
37dae6d031
Bug 834590 - Cache adapter path in BluetoothService, r=echou
2013-03-15 15:15:47 +08:00
Eric Chou
5d17a59111
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
87a0278d1b
Bug 841984 - Fixed potential memory problem in SetProperty(), r=qdot
2013-03-08 12:10:09 +08:00
Eric Chou
49b4f0acda
Bug 841576 - Check if nsTHashtable has been initialized before calling Init(), r=qdot
2013-03-07 21:36:13 +08:00
Gina Yeh
dc1dcd74a1
Bug 844707 - Fix warnings in debug build, r=echou
2013-02-25 15:04:38 +08:00
Gina Yeh
07bff16201
Bug 842471 - Invalid value type in BluetoothDevicePropertiesRunnable(), r=echou
2013-02-20 14:19:34 +08:00
Eric Chou
cdea5e1041
Bug 834816 - Disconnect all acl connections before disabling Bluetooth, r=qdot
2013-02-14 23:16:37 +08:00
shuang
b5f4a3c513
Bug 828837:Fix COD equals 0x20080c cause icon empty, r=echou
2013-02-01 17:04:07 +08:00
Eric Chou
29d6fed9e1
Bug 834551 - Insert BT_LOG at several important check points, r=gyeh
2013-01-29 18:37:51 +08:00
Eric Chou
d82f6931b8
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
ed06986016
Bug 811569 - Patch 4: Remove asynchronous function GetProperty , r=echou
2013-01-29 14:52:58 +08:00
Ed Morley
022f004634
Backout 3985cb4da6b6, 55ab9f026dc4, f7ead00b7654 and e2108ea96ae5 for a variety of build failures on a CLOSED TREE
2013-01-28 12:19:12 +00:00
Eric Chou
89107cd4de
Bug 834551 - Insert BT_LOG at several important check points, r=gyeh
2013-01-28 19:23:15 +08:00
Eric Chou
b6638bc2e4
Bug 834551 - Replace 'LOG()' with 'BT_WARNING()' defined in BluetoothCommon.h for consistency, r=qdot
2013-01-28 19:23:12 +08:00
Thomas Zimmermann
30334f2023
Bug 827888: Fix usage of sIsParing variable [r=echou,qdot]
...
The variable sIsPairing signals to the Bluetooth pairing response
notifier if pairing is still requested.
Being a boolean value, the variable only supported one pairing request
at a time. To support multiple parallel pairing requests, this patch
converts it into a counter. The counter is atomic, because notifier
calls run in separate threads.
Additionally, we now set sIsPairing before starting the pairing request.
Otherwise the notifier might run before we can increment the variable.
2013-01-10 07:55:43 -08:00
Eric Chou
3ed89f4e46
Bug 827267 - Added function IsTransferring() to distinguish if there is an ongoing file-transferring session, r=gyeh
2013-01-08 14:02:00 +01:00