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

124 Коммитов

Автор SHA1 Сообщение Дата
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
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
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 61d723c3ce Bug 1209469: Replace |BluetoothNamedValue| with |BluetoothProperty| in Bluetooth backend, 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 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
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 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
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
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
Shawn Huang 4d58fd2b5f Bug 1203023 - Do not call Reset() for BluetoothMapSmsManager, r=tzimmermann 2015-09-10 17:10:04 +08:00
Thomas Zimmermann de849c6fe0 Bug 1141616: Support SDP lookups in |BluetoothServiceBluedroid|, r=btian
This patch adds support for SDP lookups to Bluedroid's service
manager |BluetoothServiceBluedroid|. The class now implements
looking up a remote device's services.
2015-09-09 13:20:54 +02:00
Thomas Zimmermann 1123c4730a Bug 1141616: Implement |BluetoothService::GetServiceChannel|, r=btian
This patch adds support for reading a service channel from a remote
device.
2015-09-09 13:20:45 +02:00
Ben Tian 5e46603952 Bug 1195685 - Transform macro |BT_APPEND_NAMED_VALUE| into function, r=shuang 2015-09-09 10:59:36 +08:00
Shawn Huang 691ea61dca Bug 1166645 - Implement MAP profile manager connection related function, r=btian 2015-09-08 11:39:13 +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
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 758a5e9af8 Bug 1195604 - [cleanup] Integrate similar BluetoothResultHandlers into basic one, r=tzimmermann 2015-08-18 15:53:41 +08:00
Ben Tian 9636b618b1 Bug 1192693 - [03] Remove bluetooth1 code from backend, r=tzimmermann 2015-08-17 15:30:37 +08:00
Ben Tian ba68749da3 Bug 1190730 - Patch 5/5: Wrap get device related variables into get device request, r=joliu 2015-08-07 14:43:44 +08:00
Ben Tian f465f5fca3 Bug 1190730 - Patch 4/5: Make runnable arrays member variables, r=joliu 2015-08-07 10:38:21 +08:00
Ben Tian 0764f341f9 Bug 1190730 - Patch 3/5: Make address-name mapping table member variable, r=joliu 2015-08-07 10:31:42 +08:00
Ben Tian 195a54c7fa Bug 1190730 - Patch 2/5: Make backend recovery variables member ones, r=joliu 2015-08-07 10:29:16 +08:00
Ben Tian 5662156042 Bug 1190730 - Patch 1/5: Make adapter properties member variables, r=joliu 2015-08-07 10:31:27 +08:00
Ben Tian e5a7ce7584 Bug 1173266 - [cleanup] Remove unused |isConnected| from bluetooth2, r=tzimmermann 2015-08-05 15:19:43 +08:00
Ben Tian ec7a3fd8bc Bug 1181827 - [Aries-L] Store remote device address and name mapping for pairing, r=shuang 2015-07-22 10:23:45 +08:00
Thomas Zimmermann 8270c9b2f7 Bug 1180965: Don't disable BT before daemon has been shut down, r=btian
The current shutdown code for Bluetooth contains a race condition
between closing the daemon sockets and re-opening them for the next
instance of the daemon.

This patch fixes the problem by not disabling the Bluetooth adapter
before the sockets have been closed. During the shutdown, no new
instances of the daemon can be started.
2015-07-14 13:28:18 +02:00
Shawn Huang 758af86f5a Bug 1160126 - Restart bluetoothd daemon automatically for API V2, r=jocelyn 2015-07-07 15:16:57 +08:00
Thomas Zimmermann 8fc78fed3e Bug 1172914: Merge duplicated code in |BluetoothServiceBluedroid| for simple cases, r=btian 2015-06-16 17:28:07 +02:00
Thomas Zimmermann 584df01b4a Bug 1172914: Minimize Bluetooth v1/v2 duplication in BluetoothServiceBluedroid.cpp, r=btian 2015-06-16 17:28:07 +02:00
Jocelyn Liu 0d4e05f63a Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang 2015-06-16 09:38:50 +08:00
Shawn Huang 434fcb6904 Backed out changesets 0832ffdd8144 for Bug 1167064 2015-06-15 19:05:03 +08:00
Jocelyn Liu 3ded2db982 Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang 2015-06-15 17:11:35 +08:00
Ryan VanderMeulen c0c862683b Backed out changeset 150544a28405 (bug 1167064) for B2G mochitest failures. 2015-06-08 15:41:26 -04:00
Jocelyn Liu cbe97e5b2b Bug 1167064 - Switch to bluetooth APIv2. r=shuang 2015-06-04 02:59:00 -04:00
Jamin Liu 18cfa5abf8 Bug 1168343 - Remove the improper MOZ_ASSERT in |BluetoothServiceBluedroid::BondStateChangedNotification|. r=shuang 2015-05-27 13:38:21 +08:00
Ben Tian 2248c8f63a Bug 1166180 - [cleanup] Remove function |EnsureBluetoothHalLoad| in BluetoothServiceBluedroid, r=shuang 2015-05-19 17:02:01 +08:00
Thomas Zimmermann c9ea3365c5 Bug 1164498: Remove |DispatchBluetoothReply| from |BluetoothServiceBluedroid|, r=btian
This patch replaces |DispatchBluetoothReply| in |BluetoothServiceBluedroid|
by corresponding calls to |DispatchReplySuccess| or |DispatchReplyError|.
2015-05-19 12:28:38 +02:00
Andrea Marchesini 3aa189b5ff Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan
--HG--
rename : dom/base/nsIDOMFile.idl => dom/base/nsIDOMBlob.idl
2015-05-18 14:52:26 +01:00
Jamin Liu 3242c56050 Bug 1098228 - Set Bluetooth discoverable to default value when BT state is BT_STATE_OFF. r=shuang 2015-05-18 09:27:23 +08:00