Commit Graph

824 Commits

Author SHA1 Message Date
Shawn Huang
dc17b13565 Bug 950220 - Unable to change Bluetooth device name from Settings UI, r=echou 2014-01-16 14:36:35 +08:00
Tom Schuster
5e3191afd2 Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01:00
Ben Tian
b50cd00092 Bug 948337 - create BluetoothHfpManagerBase for audio manager access 2014-01-13 13:58:43 +08:00
Jamin Liu
37ef3ea430 Bug 953036 - Set HSP flag when BluetoothHfpManager chooses to connect HSP. r=echou 2014-01-10 08:23:13 -05:00
Ben Tian
bca0e37677 Bug 956258 - [cleanup] Patch 2/2: reduce warnings and remove cancel_discovery() in SendFile(), r=echou 2014-01-03 17:25:04 +08:00
Ben Tian
51c5e6a6c8 Bug 956258 - [cleanup] Patch 1/2: rename g* variables to s* ones, r=echou 2014-01-10 09:34:43 +08:00
Thomas Zimmermann
9cba9017bb Bug 950891: Don't run GetServiceChannel while turning Bluetooth on/off, r=echou
This patch adds a check to BluetoothDBusService::GetServiceChannel to
ensure that Bluetooth is ready. If the system is in a transition from
on to off, or vice versa, the method might operate on an undefined
state.
2014-01-07 13:46:20 +01:00
Shawn Huang
0f6916429a Bug 946240 - [Bluetooth][gonk-kk] Add flags to support different AVRCP profile version. r=echou 2014-01-08 09:32:19 -05:00
Boris Zbarsky
220a72b3b6 Bug 950188. DOMRequest should only have a constructor taking a Window. r=khuey 2014-01-06 21:53:23 -05:00
Birunthan Mohanathas
dfbad43639 Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Ehsan Akhgari
eaa7491d77 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ben Tian
b30d9c1665 Bug 947870 - Assertion in BluetoothOppManager::CreateFile (bluedroid), r=echou 2013-12-23 16:47:12 +08:00
Ben Tian
90fe54e775 Bug 939022 - BluetoothUtils for bluedroid. Patch 2/3: Modify files, r=echou 2013-12-23 11:24:11 +08:00
Ben Tian
0e8b08f307 Bug 939022 - BluetoothUtils for bluedroid. Patch 1/3: Move files, r=echou
--HG--
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluedroid/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluedroid/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluez/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluez/BluetoothUtils.h
2013-12-16 19:00:54 +08:00
Ms2ger
c7e03b6a71 Bug 942104 - Fix a mismerge from the backout on a CLOSED TREE; a=Tomcat 2013-12-20 15:19:14 +01:00
Ms2ger
3f3cc744ed Merge backout. 2013-12-20 11:36:27 +01:00
Ms2ger
2900763f15 Backout bug 942104 (changesets 4e5746a65a5e:62e32a84a9fb) for missing review. 2013-12-20 11:33:37 +01:00
Eric Chou
444938433c Bug 949772 - Fire PropertyChanged to registered BluetoothDevice objects, r=gyeh 2013-12-18 18:21:37 +08:00
Eric Chou
3af35c0e8b Bug 949772 - Make BluetoothAdpater be able to deal with multiple properties in one PropertyChanged event, f=btian, r=gyeh 2013-12-18 18:21:05 +08:00
Ben Tian
be0306f1a6 Bug 949843 - Don't use char* str = NS_ConvertUTF16toUTF8(aBdAddress).get();, r=echou 2013-12-18 09:53:11 +08:00
Eric Chou
5a42e73ed4 Bug 942104 - Fire event 'ondiscoverystatechanged' (bluez), r=gyeh 2013-11-30 20:20:18 +08:00
Eric Chou
f490f0563a Bug 942104 - Fire event 'ondiscoverystatechanged', r=gyeh
From b03fc76c1810cf3f91aa9f92732c3df4ffd471a3 Mon Sep 17 00:00:00 2001
2013-11-25 14:13:26 +08:00
Eric Chou
f1a9b94f89 Bug 942104 - Add nsIDOMBluetoothDiscoveryStateChangedEvent, r=gyeh 2013-11-30 20:20:17 +08:00
Eric Chou
c3bbf2aa77 Bug 942104 - Add an event "ondiscoverystatechanged", r=gyeh, sr=mrbkap 2013-11-30 20:20:17 +08:00
Shawn Huang
2039a2f666 Bug 944293 - [Bluetooth] Correct IS_PERIPHERAL COD validation and add error handling if COD is invalid, r=gyeh 2013-11-29 16:01:22 +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
Eric Chou
a258270b4d Bug 942712 - Set gToggleInProgress to false when bt toggling is done, r=gyeh
From 2e8e1d84251fac968caf9104536d1b794c986670 Mon Sep 17 00:00:00 2001
2013-11-26 15:13:43 +08:00
Mike Hommey
fdd3247a81 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Mike Hommey
2f727b6d62 Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
b038245b8d Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
Jamin Liu
d5e5d7ff3f Bug 881194 - [Bluetooth] Send +CIEV callheld for conference call. r=echou 2013-12-16 08:37:33 -05:00
Jamin Liu
e86eab105a Bug 881194 - [Bluetooth] Send +CIEV callheld properly to indicate call hold status. r=echou
- Send +CIEV callheld=1 when active calls become held calls
- Send +CIEV callheld=0 when all held calls become active calls.
2013-11-15 14:48:00 +08:00
Jamin Liu
6e6aa7aac0 Bug 881194 - [Bluetooth] Support AT+CHLD=3 in dom bluetooth. When "AT+CHLD=3" is received from a hands-free device, notify the Dialer app to "Add a held call to the conversation". r=echou 2013-11-28 14:05:05 +08:00
Vicamo Yang
69f91289f2 Bug 939637: B2G Bluetooth: add test case for navigator.BluetoothManager.adapteradded. r=echou 2013-12-13 15:31:21 +08:00
Vicamo Yang
310306a5fe Bug 939441: B2G Bluetooth: add test cases for navigator.BluetoothManager.enabled. r=echou, f=jgriffin 2013-12-13 15:31:16 +08:00
Thomas Zimmermann
8149608bb0 Bug 932728: Open only one connection to DBus, r=echou,qdot
Bluetooth maintains two connections to the DBus server and the DBus
system itself maintains a third one. This implies some overhead and
makes the code more difficult to understand.

This patch changes the Bluetooth code to use the connection that is
established by the DBus system.
2013-12-12 12:56:00 +01:00
Shawn Huang
c4a0e658bf Bug 941462 - Reply internal error code when getting I/O error from BlueZ, r=gyeh 2013-12-12 19:37:42 +08:00
Jamin Liu
bdb4e62641 Bug 932490 - Fix the buffer overflows of OBEX packet. r=echou 2013-12-11 09:53:24 -05:00
Ben Tian
9be1a17136 Bug 948247 - [bluedroid] Race condition in BluetoothSocket may result in segmentation fault, r=echou 2013-12-11 16:53:11 +08:00
Eric Chou
083ca04c04 Bug 947870 - Avoid assertion on receiving files via Bluetooth, r=gyeh 2013-12-11 13:17:34 +08:00
Ryan VanderMeulen
6428c27a28 Merge b2g-inbound to m-c. 2013-12-09 17:26:11 -05:00
Birunthan Mohanathas
00360187c4 Bug 798033 - Remove 'using namespace' from dom/ headers. r=echou 2013-12-08 21:53:11 -05:00
Birunthan Mohanathas
58325c73be Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Birunthan Mohanathas
bd0f161288 Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05: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
03f4d1a518 Bug 947060 - Don't go through bonding procedure while transferring files via OPP, r=gyeh 2013-12-09 17:43:15 +08:00
Ben Tian
29b2fcdacb Bug 947096 - [Flatfish] Build break results from variable access that requires MOZ_B2G_RIL flag, r=echou 2013-12-06 15:17:24 +08:00
Eric Chou
e4bc76a74b Bug 932496 - Add length check to prevent from memory pollusion, r=gyeh 2013-12-06 16:23:35 +08:00
Ryan VanderMeulen
fe93ce0fd5 Merge inbound to m-c. 2013-12-05 17:29:03 -05:00
Ben Tian
c54108e05a Bug 946048 - Reset mPhoneType in BluetoothHFPManager constructor, r=echou 2013-12-04 13:51:57 +08:00
Gina Yeh
de4f25fcff Bug 943752 - Refine BluetoothProfileController logic for AVRCP and HID, r=echou 2013-12-05 10:05:39 +08:00
Mike Shal
009ce11f2a Bug 875013 - Remove VPATH; r=glandium 2013-11-21 14:57:06 -05:00
Ben Tian
2983de1747 Bug 945193 - Print function name in bluetooth logs, r=echou 2013-12-02 18:50:23 +08:00
Ben Tian
c3f2dd37af Bug 945640 - [HFP] Pop up volume UI when bluetooth headset adjusts volume during call, r=echou 2013-12-04 10:06:10 +08:00
Ben Tian
ce80fd4ac3 Bug 944574 - Add ConnectSco/DisconnectSco into BluetoothServiceBluedroid, r=echou 2013-12-03 09:56:27 +08:00
Gina Yeh
1dbb62f7d2 Bug 945149 - No event AdapterAdded is received after turning on Bluetooth, r=echou 2013-12-04 10:18:33 +08:00
Eric Chou
52c42a6be6 Bug 915533 - Remove files that were accidentally restored, r=gyeh 2013-12-03 14:45:01 +08:00
Ben Tian
ef469db7a2 Bug 944592 - Re-implement BluetoothOppManager::Disconnect(), r=echou 2013-11-29 14:13:40 +08:00
Ryan VanderMeulen
3de5acfddf Merge m-c to b2g-inbound. 2013-12-02 10:38:28 -05:00
Carsten "Tomcat" Book
4f1cc24db3 Backed out changeset 2faed81ad05f (bug 915533) for Build Bustage 2013-12-02 08:53:30 +01:00
Carsten "Tomcat" Book
47a9fe8e52 Backed out changeset 22ad4bbd595d (bug 915533) for Build Bustage 2013-12-02 08:53:16 +01:00
Ben Tian
2e7c598429 Bug 915533 - Patch 2/2: [bludroid OPP] BluetoothSocket, r=echou 2013-12-02 10:39:58 +08:00
Ben Tian
eeaacaa8cf Bug 915533 - Patch 1/2: [bludroid OPP] Move files, r=echou 2013-11-29 14:18:04 +08:00
Jamin Liu
14608576aa Bug 943753 - Fix the incorrect condition for synchronous connection to support HSP. r=echou
We don't need to check SLC status for HSP.
2013-12-02 16:38:51 +08:00
Ben Tian
a21c6b6e29 Bug 915533 - Patch 2/2: [bludroid OPP] BluetoothSocket, r=echou 2013-12-02 10:39:58 +08:00
Ben Tian
47bb7aa534 Bug 915533 - Patch 1/2: [bludroid OPP] Move files, r=echou 2013-11-29 14:18:04 +08:00
Ben Tian
1ad0367958 Bug 921991 - B2G BT: support multiple sim cards, r=echou, r=mrbkap 2013-11-26 14:11:06 +08:00
Jamin Liu
d613f625f0 Bug 937074 - [Bluetooth] Make sure SLC established before we set up SCO. r=echou 2013-11-26 11:28:10 +08:00
Shawn Huang
ced02707a8 Bug 939500 - [bluedroid] Avrcp 1.3 prototype, r=echou 2013-11-22 23:40:22 +08:00
Eric Chou
d2b2f6bd8c Bug 932543 - Check data size before memcpy in BluetoothOppManager, r=gyeh 2013-11-22 11:55:42 +08:00
Szu-Yu Chen [:aknow]
85de6e4a45 Bug 856553 - Part 3: Add radiostatechange in listener (bluetooth). r=gyeh 2013-11-21 09:09:01 -05:00
Shawn Huang
c93895bf4e Bug 941574 - [bluedroid] Fix sometimes outgoing connection fails due to Reset() mis-placed, r=echou 2013-11-21 20:17:10 +08:00
Shawn Huang
8fea4aff20 Bug 941564 - [bluedroid] Update BD address while an incoming connection established, r=echou 2013-11-21 20:17:07 +08:00
Shawn Huang
af24ad3ad4 Bug 935882 - [bluedroid] Support GetConnectedDevice API, r=echou 2013-11-21 18:12:45 +08:00
Eric Chou
3acf0d2d68 Bug 941416 - Fix regression of bug 936995, r=gyeh 2013-11-21 12:58:04 +08:00
Shawn Huang
937b91c858 Bug 935578 - Patch 3: Enable connect/disconnect, r=echou 2013-11-20 16:19:09 +08:00
Shawn Huang
de7d3246e2 Bug 935578 - Patch 2: BluetoothA2dpManager bluedroid version, r=echou 2013-11-20 16:19:09 +08:00
Shawn Huang
3308e127dd Bug 935578 - Patch 1: Separate BluetoothA2dpManager implementation for bluez/bluedroid stack, r=echou 2013-11-20 16:19:08 +08:00
Eric Chou
8855291faa Bug 936995 - Fire event Disable after Bluetooth is really disabled, r=gyeh 2013-11-20 15:01:54 +08:00
Eric Chou
fc53895714 Backed out changeset 40ecdab580b3 (bug 936995) for potential JB build error 2013-11-20 15:17:00 +08:00
Eric Chou
e6daad1cd4 Bug 936995 - Fire event Disable after Bluetooth is really disabled, r=gyeh 2013-11-20 15:01:54 +08:00
Eric Chou
5af154446f Bug 940271 - Don't fire PropertyChanged if the device address has been already in the array, r=gyeh 2013-11-19 20:13:02 +08:00
Gina Yeh
17dd18187e Bug 932914 - Broadcast AdapterAdded after adapter name is updated, r=echou 2013-11-19 15:58:48 +08:00
Ben Tian
a4e3a52112 Bug 938524 - Bluedroid HFP prototype, r=echou 2013-11-18 15:41:16 +08:00
Ben Tian
94e89deac6 Bug 938521 - Make bt interface accessible from profile managers, r=echou 2013-11-14 17:45:26 +08:00
Eric Chou
c238635a93 Bug 939669 - Append missed properties to BluetoothAdapter, r=gyeh 2013-11-19 11:12:17 +08:00
Mike Hommey
931cb49886 Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
db9e5129bc Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
f0d1cd1e10 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
f81885e53b Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Shawn Huang
ee7d258415 Bug 938529 - [bluedroid] Set BT_SCAN_MODE to Connectable after Bluetooth turned on. r=echou 2013-11-18 12:39:03 -05:00
Ben Tian
d29f02da1b Bug 936732 - Patch 2/3: BT file changes, r=khuey 2013-11-18 14:29:45 +08:00
Ben Tian
0279b76fae Bug 936732 - Patch 1/3: relocate files, r=echou 2013-11-14 17:30:32 +08:00
Eric Chou
f37223aadf Bug 933113 - Modify Pair/Unpair interface for Gaia being able to Pair/Unpair with only BD address, r=gyeh, sr=mrbkap
NFC handover is a mechanism for two devices to exchange their Bluetooth device
address with each other. Then one device would be initialize the Bluetooth
pairing process with received Bluetooth device address. However currently we
need a BluetoothDevice object for Pairing/Unpairing, but actually the address
of the Bluetooth device object is the only thing Gecko requires.
2013-11-15 17:19:31 +08:00
Ben Tian
e623b2c1ad Bug 937572 - debug build MOZ_ASSERT fails in BluetoothOppManager::Disconnect(), r=echou 2013-11-15 09:42:53 +08:00
Eric Chou
90c8be2215 Bug 937973 - Fix discoverable not working problem, r=gyeh 2013-11-14 14:51:17 +08:00
Eric Chou
74e291e0c0 Bug 936711 - Fix crash which happened at disabling Bluetooth during reconnection, r=gyeh 2013-11-12 17:37:30 +08:00
Ben Tian
ba5eed092f Bug 935573 - [bluedroid] Add Connect/Disconnect api, r=echou 2013-11-12 11:59:01 +08:00
Gregor Wagner
1aec9cc529 Backout 69acb8830b8c for real. 2013-11-11 10:40:50 -08:00
Gregor Wagner
5df0704249 Backout 26407a874057 for causing Bug 937199. 2013-11-11 10:28:56 -08:00