Commit Graph

1250 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
230240d86d Backed out changeset b3b4f6930b58 (bug 1152821) for bustage on a CLOSED TREE 2015-04-10 15:29:39 +02:00
Carsten "Tomcat" Book
94594081b4 Backed out changeset eb14bd0103b6 (bug 1152821) 2015-04-10 15:29:00 +02:00
Thomas Zimmermann
d40f2684d7 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
11c480bfcb Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu 2015-04-10 13:46:19 +02:00
Jocelyn Liu
f8647ded07 Bug 1152702 - Fix upper bounds of ContiguousEnumSerializer for BluetoothStatus and BluetoothSspVariant. r=tzimmermann 2015-04-10 17:00:02 +08:00
Shawn Huang
362034f21c Bug 1152095 - Check mResultHandlerQ is empty before dispatching DispatchError. r=tzimmermann 2015-04-09 04:20:00 -04:00
Juan Gomez
4f4123e7a8 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
a18391e1c0 Bug 1146355: Prepare BlueZ for Bluetooth v2, r=brsun 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
bc668485f5 Bug 1146355: Prepare Bluetooth HFP manager, r=brsun 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
815f9030c2 Bug 1146355: Prepare Bluetooth OPP manager, r=joliu 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
c073fd9872 Bug 1146355: Prepare Bluetooth A2DP manager, r=joliu 2015-04-09 15:57:41 +02:00
Thomas Zimmermann
54dd094847 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
ef3a83f42f 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
23bade5cc7 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
64acd08b96 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
4daff76224 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
b0283faeec Bug 1146355: Add Bluetooth v2 to Bluetooth build scripts, r=shuang 2015-04-09 15:57:40 +02:00
Thomas Zimmermann
4bd25d657f 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
508a9da29d Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu 2015-04-09 15:57:40 +02:00
Jamin Liu
eb7b530abd 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
bfb0abdae3 Bug 1148311 - Handle AVRCP app settings notification response. r=tzimmermann 2015-03-30 05:46:00 -04:00
Wes Kocher
7549c12aa0 Merge m-c to inbound a=merge 2015-03-27 17:31:19 -07:00
Shawn Huang
6fd6a430a0 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
fa9e48c2a7 Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian 2015-01-15 18:22:08 +08:00
Jamin Liu
6cab2d0874 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
2ec891bdbc Bug 1146923: Pass SSP variant as enum instead of string, r=btian 2015-03-26 10:29:58 +01:00
Thomas Zimmermann
f3fd643c51 Bug 1146923: Rename |BluetoothSspPairingVariant| to |BluetoothSspVariant|, r=btian 2015-03-26 10:29:58 +01:00
Thomas Zimmermann
59d306e5a2 Bug 1146923: Rename |BluetoothDeviceType| to |BluetoothTypeOfDevice|, r=btian 2015-03-26 10:29:58 +01:00
Thomas Zimmermann
70cc67f0bf Bug 1146923: Merge |CONVERT| macros of Bluetooth backends, r=btian 2015-03-26 10:29:58 +01:00
Ryan VanderMeulen
d697b11395 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
99b648fc27 Bug 1146923: Pass SSP variant as enum instead of string, r=btian 2015-03-25 10:38:00 +01:00
Thomas Zimmermann
708b614845 Bug 1146923: Rename |BluetoothSspPairingVariant| to |BluetoothSspVariant|, r=btian 2015-03-25 10:38:00 +01:00
Thomas Zimmermann
ef8759f192 Bug 1146923: Rename |BluetoothDeviceType| to |BluetoothTypeOfDevice|, r=btian 2015-03-25 10:38:00 +01:00
Thomas Zimmermann
077925768a Bug 1146923: Merge |CONVERT| macros of Bluetooth backends, r=btian 2015-03-25 10:38:00 +01:00
Ehsan Akhgari
33bb32f549 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
51407e2b09 Bug 1144089 - Map AVRCP attribute ID correctly. r=tzimmermann 2015-03-19 02:22:00 -04:00
Shawn Huang
d11a054711 Bug 1142408 - Add data length parameter for Register Notification Response Command. r=tzimmermann 2015-03-18 02:52:00 -04:00
Boris Zbarsky
54c64f20a9 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
f8527dd881 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Thomas Zimmermann
b7f2c0bd09 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
e1aac6a77b Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian 2015-01-15 18:22:08 +08:00
Carsten "Tomcat" Book
84c26f0be2 Merge mozilla-central to b2g-inbound 2015-03-17 11:59:24 +01:00
Ben Tian
cd540ae91a Bug 1137330 - Set opcode as 'PutFinal' instead of 'Put' for file header packet if file size is 0, r=shuang 2015-03-17 09:44:10 +08:00
Ehsan Akhgari
7ab85a504c Bug 579517 follow-up: Remove NSPR types that crept in 2015-03-16 21:15:10 -04:00
Thomas Zimmermann
78e20fc1de Bug 1142132: Move helper classes of OPP manager into manager's namespace, r=shuang
Keeping helper classes in Bluetooth's C++ namespace creates collisions
between symbols of different managers' helpers. Moving OPP helpers into
the namespace of |BluetoothOPPManager| fixes this problem for OPP.
2015-03-12 13:07:32 +01:00
Thomas Zimmermann
8feed1dc17 Bug 1142132: Move helper classes of A2DP manager into manager's namespace, r=shuang
Keeping helper classes in Bluetooth's C++ namespace creates collisions
between symbols of different managers' helpers. Moving A2DP helpers into
the namespace of |BluetoothA2dpManager| fixes this problem for A2DP.
2015-03-12 13:07:32 +01:00
Thomas Zimmermann
6871320c40 Bug 1142132: Move helper classes of HFP manager into manager's namespace, r=shuang
Keeping helper classes in Bluetooth's C++ namespace creates collisions
between symbols of different managers' helpers. Moving HFP helpers into
the namespace of |BluetoothHfpManager| fixes this problem for HFP.
2015-03-12 13:07:32 +01:00
Thomas Zimmermann
196e1368f7 Bug 1134821: Detect default Bluetooth backend, r=shuang
This patch adds code to select the default Bluetooth backend from a
list of supported ones, by detecting the backend's availability. Some
devices are missing bluetoothd support. With the patch, bluetoothd
can be the default backend, but unsupportive devices fall back to in-
Gecko Bluedroid.
2015-03-11 10:11:48 +01:00
Thomas Zimmermann
12be16a19b Bug 1137151: Marked destructors of ref-counted Bluetooth classes as protected, r=shuang 2015-03-10 13:44:02 +01:00
Bruce Sun
e5219feb81 Bug 1128386 - Handle |STATUS_FAIL| in |BondStateChangedNotification()|. r=tzimmermann 2015-03-09 17:04:02 +08:00