Commit Graph

1241 Commits

Author SHA1 Message Date
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
Ben Tian
33c1f8c657 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
eb1ab67954 Bug 579517 follow-up: Remove NSPR types that crept in 2015-03-16 21:15:10 -04:00
Thomas Zimmermann
a5ce379baf 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
e0b98d63a1 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
98f56202e9 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
30b68c77dd 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
a6babd90cb Bug 1137151: Marked destructors of ref-counted Bluetooth classes as protected, r=shuang 2015-03-10 13:44:02 +01:00
Bruce Sun
90fbc72a0c Bug 1128386 - Handle |STATUS_FAIL| in |BondStateChangedNotification()|. r=tzimmermann 2015-03-09 17:04:02 +08:00
Jamin Liu
ab525b07e1 Bug 1128441 - [BlueDroid] Set Bluetooth discoverable timeout properly in 'Convert' function of Bluetooth interface. r=shuang 2015-03-05 13:32:23 +08:00
Thomas Zimmermann
49dd1dfb23 Bug 1132229: Survive crashes of bluetoothd, r=shuang
With this patch, Gecko will handle crashes of bluetoothd by clearing its
internal state. Switching Bluetooth off and on restarts the daemon and
the Bluetooth sub-system.
2015-02-26 09:52:45 +01:00
Thomas Zimmermann
a47be502a6 Bug 1132229: Handle I/O errors in Bluetooth's daemon backend, r=shuang
This patch adds error handling to all interface methods of Bluedroid's
daemon backend. If an error occures while sending a command to the daemon,
the methods dispatch an error.
2015-02-26 09:52:45 +01:00
Thomas Zimmermann
9a28747b22 Bug 1132229: Return in Dispatch method if Bluetooth runnable is nullptr, r=shuang
With this patch, the dispatch method of Bluetooth runnables simply returns
if the supplied runnable is nullptr. This makes is easy to handle cases
where the caller of a Bluetooth interface method is not interested in the
result.
2015-02-26 09:52:45 +01:00
Will Wang
e34dec57ec Bug 1118177 - Release file resources if users unexpectedly remove SD card. r=btian 2015-02-13 02:59:00 -05:00
Thomas Zimmermann
160a7b49f7 Bug 1132388: Use Bludroid until update problem has been solved, r=shuang
It seems impossible right now to update Bluetooths daemon. This leaves
dogfooders without bluetooth support. This patch restores the old back-
end code for Bluetooth until bug 1130288 has been solved.
2015-02-13 09:35:11 +01:00
Bruce Sun
1130cb6f7f Bug 1129846 - Handle all used type in PDU explicitly. r=tzimmermann 2015-02-05 15:35:57 +08:00
Bruce Sun
55be18cd5c Bug 1129257 - Use |int32_t| for |Channel| in Bluetooth Socket HAL. r=tzimmermann 2015-02-04 17:21:50 +08:00
Thomas Zimmermann
7c37534c96 Bug 1123077: Protect PROPERTY_REMOTE_VERSION_INFO by ANDROID_VERSION, r=shuang 2015-02-03 12:26:56 +01:00