Commit Graph

1258 Commits

Author SHA1 Message Date
Jamin Liu
240097641c Bug 1154136 - Update Bluetooth connection state when BT stack updates device properties. r=shuang 2015-04-14 18:46:23 +08:00
Thomas Zimmermann
ced37d6251 Bug 1152821: Share BluetoothCommon.h between Bluetooth v1 and v2, r=joliu
This patch integrates changes from Bluetooth v1 into the shared file
BluetoothCommon.h, and makes it available to both versions. The enum
constant TYPE_INVALID is replaced by NUM_TYPE.
2015-04-14 10:26:06 +02:00
Thomas Zimmermann
63a6d295b0 Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu 2015-04-14 10:26:06 +02:00
Ben Tian
9beaa7f7f0 Bug 1152694 - Make UUID and service name as input arguments for BluetoothSocket, r=tzimmermann 2015-04-13 17:30:47 +08:00
Carsten "Tomcat" Book
630e7a65f8 Backed out changeset 3939c36b0864 (bug 1152821) for Bustage 2015-04-13 10:54:33 +02:00
Carsten "Tomcat" Book
9f84295bb8 Backed out changeset 81c108144278 (bug 1152821) 2015-04-13 10:53:59 +02:00
Thomas Zimmermann
fd9a3bab21 Bug 1152821: Share BluetoothCommon.h between Bluetooth v1 and v2, r=joliu
This patch integrates changes from Bluetooth v1 into the shared file
BluetoothCommon.h, and makes it available to both versions. The enum
constant TYPE_INVALID is replaced by NUM_TYPE.
2015-04-13 10:03:11 +02:00
Thomas Zimmermann
692ba097b9 Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu 2015-04-13 10:03:09 +02:00
Carsten "Tomcat" Book
b4df56cdd8 Backed out changeset b3b4f6930b58 (bug 1152821) for bustage on a CLOSED TREE 2015-04-10 15:29:39 +02:00
Carsten "Tomcat" Book
7fd0349ce4 Backed out changeset eb14bd0103b6 (bug 1152821) 2015-04-10 15:29:00 +02:00
Thomas Zimmermann
b545f4bf37 Bug 1152821: Share BluetoothCommon.h between Bluetooth v1 and v2, r=joliu
This patch integrates changes from Bluetooth v1 into the shared file
BluetoothCommon.h, and makes it available to both versions.
2015-04-10 13:46:19 +02:00
Thomas Zimmermann
90f5ec8339 Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu 2015-04-10 13:46:19 +02:00
Jocelyn Liu
387bbc5d3c Bug 1152702 - Fix upper bounds of ContiguousEnumSerializer for BluetoothStatus and BluetoothSspVariant. r=tzimmermann 2015-04-10 17:00:02 +08:00
Shawn Huang
06a2e616a7 Bug 1152095 - Check mResultHandlerQ is empty before dispatching DispatchError. r=tzimmermann 2015-04-09 04:20:00 -04:00
Juan Gomez
0a492f3bcd Bug 1087161 - Upgrading B2G toolchain to gcc-4.9
* Fixed some -Werror=format issues by making function-style castings
2015-04-09 18:13:39 +02:00
Thomas Zimmermann
3943a864b0 Bug 1146355: Prepare BlueZ for Bluetooth v2, r=brsun 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
0843823510 Bug 1146355: Prepare Bluetooth HFP manager, r=brsun 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
643bbb6613 Bug 1146355: Prepare Bluetooth OPP manager, r=joliu 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
4f3c34cc8e Bug 1146355: Prepare Bluetooth A2DP manager, r=joliu 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
77b4bcfd45 Bug 1146335: Prepare |BluetoothServiceBluedroid|, r=joliu
The only classes with significant differences between Bluetooth v1 and
v2 is |BluetoothServicebluedroid| and its helpers. The patch copies the
code from v2 into the shared backend's implementation and integrates
them by the use of ifdef. More fine-grained integration can be done later
on.
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
fe8b834e2e Bug 1146355: Support Bluetooth v1 and v2 in backend interfaces, r=joliu
There are some minor differences between backends in Bluetooth v1 and
v2. Some of the types have been added, removed or renamed. This patch
prepares the HAL and daemon backend interfaces to support both variants.
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
c75c977853 Bug 1146355: Added GATT support to Bluedroid backend, r=joliu
This patch moves GATT support for Bluetooth v2 into the shared
backend code. No functional modifications are made.
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
96e22c7dc5 Bug 1146355: Prepare Bluetooth backend helpers to handle v1 and v2 implementations, r=brsun
This patch updates the helpers of Bluetooth backends to support all data
structures required by Bluetooth v2.
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
b9b5a5dd14 Bug 1146355: Update Bluetooth backend interface for bluetooth2, r=brsun
For sharing backend code, both implementations must use similar
backend interfaces. This patch updates the interface for v2 to the
state of v1 plus GATT.
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
fcc7f504a8 Bug 1146355: Add Bluetooth v2 to Bluetooth build scripts, r=shuang 2015-04-09 15:57:40 +02:00
Thomas Zimmermann
b878760ba6 Bug 1146355: Import Bluetooth v2 implementation, r=joliu
This patch moves all files from bluetooth2/ into bluetooth/bluetooth2;
except the backend code.
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
90dc6d375b Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu 2015-04-09 15:57:40 +02:00
Jamin Liu
7cf744cee9 Bug 1141899 - If Bluetooth CoD of remote device is unclear, add common profile managers to profile list. r=shuang 2015-04-02 02:28:00 -04:00
Shawn Huang
85f3b2f6d8 Bug 1148311 - Handle AVRCP app settings notification response. r=tzimmermann 2015-03-30 05:46:00 -04:00
Wes Kocher
9b4388ff25 Merge m-c to inbound a=merge 2015-03-27 17:31:19 -07:00
Shawn Huang
a0cf62e261 Bug 1142417 - Truncate AVRCP meta data strings followed by BTRC_MAX_ATTR_STR_LEN. r=tzimmermann 2015-03-27 07:08:00 -04:00
Bevis Tseng
82b82e9e97 Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian 2015-01-15 18:22:08 +08:00
Jamin Liu
3741556420 Bug 1142390 - Add a flag to identify if the CKPD is the very first AT+CKPD=200 for Bluetooth HSP handling. r=shuang 2015-03-27 19:00:41 +08:00
Thomas Zimmermann
a5524699a8 Bug 1146923: Pass SSP variant as enum instead of string, r=btian 2015-03-26 10:29:58 +01:00
Thomas Zimmermann
0dc43bdf9f Bug 1146923: Rename |BluetoothSspPairingVariant| to |BluetoothSspVariant|, r=btian 2015-03-26 10:29:58 +01:00
Thomas Zimmermann
92f9682a53 Bug 1146923: Rename |BluetoothDeviceType| to |BluetoothTypeOfDevice|, r=btian 2015-03-26 10:29:58 +01:00
Thomas Zimmermann
95f6380c43 Bug 1146923: Merge |CONVERT| macros of Bluetooth backends, r=btian 2015-03-26 10:29:58 +01:00
Ryan VanderMeulen
375407bce2 Backed out 4 changesets (bug 1146923) for bustage.
Backed out changeset 926351238914 (bug 1146923)
Backed out changeset 7d8eb56f1e24 (bug 1146923)
Backed out changeset c5d4efed15e9 (bug 1146923)
Backed out changeset 045020b31842 (bug 1146923)

CLOSED TREE
2015-03-25 10:05:42 -04:00
Thomas Zimmermann
708175b121 Bug 1146923: Pass SSP variant as enum instead of string, r=btian 2015-03-25 10:38:00 +01:00
Thomas Zimmermann
49fb865724 Bug 1146923: Rename |BluetoothSspPairingVariant| to |BluetoothSspVariant|, r=btian 2015-03-25 10:38:00 +01:00
Thomas Zimmermann
6a9328655b Bug 1146923: Rename |BluetoothDeviceType| to |BluetoothTypeOfDevice|, r=btian 2015-03-25 10:38:00 +01:00
Thomas Zimmermann
e50d23b7aa Bug 1146923: Merge |CONVERT| macros of Bluetooth backends, r=btian 2015-03-25 10:38:00 +01:00
Ehsan Akhgari
5cccea6f0f Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Shawn Huang
8422b38703 Bug 1144089 - Map AVRCP attribute ID correctly. r=tzimmermann 2015-03-19 02:22:00 -04:00
Shawn Huang
dbb1dd1aa3 Bug 1142408 - Add data length parameter for Register Notification Response Command. r=tzimmermann 2015-03-18 02:52:00 -04:00
Boris Zbarsky
988b8e01be Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Gregor Wagner
8824e5f4f3 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Thomas Zimmermann
99ee069fa8 Bug 1142364: Store instances of |Bluetooth*HALResultRunnable| in ref-counted pointers, r=shuang
Result runnables in Bluetooth's HAL backend ar now protected by ref-counted
pointers. This prevent memory leaks if dispatching to the main thread fails.
2015-03-18 16:44:23 +01:00
Bevis Tseng
4831beb8e3 Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian 2015-01-15 18:22:08 +08:00
Carsten "Tomcat" Book
563c10b111 Merge mozilla-central to b2g-inbound 2015-03-17 11:59:24 +01:00