Граф коммитов

640 Коммитов

Автор SHA1 Сообщение Дата
Thomas Zimmermann 3af39620cf Bug 1216179: Fix broken interface of fall-back Bluetooth HFP manager, r=btian 2015-10-20 10:41:36 +02: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
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Thomas Zimmermann 7e168a7489 Bug 1211948: Remove registry interfaces from |BluetoothDaemonProtocol|, r=brsun
The interfaces for registering and unregistering in |BluetoothDaemonProtocol|
were used by profile modules to call into the Setup module for registering and
unregistering themselves. Registry is now done in the profile managers, so
these interfaces are not required any longer.
2015-10-16 15:20:35 +02: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 d7f4ce6cdb Bug 1211948: Register Bluetooth GATT module in GATT manager, r=joliu
This patch moves the code for registering and unregistering the
GATT backend module into the GATT manager. The respective code in
the backend itself has been removed.

The new design allows for a strict separation between Setup module
and GATT module.
2015-10-16 15:20:35 +02:00
Thomas Zimmermann 6a38760d55 Bug 1211948: Register Bluetooth AVRCP module in AVRCP manager, r=brsun
This patch moves the code for registering and unregistering the
AVRCP backend module into the AVRCP manager. The respective code
in the backend itself has been removed.

The new design allows for a strict separation between Setup module
and AVRCP module.
2015-10-16 15:20:35 +02:00
Thomas Zimmermann 3ffdf6b57b Bug 1211948: Register Bluetooth A2DP module in A2DP manager, r=brsun
This patch moves the code for registering and unregistering the
A2DP backend module into the A2DP manager. The respective code in
the backend itself has been removed.

The new design allows for a strict separation between Setup module
and A2DP module.
2015-10-16 15:20:35 +02:00
Thomas Zimmermann 45e5fd5f96 Bug 1211948: Introduce |enum BluetoothSetupServiceId|, r=brsun 2015-10-16 15:20:35 +02:00
Thomas Zimmermann 675ee8da68 Bug 1211948: Add interface class for Setup module to Bluetooth backend interface, r=brsun
With the new class |BluetoothSetupInterface|, Bluetooth modules can be
registered and unregistered from outside the Bluetooth backend code.
2015-10-16 15:20:35 +02:00
Ben Tian bbecdc4476 Bug 1203821 - [03] Restore missing bug 1212729 change, r=shuang 2015-10-13 13:49:33 +08:00
Ben Tian dc30d7f542 Bug 1203821 - [02] Notify gaia of PBAP request with one integrated function, f=jaliu, r=shuang 2015-10-12 18:14:54 +08:00
Ben Tian e534cf946d Bug 1203821 - [01] Add utility functions to convert big/little endianness and revise BluetoothPbapManager accordingly, r=shuang 2015-10-12 17:59:24 +08:00
Shawn Huang 71bec8c223 Bug 1208492 - Handle MAP replies from Gaia and pass the results to BluetoothMapSmsManager, r=btian 2015-10-12 17:14:54 +08:00
Jamin Liu a7f6bfabe9 Bug 1212729 - Handle illegal PBAP virtual folders path properly. r=btian 2015-10-12 15:00:21 +08:00
Jamin Liu fa3acf9dcb Bug 1212725 - Convert relative paths of PBAP PullvCardListing to absolute path. r=btian 2015-10-12 15:00:14 +08:00
Shawn Huang 8cb7ad155e Bug 1184017 - [MAP] Dispatch events to MAP event handlers, r=btian, sr=mrbkap 2015-10-09 18:23:20 +08:00
Thomas Zimmermann bc620fb2b2 Bug 1211435: Cleanup AVRCP interfaces when Bluetooth adapter gets switched off, r=shuang
Cleaning up AVRCP was forgotten in bug 1199110.
2015-10-06 10:12:38 +02:00
Thomas Zimmermann 5db5ee8b4c Bug 1211435: Rename some internal classes of Bluetooth's AVRCP manager, r=shuang 2015-10-06 10:12:38 +02:00
Thomas Zimmermann 7b85e483f3 Bug 1211435: Rename some internal classes of Bluetooth's A2DP manager, r=shuang 2015-10-06 10:12:38 +02:00
Thomas Zimmermann 37726b2ea9 Bug 1209085: Replace simple init ops by |UnpackPDUInitOp| in Blutooth HFP backend, r=joliu 2015-10-06 10:08:15 +02:00
Thomas Zimmermann 9b0b498e50 Bug 1209085: Replace simple init ops by |UnpackPDUInitOp| in Bluetooth GATT backend, r=joliu 2015-10-06 10:08:15 +02:00
Thomas Zimmermann 9c1afc7d89 Bug 1209085: Replace simple init ops by |UnpackInitOp| in Bluetooth Core backend, r=joliu 2015-10-06 10:08:14 +02:00
Thomas Zimmermann ec9f010e9f Bug 1209085: Replace trivial init ops by |UnpackPDUInitOp| in Bluetooth AVRCP backend, r=joliu 2015-10-06 10:08:14 +02:00
Thomas Zimmermann 40d7b3a003 Bug 1209085: Replace trivial init ops by |UnpackPDUInitOP| in Bluetooth A2DP backend, r=joliu 2015-10-06 10:08:14 +02:00
Thomas Zimmermann 61d723c3ce Bug 1209469: Replace |BluetoothNamedValue| with |BluetoothProperty| in Bluetooth backend, r=brsun 2015-10-02 11:07:47 +02:00
Thomas Zimmermann a134b6bbac Bug 1209469: Expose |BluetoothPropertyType| in Bluetooth backend interface, r=brsun 2015-10-02 11:07:47 +02:00
Thomas Zimmermann 7c9e4a41c9 Bug 1209469: Expose |BluetoothServiceName| in Bluetooth backend interface, r=brsun 2015-10-02 11:07:47 +02:00
Thomas Zimmermann 456ba29d7a Bug 1209469: Expose |BluetoothRemoteName| in Bluetooth backend interface, r=brsun 2015-10-02 11:07:47 +02:00
Thomas Zimmermann 8ad37f4f6b Bug 1209469: Expose |BluetoothPinCode| in Bluetooth backend interface, r=brsun 2015-10-02 11:07:47 +02:00
Thomas Zimmermann 7198754086 Bug 1209469: Expose |BluetoothAclState| in Bluetooth backend interface, r=brsun 2015-10-02 11:07:47 +02:00
Shawn Huang e72212937d Bug 1166647 - Implement MAP bMessage class, r=btian 2015-10-01 16:30:58 +08:00
Jamin Liu 9d55788304 Bug 1207011 - Send Bluetooth OBEX End-of-Body header individually to improve the compatibility with other devices. r=btian 2015-09-30 03:41:00 +02:00
Nigel Babu deed7a3903 Backed out changeset 2fd54f322e75 (bug 1166647) for build bustage 2015-09-30 15:27:46 +05:30
Shawn Huang 05a0212871 Bug 1166647 - Implement MAP bMessage class, r=btian 2015-09-30 16:44:27 +08:00
Thomas Zimmermann 242a6e7b49 Bug 1207649: Remove obsolete string/address conversion from Bluetooth backend, r=brsun
The code in Bluetooth's current backend doesn't use address strings any
longer. This patch removes the related conversion functions.
2015-09-30 09:42:33 +02:00
Thomas Zimmermann 5facd8834c Bug 1207649: Convert Bluetooth GATT backend to |BluetoothAddress|, r=joliu
This patch converts all methods in Bluetooth's GATT interface to
|BluetoothAddress|.
2015-09-30 09:42:33 +02:00
Thomas Zimmermann 40676b1f19 Bug 1207649: Convert Bluetooth AVRCP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's AVRCP interface to
|BluetoothAddress|.
2015-09-30 09:42:33 +02:00
Thomas Zimmermann 67ae102c63 Bug 1207649: Convert Bluetooth A2DP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's A2DP interface to
|BluetoothAddress|.
2015-09-30 09:42:33 +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
Thomas Zimmermann bccae2b2f9 Bug 1207649: Convert Bluetooth Socket backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Socket interface to
|BluetoothAddress|.
2015-09-30 09:42:33 +02:00
Thomas Zimmermann 4a49e25f31 Bug 1207649: Convert Bluetooth Core backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Core interface to use
|BluetoothAddress|.
2015-09-30 09:42:33 +02:00
Thomas Zimmermann 25f47780dd Bug 1207649: Prepare |BluetoothAddress| for general use throughout Bluetooth code, r=brsun
This patch moves |BluetoothAddress| to BluetoothCommon.h, where it is
available for general use. New utility function convert between strings
and addresses. A new hash-key class allowes for using |BluetoothAddress|
as the key in a hash table.
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 8e6619a06b Bug 1207649: Remove obsolete string/address conversion from Bluetooth backend, r=brsun
The code in Bluetooth's current backend doesn't use address strings any
longer. This patch removes the related conversion functions.
2015-09-29 14:07:02 +02:00
Thomas Zimmermann eabddbb140 Bug 1207649: Convert Bluetooth GATT backend to |BluetoothAddress|, r=joliu
This patch converts all methods in Bluetooth's GATT interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 0d139b5990 Bug 1207649: Convert Bluetooth AVRCP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's AVRCP interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 06468d6f08 Bug 1207649: Convert Bluetooth A2DP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's A2DP interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +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
Thomas Zimmermann 0172a482fd Bug 1207649: Convert Bluetooth Socket backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Socket interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00