Jocelyn Liu
98e4ae24f9
Bug 1228546 - Implement peripheral mode support for GATT API. r=brsun, r=mrbkap
2016-01-15 09:50:54 +08:00
Thomas Zimmermann
d0d8d94217
Bug 1238991: Don't connect Bluetooth OPP manager before service channel is known, r=btian
...
The Bluetooth Opp manager requires the service channel of the remote
service to connect successfully. If the service channel isn't known,
it sends an SDP update request to get the value from the remote device.
The current code will still try to connect with an invalid service
channel. This patch fixes the issue by returning early after sending
the SDP update request.
2016-01-14 14:55:49 +01:00
Carsten "Tomcat" Book
199e3c64bc
merge mozilla-inbound to mozilla-central a=merge
2016-01-13 11:57:15 +01:00
Carsten "Tomcat" Book
0dc30d3fde
Merge mozilla-central to b2g-inbound
2016-01-12 11:58:12 +01:00
Carsten "Tomcat" Book
7a80930340
merge mozilla-inbound to mozilla-central a=merge
2016-01-12 11:54:38 +01:00
Ben Tian
263e5198ae
Bug 1234974 - Handle null GetOwner() in |BluetoothAdapter::IsBluetoothCertifiedApp|, r=shuang
2016-01-12 15:53:59 +08:00
Ben Tian
1e31a6f665
Bug 1229697 - Cancel bond when user inputs empty pincode for pairing, r=shuang
2016-01-11 16:47:20 +08:00
Nathan Froyd
a071e9dc50
Bug 1236561 - part 3 - make BluetoothConfigurationParameter.mValue a UniquePtr; r=btian
2015-12-06 10:41:42 -05:00
Nathan Froyd
2d4d1928bd
Bug 1236561 - part 2 - remove ObexHeaderSet::GetAuthChallenge; r=btian
...
We don't need to copy data in this case, and making this change enables
us to remove this use of nsAutoArrayPtr.
2015-12-06 10:28:04 -05:00
Nathan Froyd
253d597ddc
Bug 1236561 - part 1 - convert easy cases of nsAutoArrayPtr<T> to UniquePtr<T[]> in dom/bluetooth/; r=btian
2015-12-06 10:23:59 -05:00
Bruce Sun
3318553880
Bug 1236724: Check the maximum length of each array in IPC; f=jhector, r=btian
2016-01-06 11:30:39 +08:00
Thomas Zimmermann
5bf66e34a5
Bug 1223722: Transfer arrays of Bluetooth UUIDs in |BluetoothValue|, r=brsun
...
Bluetooth's UUID arrays are sorted and stripped from duplicates. This code is
now executed in the client process. This reduces the amount of privilegued
code and accounts the required computation time to the process that actually
uses it.
The change also makes the IPDL interface a bit less fragile, as the client
does not expect sorted arrays from the chrome process. It's a detail of the
client's implementation that manifested itself in the interface.
2016-01-05 12:01:33 +01:00
Thomas Zimmermann
9885a6701c
Bug 1223722: Transfer Bluetooth remote names in |BluetoothValue|, r=brsun
2016-01-05 12:01:33 +01:00
Thomas Zimmermann
c2d3554599
Bug 1223722: Transfer Bluetooth addresses in |BluetoothValue|, r=brsun
2016-01-05 12:01:33 +01:00
Thomas Zimmermann
40dc314c71
Bug 1232687: Start bluetoothd with HAL service interface, r=shuang
...
This patch replaces Bluetooth's internal implmentation for starting
bluetoothd with the portable one provided by the HAL module. Gonk-
specific workarounds are preserved within HAL.
2016-01-04 16:08:21 +01:00
Bruce Sun
69aa9f9449
Bug 1234127: Change |BluetoothAdapter.pairingReqs| as a nullable object; r=btian, r=mrbkap
2015-12-21 16:48:47 +08:00
Tom Tung
89675a310a
Bug 1232941 - Register Observer and listen to NS_XPCOM_SHUTDOWN_OBSERVER_ID for GATT, r=shuang
2015-12-17 09:36:43 +08:00
Thomas Zimmermann
531e7401db
Bug 1232670: Prepare Bluetooth PDU for sending after checking connection status, r=shuang
...
The PDU contains a pointer to the operation's result handler. If sending
fails, the result handler is supposed to handle an error. But the PDU
will go out of scope first and release the handler. The error delivery
then fails with a segmentation fault.
2015-12-16 13:27:47 +01:00
Ben Tian
cf48cb9bd5
Bug 1230066 - Add missing STATUS_AUTH_REJECTED into enum BluetoothStatus,r=tzimmermann
2015-12-03 18:25:03 +08:00
Louis_Chang
fa0a43911b
Bug 1217778 - Ensure sBluetoothGattService is not null before accessing GattInterface in GattManager. r=jocelyn
2015-12-02 09:31:45 +08:00
Wes Kocher
959a3f6d2b
Merge inbound to central, a=merge
2015-12-01 15:43:33 -08:00
Jocelyn Liu
88c315e865
Bug 1229290 - Pack/unpack UUIDs in a reverse order when adding characteristics and descriptors in GATT server API. r=brsun
2015-12-01 18:54:55 +08:00
Shawn Huang
4923642cb4
Bug 1186840 - [MAP] Implement MessageUpdate function, r=btian
2015-12-01 15:55:41 +08:00
Ben Tian
c8c4b08fc2
Bug 1228471 - use Endian.h to write filename and handleId into OBEX packet, r=shuang
2015-12-01 10:36:43 +08:00
Jocelyn Liu
1495fc3e83
Bug 1228519 - Fix RequestReadNotification for GATT Server API. r=brsun
2015-11-30 20:24:07 +08:00
Jocelyn Liu
1c09ff0cd7
Bug 1228521 - Fix PDU packing in |ServerSendResponseCmd| for GATT Server API. r=brsun
2015-11-30 20:23:04 +08:00
Jocelyn Liu
1f8ed062e5
Bug 1228909 - Fix PDU packing in |ClientSetAdvDataCmd| for GATT API. r=brsun
2015-11-30 20:21:52 +08:00
Thomas Zimmermann
01c00bf15e
Bug 1228946: Remove '#if 0' block from Bluetooth module, r=joliu
...
This is a cleanup patch for removing an '#if 0' that was landed in
the Bluetooth code.
2015-11-30 12:46:09 +01:00
Ben Tian
5f52a9b9c0
Bug 1228479 - Remove redundant blob handling in BluetoothMapRequestHandle::ReplyToFolderListing, r=shuang
2015-11-27 14:03:03 +08:00
Ben Tian
b78b7b6fcb
Bug 1227440 - Reject pin reply by cancelling bond to trigger BondStateChangedNotification, in order to inform gaia setting app, r=shuang
2015-11-26 16:31:42 +08:00
Nathan Froyd
02070ae8e0
Bug 1224240 - fix memory leak in Bluetooth*Manager::CompareHeaderTarget; r=btian
...
ObexHeaderSet::GetTarget copies the data associated with the
ObexHeaderId::Target id into a newly-allocated buffer. All callers of
this function, however, fail to free the buffer once they are done with it.
Instead of simply freeing the buffer in the caller, however, let's add
an API to ObexHeaderSet that gives direct access to the desired header.
Doing this means that we have direct access to the data--no copying
necessary--and we also make the caller slightly faster, since it no
longer has to verify that the appropriate header is there, followed by
re-searching for the header it already knows is there.
2015-11-04 10:42:01 -05:00
Carsten "Tomcat" Book
326566d235
Merge mozilla-central to b2g-inbound
2015-11-23 14:53:00 +01:00
Ben Tian
3514b33253
Bug 1225340 - Refine nullity check macros in BluetoothServiceBluedroid, r=tzimmermann
2015-11-23 10:09:47 +08:00
Carsten "Tomcat" Book
896a9b4914
Merge mozilla-central to b2g-inbound on a CLOSED TREE
2015-11-20 14:36:21 +01:00
Bruce Sun
1ca2122a7a
Bug 1225787: Fix wrong arguments of BluetoothGattInterface::AddCharacteristic; r=jocelyn
2015-11-19 14:26:58 +08:00
Bruce Sun
9469c9518c
Bug 1225785: Fix WriteRequested mismatch; r=jocelyn
2015-11-19 14:26:23 +08:00
Wes Kocher
9cc19ab9e5
Merge b2ginbound to central, a=merge
2015-11-19 13:36:16 -08:00
Nathan Froyd
05e4b4c8f0
Bug 1226063 - take advantage of UniquePtr in BluetoothMapSmsManager::SendMasObexData; r=btian
...
Now that UnixSocketRawData can assume ownership of UniquePtrs, we can
enhance SendMasObexData to accept UniquePtrs where possible.
2015-11-18 17:14:07 -05:00
Thomas Zimmermann
ae8dc1fe30
Bug 1223806: Convert Bluetooth to |BluetoothCoreInterface|, r=btian
2015-11-19 11:21:03 +01:00
Thomas Zimmermann
b3f1f6e3ac
Bug 1223806: Add |BluetoothDaemonCoreInterface|, r=btian
2015-11-19 11:21:03 +01:00
Thomas Zimmermann
15b8f0f0bc
Bug 1223806: Convert Bluetooth to |BluetoothCoreNotificationHandler|, r=btian
2015-11-19 11:21:03 +01:00
Thomas Zimmermann
52a1486a87
Bug 1223806: Convert Bluetooth to |BluetoothCoreResultHandler|, r=btian
2015-11-19 11:21:03 +01:00
Thomas Zimmermann
dc14d225b7
Bug 1223806: Add Bluetooth Core interface, notification and result handler, r=btian
2015-11-19 11:21:03 +01:00
Thomas Zimmermann
805aeba3c3
Bug 1223720: Support UUIDs and addresses for Bluetooth signal paths, r=joliu
...
This patch improves the Bluetooth signal API by adding methods for
dealing with UUIDs and addresses directly. Callers have been converted
where possible.
2015-11-17 11:25:34 +01:00
Bevis Tseng
e58bdbdf63
Bug 1110619 - Part 3: Bluetooth Changes. r=btian
2015-11-12 17:04:00 +08:00
Thomas Zimmermann
b69ddb4d65
Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothUuid|, r=joliu
2015-11-13 15:26:50 +01:00
Thomas Zimmermann
ba4fd66c7b
Bug 1220121: Convert IPDL of Bluetooth GATT API to |BluetoothAddress|, r=joliu
2015-11-13 15:26:50 +01:00
Thomas Zimmermann
96abadbb5f
Bug 1220121: Convert IPDL of Bluetooth AVRCP API to |ControlPlayStatus|, r=shuang
2015-11-13 15:26:50 +01:00
Thomas Zimmermann
abeda5014d
Bug 1220121: Convert IPDL of Bluetooth OPP API to |BluetoothAddress|, r=btian
2015-11-13 15:26:50 +01:00
Thomas Zimmermann
6a3186e68b
Bug 1220121: Convert IPDL of Bluetooth Core API to |BluetoothPinCode|, r=brsun
2015-11-13 15:26:50 +01:00