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

274 Коммитов

Автор SHA1 Сообщение Дата
Thomas Zimmermann 42c137c01d Bug 1268432: Replace |Task| with |Runnable| in B2G code r=fabrice
This patch converts the remaining B2G code from |Task| to |Runnable| and
fixes related API calls. This is a follow-up to bug 1266595.
2016-05-02 10:27:15 -07:00
Gregor Wagner acecad8f82 Bug 1267577 - Move nsRunnable to mozilla::Runnable. r=gsvelto 2016-04-27 12:05:40 +02:00
Thomas Zimmermann c08b1e935a Bug 1252841: Convert Bluetooth module to |UniquePtr<>|, r=btian 2016-03-22 11:26:45 +01:00
Louis Chang 73c9a25e36 Bug 1223729 - HID Connection Implementation, r=jocelyn, sr=mrbkap
--HG--
rename : dom/bluetooth/common/BluetoothHidManager.cpp => dom/bluetooth/bluez/BluetoothHidManager.cpp
rename : dom/bluetooth/common/BluetoothHidManager.h => dom/bluetooth/bluez/BluetoothHidManager.h
2015-12-04 11:58:55 +08:00
Tom Tung 8d0ccf2497 Bug 1253217 - Change filename from BluetoothUuid to BluetoothUuidHelper. r=jocelyn
--HG--
rename : dom/bluetooth/common/BluetoothUuid.cpp => dom/bluetooth/common/BluetoothUuidHelper.cpp
rename : dom/bluetooth/common/BluetoothUuid.h => dom/bluetooth/common/BluetoothUuidHelper.h
2016-03-09 10:57:35 +08:00
Bruce Sun fb2d868a4e Bug 1250694: Use functions to return static const BluetoothAddress and BluetoothUuid; r=tzimmermann 2016-03-04 18:54:18 +08:00
Thomas Zimmermann d8cb801b6f Bug 1251541: Replace |nsAutoArrayPtr<>| with |UniquePtr<[]>| in Bluetooth managers, r=shuang 2016-02-29 12:15:08 +01:00
Xidorn Quan 7268d4783f Bug 1241901 part 2 - Use intptr_t to pass bluetooth service class instead of a pointer to heap. r=shawnjohnjr
--HG--
extra : source : aae164785cd4d7468588518ef379daf4c73faaac
2016-01-30 10:33:41 +11:00
Jocelyn Liu c6da2ff1c4 Bug 1228546 - Implement peripheral mode support for GATT API. r=brsun, r=mrbkap 2016-01-15 09:50:54 +08:00
Nathan Froyd 3dfc3842bc Bug 1236561 - part 1 - convert easy cases of nsAutoArrayPtr<T> to UniquePtr<T[]> in dom/bluetooth/; r=btian 2015-12-06 10:23:59 -05:00
Thomas Zimmermann 30f1560836 Bug 1223722: Transfer Bluetooth addresses in |BluetoothValue|, r=brsun 2016-01-05 12:01:33 +01:00
Nicholas Nethercote d137133367 Bug 1187115 - Replace nsBaseHashtable::EnumerateRead() calls in dom/{bluetooth,messagechannel}/ with iterators. r=khuey.
--HG--
extra : rebase_source : 1c02cc79902eff27686904e8fa139175756446de
2015-11-18 19:38:55 -08:00
Thomas Zimmermann c89087189f Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothUuid|, r=joliu 2015-11-13 15:26:50 +01:00
Thomas Zimmermann 0d85c6c530 Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothAddress|, r=joliu 2015-11-13 15:26:50 +01:00
Thomas Zimmermann 5b81d46a91 Bug 1220121: Convert IPDL of Bluetooth AVRCP API to |ControlPlayStatus|, r=shuang 2015-11-13 15:26:50 +01:00
Thomas Zimmermann df67765d87 Bug 1220121: Convert IPDL of Bluetooth OPP API to |BluetoothAddress|, r=btian 2015-11-13 15:26:50 +01:00
Thomas Zimmermann becd273af5 Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothPinCode|, r=brsun 2015-11-13 15:26:50 +01:00
Thomas Zimmermann 37ee544cc5 Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothAddress|, r=brsun 2015-11-13 15:26:50 +01:00
Nathan Froyd 0bb0df5675 Bug 1221547 - part 2 - copy less data for file transfers over bluetooth; r=btian
We have a number of places where we create a Bluetooth request with
allocated memory, then copy that memory into the raw data to be sent
over the socket.  We can do better by transferring ownership to the
socket data, rather than copying.
2015-11-02 16:16:38 -05: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
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 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
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
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
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
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
Bruce Sun e03fb4f7d3 Bug 1181479: Implement GATT Server service management; r=jocelyn, r=mrbkap 2015-08-24 16:58:13 +08:00
Ben Tian 6576fbda41 Bug 1191715 - Store local pointer of thread to shutdwon to avoid reentry crash, f=jesup, r=shuang 2015-09-08 11:15:49 +08:00
Thomas Zimmermann f0d5f8b3dc Bug 1199110: Remove AVRCP support from |BluetoothA2dpManager| and convert callers, r=shuang
This patch removes AVRCP support from |BluetoothA2dpManager| and
converts all callers to use |BluetoothAvrcpManager| instead.
2015-08-31 17:27:47 +02:00
Thomas Zimmermann 1d5487d615 Bug 1199110: Add |BluetoothAvrcpManager| to Bluedroid and BlueZ backends, r=shuang
The new |BluetoothAvrcpManager| classes are copies of |BluetoothA2dpManager|
without the A2DP bits.

--HG--
rename : dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp => dom/bluetooth/bluedroid/BluetoothAvrcpManager.cpp
rename : dom/bluetooth/bluedroid/BluetoothA2dpManager.h => dom/bluetooth/bluedroid/BluetoothAvrcpManager.h
rename : dom/bluetooth/bluez/BluetoothA2dpManager.cpp => dom/bluetooth/bluez/BluetoothAvrcpManager.cpp
rename : dom/bluetooth/bluez/BluetoothA2dpManager.h => dom/bluetooth/bluez/BluetoothAvrcpManager.h
2015-08-31 17:27:47 +02:00
Thomas Zimmermann 8b05a4caa1 Bug 1197815: Add missing |BluetoothHfpManager::IsNrecEnabled|, r=shuang 2015-08-25 17:06:51 +02:00
Jamin Liu abf6b30110 CLOSED TREE Bug 1180555 - Handle PBAP replies and pass the results through IPC to PbapManager. r=btian 2015-08-24 10:30:03 +08:00
Sebastian Hengst d696b604ec Backed out 3 changesets (131251625ee8 for bug 1180556, 5bdcc058e6d6 for bug 1180555, f7e0cd74c082 for bug 1180554) for B"G ICS Emulator opt M8 and debug M19 failures. r=backout
Backed out changeset 131251625ee8 (bug 1180556)
Backed out changeset 5bdcc058e6d6 (bug 1180555)
Backed out changeset f7e0cd74c082 (bug 1180554)
2015-08-21 11:19:41 +02:00
Jocelyn Liu a81cf1b3e6 Bug 1181480 - Add and implement GATT server connection related Web APIs. r=btian, r=mrbkap 2015-08-21 17:11:14 +08:00
Jamin Liu 2c7a6e9d19 Bug 1180555 - Handle PBAP replies and pass the results through IPC to PbapManager. r=btian 2015-08-21 09:51:50 +08:00
Ryan VanderMeulen a10daa3bd6 Backed out 3 changesets (bug 1180556, bug 1180555, bug 1180554) for test_interfaces.html failures.
Backed out changeset 3210b4a21f50 (bug 1180556)
Backed out changeset d08f41259fb9 (bug 1180555)
Backed out changeset ad74716bf6e7 (bug 1180554)
2015-08-19 07:26:50 -04:00
Jamin Liu 8e7f9405fb Bug 1180555 - Handle PBAP replies and pass the results through IPC to PbapManager. r=btian 2015-08-19 11:41:01 +08:00
Ben Tian d4e5970e84 Bug 1195608 - [cleanup] Fix too long lines and revise some comments under dom/bluetooth, r=joliu 2015-08-18 11:29:45 +08:00
Ben Tian 9636b618b1 Bug 1192693 - [03] Remove bluetooth1 code from backend, r=tzimmermann 2015-08-17 15:30:37 +08:00
Will Wang 9fd88cded3 Bug 825149 - Support HFP NREC feature. r=shuang 2015-08-10 04:51:00 -04:00
Ben Tian e5a7ce7584 Bug 1173266 - [cleanup] Remove unused |isConnected| from bluetooth2, r=tzimmermann 2015-08-05 15:19:43 +08:00