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

63 Коммитов

Автор SHA1 Сообщение Дата
Ben Tian 85c9f0cd43 Bug 1214139 - Connect to HFP, A2DP, and AVRCP if CoD is invalid, r=shuang 2015-10-22 21:03:08 +08:00
Nathan Froyd 228bcd741e Bug 1216195 - use mozilla/Endian.h facilities in bluetooth code; r=btian
We have a number of functions in mozilla/Endian.h for doing endianness
conversions, and these functions should be used instead of hand-rolled
functions.  Using those functions in the bluetooth code makes the code
clearer and more portable (ReadLittleEndianUint16 won't do the right
thing if we're running on a big-endian processor, for instance).
Endian.h is also careful to avoid assumptions about memory alignment,
which utility functions like ReadLittleEndianUint16 don't do.
2015-09-18 19:36:05 -04:00
Ben Hsu b55221ca1f Bug 1155072 - Part 2: Deprecate nsITelephonyListener.conferenceCallStateChanged (Bluetooth). r=btian 2015-10-11 20:43:00 +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
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 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
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 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
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 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
Thomas Zimmermann e7c7b92f10 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-29 14:07:01 +02:00
Thomas Zimmermann 5606525d6e 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-29 14:07:01 +02:00
Bruce Sun a8b089a2b8 Bug 1181483: Implement GATT server characteristic notification; r=jocelyn, r=mrbkap 2015-09-23 14:18:01 +08:00
Jocelyn Liu 1832bcbeea Bug 1181482 - Patch3: Implement |sendResponse| and BluetoothGattAttributeEvent for GATT server read/write requests. r=btian, r=bz 2015-09-23 14:16:27 +08:00
Jocelyn Liu 831adbfe19 Bug 1181482 - Patch2: Revise read/write characteristic/descriptor value to cover both GATT client and GATT server role. r=btian, r=bz 2015-09-23 14:16:05 +08:00
Jocelyn Liu 08e25742a0 Bug 1181482 - Patch1: Refine some data types in gecko backend for GATT server read/write request APIs. r=btian 2015-09-23 14:15:55 +08:00
Bruce Sun ecebfa45d5 Bug 1181479: Sync the coding style; r=jocelyn 2015-09-21 14:41:02 +08:00
Bruce Sun e03fb4f7d3 Bug 1181479: Implement GATT Server service management; r=jocelyn, r=mrbkap 2015-08-24 16:58:13 +08:00
Bruce Sun 0743c11d2e Bug 1181479: Refine GenerateUuid(); r=jocelyn 2015-09-21 14:40:11 +08:00
Bruce Sun 0b06af747b Bug 1181479: Refine StringToUuid; r=jocelyn 2015-09-21 14:39:44 +08:00
Thomas Zimmermann cd10495a59 Bug 1206686: Use |BluetoothUuid| throughout Bluetooth backend interfaces, r=btian
This patch converts all public interfaces of the Bluetooth backend code
to take UUIDs as |BluetoothUuid|. The code currently uses a mixture of
|BluetoothUuid| and arrays/pointers.
2015-09-22 13:04:05 +02:00
Thomas Zimmermann 48a8903713 Bug 1204497: Interpret AVRCP remote features as bitmask, r=shuang
The current IPC parsing code is incorrect. AVRCP remote features are
specified as bitmask, but the current IPC code treats them as values.
This patch fixes this.
2015-09-21 11:30:52 +02:00
Thomas Zimmermann 8bdf56f23b Bug 1205635: Don't define methods of Bluetooth backend interfaces in header, r=btian
Except the d'tors, we usually don't call any interfaces of the Bluetooth
backend interfaces. All methods are overriden in child classes.

This patch move the methods from the interface's header file to the source
file. Only the result handlers' d'tors are located in the header, as they
can be inlined.
2015-09-21 11:18:11 +02:00
Thomas Zimmermann 83d246f318 Bug 1204801: Move |BlutoothSetupResultHandler| to generic backend interface, r=btian
|BluetoothSetupResultHandler| is independent from the Bluetooth backend
code. This patch moves it to the other backend interfaces.
2015-09-16 10:37:58 +02:00
Thomas Zimmermann 832d543167 Bug 1203092: Inherit Bluetooth result handlers from |DaemonSocketResultHandler|, r=shuang 2015-09-15 12:55:02 +02:00
Nigel Babu 3028272315 Backed out changeset e682d4ccb6a5 (bug 1203092) 2015-09-15 15:17:33 +05:30
Thomas Zimmermann 4fabbf2de8 Bug 1203092: Inherit Bluetooth result handlers from |DaemonSocketResultHandler|, r=shuang 2015-09-15 10:38:13 +02:00
Jocelyn Liu b144643f0d Bug 1203900 - Fix cycle collection and array buffer creation bug in the implementation of MediaKeyMessageEvent, MediaEncryptedEvent, and BluetoothLeDeviceEvent. r=bz 2015-09-11 21:05:00 +02:00