Commit Graph

55 Commits

Author SHA1 Message Date
Jamin Liu
d045f724ae Bug 1006320 - Add a marionette test for verifying the functionality BluetoothManager based on bluetooth API v2. r=btian 2014-07-04 16:38:40 +08:00
Jamin Liu
1f24c3b60b Bug 1006320 - Remove useless bluetooth API tests from bluetooth2 folder. r=btian 2014-07-04 16:38:26 +08:00
Shawn Huang
b248d966d6 Bug 1033273 - Part 2: Add InitHfpInterface/DeinitHfpinterface. r=btian 2014-07-03 00:05:00 -04:00
Ben Tian
4b2882a458 Bug 1006314 - Patch 3/3: Revise BluetoothAdapter, r=bz, r=echou 2014-07-02 16:25:50 +08:00
Ben Tian
431e479c90 Bug 1006314 - Patch 2/3: Implement BluetoothDiscoveryHandle, r=bz, r=echou 2014-07-02 11:16:37 +08:00
Ben Tian
291204e6a6 Bug 1033130 - [bluetooth2] Add missing including of BluetoothInterface.h in BluetoothA2dpManager.cpp, r=shuang 2014-07-02 10:36:28 +08:00
Jocelyn Liu
5c1c665d7a Bug 1031253 - Patch: Reject promise if StartStopGonkBluetooth failed. r=btian 2014-07-02 10:13:39 +08:00
Jocelyn Liu
a294ae867e Bug 1031252 - Patch: Reject promise for setProperty requests if BT is not enabled. r=btian 2014-07-02 09:41:33 +08:00
Thomas Zimmermann
bdab8163ef Bug 1031185: Convert Bluetooth to use Bluedroid wrappers (under bluedroid2/), r=btian
This patch converts the Bluedroid backend to use the wrapper
classes. The affected interfaces are Core, Sockets, Handsfree,
A2DP, and AVRCP.
2014-07-01 17:50:46 +02:00
Thomas Zimmermann
3599b2ff1c Bug 1031185: Wrap Bluedroid interfaces in classes (under bluedroid2/), r=btian
This patch adds classes around all Bluedroid interfaces that are
currently used by Gecko. These are Core, Socket, Handsfree, A2DP,
and AVRCP.

All arguments and return values are still Bluedroid types and
constants. Future patches will convert them to interface-neutral
artifacts.
2014-07-01 17:50:30 +02:00
Ben Tian
1a39505572 Bug 1031230 - Change usage of AutoJSAPI in |DispatchAttributeEvent| for bug 951991, r=shuang 2014-06-27 17:38:25 +08:00
Olli Pettay
67c5293976 Bug 1029866 - Rename InitUsingWin(...) to Init(...), r=bobowencode
--HG--
extra : rebase_source : e04aac99fe64270f283cf49ed52b8f7512a2fa3b
2014-06-25 13:17:17 +03:00
Jim Blandy
7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Jocelyn Liu
1a23e69aaa Bug 1006310 - Patch2: Revise SetName and SetDiscoverable to use Promise. r=btian, r=bz 2014-06-24 15:31:10 +08:00
Jocelyn Liu
6010d09598 Bug 1027992 - Patch: Throw an exception when Promise can't be created for enable/disable adapter requests. r=bz 2014-06-24 15:29:34 +08:00
Bob Owen
8ae74cee94 Bug 1023969 - Part 7: Replace |AutoPushJSContext|s in bluetooth2 BluetoothDevice::SetPropertyByValue. r=bholley 2014-06-21 18:44:36 +01:00
Bob Owen
22388d749d Bug 1023969 - Part 6: Replace |AutoPushJSContext|s in bluetooth2 BluetoothAdapter::SetPropertyByValue. r=bholley 2014-06-21 18:42:28 +01:00
Bob Owen
31c1cdb88f Bug 1023969 - Part 5: Replace AutoPushJSContext in bluetooth2 BluetoothAdapter GetDevicesTask::ParseSuccessfulReply. r=bholley 2014-06-21 18:39:08 +01:00
Jocelyn Liu
b9397c68ff Bug 1027552 - Align values in BluetoothAttributeEvent.attrs with webidl, r=btian 2014-06-23 10:32:58 +08:00
Jamin Liu
eb8a5e3410 Bug 1020300 - Dispatch part of AdapterStateChangedCallback to main thread. r=btian 2014-06-20 12:07:23 +08:00
Ben Tian
5ba7d7443a Bug 1026454 - Fire PropertyChanged when discovery state changes, r=echou 2014-06-19 15:47:03 +08:00
Jocelyn Liu
7082677c66 Bug 1019544 - Patch2: Fire onattributechanged to gaia while BluetoothAdapter received PropertyChanged event. r=btian, r=bz 2014-06-19 12:03:12 +08:00
Jocelyn Liu
447208c6bc Bug 1019544 - Patch1: Revise BluetoothAttributeEvent to fire a single event for multiple attribute changes, r=bz 2014-06-19 12:03:09 +08:00
Ben Tian
89b88ca8f4 Bug 1020736 - Wrap adapter's new properties for BluetoothManager::GetAdapters call in BluetoothServiceBluedroid, r=echou 2014-06-16 16:47:11 +08:00
Ben Tian
9e8687b1e0 Bug 1016196 - Patch 2/2: Add logs for Promise in BluetoothReplyRunnable, r=echou 2014-06-16 15:50:45 +08:00
Ben Tian
a0c0a64ffd Bug 1016196 - Patch 1/2: Add Promise support in BluetoothReplyRunnable, r=echou 2014-05-28 18:11:25 +08:00
Ben Tian
913968f3ef Bug 1016186 - Wrap nsRefPtr<BluetoothAdapter> instead of BluetoothAdapter*, r=echou 2014-06-05 14:52:45 +08:00
Ben Tian
70e03af5fd Bug 1016186 - Do not fire AdapterAdded event when BT is turned on, r=echou 2014-06-04 16:11:59 +08:00
Ben Tian
f705492f4b Bug 1025732 - [bluetooth2][RIL] Add number and name presentation, r=shuang 2014-06-16 11:53:56 +08:00
Boris Zbarsky
bc1e511e33 Bug 1009675 part 2. Return WebIDL 'any' values as handles. r=peterv 2014-06-11 16:26:52 -04:00
Jocelyn Liu
691904ecd6 Bug 1022498 - Patch1: Passing nsresult while using Promise::MaybeReject, r=btian 2014-06-09 16:22:27 +08:00
Ben Tian
a0105c95eb Bug 1006308 - Implement adapter enable/disable functions, r=btian 2014-06-04 18:30:08 +08:00
Ben Tian
e9a6cbc6a7 Bug 1019372 - Patch 6/6: [bluetooth2] Dispatch part of DiscoveryChangedCallback to main thread, r=echou 2014-06-03 11:50:50 +08:00
Ben Tian
38a70e78f5 Bug 1019372 - Patch 5/6: [bluetooth2] Dispatch part of BondStateChangedCallback to main thread, r=echou 2014-06-03 11:45:04 +08:00
Ben Tian
efc6433dd3 Bug 1019372 - Patch 4/6: [bluetooth2] Dispatch part of RemoteDevicePropertiesCallback to main thread, r=echou 2014-06-03 11:43:40 +08:00
Ben Tian
00482d00c6 Bug 1019372 - Patch 3/6: [bluetooth2] Use Atomic on certain primitive variables to ensure thread-safe, r=echou 2014-06-03 11:42:39 +08:00
Ben Tian
32f7497101 Bug 1019372 - Patch 2/6: [bluetooth2] Dispatch part of AdapterPropertiesCallback to main thread, r=echou 2014-06-03 11:41:56 +08:00
Ben Tian
a325c2db44 Bug 1019372 - Patch 1/6: [bluetooth2] Remove unneccessary variable sIsBtEnabled to avoid racing issue, r=echou 2014-06-03 11:40:42 +08:00
Ben Tian
2bd195fd2a Bug 1020046 - Apply Bug 1011110 to bluetooth2, r=shuang 2014-06-04 10:03:14 +08:00
Vicamo Yang
fa6b7968d6 Bug 927320 - 2/2: rename related variables. r=aknow,btian 2014-06-03 22:15:30 +08:00
Vicamo Yang
cff89f3dbc Bug 927320 - 1/2: rename TelephonyProvider to TelephonyService. r=aknow
--HG--
rename : dom/telephony/gonk/TelephonyProvider.js => dom/telephony/gonk/TelephonyService.js
rename : dom/telephony/gonk/TelephonyProvider.manifest => dom/telephony/gonk/TelephonyService.manifest
rename : dom/telephony/ipc/TelephonyIPCProvider.cpp => dom/telephony/ipc/TelephonyIPCService.cpp
rename : dom/telephony/ipc/TelephonyIPCProvider.h => dom/telephony/ipc/TelephonyIPCService.h
rename : dom/telephony/nsIGonkTelephonyProvider.idl => dom/telephony/nsIGonkTelephonyService.idl
rename : dom/telephony/nsITelephonyProvider.idl => dom/telephony/nsITelephonyService.idl
2014-06-03 22:15:25 +08:00
Ben Tian
2c108a410e Bug 1019377 - Fix build break due to RIL and nsTArrayToJSArray changes (bug 1016849 and bug 1017419), r=shuang 2014-06-03 14:18:00 +08:00
Ben Tian
c2a4aee70b Bug 1006309 - Patch 4/4: Add logs specific for refined WebBluetooth API. r=echou 2014-05-29 17:20:19 +08:00
Ben Tian
0402aa3fd0 Bug 1006309 - Patch 3/4: Query adapters list from bluetooth backend, r=echou 2014-05-29 17:16:20 +08:00
Ben Tian
21579063d9 Bug 1006309 - Patch 2/4: BluetoothManager implementation, r=echou, r=bz 2014-05-29 17:14:45 +08:00
Jocelyn Liu
8a979995cb Bug 1006316 - Patch2: Modify bluetooth2/BluetoothAdapter to support WebAPI change, r=btian 2014-05-28 18:16:22 +08:00
Ben Tian
dbcb69f261 Bug 1016243 - [cleanup] Remove unused function BluetoothService::RemoveObserverFromTable, r=shuang 2014-05-27 17:02:44 +08:00
Ryan VanderMeulen
4a08636d20 Merge inbound to m-c on a CLOSED TREE. 2014-05-27 16:23:41 -04:00
Reuben Morais
6b28e6ff71 Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz 2014-05-25 15:31:11 -03:00
Ben Tian
344a57ae53 Bug 1015090 - Add BluetoothAdapterEvent.webidl and BluetoothAttributeEvent.webidl, r=bz 2014-05-26 09:40:28 +08:00