Commit Graph

93 Commits

Author SHA1 Message Date
Thomas Zimmermann
0163bc2474 Bug 1239979: Init and uninit all Bluetooth profile managers, r=shuang
The use is init and deinit methods is currently inconsistent among
Bluetooth profile managers. This patch unifies all these methods and
integrates them into the Bluetooth service. Instances of the manager
classes are now unref'ed during Bluetooth shutdown.
2016-01-21 12:30:00 +01:00
Thomas Zimmermann
30f1560836 Bug 1223722: Transfer Bluetooth addresses in |BluetoothValue|, r=brsun 2016-01-05 12:01:33 +01:00
Thomas Zimmermann
cb9c58250a Bug 1215525: Replace strings with Bluetooth addresses and UUIDs in Bluetooth mid-layer, r=brsun 2015-10-30 14:54:41 +01:00
Carsten "Tomcat" Book
aa4d7353fb Backed out changeset 4a99cfd718aa (bug 1215525) 2015-10-29 14:37:34 +01:00
Thomas Zimmermann
dc14c6ccee Bug 1215525: Replace strings with Bluetooth addresses and UUIDs in Bluetooth mid-layer, r=brsun 2015-10-29 13:30:02 +01:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Thomas Zimmermann
ad3f2bad98 Bug 1211948: Register Bluetooth Handsfree module in Handsfree manager, r=btian
This patch moves the code for registering and unregistering the
Handsfree backend module into the Handsfree manager. The respective
code in the backend itself has been removed.

The new design allows for a strict separation between Setup module
and Handsfree module.
2015-10-16 15:20:35 +02:00
Thomas Zimmermann
dff6da9218 Bug 1207649: Convert Bluetooth Handsfree backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Handsfree interface to
|BluetoothAddress|.
2015-09-30 09:42:33 +02:00
Carsten "Tomcat" Book
113003e824 Backed out 8 changesets (bug 1207649) for bustage on a CLOSED TREE
Backed out changeset df09a48144a5 (bug 1207649)
Backed out changeset fcbf5852361f (bug 1207649)
Backed out changeset d63567af5fa2 (bug 1207649)
Backed out changeset 02928720b1a0 (bug 1207649)
Backed out changeset b906ed92f33a (bug 1207649)
Backed out changeset f03f71a3de8a (bug 1207649)
Backed out changeset 9c647b56f37c (bug 1207649)
Backed out changeset a336f5041c27 (bug 1207649)
2015-09-29 15:54:21 +02:00
Thomas Zimmermann
2fe419c963 Bug 1207649: Convert Bluetooth Handsfree backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Handsfree interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Will Wang
2a1c15bc8c Bug 1203046 - Call |NRECNotification| once RFCOMM is connected. r=shuang 2015-09-15 18:19:25 +08:00
Ben Tian
5e46603952 Bug 1195685 - Transform macro |BT_APPEND_NAMED_VALUE| into function, r=shuang 2015-09-09 10:59:36 +08:00
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