Ben Tian
ea0745da15
Bug 1166587 - Check OBEX packet length before accessing it, r=shuang
2015-05-21 14:11:20 +08:00
Ben Hsu
0dcea7919b
Bug 1147736 - Part 4: Deprecate NotifyError(Bluetooth). r=btian
...
--HG--
extra : rebase_source : cfc91c6c0941584f9fe9ff707ec85dda7a78add2
extra : source : 80ad8826d772983bb479ace951fa2395f6a26e80
2015-05-08 00:21:00 -04:00
Wes Kocher
ac1c135457
Merge m-c to inbound, a=merge
2015-05-20 18:30:33 -07:00
Bobby Holley
3b6ba803a8
Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking
...
We also provide an opt-out for the original behavior, and use it in various
consumers that look like they need fixing up. Most of the usage here is in
code with persistence considerations, where we may need some sort of migration
path.
2015-05-20 17:11:49 -07:00
Cameron McCormack
c7b07bee01
Bug 1166575 - Silence uninitialized variable error in BluetoothHALInterface.cpp when building a debug B2G build. r=tzimmermann
2015-05-21 10:01:59 +10:00
Carsten "Tomcat" Book
12f69af823
merge mozilla-inbound to mozilla-central a=merge
2015-05-20 15:52:31 +02:00
Thomas Zimmermann
840f154d6b
Bug 1164425: Cleanup interfaces of |ListenSocket|, r=kmachulis
...
This patch removes |ListenSocket::GetSocketAddr|, which is unused
and not thread-safe. The |Listen| methods now return error codes.
2015-05-20 10:50:43 +02:00
Thomas Zimmermann
1237cad18c
Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis
2015-05-20 10:50:43 +02:00
Carsten "Tomcat" Book
1aa07d706a
Backed out changeset 1e93024c9fec (bug 1164425) for bustage
2015-05-20 10:31:55 +02:00
Carsten "Tomcat" Book
1a15bd1430
Backed out changeset 17bd0777339a (bug 1164425)
2015-05-20 10:30:55 +02:00
Thomas Zimmermann
6a46c5c7cf
Bug 1164425: Cleanup interfaces of |ListenSocket|, r=kmachulis
...
This patch removes |ListenSocket::GetSocketAddr|, which is unused
and not thread-safe. The |Listen| methods now return error codes.
2015-05-20 09:54:27 +02:00
Thomas Zimmermann
533d048a4b
Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis
2015-05-20 09:54:27 +02:00
Ben Tian
478901b821
Bug 1162902 - Implement PBAP SetPhoneBook function, r=shuang
2015-05-20 14:40:01 +08:00
Jamin Liu
cf0fd0d19c
Bug 1166215 - Cast 'BluetoothTypeOfDevice' to uint32_t before the BT signal is distributed to BluetoothAdapter. r=joliu
2015-05-20 14:29:25 +08:00
Ben Tian
8aa4af6efd
Bug 1166176 - [cleanup] Simplify volume related code in OPP manager, r=shuang
2015-05-19 17:09:56 +08:00
Ben Tian
2248c8f63a
Bug 1166180 - [cleanup] Remove function |EnsureBluetoothHalLoad| in BluetoothServiceBluedroid, r=shuang
2015-05-19 17:02:01 +08:00
Thomas Zimmermann
a4face3b55
Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis
2015-05-19 13:28:46 +02:00
Thomas Zimmermann
cd0d102a9b
Bug 1161020: Use new socket-connector interface in socket classes, r=kmachulis
...
This patch converts the socket I/O classes to use the new interface
of the socket-connector classes. All sockets are now created and set
up by a socket connector.
2015-05-19 13:28:46 +02:00
Thomas Zimmermann
7066f2b6f0
Bug 1161020: Implement new socket-connector interface for Bluetooth sockets, r=btian
2015-05-19 13:28:46 +02:00
Thomas Zimmermann
34117f6140
Bug 1161020: Implement new socket-connector interface for Bluetooth daemon socket, r=shuang
...
This patch moves |BluetoothDaemonSocketConnector| into its own file,
renames it to |BluetoothDaemonConnector| and implements the new socket-
connector interface.
2015-05-19 13:28:46 +02:00
Thomas Zimmermann
9ef16cd98a
Bug 1164498: Remove |DispatchBluetoothReply|, r=btian
...
This patch removes |DispatchBluetoothReply|. The only remaining user
is |BluetoothDBusService|, but it comes with its own implemenation of
the function.
2015-05-19 12:28:38 +02:00
Thomas Zimmermann
9001e89a61
Bug 1164498: Remove |DispatchBluetoothReply| from |BluetoothHfpManger|, r=btian
...
This patch replaces |DispatchBluetoothReply| in |BluetoothHfpManager|
with corresponding calls to |DispatchReplySuccess| or |DispatchReplyError|.
2015-05-19 12:28:38 +02:00
Thomas Zimmermann
0408a58958
Bug 1164498: Remove |DispatchBluetoothReply| from |BluetoothProfileController|, r=btian
...
This patch replaces |DispatchBluetoothReply| in |BluetoothProfileController|
with corresponding calls to |DispatchReplySuccess| or |DispatchReplyError|.
2015-05-19 12:28:38 +02:00
Thomas Zimmermann
c9ea3365c5
Bug 1164498: Remove |DispatchBluetoothReply| from |BluetoothServiceBluedroid|, r=btian
...
This patch replaces |DispatchBluetoothReply| in |BluetoothServiceBluedroid|
by corresponding calls to |DispatchReplySuccess| or |DispatchReplyError|.
2015-05-19 12:28:38 +02:00
Thomas Zimmermann
62abc1dded
Bug 1164498: Cleanup Bluetooth utility functions for dispatching replies, r=btian
...
This patch adds support for |DispatchReplySuccess| and |DispatchReplyError|
to Bluetooth v1.
2015-05-19 12:28:38 +02:00
Ryan VanderMeulen
7833fc8055
Merge inbound to m-c. a=merge
2015-05-18 16:32:50 -04:00
Andrea Marchesini
3aa189b5ff
Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan
...
--HG--
rename : dom/base/nsIDOMFile.idl => dom/base/nsIDOMBlob.idl
2015-05-18 14:52:26 +01:00
Andrea Marchesini
338c67e420
Bug 1163388 - patch 1 - make nsIDOMFile an empty interface, r=ehsan
2015-05-18 14:51:54 +01:00
Jamin Liu
3242c56050
Bug 1098228 - Set Bluetooth discoverable to default value when BT state is BT_STATE_OFF. r=shuang
2015-05-18 09:27:23 +08:00
Neil Rashbrook
cf42e317ab
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-16 09:07:10 +01:00
Ben Tian
1d0552ae6a
Bug 1164314 - Fire devicefound in RemoteDevicePropertiesNotification only during discovery, r=shuang
2015-05-15 14:14:02 +08:00
Will Wang
e761135e3c
Bug 1161888
- remove first CKPD flag and do not set |mDialingRequestProcessed| flag to avoid the redundant HFP_AT_RESPONSE_OK. r=shuang
2015-05-15 14:35:46 +08:00
Wes Kocher
5b9076b1f0
Merge b2ginbound to m-c a=merge
2015-05-14 15:37:44 -07:00
Naoki Hirata
04205ef8bb
Backed out 4 changesets (bug 1147736)
...
Backed out changeset 80ad8826d772 (bug 1147736)
Backed out changeset 1f69ddad07bb (bug 1147736)
Backed out changeset 34aee78127f5 (bug 1147736)
Backed out changeset 8a8c735fb984 (bug 1147736)
2015-05-13 14:15:57 -07:00
Jamin Liu
dc14156d4f
Bug 1163969 - Reject the stopLeScan request only if there's no ongoing LE Scan using the given handle. r=joliu
2015-05-13 15:58:22 +08:00
Bruce Sun
3c8da08a08
Bug 1163912: Set |Type| property of BluetoothDevice a initial value during LeScan; f=elin, r=jocelyn
2015-05-13 15:50:21 +08:00
Ben Tian
23b0ee66cf
Bug 1159179 - Patch 3/3: [PBAP] Implement PBAP manger, r=shuang
2015-05-13 10:52:58 +08:00
Ben Tian
d61dda2930
Bug 1159179 - Patch 2/3: [PBAP] Revise profile disconnection when BT stops, r=shuang
2015-05-13 16:29:50 +08:00
Carsten "Tomcat" Book
90096e4744
merge mozilla-central to mozilla-inbound
...
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 17:07:10 +02:00
Andrea Marchesini
f4538bb921
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
...
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Andrea Marchesini
368a198972
Bug 1159401 - Split Blob and File classes, r=bz
2015-05-12 13:09:51 +01:00
Jocelyn Liu
5fa86d6598
Bug 1162910 - Make bluetooth daemon as the default backend of BT APIv2. r=tzimmermann
2015-05-11 03:44:00 -04:00
Bruce Sun
b6bba13293
Bug 1162893 - Fix BluetoothGattWriteType serialization problem. f=elin, r=jocelyn
2015-05-11 16:43:53 +08:00
Ben Tian
a482aeaa6d
Bug 1159179 - Patch 1/3: [PBAP] Add OBEX related functions, r=shuang
2015-05-07 17:07:58 +08:00
Ben Hsu
9bdfd61f64
Bug 1147736 - Part 4: Deprecate NotifyError(Bluetooth). r=btian
2015-05-08 00:21:00 -04:00
Shawn Huang
76d664e594
Bug 1160127 - Send HFP/A2DP profile disconnection notification, r=btian
2015-05-11 11:47:31 +08:00
Ben Tian
e11afd073e
Bug 1156503 - Update device name from |RemoteDevicePropertiesNotification| during discovery, r=shuang
2015-04-30 16:48:39 +08:00
Thomas Zimmermann
63a3cb989e
Bug 1162585: Set socket flags after socket has been created, r=kmachulis
...
This patch moves the code for setting socket flags in the socket I/O
classes to the few locations were sockets are created. Any other socket
setup is redundant and has been removed.
2015-05-08 09:45:42 +02:00
Thomas Zimmermann
e5ff47d14f
Bug 1162524: Move |accept| out of |UnixSocketWatcher|, r=kmachulis
...
Calls to |accept| are now handled by the corresponding socket I/O
class. This makes the code more flexible. All callers have been
adapted.
2015-05-08 09:43:01 +02:00
Carsten "Tomcat" Book
a50ac5128e
Backed out changeset 0098029a7bdd (bug 1147736)
2015-05-06 17:02:31 +02:00
Bruce Sun
3ce88763fd
Bug 1161939 - Correct bitwise checking on GATT characteristic write properties. r=jocelyn
2015-05-06 18:15:30 +08:00
Ben Hsu
5966168df5
Bug 1147736 - Part 4: Deprecate NotifyError(Bluetooth). r=btian
2015-04-27 23:31:00 -04:00
Thomas Zimmermann
362da7534b
Bug 1161003
: Don't send PDU when connection to Bluetooth daemon is closed, r=shuang
...
During restarts of the Bluetooth daemon, it can occur that Gecko tries
to send without having a connection to bluetoothd opened. This patch adds
a check to prevent this.
2015-05-06 10:00:02 +02:00
Thomas Zimmermann
48eb012ef4
Bug 1159267: Share BlueZ's HFP manager between Bluetooth v1 and v2, r=btian
...
Both implementations mostly differ in coding style and correctness
fixes. The last remaining differences are related to different
interfaces in Bluetooth v1 and v2.
2015-05-06 09:58:04 +02:00
Thomas Zimmermann
a9b8c25faa
Bug 1159267: Share Bluedroid's A2DP manager between Bluetooth v1 and v2, r=btian
...
Bluedroid's A2DP manager is the same for Bluetooth v1 and v2, except
fixes for bug 1062697 and bug 1148311 in v1. This patch merges both
variants. The last remaining difference is a call to |DistributeSignal|,
which differs between both implementations.
2015-05-06 09:58:04 +02:00
Thomas Zimmermann
80366e6970
Bug 1159267: Share Bluedroid's HFP manager between Bluetooth v1 and v2, r=btian
...
The implementation of the Bluedroid HFP manager in Bluetoth v1 and v2
differs by a number of interface changes. This patch merges both variants
into a single one, were possible.
2015-05-06 09:58:04 +02:00
Thomas Zimmermann
e608040aea
Bug 1159267: Share Bluedroid's OPP manager between Bluetooth v1 and v2, r=btian
...
Bluedroid's OPP manager is the same for Bluetooth v1 and v2; except
for bug 1118177, which is fixed in v1. So with this patch, the v1
implementation is used for both variants.
2015-05-06 09:58:04 +02:00
Wes Kocher
71ab142db5
Backed out changeset ffad198d409b (bug 1161003
) for b2g windows build bustage
2015-05-05 13:15:42 -07:00
Thomas Zimmermann
4f5dc0f157
Bug 1161003
: Don't send PDU when connection to Bluetooth daemon is closed, r=shuang
...
During restarts of the Bluetooth daemon, it can occur that Gecko tries
to send without having a connection to bluetoothd opened. This patch adds
a check to prevent this.
2015-05-05 17:02:43 +02:00
Carsten "Tomcat" Book
ba5c4e1c0c
Merge mozilla-central to b2g-inbound
2015-05-04 15:26:45 +02:00
Jamin Liu
da0f8172bb
Bug 1063444 - Implement LE scan related methods and LE device event. r=joliu, r=mrbkap
2015-05-04 18:59:02 +08:00
Andrew McCreight
023db96fd8
Bug 1152551, part 3 - Fix more mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Jocelyn Liu
79a1ee1c61
Bug 1159685 - Fix BluetoothSspVariant argument passing for SspRequestNotification. r=shuang
2015-04-30 01:04:00 -04:00
Jocelyn Liu
08a3eb9653
Bug 1159650 - Remove incorrect value assertions in BluetoothGattCharacteristic and BluetoothGattDescriptor. r=btian
2015-04-29 19:53:00 -04:00
Bruce Sun
54c1083625
Bug 1159552 - Clear local arrays while discovering. r=jocelyn
2015-04-30 14:41:08 +08:00
Shawn Huang
c982fdb5b1
Bug 1143925 - Restart bluetoothd daemon automatically for API V2. r=tzimmermann
2015-04-30 05:46:00 -04:00
Shawn Huang
548f72bad6
Bug 1143925 - Avoid crash for HFP/A2DP manager during restart daemon. r=tzimmermann
2015-04-30 05:14:00 -04:00
Shawn Huang
2f5a4a338c
Bug 1143925 - Restart bluetoothd daemon automatically for V1 API. r=tzimmermann
2015-04-30 05:13:00 -04:00
Thomas Zimmermann
914d030f16
Bug 1159709: Cleanup inherited methods of BlueZ's |BluetoothSocket|, r=kmachulis
...
This patch cleans up the inherited methods of BlueZ's |BluetooothSocket|.
Methods of the same base class are grouped within the file, and each
method is labeled with 'override'.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann
36282f45ee
Bug 1159709: Cleanup inherited methods of Bluedroid's |BluetoothSocket|, r=kmachulis
...
This patch cleans up the inherited methods of Bluedroid's
|BluetooothSocket|. Methods of the same base class are grouped
within the file, and each method is labeled with 'override'.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann
92706b5790
Bug 1159709: Inherit |BluetoothDaemonConnection| from |DataSocket|, r=kmachulis
...
|BluetoothDaemonConnection| sends and receives data. With this patch
it inherits from |DataSocket|, which provides the respective abstract
interfaces.
2015-04-30 12:55:37 +02:00
Thomas Zimmermann
79b0cc601a
Bug 1158818: Only store Bluetooth result runnable after command has been sent successfully, r=shuang
...
With the current code, the Bluetooth result runnable is saved for
receiving before a command has been sent successfully. If sending
fails afterwards, the saved result runnable will still sit in the
result queue, and interfere with later, successful commands.
With this patch, the result runnable is saved only if the sending
was successful.
2015-04-30 11:29:25 +02:00
Thomas Zimmermann
625ab90911
Bug 1159209: Remove template parameters from |DataSocketIO|, r=kmachulis
...
This patch removes the template parameters from |DataSocketIO| and
moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann
9cdb8ad654
Bug 1159209: Remove template parameters from |SocketIOShutdownTask|, r=kmachulis
...
This patch removes the template parameters from |SocketIOShutdownTask|
and moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann
f1e1ede770
Bug 1159209: Remove template parameters from |SocketIORequestClosingRunnable|, r=kmachulis
...
This patch removes the template parameters from
|SocketIORequestClosingRunnable| and moves its methods into
the C++ source file. All users have been adapted.
2015-04-29 11:19:28 +02:00
Thomas Zimmermann
6999dd655b
Bug 1159209: Remove template parameters from |SocketIOEventRunnable|, r=kmachulis
...
This patch removes the template parameters from |SocketIOEventRunnable|
and moves its methods into the C++ source file. All users have been
adapted.
2015-04-29 11:19:28 +02:00
Ben Tian
5c10976f50
Bug 1158081 - Patch (2/2): Simplify |BluetoothOppManager::SendObexData| function, r=tzimmermann
2015-04-28 11:12:35 +08:00
Ben Tian
246bf336ec
Bug 1158081 - Patch (1/2): Define macro to declare SocketObserver functions, r=tzimmermann
2015-04-28 11:12:13 +08:00
Jocelyn Liu
b31782a970
Bug 1138267 - Unregister bluetooth signal handlers in unlink. r=shuang, r=bz
...
Without unregistering the bluetooth signal handler when a object unlinked, we
might end up exposing a deleted object to JS or accessing deleted objects while
receiving signals from parent process.
This patch unregister signal handlers in unlink for each Bluetooth* classes
which registers signal handlers. And also checks if the signal handler is not
unregistered before handling signals in content process.
2015-04-27 22:46:00 -04:00
Thomas Zimmermann
a8a6ff751e
Bug 1158876: Move |DataSocket::ReceiveSocketData| into sub classes, r=kmachulis
...
|ReceiveSocketData| receives socket data on the main thread. This
is a specific detail of the current socket classes, which should not
be required by future implementations.
This patch moves the receive method and the corresponding runnable
into socket classes.
2015-04-28 10:18:13 +02:00
Thomas Zimmermann
10488d5115
Bug 1158876: Move management of socket I/O buffers into socket I/O classes, r=kmachulis
...
This patch moves management of received socket I/O buffers from
|DataSocketIO| into the I/O classes. Each I/O class is responsible
for (de-)allocating buffers, and consuming them once data has been
received.
All current I/O classes forward their buffers to the main thread,
but other operations are possible. For example, received data can
be parsed and processed directly in the I/O thread.
2015-04-28 10:18:13 +02:00
Thomas Zimmermann
ed4b4e63be
Bug 1158876: Rename |SocketConsumerBase| to |DataSocket|, r=kmachulis
...
This patch renames |SocketConsumerBase| to |DataSocket|, and for the
I/O classes |SocketConsumerIO| to |DataSocketIO|. |DataSocketIO| also
contains send and receive functionality from |SocketBaseIO|.
|DataSocket| is a virtual base class that represents a socket that
transfers data, without a particular constraints to what the data
represents. |DataSocketIO| is the corresponding helper class on the
I/O thread.
2015-04-28 10:18:12 +02:00
Carsten "Tomcat" Book
643b4d8cd2
Backed out 8 changesets (bug 1161020) for b2g ics emulator debug mochitest memory leaks on a CLOSED TREE
...
Backed out changeset 976e19eac8b5 (bug 1161020)
Backed out changeset 4f782be31f87 (bug 1161020)
Backed out changeset 384de663084c (bug 1161020)
Backed out changeset a8f42d85ce3f (bug 1161020)
Backed out changeset ac23206e80bd (bug 1161020)
Backed out changeset 34a20b05af6c (bug 1161020)
Backed out changeset 13753f9043f7 (bug 1161020)
Backed out changeset f90b8d3d6b70 (bug 1161020)
2015-05-18 15:01:27 +02:00
Jocelyn Liu
55f0cac7c7
Bug 1165835: Fix bluetooth2 build break resulting from Bug 1164292. r=btian
2015-05-18 18:09:11 +08:00
Thomas Zimmermann
2b68c73b1e
Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis
2015-05-18 11:28:30 +02:00
Thomas Zimmermann
553d9c5e14
Bug 1161020: Use new socket-connector interface in socket classes, r=kmachulis
...
This patch converts the socket I/O classes to use the new interface
of the socket-connector classes. All sockets are now created and set
up by a socket connector.
2015-05-18 11:28:30 +02:00
Thomas Zimmermann
236405a63c
Bug 1161020: Implement new socket-connector interface for Bluetooth sockets, r=btian
2015-05-18 11:28:30 +02:00
Thomas Zimmermann
5b6ee4b668
Bug 1161020: Implement new socket-connector interface for Bluetooth daemon socket, r=shuang
...
This patch moves |BluetoothDaemonSocketConnector| into its own file,
renames it to |BluetoothDaemonConnector| and implements the new socket-
connector interface.
2015-05-18 11:28:30 +02:00
Wes Kocher
22483cbf35
Merge m-c to inbound, a=merge
2015-05-19 16:44:10 -07:00
Andrea Marchesini
06f30fe4fc
Bug 1166231 - patch 2 - BluetoothOppManager blob uses fixed CLOSED TREE
2015-05-19 17:08:47 +01:00
Andrea Marchesini
61b9bd0496
Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan
2015-05-19 15:36:37 +01:00
Szu-Yu Chen [:aknow]
4489badf21
Bug 1155063
- Part 3: CallStateChanged accepts an array (bluetooth dom). r=btian
...
--HG--
extra : rebase_source : 056f3a9c609a19e0cbdfa713f605f617046fdc1f
2015-04-24 18:10:37 +08:00
Bruce Sun
bd4023d862
Bug 1153159 - Pass |promise| as a parameter in |BT_ENSURE_TRUE_RESOLVE| and |BT_ENSURE_TRUE_REJECT| macros. r=btian
2015-04-23 11:07:59 +08:00
Thomas Zimmermann
417a91f162
Bug 1156352: Remove |UnixSocketRawData| from socket I/O interfaces, r=kmachulis
2015-04-23 13:48:48 +02:00
Thomas Zimmermann
bbd18cd078
Bug 1156352: Remove |UnixSocketRawData| from Bluetooth interfaces, r=btian
2015-04-23 13:48:47 +02:00
Thomas Zimmermann
cacc3d7f0c
Bug 1156716: Build GATT backend as part of Bluetooth v1, r=joliu
...
This patch enables building the GATT backend code in Bluetooth v1. V1 still
doesn't support GATT, only some of the code gets build.
2015-04-23 10:43:51 +02:00
Thomas Zimmermann
d611c792d6
Bug 1156716: Build GATT HAL helpers in Bluetooth v1, r=joliu
2015-04-23 10:43:51 +02:00
Wes Kocher
a79764cf6b
Merge inbound to m-c a=merge CLOSED TREE
2015-04-22 17:15:53 -07:00
Thomas Zimmermann
99e571dff8
Bug 1156229
: Update GATT support to include Android L, r=joliu
...
This patch adds L support to the GATT implementation. Only the HAL
backend is currently supported.
2015-04-22 09:35:36 +02:00
Thomas Zimmermann
6a2c5933a5
Bug 1156229
: Make ref-counted class destructors non-public, r=joliu
...
To build Bluetooth v2 with gcc 4.8 and later, all ref-counted classes
must have non-public destructors.
2015-04-22 09:35:36 +02:00
Jocelyn Liu
8b5c28e63f
Bug 1015796 - Use sequence<DOMString> as the type of attribute |attrs| in BluetoothAttributeEvent instead of any. r=btian, r=mrbkap
...
--HG--
extra : histedit_source : 5c14b863ffc33d75af03c001298b670c1cac3212
2015-04-19 20:09:00 -04:00
Thomas Zimmermann
19481051d7
Bug 1154281: Remove references to UnixSocket.h from Bluetooth, r=btian
...
The code needs |UnixSocketRawData| from SocketBase.h and the data
structures in UnixSocketWatcher.h
2015-04-21 10:33:06 +02:00
Thomas Zimmermann
a5e830f364
Bug 1154281: Merge |UnixSocketConsumer| into |BluetoothSocket|, r=btian
...
|BluetoothSocket| is the last remaining user of |UnixSocketConsumer|. Since
the latter class is deprecated, it's the best option to merge it into the
socket class.
The functionality of |UnixSocketConsumer| is provided by |ListenSocket| and
|StreamSocket|.
2015-04-21 10:33:06 +02:00
Wes Kocher
aa6cf3235f
Merge inbound to m-c a=merge CLOSED TREE
...
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothRilListener.cpp => dom/bluetooth/BluetoothRilListener.cpp
2015-04-20 16:44:05 -07:00
Thomas Zimmermann
b4be1c364e
Bug 1155718: Share ObexBase.{cpp,h} between Bluetooth v1 and v2, r=btian
...
Both implementations are the same.
--HG--
rename : dom/bluetooth/bluetooth2/ObexBase.cpp => dom/bluetooth/ObexBase.cpp
rename : dom/bluetooth/bluetooth2/ObexBase.h => dom/bluetooth/ObexBase.h
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
42bd36b546
Bug 1155718: Share BluetoothSocketObserver.h between Bluetooth v1 and v2, r=btian
...
Both implementations are the same.
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothSocketObserver.h => dom/bluetooth/BluetoothSocketObserver.h
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
97e36fab99
Bug 1155718: Share BlueoothRilListener.{cpp,h} between Bluetooth v1 and v2, r=btian
...
This patch uses the v1 implementation, which include a fix for bug 1137151.
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothRilListener.cpp => dom/bluetooth/BluetoothRilListener.cpp
rename : dom/bluetooth/bluetooth1/BluetoothRilListener.h => dom/bluetooth/BluetoothRilListener.h
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
ccca8eab46
Bug 1155718: Share BluetoothProfileManagerBase.h between Bluetooth v1 and v2, r=btian
...
This patch uses the v1 implementation, which include a fix for bug 1137151.
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothProfileManagerBase.h => dom/bluetooth/BluetoothProfileManagerBase.h
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
38b3f96a77
Bug 1155718: Share BluetoothHidManager.{cpp,h} between Bluetooth v1 and v2, r=btian
...
This patch uses the v1 implementation, which include a fix for bug 1137151.
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothHidManager.cpp => dom/bluetooth/BluetoothHidManager.cpp
rename : dom/bluetooth/bluetooth1/BluetoothHidManager.h => dom/bluetooth/BluetoothHidManager.h
2015-04-20 12:56:49 +02:00
Thomas Zimmermann
05ee446fab
Bug 1155718: Share BluetoothHfpMangerBase.h between Bluetooth v1 and v2, r=btian
...
Both implementations are the same, except coding-style fixes in v1.
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothHfpManagerBase.h => dom/bluetooth/BluetoothHfpManagerBase.h
2015-04-20 12:56:49 +02:00
Denis Volk
32e981896d
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Thomas Zimmermann
2057f83879
Bug 1155082: Share BluetoothUUID.{cpp,h} between Bluetooth v1 and v2, r=btian
...
BluetoothUUID of v1 and v2 are the same, except for bug 1015819 in
v1. So this patch moves the v1 variant to a shared location and removes
the v2 variant completely.
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothUuid.cpp => dom/bluetooth/BluetoothUuid.cpp
rename : dom/bluetooth/bluetooth1/BluetoothUuid.h => dom/bluetooth/BluetoothUuid.h
2015-04-17 17:45:05 +02:00
Bruce Sun
c1123fbf68
Bug 1152653 - Implement BluetoothGatt.oncharacteristicchanged. r=jocelyn, r=mrbkap
2015-04-16 16:47:01 +08:00
Bruce Sun
056f82d8c9
Bug 1140952 - Implement read/write value of a descriptor for GATT client API (ipc part). f=jocelyn, r=btian
2015-04-16 16:45:20 +08:00
Bruce Sun
ea2fb4850a
Bug 1140952 - Implement read/write value of a descriptor for GATT client API (webapi part). f=jocelyn, r=btian, r=mrbkap
2015-04-16 16:44:58 +08:00
Bruce Sun
c20fe1eef4
Bug 1140952 - Implement read/write value of a characteristic for GATT client API (ipc part). f=jocelyn, r=btian
2015-04-16 16:44:37 +08:00
Bruce Sun
467430b746
Bug 1140952 - Implement read/write value of a characteristic for GATT client API (webapi part). f=jocelyn, r=shawnjohnjr, r=mrbkap
2015-04-16 16:44:17 +08:00
Thomas Zimmermann
ca73054656
Bug 1154235: Use |snprintf| in Bluetooth utililities, r=btian
...
The use of |sprintf| is unsafe and generally deprecated. This patch
replaces |sprintf| in the Bluetooth utilities with |snprintf|.
2015-04-16 10:48:21 +02:00
Thomas Zimmermann
f0aea25638
Bug 1154235: Share BluetoothUtils.{cpp,h} between Bluetooth v1 and v2, r=btian
...
With this patch, Bluetooth v1 and v2 share the same files for
BluetoothUtils.{cpp,h}. Some of the functions are still version specific
and cannot be shared. The v1 variants can be removed after switching to
v2.
2015-04-16 10:48:21 +02:00
Thomas Zimmermann
aadf127b62
Bug 1154235: Move dom/bluetooth/bluetooth2/BluetoothUtils.{cpp,h} to /dom/bluetooth, r=btian
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothUtils.cpp => dom/bluetooth/BluetoothUtils.cpp
rename : dom/bluetooth/bluetooth2/BluetoothUtils.h => dom/bluetooth/BluetoothUtils.h
2015-04-16 10:48:21 +02:00
Thomas Zimmermann
7080f6c772
Bug 1154235: Use |BroadcastSystemMessage| in |BluetoothService::Notify|, r=btian
...
|BluetoothService::Notify| re-implements |BroadcastSystemMessage|. This
patch replaces this code with a call to the function.
2015-04-16 10:48:21 +02:00
Shawn Huang
931df00596
Bug 1152098 - Ignore subsequent toggling requests if toggling is already in progress. r=btian
...
--HG--
extra : histedit_source : 62052c8ffd607ff9381980a0a4c5cd5af52f9b0a
2015-04-14 20:55:00 -04:00
Thomas Zimmermann
8b16914471
Bug 1153796: Share BluetoothInterfaceHelpers.{cpp,h} between Bluetooth v1 and v2, r=btian
...
The v1 implementation of BluetoothInterfaceHelpers.{cpp,h} is more
up-to-date than the v2 variant. So we can just use the v1 version and
remove the v2 version entirely. Bluetooth v2 contains its own version
of |Convert(nsresult, BluetoothStatus)|, which has been removed in
favor of the shared implementation.
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.cpp => dom/bluetooth/BluetoothInterfaceHelpers.cpp
rename : dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.h => dom/bluetooth/BluetoothInterfaceHelpers.h
2015-04-15 11:46:33 +02:00
Thomas Zimmermann
25c352176c
Bug 1153796: Share BluetoothInterface.{cpp,h} between Bluetooth v1 and v2, r=btian
...
With this patch, Bluetooth v1 and v2 share the same interfaces classes
for their backend code. Bluetooth v1 doesn't yet support GATT, so the
GATT interfaces are still not implemented.
The patch also fixes the GATT-specific classes to compile under recent GCC
versions 4.8 and later, which are used with Android L.
The patch also preserves the prefered backend for each version. Bluetooth
v1 defaults to 'bluetoothd,' v2 defaults to 'bluedroid.'
2015-04-15 11:46:33 +02:00
Thomas Zimmermann
c3608191ca
Bug 1153796: Move dom/bluetooth/bluetooth2/BluetoothInterface.{cpp,h} to dom/bluetooth, r=btian
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothInterface.cpp => dom/bluetooth/BluetoothInterface.cpp
rename : dom/bluetooth/bluetooth2/BluetoothInterface.h => dom/bluetooth/BluetoothInterface.h
2015-04-15 11:46:33 +02:00
Thomas Zimmermann
af21064b9c
Bug 1153796: Unify variants of |BluetoothInterface::SspReply|, r=btian
...
Bluetooth use different types for the second argument of their variant
of |BluetoothInterface::SspReply|. This patch standardizes them on the
v2 version.
2015-04-15 11:46:33 +02:00
Carsten "Tomcat" Book
660521f516
Backed out changeset 3a16edeb9ed2 (bug 1153796) for bustage on a CLOSED TREE
2015-04-15 11:33:02 +02:00
Carsten "Tomcat" Book
4e0750765d
Backed out changeset 0f94e1a00fcd (bug 1153796)
...
--HG--
rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/bluetooth2/BluetoothInterface.cpp
rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/bluetooth2/BluetoothInterface.h
2015-04-15 11:32:21 +02:00
Carsten "Tomcat" Book
90d9543ab6
Backed out changeset a74d1c644c84 (bug 1153796)
2015-04-15 11:32:16 +02:00
Carsten "Tomcat" Book
dc4923c9f7
Backed out changeset 868ace3fafba (bug 1153796)
...
--HG--
rename : dom/bluetooth/BluetoothInterfaceHelpers.cpp => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.cpp
rename : dom/bluetooth/BluetoothInterfaceHelpers.h => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.h
2015-04-15 11:32:10 +02:00
Thomas Zimmermann
5cb077cd58
Bug 1153796: Share BluetoothInterfaceHelpers.{cpp,h} between Bluetooth v1 and v2, r=btian
...
The v1 implementation of BluetoothInterfaceHelpers.{cpp,h} is more
up-to-date than the v2 variant. So we can just use the v1 version and
remove the v2 version entirely. Bluetooth v2 contains its own version
of |Convert(nsresult, BluetoothStatus)|, which has been removed in
favor of the shared implementation.
--HG--
rename : dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.cpp => dom/bluetooth/BluetoothInterfaceHelpers.cpp
rename : dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.h => dom/bluetooth/BluetoothInterfaceHelpers.h
2015-04-15 11:04:43 +02:00
Thomas Zimmermann
81e83b639b
Bug 1153796: Share BluetoothInterface.{cpp,h} between Bluetooth v1 and v2, r=btian
...
With this patch, Bluetooth v1 and v2 share the same interfaces classes
for their backend code. Bluetooth v1 doesn't yet support GATT, so the
GATT interfaces are still not implemented.
The patch also fixes the GATT-specific classes to compile under recent GCC
versions 4.8 and later, which are used with Android L.
The patch also preserves the prefered backend for each version. Bluetooth
v1 defaults to 'bluetoothd,' v2 defaults to 'bluedroid.'
2015-04-15 11:04:43 +02:00
Thomas Zimmermann
c2f24a1548
Bug 1153796: Move dom/bluetooth/bluetooth2/BluetoothInterface.{cpp,h} to dom/bluetooth, r=btian
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothInterface.cpp => dom/bluetooth/BluetoothInterface.cpp
rename : dom/bluetooth/bluetooth2/BluetoothInterface.h => dom/bluetooth/BluetoothInterface.h
2015-04-15 11:04:43 +02:00
Thomas Zimmermann
c32d85b108
Bug 1153796: Unify variants of |BluetoothInterface::SspReply|, r=btian
...
Bluetooth use different types for the second argument of their variant
of |BluetoothInterface::SspReply|. This patch standardizes them on the
v2 version.
2015-04-15 11:04:43 +02:00
Jamin Liu
86a4f50475
Bug 1154136 - Update Bluetooth connection state when BT stack updates device properties. r=shuang
2015-04-14 18:46:23 +08:00
Thomas Zimmermann
357f6c2529
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
c92e91ba0f
Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothCommon.h => dom/bluetooth/BluetoothCommon.h
2015-04-14 10:26:06 +02:00
Ben Tian
7895eb1e99
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
b66faa9524
Backed out changeset 3939c36b0864 (bug 1152821) for Bustage
...
--HG--
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/bluetooth2/BluetoothCommon.h
2015-04-13 10:54:33 +02:00
Carsten "Tomcat" Book
44617229af
Backed out changeset 81c108144278 (bug 1152821)
2015-04-13 10:53:59 +02:00
Thomas Zimmermann
2770ffad45
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
3444f08f45
Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothCommon.h => dom/bluetooth/BluetoothCommon.h
2015-04-13 10:03:09 +02:00
Carsten "Tomcat" Book
afcde79e15
Backed out changeset b3b4f6930b58 (bug 1152821) for bustage on a CLOSED TREE
...
--HG--
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/bluetooth2/BluetoothCommon.h
2015-04-10 15:29:39 +02:00
Carsten "Tomcat" Book
e699c6d191
Backed out changeset eb14bd0103b6 (bug 1152821)
2015-04-10 15:29:00 +02:00
Thomas Zimmermann
c102eb97fd
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
e0727c2ae2
Bug 1152821: Move dom/bluetooth/bluetooth2/BluetoothCommon.h to dom/bluetooth, r=joliu
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothCommon.h => dom/bluetooth/BluetoothCommon.h
2015-04-10 13:46:19 +02:00
Jocelyn Liu
17b99b7b84
Bug 1152702 - Fix upper bounds of ContiguousEnumSerializer for BluetoothStatus and BluetoothSspVariant. r=tzimmermann
2015-04-10 17:00:02 +08:00
Shawn Huang
e2cbd26599
Bug 1152095 - Check mResultHandlerQ is empty before dispatching DispatchError. r=tzimmermann
2015-04-09 04:20:00 -04:00
Juan Gomez
74d291470d
Bug 1087161 - Upgrading B2G toolchain to gcc-4.9
...
* Fixed some -Werror=format issues by making function-style castings
--HG--
extra : rebase_source : e9677c42819a8e95008bb3e97b97b47eff915021
2015-04-09 18:13:39 +02:00
Thomas Zimmermann
c50cdfe9dd
Bug 1146355: Prepare BlueZ for Bluetooth v2, r=brsun
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
bb712a3705
Bug 1146355: Prepare Bluetooth HFP manager, r=brsun
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
dde2e9fbf1
Bug 1146355: Prepare Bluetooth OPP manager, r=joliu
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
7abceb7651
Bug 1146355: Prepare Bluetooth A2DP manager, r=joliu
2015-04-09 15:57:41 +02:00
Thomas Zimmermann
c4f2f451a8
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
cf0ac9efa2
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
3a30ef8287
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.
--HG--
rename : dom/bluetooth2/bluedroid/BluetoothGattHALInterface.cpp => dom/bluetooth/bluedroid/BluetoothGattHALInterface.cpp
rename : dom/bluetooth2/bluedroid/BluetoothGattHALInterface.h => dom/bluetooth/bluedroid/BluetoothGattHALInterface.h
rename : dom/bluetooth2/bluedroid/BluetoothGattManager.cpp => dom/bluetooth/bluedroid/BluetoothGattManager.cpp
rename : dom/bluetooth2/bluedroid/BluetoothGattManager.h => dom/bluetooth/bluedroid/BluetoothGattManager.h
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
e271bb7029
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
28391b811b
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
7c10db75d9
Bug 1146355: Add Bluetooth v2 to Bluetooth build scripts, r=shuang
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
d55044fb9f
Bug 1146355: Import Bluetooth v2 implementation, r=joliu
...
This patch moves all files from bluetooth2/ into bluetooth/bluetooth2;
except the backend code.
--HG--
rename : dom/bluetooth2/BluetoothAdapter.cpp => dom/bluetooth/bluetooth2/BluetoothAdapter.cpp
rename : dom/bluetooth2/BluetoothAdapter.h => dom/bluetooth/bluetooth2/BluetoothAdapter.h
rename : dom/bluetooth2/BluetoothClassOfDevice.cpp => dom/bluetooth/bluetooth2/BluetoothClassOfDevice.cpp
rename : dom/bluetooth2/BluetoothClassOfDevice.h => dom/bluetooth/bluetooth2/BluetoothClassOfDevice.h
rename : dom/bluetooth2/BluetoothCommon.h => dom/bluetooth/bluetooth2/BluetoothCommon.h
rename : dom/bluetooth2/BluetoothDevice.cpp => dom/bluetooth/bluetooth2/BluetoothDevice.cpp
rename : dom/bluetooth2/BluetoothDevice.h => dom/bluetooth/bluetooth2/BluetoothDevice.h
rename : dom/bluetooth2/BluetoothDiscoveryHandle.cpp => dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp
rename : dom/bluetooth2/BluetoothDiscoveryHandle.h => dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h
rename : dom/bluetooth2/BluetoothGatt.cpp => dom/bluetooth/bluetooth2/BluetoothGatt.cpp
rename : dom/bluetooth2/BluetoothGatt.h => dom/bluetooth/bluetooth2/BluetoothGatt.h
rename : dom/bluetooth2/BluetoothGattCharacteristic.cpp => dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.cpp
rename : dom/bluetooth2/BluetoothGattCharacteristic.h => dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.h
rename : dom/bluetooth2/BluetoothGattDescriptor.cpp => dom/bluetooth/bluetooth2/BluetoothGattDescriptor.cpp
rename : dom/bluetooth2/BluetoothGattDescriptor.h => dom/bluetooth/bluetooth2/BluetoothGattDescriptor.h
rename : dom/bluetooth2/BluetoothGattService.cpp => dom/bluetooth/bluetooth2/BluetoothGattService.cpp
rename : dom/bluetooth2/BluetoothGattService.h => dom/bluetooth/bluetooth2/BluetoothGattService.h
rename : dom/bluetooth2/BluetoothHfpManagerBase.h => dom/bluetooth/bluetooth2/BluetoothHfpManagerBase.h
rename : dom/bluetooth2/BluetoothHidManager.cpp => dom/bluetooth/bluetooth2/BluetoothHidManager.cpp
rename : dom/bluetooth2/BluetoothHidManager.h => dom/bluetooth/bluetooth2/BluetoothHidManager.h
rename : dom/bluetooth2/BluetoothInterface.cpp => dom/bluetooth/bluetooth2/BluetoothInterface.cpp
rename : dom/bluetooth2/BluetoothInterface.h => dom/bluetooth/bluetooth2/BluetoothInterface.h
rename : dom/bluetooth2/BluetoothInterfaceHelpers.h => dom/bluetooth/bluetooth2/BluetoothInterfaceHelpers.h
rename : dom/bluetooth2/BluetoothManager.cpp => dom/bluetooth/bluetooth2/BluetoothManager.cpp
rename : dom/bluetooth2/BluetoothManager.h => dom/bluetooth/bluetooth2/BluetoothManager.h
rename : dom/bluetooth2/BluetoothPairingHandle.cpp => dom/bluetooth/bluetooth2/BluetoothPairingHandle.cpp
rename : dom/bluetooth2/BluetoothPairingHandle.h => dom/bluetooth/bluetooth2/BluetoothPairingHandle.h
rename : dom/bluetooth2/BluetoothPairingListener.cpp => dom/bluetooth/bluetooth2/BluetoothPairingListener.cpp
rename : dom/bluetooth2/BluetoothPairingListener.h => dom/bluetooth/bluetooth2/BluetoothPairingListener.h
rename : dom/bluetooth2/BluetoothProfileController.cpp => dom/bluetooth/bluetooth2/BluetoothProfileController.cpp
rename : dom/bluetooth2/BluetoothProfileController.h => dom/bluetooth/bluetooth2/BluetoothProfileController.h
rename : dom/bluetooth2/BluetoothProfileManagerBase.h => dom/bluetooth/bluetooth2/BluetoothProfileManagerBase.h
rename : dom/bluetooth2/BluetoothReplyRunnable.cpp => dom/bluetooth/bluetooth2/BluetoothReplyRunnable.cpp
rename : dom/bluetooth2/BluetoothReplyRunnable.h => dom/bluetooth/bluetooth2/BluetoothReplyRunnable.h
rename : dom/bluetooth2/BluetoothRilListener.cpp => dom/bluetooth/bluetooth2/BluetoothRilListener.cpp
rename : dom/bluetooth2/BluetoothRilListener.h => dom/bluetooth/bluetooth2/BluetoothRilListener.h
rename : dom/bluetooth2/BluetoothService.cpp => dom/bluetooth/bluetooth2/BluetoothService.cpp
rename : dom/bluetooth2/BluetoothService.h => dom/bluetooth/bluetooth2/BluetoothService.h
rename : dom/bluetooth2/BluetoothSocketObserver.h => dom/bluetooth/bluetooth2/BluetoothSocketObserver.h
rename : dom/bluetooth2/BluetoothUtils.cpp => dom/bluetooth/bluetooth2/BluetoothUtils.cpp
rename : dom/bluetooth2/BluetoothUtils.h => dom/bluetooth/bluetooth2/BluetoothUtils.h
rename : dom/bluetooth2/BluetoothUuid.cpp => dom/bluetooth/bluetooth2/BluetoothUuid.cpp
rename : dom/bluetooth2/BluetoothUuid.h => dom/bluetooth/bluetooth2/BluetoothUuid.h
rename : dom/bluetooth2/ObexBase.cpp => dom/bluetooth/bluetooth2/ObexBase.cpp
rename : dom/bluetooth2/ObexBase.h => dom/bluetooth/bluetooth2/ObexBase.h
rename : dom/bluetooth2/ipc/BluetoothChild.cpp => dom/bluetooth/bluetooth2/ipc/BluetoothChild.cpp
rename : dom/bluetooth2/ipc/BluetoothChild.h => dom/bluetooth/bluetooth2/ipc/BluetoothChild.h
rename : dom/bluetooth2/ipc/BluetoothMessageUtils.h => dom/bluetooth/bluetooth2/ipc/BluetoothMessageUtils.h
rename : dom/bluetooth2/ipc/BluetoothParent.cpp => dom/bluetooth/bluetooth2/ipc/BluetoothParent.cpp
rename : dom/bluetooth2/ipc/BluetoothParent.h => dom/bluetooth/bluetooth2/ipc/BluetoothParent.h
rename : dom/bluetooth2/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.cpp
rename : dom/bluetooth2/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.h
rename : dom/bluetooth2/ipc/BluetoothTypes.ipdlh => dom/bluetooth/bluetooth2/ipc/BluetoothTypes.ipdlh
rename : dom/bluetooth2/ipc/PBluetooth.ipdl => dom/bluetooth/bluetooth2/ipc/PBluetooth.ipdl
rename : dom/bluetooth2/ipc/PBluetoothRequest.ipdl => dom/bluetooth/bluetooth2/ipc/PBluetoothRequest.ipdl
rename : dom/bluetooth2/tests/marionette/head.js => dom/bluetooth/bluetooth2/tests/marionette/head.js
rename : dom/bluetooth2/tests/marionette/manifest.ini => dom/bluetooth/bluetooth2/tests/marionette/manifest.ini
rename : dom/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js => dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js
rename : dom/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js => dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js
rename : dom/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js => dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js
rename : dom/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js => dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js
rename : dom/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js => dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js
rename : dom/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js => dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
5b0221d66d
Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu
...
--HG--
rename : dom/bluetooth/BluetoothAdapter.cpp => dom/bluetooth/bluetooth1/BluetoothAdapter.cpp
rename : dom/bluetooth/BluetoothAdapter.h => dom/bluetooth/bluetooth1/BluetoothAdapter.h
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/bluetooth1/BluetoothCommon.h
rename : dom/bluetooth/BluetoothDevice.cpp => dom/bluetooth/bluetooth1/BluetoothDevice.cpp
rename : dom/bluetooth/BluetoothDevice.h => dom/bluetooth/bluetooth1/BluetoothDevice.h
rename : dom/bluetooth/BluetoothHfpManagerBase.h => dom/bluetooth/bluetooth1/BluetoothHfpManagerBase.h
rename : dom/bluetooth/BluetoothHidManager.cpp => dom/bluetooth/bluetooth1/BluetoothHidManager.cpp
rename : dom/bluetooth/BluetoothHidManager.h => dom/bluetooth/bluetooth1/BluetoothHidManager.h
rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/bluetooth1/BluetoothInterface.cpp
rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/bluetooth1/BluetoothInterface.h
rename : dom/bluetooth/BluetoothInterfaceHelpers.cpp => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.cpp
rename : dom/bluetooth/BluetoothInterfaceHelpers.h => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.h
rename : dom/bluetooth/BluetoothManager.cpp => dom/bluetooth/bluetooth1/BluetoothManager.cpp
rename : dom/bluetooth/BluetoothManager.h => dom/bluetooth/bluetooth1/BluetoothManager.h
rename : dom/bluetooth/BluetoothProfileController.cpp => dom/bluetooth/bluetooth1/BluetoothProfileController.cpp
rename : dom/bluetooth/BluetoothProfileController.h => dom/bluetooth/bluetooth1/BluetoothProfileController.h
rename : dom/bluetooth/BluetoothProfileManagerBase.h => dom/bluetooth/bluetooth1/BluetoothProfileManagerBase.h
rename : dom/bluetooth/BluetoothPropertyContainer.cpp => dom/bluetooth/bluetooth1/BluetoothPropertyContainer.cpp
rename : dom/bluetooth/BluetoothPropertyContainer.h => dom/bluetooth/bluetooth1/BluetoothPropertyContainer.h
rename : dom/bluetooth/BluetoothReplyRunnable.cpp => dom/bluetooth/bluetooth1/BluetoothReplyRunnable.cpp
rename : dom/bluetooth/BluetoothReplyRunnable.h => dom/bluetooth/bluetooth1/BluetoothReplyRunnable.h
rename : dom/bluetooth/BluetoothRilListener.cpp => dom/bluetooth/bluetooth1/BluetoothRilListener.cpp
rename : dom/bluetooth/BluetoothRilListener.h => dom/bluetooth/bluetooth1/BluetoothRilListener.h
rename : dom/bluetooth/BluetoothService.cpp => dom/bluetooth/bluetooth1/BluetoothService.cpp
rename : dom/bluetooth/BluetoothService.h => dom/bluetooth/bluetooth1/BluetoothService.h
rename : dom/bluetooth/BluetoothSocketObserver.h => dom/bluetooth/bluetooth1/BluetoothSocketObserver.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluetooth1/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluetooth1/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUuid.cpp => dom/bluetooth/bluetooth1/BluetoothUuid.cpp
rename : dom/bluetooth/BluetoothUuid.h => dom/bluetooth/bluetooth1/BluetoothUuid.h
rename : dom/bluetooth/ObexBase.cpp => dom/bluetooth/bluetooth1/ObexBase.cpp
rename : dom/bluetooth/ObexBase.h => dom/bluetooth/bluetooth1/ObexBase.h
rename : dom/bluetooth/ipc/BluetoothChild.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothChild.cpp
rename : dom/bluetooth/ipc/BluetoothChild.h => dom/bluetooth/bluetooth1/ipc/BluetoothChild.h
rename : dom/bluetooth/ipc/BluetoothMessageUtils.h => dom/bluetooth/bluetooth1/ipc/BluetoothMessageUtils.h
rename : dom/bluetooth/ipc/BluetoothParent.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothParent.cpp
rename : dom/bluetooth/ipc/BluetoothParent.h => dom/bluetooth/bluetooth1/ipc/BluetoothParent.h
rename : dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothServiceChildProcess.cpp
rename : dom/bluetooth/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/bluetooth1/ipc/BluetoothServiceChildProcess.h
rename : dom/bluetooth/ipc/BluetoothTypes.ipdlh => dom/bluetooth/bluetooth1/ipc/BluetoothTypes.ipdlh
rename : dom/bluetooth/ipc/PBluetooth.ipdl => dom/bluetooth/bluetooth1/ipc/PBluetooth.ipdl
rename : dom/bluetooth/ipc/PBluetoothRequest.ipdl => dom/bluetooth/bluetooth1/ipc/PBluetoothRequest.ipdl
rename : dom/bluetooth/tests/marionette/head.js => dom/bluetooth/bluetooth1/tests/marionette/head.js
rename : dom/bluetooth/tests/marionette/manifest.ini => dom/bluetooth/bluetooth1/tests/marionette/manifest.ini
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_discovery.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_getters.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_getters.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_pair.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_setters.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothManager_adapteradded.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothManager_adapteradded.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothManager_enabled.js
2015-04-09 15:57:40 +02:00
Jamin Liu
8bfe6c6a95
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
64649e4ccf
Bug 1148311 - Handle AVRCP app settings notification response. r=tzimmermann
2015-03-30 05:46:00 -04:00
Wes Kocher
18a6da0131
Merge m-c to inbound a=merge
...
--HG--
extra : rebase_source : 31afc1b4de1d4c9d48057dbbe0d96e7c385bf2dc
2015-03-27 17:31:19 -07:00
Shawn Huang
98c2945d66
Bug 1142417 - Truncate AVRCP meta data strings followed by BTRC_MAX_ATTR_STR_LEN. r=tzimmermann
...
--HG--
extra : histedit_source : 8e78f1f680b6c08c4f65f2049ab51dce32d7df0f
2015-03-27 07:08:00 -04:00
Bevis Tseng
b36101cd61
Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian
...
--HG--
extra : histedit_source : b7f3f1d46e62b84ccae5d080193e549af6373b0c
2015-01-15 18:22:08 +08:00
Jamin Liu
0c87f42eb4
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
2910208ad2
Bug 1146923: Pass SSP variant as enum instead of string, r=btian
2015-03-26 10:29:58 +01:00
Thomas Zimmermann
7d77418313
Bug 1146923: Rename |BluetoothSspPairingVariant| to |BluetoothSspVariant|, r=btian
2015-03-26 10:29:58 +01:00
Thomas Zimmermann
86a7a8861d
Bug 1146923: Rename |BluetoothDeviceType| to |BluetoothTypeOfDevice|, r=btian
2015-03-26 10:29:58 +01:00
Thomas Zimmermann
f92b2b9795
Bug 1146923: Merge |CONVERT| macros of Bluetooth backends, r=btian
2015-03-26 10:29:58 +01:00
Ryan VanderMeulen
cfd5fd4b5f
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
46a49eb332
Bug 1146923: Pass SSP variant as enum instead of string, r=btian
2015-03-25 10:38:00 +01:00
Thomas Zimmermann
eb68133d18
Bug 1146923: Rename |BluetoothSspPairingVariant| to |BluetoothSspVariant|, r=btian
2015-03-25 10:38:00 +01:00
Thomas Zimmermann
16c8547911
Bug 1146923: Rename |BluetoothDeviceType| to |BluetoothTypeOfDevice|, r=btian
2015-03-25 10:38:00 +01:00
Thomas Zimmermann
e2b89e08a8
Bug 1146923: Merge |CONVERT| macros of Bluetooth backends, r=btian
2015-03-25 10:38:00 +01:00
Ehsan Akhgari
883849ee32
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
ba42041634
Bug 1144089 - Map AVRCP attribute ID correctly. r=tzimmermann
2015-03-19 02:22:00 -04:00
Shawn Huang
528865edc6
Bug 1142408 - Add data length parameter for Register Notification Response Command. r=tzimmermann
2015-03-18 02:52:00 -04:00
Boris Zbarsky
dc24477d79
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
fa698fe8a9
Backout Bug 1114935 for causing bug 1144567.
2015-03-18 11:48:52 -07:00
Thomas Zimmermann
8a7c1130d3
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
b75f39a906
Bug 1114935 - Part 6.3: Migration in Bluetooth. r=btian
...
--HG--
extra : rebase_source : f3b03a7464ffe975248a25c64ca33cf3abe5e6f4
extra : histedit_source : b7252008b2a2e2a45db026ad873b4c065617be31
2015-01-15 18:22:08 +08:00
Carsten "Tomcat" Book
dff8d11a1e
Merge mozilla-central to b2g-inbound
2015-03-17 11:59:24 +01:00
Ben Tian
4360afff5e
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
97b5f363cc
Bug 579517 follow-up: Remove NSPR types that crept in
2015-03-16 21:15:10 -04:00
Thomas Zimmermann
69e1d93253
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
41cc33c0c2
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
888dc86930
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
410d306d9b
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
ad90f39fdf
Bug 1137151: Marked destructors of ref-counted Bluetooth classes as protected, r=shuang
2015-03-10 13:44:02 +01:00
Bruce Sun
c8d7bf500e
Bug 1128386 - Handle |STATUS_FAIL| in |BondStateChangedNotification()|. r=tzimmermann
2015-03-09 17:04:02 +08:00
Jamin Liu
00ccab58ed
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
13ab04a400
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
9f1dbfbb3b
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
b0a5dba1a0
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
cef62818eb
Bug 1118177 - Release file resources if users unexpectedly remove SD card. r=btian
2015-02-13 02:59:00 -05:00
Thomas Zimmermann
787ca9e0a2
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
27f6e560fe
Bug 1129846 - Handle all used type in PDU explicitly. r=tzimmermann
2015-02-05 15:35:57 +08:00
Bruce Sun
cbaff5efc5
Bug 1129257
- Use |int32_t| for |Channel| in Bluetooth Socket HAL. r=tzimmermann
2015-02-04 17:21:50 +08:00
Thomas Zimmermann
a01f7739b4
Bug 1123077: Protect PROPERTY_REMOTE_VERSION_INFO by ANDROID_VERSION, r=shuang
2015-02-03 12:26:56 +01:00
Bruce Sun
6aa6d0cb4a
Bug 1125719 - Redial from bluetooth device cause bluetoothd and gecko crash. r=tzimmermann
...
There is |aPDU.Consume(1)| at the beginning, so |aPDU.GetSize()| becomes 1
less than the actual data length we want to parse. As a result, |memchr()|
will always fail by missing the final character by using |aPDU.GetSize()| as
its |num| parameter.
2015-01-26 19:07:23 +08:00
Tom Schuster
66ad9a2e49
Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz
2015-01-24 16:38:08 +01:00
Thomas Zimmermann
f7a2e65a47
Bug 1124565: Fix position of const qualifiers for |sDefaultBackend|, r=shuang
...
This patch fixes the position of the second const qualifier for
|sDefaultBackend|. Both, pointer and memory, are now marked as
constant.
2015-01-22 10:52:18 +01:00
Carsten "Tomcat" Book
31479ad480
Merge mozilla-central to b2g-inbound
2015-01-20 13:23:50 +01:00
Carsten "Tomcat" Book
935a218dcb
merge b2g-inbound to mozilla-central a=merge
2015-01-20 12:12:12 +01:00
Thomas Zimmermann
70fa9ef270
Bug 1065336: Implement Bluetooth backend selection; use daemon by default, r=shawnjohnjr
...
This patch adds proper selection of the Bluetooth backend. The backend
is configurable via environment property 'ro.moz.bluetooth.backend'. The
default value is bluetoothd.
On systems that are not Android 4.2 or later, the code does not return
a backend. These systems should use BlueZ instead.
2015-01-20 10:05:45 +01:00
Nicholas Nethercote
cc06604267
Bug 1123527 - Fix syntax error in BT_WARNING and BT_LOGD. r=btian.
...
cppcheck identified the extra ')' at the end of these macros. This code must
not be compiled in any of our standard configurations.
--HG--
extra : rebase_source : 4044d377e3a15ef725ac276ab54a192df63a8eb6
2015-01-19 19:12:43 -08:00
Thomas Zimmermann
2eed89da86
Bug 1119746: Support random postfix for Bluetooth daemon socket name, r=btian
...
This patch adds support for a random postfix for bluetoothd's socket
name. The postfix is re-generated for every instance of the daemon.
This prevents name collisions between mutliple sessions and malicious
programs from taking over the connection easily.
2015-01-20 10:17:45 +08:00
Thomas Zimmermann
b65367839d
Bug 1119746: Listen for socket connections when starting Bluetooth, r=btian
...
Currently, Gecko connects to a running instance of bluetoothd when
it starts the daemon backend. This contains a race condition between
the startup of the daemon and the startup of Gecko.
This patch changes the initialization and cleanup of Bluetooth's
daemon backend so that the Bluetooth daemon connects to Gecko. The
daemon process is now started as part of the initialization and
quits during shutdown. The steps are strictly ordered, so no race
condition exists.
The initialization and cleanup procedures should now be compatible
with BlueZ 5.
2015-01-20 10:17:40 +08:00
Thomas Zimmermann
dd06eecb9d
Bug 1119746: Fix ref-counting of bluetoothd channels, r=btian
...
The class |BluetoothDaemonChannel| for the bluetoothd channels
supports reference counting. This patch fixes the respective
variable to use |nsRefPtr| instead of |nsAutoPtr|.
2015-01-20 10:17:31 +08:00
Andrea Marchesini
789ad8312d
Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan
2015-04-22 08:29:18 +02:00
Andrea Marchesini
e6f385fb3d
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Bruce Sun
899a86f835
Bug 1121930: Sync Bluetooth daemon protocol with BlueZ 5.27, r=shuang
2015-01-15 19:44:02 +08:00
Ms2ger
b83d21c58c
Bug 914067 - Remove JSVAL_VOID from dom/; r=jst
2015-01-14 08:59:06 +01:00
Masatoshi Kimura
bf312ad056
Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo
2015-01-11 11:34:52 +09:00
Carsten "Tomcat" Book
94b83cc9a3
Merge mozilla-central to mozilla-inbound
2015-01-09 15:26:58 +01:00
Ben Tian
a2cbd8e9e6
Bug 1118163 - Restore received file for small size (1-packet) file, r=shuang
2015-01-08 18:11:37 +08:00
Ryan VanderMeulen
0adb188a2b
Backed out 10 changesets (bug 1102703) for B2G JB bustage.
...
Backed out changeset fae7478f55e5 (bug 1102703)
Backed out changeset d9d1879fc90f (bug 1102703)
Backed out changeset b61bf281e991 (bug 1102703)
Backed out changeset f62155e4fb9c (bug 1102703)
Backed out changeset ff47d1b9e86c (bug 1102703)
Backed out changeset ece26b235282 (bug 1102703)
Backed out changeset 9f067e4973eb (bug 1102703)
Backed out changeset db035be5bc6c (bug 1102703)
Backed out changeset 411ab2917e49 (bug 1102703)
Backed out changeset 50eed0f4edc7 (bug 1102703)
2015-01-08 10:22:18 -05:00
Bruce Sun
0003a363ad
Bug 1102703 - Porting bluetooth interface of bluez 5.26 (handsfree). r=btian, f=tzimmermann
2015-01-08 11:50:21 +08:00
Bruce Sun
057addefc5
Bug 1102703 - Porting bluetooth interface of bluez 5.26 (a2dp). r=btian, f=tzimmermann
2015-01-08 11:49:49 +08:00
Bruce Sun
068ab4fe55
Bug 1102703 - Porting bluetooth interface of bluez 5.26 (core). r=btian, f=tzimmermann
2015-01-08 11:49:17 +08:00
Bruce Sun
ee6dcf6c1d
Bug 1102703 - Porting bluetooth interface of android lollipop (handsfree). r=shawnjohnjr, r=btian, r=tzimmermann
2015-01-08 11:48:21 +08:00
Bruce Sun
07061fec3c
Bug 1102703 - Porting bluetooth interface of android lollipop (a2dp). r=shawnjohnjr
2015-01-08 11:47:42 +08:00
Bruce Sun
29b4ba484c
Bug 1102703 - Porting bluetooth interface of android lollipop (core). r=btian, r=tzimmermann, r=shawnjohnjr
2015-01-08 11:47:12 +08:00
Bruce Sun
08507e26e0
Bug 1102703 - Extend internal interfaces to sync with android lollipop and bluez 5.26 (handsfree). r=btian, r=tzimmermann
2015-01-08 11:46:43 +08:00
Bruce Sun
08634bb129
Bug 1102703 - Extend internal interfaces to sync with android lollipop and bluez 5.26 (a2dp). r=shawnjohnjr
2015-01-08 11:46:10 +08:00
Bruce Sun
4ae7d4780a
Bug 1102703 - Extend internal interfaces to sync with android lollipop and bluez 5.26 (core). r=btian, f=tzimmermann
2015-01-08 11:44:49 +08:00
Szu-Yu Chen [:aknow]
741ad71bdd
Bug 1115603
- Part 4: Use nsITelephonyCallInfo for call data (bluetooth). r=btian
2015-01-08 16:33:51 +08:00
Bruce Sun
6d031a026a
Bug 1102703: (9/10) Porting bluetooth interface of bluez 5.26 (handsfree) r=btian, f=tzimmermann
2015-01-09 13:39:27 +08:00
Bruce Sun
c50c4aedc4
Bug 1102703: (8/10) Porting bluetooth interface of bluez 5.26 (a2dp) r=btian, f=tzimmermann
2015-01-09 13:38:53 +08:00
Bruce Sun
04614aebb8
Bug 1102703: (7/10) Porting bluetooth interface of bluez 5.26 (core) r=btian, f=tzimmermann
2015-01-09 13:38:15 +08:00
Bruce Sun
050b6a1922
Bug 1102703: (6/10) Porting bluetooth interface of android lollipop (handsfree) r=shawnjohnjr, r=btian, r=tzimmermann
2015-01-09 13:37:40 +08:00
Bruce Sun
bc9200ec52
Bug 1102703: (5/10) Porting bluetooth interface of android lollipop (a2dp) r=shawnjohnjr
2015-01-09 13:37:05 +08:00
Bruce Sun
e281c7bdc4
Bug 1102703: (4/10) Porting bluetooth interface of android lollipop (core) r=btian, r=tzimmermann, r=shawnjohnjr
2015-01-09 13:36:32 +08:00
Bruce Sun
602a02a783
Bug 1102703: (3/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (handsfree) r=btian, r=tzimmermann
2015-01-09 13:35:01 +08:00
Bruce Sun
0581a40170
Bug 1102703: (2/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (a2dp) r=shawnjohnjr
2015-01-09 13:34:28 +08:00
Bruce Sun
6b9eecaa70
Bug 1102703: (1/10) Extend internal interfaces to sync with android lollipop and bluez 5.26 (core) r=btian, f=tzimmermann
2015-01-09 13:33:53 +08:00
Giovanny Andres Gongora Granada
cb3533a9d3
Bug 1116371 - Correct #endif comment in BluetoothMessageUtils.h, r=btian
2015-01-08 14:43:10 +08:00
Thomas Zimmermann
bda5309bb5
Bug 1095488: Added AVRCP support for Bluetooth daemon backend, r=shuang
2015-01-07 11:32:06 +01:00
Thomas Zimmermann
562e509ca8
Bug 1095488: Added Bluetooth AVRCP interface, r=shuang
2015-01-07 11:32:05 +01:00
Thomas Zimmermann
1a8c4eb9fd
Bug 1095488: Add Bluetooth AVRCP module, r=shuang
2015-01-07 11:32:05 +01:00
Thomas Zimmermann
7d48d22528
Bug 1095488: Add Bluetooth AVRCP helpers, r=shuang
2015-01-07 11:32:05 +01:00
Dave Huseby
83a6796724
Bug 1107681 - fix up the dom uses of WrapptedJSToDictionary to use the cx-less interface. r=bholley
2014-12-29 11:56:00 +01:00
Jamin Liu
3988677a6b
Bug 1088527 - Modify BluetoothOppManager.IsConnected to indicate whether profile is connected or not. r=btian
...
BluetoothOppManager.IsConnected() couldn't represent the connection status
of Opp profile since it only return true if there is an ongoing
file-transfer session.
This function was used to named |IsTransferring()| in Bug 827267, however,
it was renamed to |IsConnected()| when Bug 842948 landed.
2014-12-26 16:58:11 +08:00
Edgar Chen
23f6b7be43
Bug 1087847 - Make sure the Icc status in MobileConnection and IccManager are synced. r=hsinyi,smaug
2014-11-13 19:12:11 +08:00
Ben Hsu
42d775afda
Bug 1070831 - Part 6: Clean up BluetoothRilListener. r=btian
2014-12-21 17:37:00 +01:00
Botond Ballo
40dadf0d08
Bug 1073081 - Fix -Wsign-compare and -Wsign-conversion warnings. r=ehsan
...
--HG--
extra : source : 88c58a8cc276a4691ed23fd8b8f2f6c0713b50fd
2014-11-24 19:54:33 -05:00
Botond Ballo
7b85bd5de5
Bug 1073081 - Fix -Wdelete-non-virtual-dtor warnings by marking some classes as MOZ_FINAL. r=ehsan
...
--HG--
extra : source : 7a909c534cf723b252ea5b0a225a6656399b5b2e
2014-11-24 18:38:23 -05:00