Commit Graph

487 Commits

Author SHA1 Message Date
Thomas Zimmermann
5bdf29ab6d 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
b61bb4e699 Bug 878005 - Send system message 'ATD>' to Gaia instead of sending 'BLDN' when receive 'ATD>' from headset, r=gyeh 2013-05-31 20:43:18 +08:00
Eric Chou
f458810e2e Bug 875677 - Modify the logic of sending 'callheld' indicator to fit HFP 1.6, r=gyeh
According to HFP spec 1.6, we should update callheld status very carefully when
the status of other calls are changed.
2013-05-31 21:49:42 +08:00
Ryan VanderMeulen
32a90540f5 Backed out changeset 662f6427c909 (bug 872890) for debug bustage. 2013-05-31 12:12:41 -04:00
Shawn Huang
28747bf68d Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou 2013-05-31 11:07:21 +08:00
Gabor Krizsanits
54aa4ccd06 Bug 875405 - fixing unpushed cx usages. r=bholley 2013-05-30 16:54:46 +02:00
Ryan VanderMeulen
1226863031 Merge m-c to inbound. 2013-05-30 07:47:14 -04:00
Eric Chou
fe8af01a74 Bug 877087 - Clear mDsFile after the OPP connection is dropped, r=gyeh 2013-05-30 15:00:06 +08:00
Gina Yeh
9fe0c5b821 Backed out changeset 8cdcc0221c0f for build bustage DONTBUILD 2013-05-30 10:50:19 +08:00
Shawn Huang
a92386d8dd Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou 2013-05-30 09:33:48 +08:00
Ed Morley
8a9ae6677a Backed out changeset 7acdb79e4d71 (bug 876639) 2013-05-29 12:09:10 +01:00
Jon Coppeard
1daad09663 Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug 2013-05-29 09:29:39 +01:00
Eric Chou
775be416f3 Bug 871438 - Reset value when file transfer session starts, r=gyeh
When the transferring session was stopped, mBodySegmentLength wouldn't reset
to 0, and that would impact the next transferring if the first packet of the
next transferring doesn't contain header Body or EndOfBody, which would invoke
ExtractPacketHeaders() and refresh mBodySegmentLength in the function.
2013-05-28 15:25:42 +08:00
Eric Chou
39261467eb Bug 875719 - Simplify and correct the mechanism of handling call state change event, r=gyeh
1. Remove variable mCurrentCallIndex and replace with using function FindFirstCall(aState)
2. Remove unused variable index and callArrayLength
2013-05-28 14:58:51 +08:00
Mike Shal
5169c0a913 Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Bobby Holley
4ca9c70f89 Bug 875251 - Push the JSContexts that get used in BluetoothAdapter, r=gabor 2013-05-23 07:10:00 -07:00
Thomas Zimmermann
98f8611e38 Bug 875251: Added AutoPushJSContext in Bluetooth, r=gabor
This patch fixes the fallout from bug 868130.
2013-05-24 01:50:00 -07:00
Gina Yeh
04ddf0745e Bug 853235 - Patch 2: Keep original mechaniems of bluetooth pairing requests, r=echou 2013-05-27 09:45:06 +08:00
Eric Chou
8d70ccdda9 Bug 875650 - Shouldn't do the same thing when receiving ABORT and DISCONNECT, r=gyeh
The original implementation would be stuck on OPP server side after dealing with
ABORT packet. This is because we do something only should be done when receiving
DISCONNECT packet.
2013-05-24 15:59:32 +08:00
Kyle Machulis
f371a586ec Bug 875016: Fix return type for UpdateSdpRecords; r=echou 2013-05-23 12:27:54 -07:00
Bobby Holley
f2943090bd Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
01402a7f2f Bug 868130 - Fix sketchy cx consumers identified by gabor. r=gabor 2013-05-22 10:05:27 -06:00
Eric Chou
f906b641d5 Bug 839370 - Implement callback function OnUpdateSdpRecords() in BluetoothProfileManagers, r=gyeh 2013-05-22 19:08:21 +08:00
Eric Chou
7da1f04cb2 Bug 839370 - Implement function UpdateSdpRecords(), r=gyeh 2013-05-22 19:08:17 +08:00
Hsin-Yi Tsai
357786abe2 Bug 823958 - BT impl- TelephonyListener::EnumerateCallStateComplete (part 4/4). r=gyeh 2013-05-10 15:00:01 +08:00
Jon Coppeard
9c540a5368 Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug 2013-05-29 09:29:39 +01:00
Gina Yeh
435cd35046 Bug 853235 - Combine pairing-related system messages into one type, r=echou 2013-05-20 15:34:45 +08:00
Thomas Zimmermann
f23d6f120d Bug 873400: Fix destination directory for Bluetooth file transfers, r=echou
Bluetooth file transfers store the file in 'downloads/bluetooth'. This
patch changes the location to 'Download/Bluetooth' for consistency with
other sub-systems.
2013-05-20 11:41:03 +08:00
Gregory Szorc
cda3054fe8 Bug 863069 - Part 4: Reorder lists to be alphabetical; r=ted
--HG--
extra : rebase_source : 87ed9d862bc32824d518438b0be74b47a77c198a
2013-05-16 15:37:18 -07:00
Ryan VanderMeulen
995052ce79 Backed out changeset 94978dab7186 (bug 863069) for build bustage.
CLOSED TREE
2013-05-16 13:22:02 -04:00
Gregory Szorc
4b45bf9e76 Bug 863069 - Part 4: More sorting of existing lists; r=ted 2013-05-16 09:53:27 -07:00
Eric Chou
c005576fa2 Bug 871366 - Cut operator name if it is longer than 16 characters, r=gyeh 2013-05-15 17:12:48 +08:00
Szu-Yu Chen [:aknow]
7237bc1d11 Bug 863281 - Part 3: Update emergency property for outgoing call. r=htsai, gyeh.
---
 dom/bluetooth/BluetoothTelephonyListener.cpp |    4 +++-
 dom/telephony/Telephony.cpp                  |   10 ++++++----
 dom/telephony/TelephonyCall.cpp              |   10 +++++++++-
 dom/telephony/TelephonyCall.h                |   10 +++++++++-
 4 files changed, 27 insertions(+), 7 deletions(-)
2013-05-14 14:08:07 +08:00
Eric Chou
8a6beecda8 Bug 830038 - Add an assertion in Bluetooth*Mangaers, r=gyeh 2013-05-13 18:08:40 +08:00
Dave Hylands
c53a4e7f72 Bug 858416 - Create a composite device storage interface. r=dougt
* * *
Bug 858416 - Fix try test failures
2013-05-11 02:10:18 -07:00
Ryan VanderMeulen
bc36900668 Backed out changeset dbf0c9f4a4b9 (bug 858416) for B2G mochitest-3 failures. 2013-05-11 09:47:37 -04:00
Dave Hylands
a1b72bb10c Bug 858416 - Create a composite device storage interface. r=dougt 2013-05-11 02:10:18 -07:00
Gina Yeh
c9d8f53fef Bug 830213 - Modify function NotifyStatusChanged in BluetoothHfpManager, r=echou 2013-05-11 14:06:16 +08:00
Shawn Huang
d950524c96 Bug 870304: Fix misssing icon when getting paired/connected list, r=echou 2013-05-11 00:03:55 +08:00
Gina Yeh
5c04951efe Bug 830213 - Patch 3: Remove BluetoothScoManager, r=echou 2013-05-10 19:03:25 +08:00
Gina Yeh
725f4e197f Bug 830213 - Patch 2: Implementation of ConnectSco/DisconnectSco/IsScoConnected in BluetoothHfpManager, r=echou, sr=mrbkap 2013-05-10 19:01:10 +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
Shawn Huang
77a3d4dcb3 Bug 869306: Update call direction if call state changes, r=echou 2013-05-10 17:47:16 +08:00
Hsin-Yi Tsai
d46bece2b0 Bug 869306 - Add call.isOutgoing for BT Cert. r=allstars.chh 2013-05-08 18:39:05 +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
Eric Chou
307b4be53f Bug 860166 - Create new class BluetoothProfileManagerBase, r=mrbkap
BluetoothProfileManagerBase is a base class of Bluetooth profile managers.
It will be a generic interface declaring basic functions that all profile
managers should implement, such as Connect(), Disconnect() and IsConnected().
Currently there is only one callback function OnGetServiceChannel(), which
will be called after calling BluetoothService::GetServiceChannel().
2013-05-10 14:39:09 +08:00
Shawn Huang
b55b5aa158 Bug 869337 - Fix missing At comman reply OK after +COPS, r=gyeh, r=echou 2013-05-10 13:46:50 +08:00
Eric Chou
4ec461dfed Bug 869296 - New mechanism to deal with AT commands 'AT+BLDN' and 'ATD>n', r=gyeh
According to HFP spec, when we receive AT command 'AT+BLDN', we shall respond
with:

  1. 'OK' if the call history is not empty. An outgoing call would be made
  2. 'ERROR' if the call history is empty. No call would be made.

However, with current implementation, we are unable to know whether the call
history is empty or not in Gecko. Therefore I introduce a solution, using a task
and a flag to decide if a call is made after AT+BLDN is received, which may not
be perfect but reliable, easy to understand and easy to implement.
2013-05-09 22:10:28 +08:00
Eric Chou
82b92c045e Bug 869296 - Do 'Last Number Redial' when we receive ATD>n, r=gyeh 2013-05-09 22:10:28 +08:00
Eric Chou
f042f8e0de Bug 869332 - Don't reset call status while receiving an unhandled CallStateChanged event, r=gyeh 2013-05-08 14:16:51 +08:00
David Zbarsky
261b97262e Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:46 -04:00
Eric Chou
5d778560d5 Bug 866615 - Modify the nsDeviceStorage type from 'movies' to 'videos', r=dougt
From 19f4e6e369439a1626fbc69ac2dd72b63e56d397 Mon Sep 17 00:00:00 2001
2013-04-29 17:10:30 +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
be5d6421da Bug 864575 - Notify all observers of file-changing at the right time, r=gyeh
When we receive multiple files in a row, we need to notify observers of
file-changing whenever a file is completely received. Currently we only
send one notification at the end of the entire session.
2013-04-26 18:09:04 +08:00
Eric Chou
15a3719abc Bug 817972 - Make Gecko Bluetooth capable of queueing file-sending requests, r=gyeh 2013-04-26 18:09:00 +08:00
Dave Hylands
16908eb6b9 Bug 860934 - Use relative paths when handling device storage r=dougt 2013-04-18 16:13:23 +02:00
David Zbarsky
b1ad5f5a1f [Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 6 r=Ms2ger 2013-04-19 18:18:33 -04:00
Gina Yeh
869e5a2f5d Bug 863620 - Followup of bug 848414, r=echou 2013-04-19 14:40:51 +02:00
Eric Chou
ee172b786c Bug 860166 - Revice AT command handler for Headset profile (HSP), r=gyeh 2013-04-19 17:08:06 +08:00
Eric Chou
3ac7b4375f Bug 860166 - Use two server sockets to listen to both HFP and HSP services, r=gyeh, r=mrbkap 2013-04-19 17:08:00 +08:00
John Lin
e3cf00fa31 Bug 860075 - Avoid duplicate BT signal observer registration from child process. r=echou, r=gyeh 2013-04-19 16:40:56 +08:00
Ryan VanderMeulen
1afb8a0017 Backed out changeset 8f7ef60b6f5a (bug 860934) for mochitest asserts and crashes. 2013-04-18 12:02:27 -04:00
Gina Yeh
5f29fb2158 Bug 859727 - Remove routing logic from BluetoothScoManager, r=echou, r=rlin 2013-04-18 17:41:17 +02:00
Dave Hylands
3e1b613ce9 Bug 860934 - Use relative paths when handling device storage r=dougt 2013-04-18 16:13:23 +02:00
Kyle Machulis
ebc496af05 Bug 862462 - Make sure BluetoothAdapter unroots before destruction; r=mrbkap 2013-04-16 14:54:00 -07:00
Kyle Machulis
ec45787e92 Bug 861980 - Change sockopt length to be a socklen_t; r=echou 2013-04-16 14:54:00 -07:00
Boris Zbarsky
de948b12f3 Bug 835643 part 4. Put in place all the infrastructure to switch EventListener to WebIDL codegen. r=smaug 2013-04-16 17:16:08 -04:00
Mike Shal
df7deac25b Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Gina Yeh
e5f7a77bc3 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
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
a321fba2ed Bug 823803 - Manage two server sockets (RFCOMM/EL2CAP) in BluetoothOppManager, r=mrbkap, r=gyeh
In order to solve the problem, BluetoothOppManager should maintain
two server sockets at the same time, one is RFCOMM socket, another
is EL2CAP socket.
2013-04-12 18:45:39 +08:00
Eric Chou
85ab9277fa Bug 823803 - Add L2CAP/EL2CAP Socket support, r=qdot, r=gyeh
This version of BlueZ from Code Aurora has added GOEP_PSM to Object
Push Profile service record, which means that remote devices may
connect with us via both L2CAP and RFCOMM. This patch completes
L2CAP/EL2CAP socket implementation.
2013-04-12 18:45:37 +08:00
Gina Yeh
e6cc908a30 Bug 859727 - Should set force to FORCE_NONE after Sco is disconnected, r=echou 2013-04-12 16:27:21 +08:00
Kyle Machulis
1a2f72467e Bug 844705 - Add comment to mReadFileThread. r=mrbkap 2013-04-09 12:11:00 -04:00
Eric Chou
0533a0f3f3 Bug 851046: Patch 9 - Small misc fixes; r=mrbkap 2013-04-04 17:56:16 -07:00
Eric Chou
6a65583423 Bug 851046: Patch 8 - Add BluetoothSocket* as an argument of callback functions in BluetoothSocketObserver; r=mrbkap 2013-04-04 17:55:55 -07:00
Eric Chou
683613dfd8 Bug 851046: Patch 7 - Remove function ListenSocketViaService(); r=mrbkap 2013-04-04 17:55:34 -07:00
Eric Chou
25b14ee505 Bug 851046: Patch 6 - Apply BluetoothSocket to BluetoothScoManager; r=mrbkap 2013-04-04 17:54:43 -07:00
Eric Chou
aa28265e8c Bug 851046: Patch 5 - Apply BluetoothSocket to BluetoothHfpManager; r=mrbkap 2013-04-04 17:54:22 -07:00
Eric Chou
3185e0f46b Bug 851046: Patch 4 - Apply BluetoothSocket to BluetoothOppManager; r=mrbkap 2013-04-04 17:53:08 -07:00
Eric Chou
9d4ec7094d Bug 851046: Patch 3 - Replace (Bluetooth*Managers)->CloseSocket() with (Bluetooth*Managers)->Disconnect(); r=mrbkap 2013-04-04 17:52:48 -07:00
Eric Chou
9a7967cfef Bug 851046: Patch 2 - New Class: BluetoothSocket; r=mrbkap 2013-04-04 17:52:12 -07:00
Eric Chou
280aa9fefc Bug 851046: Patch 1 - New interface: BluetoothSocketObserver; r=mrbkap 2013-04-04 17:51:35 -07:00
Matt Brubeck
3ee37d2232 Back out bug 851046 because of rebase problems 2013-04-04 17:45:06 -07:00
Eric Chou
c57a0afda5 Bug 851046: Patch 9 - Small misc fixes; r=mrbkap
--HG--
extra : rebase_source : 12eb0cc3cdd6f8773ae9e503267dbf643f767cfc
2013-04-04 17:25:45 -07:00
Eric Chou
f47eb75aaf Bug 851046: Patch 8 - Add BluetoothSocket* as an argument of callback functions in BluetoothSocketObserver; r=mrbkap
--HG--
extra : rebase_source : 0c3e6e78f59b83faf7c81892974505caa1b1723a
2013-04-04 17:25:44 -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
Eric Chou
a39cbc9bed Bug 851046: Patch 6 - Apply BluetoothSocket to BluetoothScoManager; r=mrbkap
--HG--
extra : rebase_source : 1b005af7999f8136a2d503e708d255c5a8ed8eb9
2013-04-04 17:25:44 -07:00
Eric Chou
46829e2784 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
4b1db7627f Bug 851046: Patch 4 - Apply BluetoothSocket to BluetoothOppManager; r=mrbkap
--HG--
extra : rebase_source : 86f3d7acbfa097f92a2731d49ff5298ab4ad7a7c
2013-04-04 17:25:44 -07:00
Eric Chou
bb8fc32ed1 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
Eric Chou
1cb12255d7 Bug 851046: Patch 2 - New Class: BluetoothSocket; r=mrbkap
--HG--
extra : rebase_source : 692fc69bc24a212621a5ff8a37fd17c237de9b20
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
61331ffc6c Bug 851046 - Small misc fixes. r=mrbkap
1. Rename mSocketStatus
2. Remove keyword enum
3. Remove null-checking after new Bluetooth*Manager instances
2013-04-04 00:32:28 +08:00
Eric Chou
8dddfba09a Bug 851046 - Add BluetoothSocket* as an argument of callback functions in BluetoothSocketObserver. r=mrbkap
A Bluetooth*Manager may hold more than one BluetoothSocket at a time, therefore
we need to identify the caller (which socket calls the callback function).
2013-03-19 17:08:44 -07: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
Eric Chou
d937accc8d Bug 851046 - Apply BluetoothSocket to BluetoothScoManager. r=mrbkap 2013-03-19 09:48:30 -07:00
Eric Chou
14f56ca7cc Bug 851046 - Apply BluetoothSocket to BluetoothHfpManager. r=mrbkap 2013-03-15 18:45:59 +08:00
Eric Chou
a6c3c3d562 Bug 851046 - Apply BluetoothSocket to BluetoothOppManager. r=mrbkap 2013-03-15 17:47:35 +08:00
Eric Chou
eb4ded44c4 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