Commit Graph

683 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
07869fe632 Backed out changeset 0f3562e114b1 (bug 1220121) 2015-11-12 11:48:53 +01:00
Carsten "Tomcat" Book
4bf2867843 Backed out changeset 74199d201199 (bug 1220121) 2015-11-12 11:48:51 +01:00
Thomas Zimmermann
d15fbe07f1 Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothUuid|, r=joliu 2015-11-12 11:23:36 +01:00
Thomas Zimmermann
10e5c8cb29 Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothAddress|, r=joliu 2015-11-12 11:23:36 +01:00
Thomas Zimmermann
9ec12aea49 Bug 1220121: Convert IPDL of Bluetooth AVRCP API to |ControlPlayStatus|, r=shuang 2015-11-12 11:23:35 +01:00
Thomas Zimmermann
62d409ef30 Bug 1220121: Convert IPDL of Bluetooth OPP API to |BluetoothAddress|, r=btian 2015-11-12 11:23:35 +01:00
Thomas Zimmermann
0b0f22bed8 Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothPinCode|, r=brsun 2015-11-12 11:23:35 +01:00
Thomas Zimmermann
c1ee8d6d40 Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothAddress|, r=brsun 2015-11-12 11:23:35 +01:00
Ben Tian
d5e9e224f3 Bug 1224109 - [PBAP] Return early if OBEX authentication password is empty, r=shuang 2015-11-12 14:54:48 +08:00
Carsten "Tomcat" Book
8c97f8e21f Backed out changeset 28725f253f82 (bug 1220121) 2015-11-11 12:06:50 +01:00
Carsten "Tomcat" Book
340ef80c63 Backed out changeset a7ea5f2e3444 (bug 1220121) 2015-11-11 12:06:48 +01:00
Carsten "Tomcat" Book
10913bbc26 Backed out changeset 975e3b3d7504 (bug 1220121) 2015-11-11 12:06:47 +01:00
Carsten "Tomcat" Book
ecf2991010 Backed out changeset 1ebe50bb4fad (bug 1220121) 2015-11-11 12:06:46 +01:00
Carsten "Tomcat" Book
ecd9413df1 Backed out changeset 7251fc4dce99 (bug 1220121) 2015-11-11 12:06:44 +01:00
Carsten "Tomcat" Book
ca229888f4 Backed out changeset aa607b61225c (bug 1220121) 2015-11-11 12:06:43 +01:00
Thomas Zimmermann
94c38f831b Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothUuid|, r=joliu 2015-11-11 11:14:40 +01:00
Thomas Zimmermann
979ae5cc25 Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothAddress|, r=joliu 2015-11-11 11:14:40 +01:00
Thomas Zimmermann
de98d385d5 Bug 1220121: Convert IPDL of Bluetooth AVRCP API to |ControlPlayStatus|, r=shuang 2015-11-11 11:14:40 +01:00
Thomas Zimmermann
eee910e817 Bug 1220121: Convert IPDL of Bluetooth OPP API to |BluetoothAddress|, r=btian 2015-11-11 11:14:39 +01:00
Thomas Zimmermann
0f91652650 Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothPinCode|, r=brsun 2015-11-11 11:14:39 +01:00
Thomas Zimmermann
d1d8ccfb94 Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothAddress|, r=brsun 2015-11-11 11:14:39 +01:00
Shawn Huang
cf42136aa0 Bug 1211769 - [MAP] Pack MAP replies to OBEX response packets, r=btain, sr=mrbkap 2015-11-10 19:04:12 +08:00
Ben Tian
883404e323 Bug 1168298 - Support OBEX authentication procedure, r=shuang, r=mrbkap 2015-11-10 11:34:11 +08:00
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
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
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
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