Commit Graph

558 Commits

Author SHA1 Message Date
Shawn Huang
55be2eae10 Bug 1186836 - Implement SetMessageStatus function, r=btian 2015-09-11 22:45:18 +08:00
Shawn Huang
07b0126629 Bug 1166679 - Implement GetMessage function, r=btian 2015-09-11 21:21:19 +08:00
Ben Tian
355b56d87b Bug 1203819 - Fix loop condition in BluetoothPbapManager::PackPropertiesMask, r=shuang 2015-09-11 11:14:26 +08:00
Shawn Huang
42dbe610fe Bug 1166675 - Implement GetMessagesListing function, r=btian 2015-09-11 02:08:41 +08:00
Thomas Zimmermann
7e6c6ef201 Bug 1202386: Output clear Bluetooth IPC errors, r=shuang
This patch improves error logging in the Bluetooth IPC code.
2015-09-10 11:32:26 +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
369854d84e Bug 1202704: Move Bluetooth's |UnpackPDUInitOp| to generic HAL IPC code, r=shuang 2015-09-09 13:40:26 +02:00
Thomas Zimmermann
5621b29006 Bug 1202704: Move Bluetooth IPC unpack functions to generic HAL IPC, r=shuang 2015-09-09 13:40:26 +02:00
Thomas Zimmermann
551c2206d6 Bug 1202704: Move Bluetooth IPC pack functions to generic HAL IPC, r=shuang 2015-09-09 13:40:26 +02:00
Thomas Zimmermann
8dc1fa85d9 Bug 1141616: Lookup service channel in Bluedroid's OPP manager, r=btian
Bluedroid's |BluetoothOppManager| now retrieves the OBEX service's
channel from the remote device. Previously this was done by the
Bluedroid driver internally, but having this functionality in the
manager itself will allow for future code sharing with the BlueZ
backend.
2015-09-09 13:20:57 +02: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
Ben Tian
c29bbe56c0 Bug 1200124 - Pass order and search key with uint32_t instead of nsString to avoid string mismatch error, r=shuang 2015-09-07 10:53:40 +08:00
Ben Tian
6a1d0e9828 Bug 1200124 - Correct PBAP order mapping, r=shuang, r=mrbkap 2015-09-09 10:17:58 +08:00
Shawn Huang
691ea61dca Bug 1166645 - Implement MAP profile manager connection related function, r=btian 2015-09-08 11:39: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
Ben Tian
8137ba3e28 Bug 1199548 - Do not append vCard Body payload in PBAP replies when |MaxListCount| is zero, r=shuang 2015-09-04 15:47:22 +08:00
Ben Tian
6f22aefd8f Bug 1199107 - Replace BT_WARNING with BT_LOGR in PBAP manager, r=shuang 2015-09-04 12:04:38 +08:00
Ben Tian
5db4031b4c Bug 1199107 - Access PBAP vCard input stream directly instead of passing it as input parameter, r=shuang 2015-09-04 12:04:37 +08:00
Ben Tian
e610a0254c Bug 1189315 - Add daemon interface for HFP WBS callback. r=tzimmermann
--HG--
extra : rebase_source : b47a3bc53aacedec82859d44a9fcedfd069e5bd4
2015-07-31 15:55:28 +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
df94c725aa Bug 1199110: Use mPlayStatus to determine track selection, r=shuang
This change removes AVRCP's dependency on the A2DP state.
2015-08-31 17:27:47 +02:00
Ben Tian
f9389ddddf Bug 1193379 - Create dom/bluetooth/common/webapi folder. r=joliu
--HG--
rename : dom/bluetooth/common/BluetoothAdapter.cpp => dom/bluetooth/common/webapi/BluetoothAdapter.cpp
rename : dom/bluetooth/common/BluetoothAdapter.h => dom/bluetooth/common/webapi/BluetoothAdapter.h
rename : dom/bluetooth/common/BluetoothClassOfDevice.cpp => dom/bluetooth/common/webapi/BluetoothClassOfDevice.cpp
rename : dom/bluetooth/common/BluetoothClassOfDevice.h => dom/bluetooth/common/webapi/BluetoothClassOfDevice.h
rename : dom/bluetooth/common/BluetoothDevice.cpp => dom/bluetooth/common/webapi/BluetoothDevice.cpp
rename : dom/bluetooth/common/BluetoothDevice.h => dom/bluetooth/common/webapi/BluetoothDevice.h
rename : dom/bluetooth/common/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.cpp
rename : dom/bluetooth/common/BluetoothDiscoveryHandle.h => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.h
rename : dom/bluetooth/common/BluetoothGatt.cpp => dom/bluetooth/common/webapi/BluetoothGatt.cpp
rename : dom/bluetooth/common/BluetoothGatt.h => dom/bluetooth/common/webapi/BluetoothGatt.h
rename : dom/bluetooth/common/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.cpp
rename : dom/bluetooth/common/BluetoothGattCharacteristic.h => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.h
rename : dom/bluetooth/common/BluetoothGattDescriptor.cpp => dom/bluetooth/common/webapi/BluetoothGattDescriptor.cpp
rename : dom/bluetooth/common/BluetoothGattDescriptor.h => dom/bluetooth/common/webapi/BluetoothGattDescriptor.h
rename : dom/bluetooth/common/BluetoothGattServer.cpp => dom/bluetooth/common/webapi/BluetoothGattServer.cpp
rename : dom/bluetooth/common/BluetoothGattServer.h => dom/bluetooth/common/webapi/BluetoothGattServer.h
rename : dom/bluetooth/common/BluetoothGattService.cpp => dom/bluetooth/common/webapi/BluetoothGattService.cpp
rename : dom/bluetooth/common/BluetoothGattService.h => dom/bluetooth/common/webapi/BluetoothGattService.h
rename : dom/bluetooth/common/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.cpp
rename : dom/bluetooth/common/BluetoothLeDeviceEvent.h => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.h
rename : dom/bluetooth/common/BluetoothManager.cpp => dom/bluetooth/common/webapi/BluetoothManager.cpp
rename : dom/bluetooth/common/BluetoothManager.h => dom/bluetooth/common/webapi/BluetoothManager.h
rename : dom/bluetooth/common/BluetoothPairingHandle.cpp => dom/bluetooth/common/webapi/BluetoothPairingHandle.cpp
rename : dom/bluetooth/common/BluetoothPairingHandle.h => dom/bluetooth/common/webapi/BluetoothPairingHandle.h
rename : dom/bluetooth/common/BluetoothPairingListener.cpp => dom/bluetooth/common/webapi/BluetoothPairingListener.cpp
rename : dom/bluetooth/common/BluetoothPairingListener.h => dom/bluetooth/common/webapi/BluetoothPairingListener.h
rename : dom/bluetooth/common/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.cpp
rename : dom/bluetooth/common/BluetoothPbapRequestHandle.h => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.h
2015-08-21 15:15:41 +08:00
Thomas Zimmermann
8b05a4caa1 Bug 1197815: Add missing |BluetoothHfpManager::IsNrecEnabled|, r=shuang 2015-08-25 17:06:51 +02:00
Nigel Babu
b5f476b707 Backed out changeset adb6cdbdd2ed for emulator build bustage (Bug 1197815) 2015-08-25 17:59:18 +05:30
Thomas Zimmermann
72056dd1ea Bug 1197815: Add missing |BluetoothHfpManager::IsNrecEnabled|, r=shuang 2015-08-25 13:18:00 +02:00
Thomas Zimmermann
10a11a892a Bug 1197877: Remove |INIT_AT| macro from Bluetooth, r=btian
|INIT_AT| works around missing compiler features for gcc before
version 4.7. All B2G targets have been lifted to gcc 4.8, so the
workaround is not required any longer.
2015-08-25 10:00:56 +02:00
Thomas Zimmermann
4d09b89836 Bug 1197877: Remove |CONVERT| macro from Bluetooth, r=btian
The macro |CONVERT| implements a workaround for GCC compilers
before version 4.7. All targets of B2G have been lifted to GCC
4.8, so |CONVERT| is not required any longer.
2015-08-25 10:00:56 +02:00
Thomas Zimmermann
0a134355e7 Bug 1195729: Fix ref-counting of Bluetooth result handlers for failed send operations, r=brsun
Usually references to Bluetooth result handlers are kept until the
command's response has been received and the result handler ran. If
sending the command fails, the extra reference has to be dropped.
With this patch, Gecko will correctly dereference Bluetooth result
handlers when send operations fail.

Thanks to Bruce Sun for finding this bug.
2015-08-24 15:21:38 +02:00
Jamin Liu
400ba4913c CLOSED TREE Bug 1180556 - Pack PBAP replies to OBEX response message and reply to remote device. r=btian
Conflicts:

	dom/bluetooth/bluedroid/BluetoothPbapManager.cpp
2015-08-24 10:30:07 +08: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
Jamin Liu
c20b04c87a CLOSED TREE Bug 1180554 - Dispatch events to PBAP event handlers when the PBAP requests comes. r=btian, r=mrbkap 2015-08-24 10:29:56 +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
2682f19ec9 Bug 1180556 - Pack PBAP replies to OBEX response message and reply to remote device. r=btian 2015-08-21 09:52:04 +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
Jamin Liu
704ef5eefd Bug 1180554 - Dispatch events to PBAP event handlers when the PBAP requests comes. r=btian, r=mrbkap 2015-08-21 09:51:41 +08:00
Jocelyn Liu
ed3e351a68 Bug 1181512 - Use a single GATT interface, result handler, and notification handler for both GATT client and server operations in bluetooth daemon backend as bluez ipc protocol. r=tzimmermann 2015-08-19 14:28:06 -07: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
93c02de5fb Bug 1180556 - Pack PBAP replies to OBEX response message and reply to remote device. r=btian 2015-08-19 11:41:24 +08: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
Jamin Liu
fc7f5eef9a Bug 1180554 - Dispatch events to PBAP event handlers when the PBAP requests comes. r=btian, r=mrbkap 2015-08-19 11:40:36 +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
9c177c52d4 Bug 1055434 - Do not inform gaia of current blob's sending failure before assigning it, r=shuang 2015-08-18 17:31:41 +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
Will Wang
80bbaca7f1 Bug 825149 - Add NREC feature bit in bluetooth stack. r=shuang 2015-08-07 03:15:00 -04:00