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

1674 Коммитов

Автор SHA1 Сообщение Дата
Ben Tian cc694d7066 Bug 1221898 - Fix PBAP memory leakage, r=brsun 2015-11-06 16:23:30 +08:00
Nathan Froyd 555ffcc8b5 Bug 1221326 - use Endian.h more widely in bluetooth code; r=btian 2015-11-02 15:13:10 -05:00
Ben Tian c7602b0544 Bug 1207998 - Convert nsCString to nsString for BluetoothVCardListingEvent.mSearchValue, r=shuang 2015-11-03 10:40:36 +08:00
Carsten "Tomcat" Book d22b2c9770 Merge mozilla-central to b2g-inbound 2015-11-02 12:06:26 +01:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Thomas Zimmermann 15782f1cec Bug 1215525: Use strong typing in Bluetooth GATT mid-layer interfaces, r=joliu 2015-10-30 14:54:41 +01:00
Thomas Zimmermann 912f69954b Bug 1215525: Replace strings with Bluetooth addresses and UUIDs in GATT mid-layer, r=joliu 2015-10-30 14:54:41 +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
Thomas Zimmermann da8fa8c983 Bug 1215525: Update |BluetoothUuid| structure with c'tors and helper methods, r=brsun 2015-10-30 14:54:41 +01:00
Carsten "Tomcat" Book e8397e7416 Backed out changeset 078dd0e39cc8 (bug 1215525) for bustage 2015-10-29 14:37:47 +01:00
Carsten "Tomcat" Book aa4d7353fb Backed out changeset 4a99cfd718aa (bug 1215525) 2015-10-29 14:37:34 +01:00
Carsten "Tomcat" Book c99fbefe39 Backed out changeset 1a9ea2369c03 (bug 1215525) 2015-10-29 14:37:32 +01:00
Carsten "Tomcat" Book 3d9387c2b0 Backed out changeset fa87615a341c (bug 1215525) 2015-10-29 14:37:30 +01:00
Thomas Zimmermann c33668c2d7 Bug 1215525: Use strong typing in Bluetooth GATT mid-layer interfaces, r=joliu 2015-10-29 13:30:02 +01:00
Thomas Zimmermann a3b649dfa8 Bug 1215525: Replace strings with Bluetooth addresses and UUIDs in GATT mid-layer, r=joliu 2015-10-29 13:30:02 +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
Thomas Zimmermann e88ddf0797 Bug 1215525: Update |BluetoothUuid| structure with c'tors and helper methods, r=brsun 2015-10-29 13:30:01 +01:00
Thomas Zimmermann a100955efb Bug 1207480: Remove B2G Bluedroid configuration from tree, r=shuang
The Bluedroid configuration header for B2G is now located in the repo
of libhardware_moz, as Bluedroid drivers should not depend on Gecko's
source code. This patch removes the configuration header from Gecko.
2015-10-29 12:47:07 +01:00
Jamin Liu ed9ab9dd8d Bug 1218295 - Convert the relative path of PullvCardEntry to absolute path if PBAP request isn't using X-BT-UID. r=btian 2015-10-26 22:41:00 +01:00
Shawn Huang 40066e9d8b Bug 1217339 - Fix illegal format of folder-listing object, r=btian 2015-10-23 22:21:09 +08:00
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
Thomas Zimmermann 3af39620cf Bug 1216179: Fix broken interface of fall-back Bluetooth HFP manager, r=btian 2015-10-20 10:41:36 +02: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
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
Will Wang a9a921fa81 Bug 1139774 - Add a function to wait promise for bluetooth adapter creation. r=shuang 2015-10-01 07:32:00 +02:00
Thomas Zimmermann 61d723c3ce Bug 1209469: Replace |BluetoothNamedValue| with |BluetoothProperty| in Bluetooth backend, r=brsun 2015-10-02 11:07:47 +02:00