Commit Graph

81 Commits

Author SHA1 Message Date
Thomas Zimmermann
8b05a4caa1 Bug 1197815: Add missing |BluetoothHfpManager::IsNrecEnabled|, r=shuang 2015-08-25 17:06:51 +02:00
Will Wang
9fd88cded3 Bug 825149 - Support HFP NREC feature. r=shuang 2015-08-10 04:51:00 -04:00
Ben Tian
a67db0a86c Bug 1106007 - Cleanup include guards. r=tzimmermann 2015-08-04 17:39:30 +08:00
Ben Tian
bf72269e00 Bug 1127701 - Fix warning: NS_ENSURE_TRUE(value.isNumber()) failed, r=joliu 2015-07-29 16:40:39 +08:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Juan Gomez
258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Will Wang
e761135e3c Bug 1161888 - remove first CKPD flag and do not set |mDialingRequestProcessed| flag to avoid the redundant HFP_AT_RESPONSE_OK. r=shuang 2015-05-15 14:35:46 +08:00
Shawn Huang
76d664e594 Bug 1160127 - Send HFP/A2DP profile disconnection notification, r=btian 2015-05-11 11:47:31 +08:00
Thomas Zimmermann
80366e6970 Bug 1159267: Share Bluedroid's HFP manager between Bluetooth v1 and v2, r=btian
The implementation of the Bluedroid HFP manager in Bluetoth v1 and v2
differs by a number of interface changes. This patch merges both variants
into a single one, were possible.
2015-05-06 09:58:04 +02:00
Andrew McCreight
9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Shawn Huang
548f72bad6 Bug 1143925 - Avoid crash for HFP/A2DP manager during restart daemon. r=tzimmermann 2015-04-30 05:14:00 -04:00
Andrea Marchesini
789ad8312d Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan 2015-04-22 08:29:18 +02:00
Thomas Zimmermann
19481051d7 Bug 1154281: Remove references to UnixSocket.h from Bluetooth, r=btian
The code needs |UnixSocketRawData| from SocketBase.h and the data
structures in UnixSocketWatcher.h
2015-04-21 10:33:06 +02:00
Thomas Zimmermann
bb712a3705 Bug 1146355: Prepare Bluetooth HFP manager, r=brsun 2015-04-09 15:57:41 +02:00
Bevis Tseng
b36101cd61 Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian
--HG--
extra : histedit_source : b7f3f1d46e62b84ccae5d080193e549af6373b0c
2015-01-15 18:22:08 +08:00
Jamin Liu
0c87f42eb4 Bug 1142390 - Add a flag to identify if the CKPD is the very first AT+CKPD=200 for Bluetooth HSP handling. r=shuang 2015-03-27 19:00:41 +08:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Gregor Wagner
fa698fe8a9 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Bevis Tseng
b75f39a906 Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian
--HG--
extra : rebase_source : f3b03a7464ffe975248a25c64ca33cf3abe5e6f4
extra : histedit_source : b7252008b2a2e2a45db026ad873b4c065617be31
2015-01-15 18:22:08 +08:00
Thomas Zimmermann
888dc86930 Bug 1142132: Move helper classes of HFP manager into manager's namespace, r=shuang
Keeping helper classes in Bluetooth's C++ namespace creates collisions
between symbols of different managers' helpers. Moving HFP helpers into
the namespace of |BluetoothHfpManager| fixes this problem for HFP.
2015-03-12 13:07:32 +01:00
Thomas Zimmermann
ad90f39fdf Bug 1137151: Marked destructors of ref-counted Bluetooth classes as protected, r=shuang 2015-03-10 13:44:02 +01:00
Thomas Zimmermann
13ab04a400 Bug 1132229: Survive crashes of bluetoothd, r=shuang
With this patch, Gecko will handle crashes of bluetoothd by clearing its
internal state. Switching Bluetooth off and on restarts the daemon and
the Bluetooth sub-system.
2015-02-26 09:52:45 +01:00
Bruce Sun
602a02a783 Bug 1102703: (3/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (handsfree) r=btian, r=tzimmermann 2015-01-09 13:35:01 +08:00
Dave Huseby
83a6796724 Bug 1107681 - fix up the dom uses of WrapptedJSToDictionary to use the cx-less interface. r=bholley 2014-12-29 11:56:00 +01:00
Botond Ballo
7b85bd5de5 Bug 1073081 - Fix -Wdelete-non-virtual-dtor warnings by marking some classes as MOZ_FINAL. r=ehsan
--HG--
extra : source : 7a909c534cf723b252ea5b0a225a6656399b5b2e
2014-11-24 18:38:23 -05:00
Shawn Huang
042f661de2 Bug 1096194 - Responding Enhanced call control with ERROR if enhanced call control is not supported, r=btian 2014-11-12 11:15:21 +08:00
Thomas Zimmermann
a4ed330ba0 Bug 1083708: Handle non-existant Bluetooth profile interfaces correctly, r=shawnjohnjr
Bluetooth profile managers just return an error if a profile interface is
not available. Doing so breaks the initialization and cleanup routines. This
patch changes the profile managers to still report an error, but signal
progress to the given result runnable.
2014-10-16 16:40:49 +02:00
Edgar Chen
584a54888c Bug 994461 - Part 3: BT changes for IccInfo WebIDL. r=echou 2014-09-15 23:14:49 +08:00
Mike Habicher
c0376bc34a Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot 2014-09-16 13:15:16 -04:00
Kartikaya Gupta
f06deb28c4 Bug 1068872 - Fix nullptr dereferencing. r=echou 2014-09-18 07:00:00 -04:00
Vicamo Yang
ede03dd674 Bug 1063304 - 3.c/3: accommodate other components. r=echen 2014-09-21 15:24:43 +08:00
Carsten "Tomcat" Book
03e3efbd63 Backed out changeset 9ff2889f236a (bug 1063304) 2014-09-17 13:13:08 +02:00
Ryan VanderMeulen
d3fce43e7e Backed out changeset ed586ca080c0 (bug 1053966) for the same Mnw permafails it was backed out for previously. 2014-09-16 16:54:25 -04:00
Mike Habicher
e9ff4e12a0 Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot 2014-09-16 13:15:16 -04:00
Vicamo Yang
44379ca746 Bug 1063304 - 3.c/3: accommodate other components. r=echen 2014-09-16 21:20:18 +08:00
Edgar Chen
26472771cf Bug 843452 - Part 2-2: Bluetooth changes for MobileConnectionService interface. r=echou 2014-07-02 17:14:08 +08:00
Thomas Zimmermann
10ae671228 Bug 1061126: Fix constants in Bluedroid HFP manager, r=shuang
This patch replaces the remaining Bluedroid constants from Bluedroid's
|BluetoothHfpManager| with Gecko constants.
2014-09-02 12:46:07 +02:00
Wes Kocher
d544bf248c Backed out 17 changesets (bug 843452)
Backed out changeset e72a0297d488 (bug 843452)
Backed out changeset 73f62ce4190f (bug 843452)
Backed out changeset 6d4a49ebd9fc (bug 843452)
Backed out changeset ac93e396669f (bug 843452)
Backed out changeset cf4fc721821e (bug 843452)
Backed out changeset 9a94ea71d232 (bug 843452)
Backed out changeset b95ff097374d (bug 843452)
Backed out changeset 8d6428a93500 (bug 843452)
Backed out changeset e31b86ef0e80 (bug 843452)
Backed out changeset bd4efde535cd (bug 843452)
Backed out changeset 02bbcd8ac571 (bug 843452)
Backed out changeset f7f41bf82b22 (bug 843452)
Backed out changeset 20f42764cd38 (bug 843452)
Backed out changeset 82f8670f5c17 (bug 843452)
Backed out changeset 52f25f1278e3 (bug 843452)
Backed out changeset 181337820a7c (bug 843452)
Backed out changeset 9bd12641af03 (bug 843452)

--HG--
rename : dom/mobileconnection/interfaces/nsIMobileConnectionService.idl => dom/mobileconnection/interfaces/nsIMobileConnectionProvider.idl
2014-08-28 16:51:41 -07:00
Edgar Chen
9f21aaf25e Bug 843452 - Part 2-2: Bluetooth changes for MobileConnectionService interface. r=echou 2014-07-02 17:14:08 +08:00
Thomas Zimmermann
d3fa537d97 Bug 1053804: Replace |MainThreadTask| by |CloseScoRunnable|, r=shuang
|MainThreadTask| performs different operations on the main thread,
depending on a given command flag. There is only one command, CLOSE_SCO,
in use.

This patch removes the command infrastructure and replaces |MainThreadTask|
by |CloseScoRunnable|, which implements only this single operation.
2014-08-21 10:10:39 +02:00
Thomas Zimmermann
ff8788421a Bug 1053804: Cleanup Bluetooth Handsfree manager, r=shuang
This patch removes the unusued callback code from Bluetooth's
Handsfree manager.
2014-08-21 10:10:39 +02:00
Thomas Zimmermann
bf8d450fa8 Bug 1053804: Integrate runnables into Handsfree notifications, r=shuang
A number of notifications dispatch runnables to the main thread for
invoking actions. This is not requireed, as notifications already
run on the main thread. This patch merges the runnable's code into
the respective notifications.
2014-08-21 10:10:39 +02:00
Thomas Zimmermann
6246668276 Bug 1053804: Use Bluetooth Handsfree notifications, r=shuang
This patch replaces Handsfree callbacks by notifications. One
important change is that the first call to |BluetoothHandsfreeManager::Get|
now happens during initialization. Hence the Handsfree manager is now setup
immediately, instead of later at use.
2014-08-21 10:10:38 +02:00
Thomas Zimmermann
7b23e8dfad Bug 1053804: Implement Bluetooth Handsfree notifications, r=shuang
The patch adds notifications support to the Handsfree manager. Each
notification's method is taken from the respective callback code, with
changes to the arguments' data types.
2014-08-21 10:10:38 +02:00
Thomas Zimmermann
d4a10240a2 Bug 1038591: Convert Bluedroid status codes and error handlers, r=shuang
This patch converts Bluedroid status codes in Gecko to the
backend-neutral data type |BluetoothStatus|. All error handlers
have been adapted. The Bluedroid type |bt_status_t| only remains
in |BluetoothInterface|.
2014-08-06 11:45:32 +02:00
Thomas Zimmermann
b7264fc980 Bug 1038591: Convert Bluetooth Handsfree data types in |BluetoothHandsfreeInterface|, r=shuang
With this patch |BluetoothHandsfreeInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-06 11:45:05 +02:00
Thomas Zimmermann
28f818c2ea Bug 1029389: Asynchronous |BluetoothHandsfreeInterface::PhoneStateChange|, r=shuang 2014-07-15 10:56:55 +02:00
Thomas Zimmermann
60420f7ec0 Bug 1029389: Asynchronous Bluetooth Handsfree response methods, r=shuang 2014-07-15 10:56:55 +02:00
Thomas Zimmermann
478bf400c9 Bug 1029389: Asynchronous |BluetoothHandsfreeInterface::DeviceStatusNotification|, r=shuang 2014-07-15 10:56:55 +02:00
Thomas Zimmermann
47c0f745d8 Bug 1029389: Asynchronous |BluetoothHandsfreeInterface::VolumeControl|, r=shuang 2014-07-15 10:56:54 +02:00