Commit Graph

28580 Commits

Author SHA1 Message Date
Edgar Chen
c45e95745f Bug 843452 - Part 6: Build MobileConnection DOM/IPC by default. r=smaug,khuey 2014-08-05 18:01:14 +08:00
Edgar Chen
f23a579406 Bug 843452 - Part 5: Changes for xpcshell test. r=hsinyi 2014-06-04 19:28:03 +08:00
Edgar Chen
94212cd1a3 Bug 843452 - Part 4-7: [NetworkGeolocationProvider] Get dataInfo via MobileConnectionService. r=kchen 2014-08-11 16:15:59 +08:00
Edgar Chen
a49246d6b9 Bug 843452 - Part 4-6: [NetworkManager] Get dataInfo via MobileConnectionService. r=vicamo 2014-08-11 16:05:43 +08:00
Edgar Chen
d38866a132 Bug 843452 - Part 4-5: MobileConnectionGonkService for gonk backend. r=hsinyi,khuey 2014-02-10 19:55:22 +08:00
Edgar Chen
0eaa8db64e Bug 843452 - Part 4-4: PhoneNumberUtils changes for MobileConnection ipdl. r=gwagner 2014-07-02 18:10:30 +08:00
Edgar Chen
1c14867349 Bug 843452 - Part 4-3: [MMS] Get voiceInfo via MobileConnectionService. r=vicamo 2014-07-01 18:47:29 +08:00
Edgar Chen
3a13cca9e3 Bug 843452 - Part 4-2: [GPS] Get voiceInfo via MobileConnectionService. r=kchen 2014-07-01 18:46:05 +08:00
Edgar Chen
892cdd18e9 Bug 843452 - Part 4-1: Interface changes for gonk backend. r=hsinyi 2014-07-02 18:08:59 +08:00
Edgar Chen
bbf6e5c16f Bug 843452 - Part 3-3: MobileConnectionIPCService for content process. r=smaug 2014-07-01 18:37:32 +08:00
Edgar Chen
88d3252f85 Bug 843452 - Part 3-2: IPDL implementation for MobileConnection. r=smaug 2014-07-01 18:28:18 +08:00
Edgar Chen
6feea5c427 Bug 843452 - Part 3-1: IPDL for MobileConnection. r=smaug 2014-07-01 18:09:08 +08:00
Edgar Chen
9c5ba8cbdc Bug 843452 - Part 2-3: MobileConnection DOM changes for MobileConnectionService interface. r=smaug 2014-07-02 17:38:23 +08:00
Edgar Chen
26472771cf Bug 843452 - Part 2-2: Bluetooth changes for MobileConnectionService interface. r=echou 2014-07-02 17:14:08 +08:00
Edgar Chen
a914b5a025 Bug 843452 - Part 2-1: Rename MobileConnectionProvider to MobileConnectionService and redesign for IPDL. r=hsinyi
--HG--
rename : dom/mobileconnection/interfaces/nsIMobileConnectionProvider.idl => dom/mobileconnection/interfaces/nsIMobileConnectionService.idl
2014-07-02 17:13:33 +08:00
Edgar Chen
91e9759e19 Bug 843452 - Part 1-2: Mobile*Info implements both webidl and idl interfaces. r=smaug 2014-03-09 00:10:47 +08:00
Edgar Chen
3f6485bdb1 Bug 843452 - Part 1-1: WEBIDL changes for MobileConnection IPDL. r=hsinyi,smaug 2014-03-26 14:50:30 +08:00
Ben Tian
b1e4d19ae8 Bug 1060245 - Patch 3/3: Remove BluetoothAdapter::EnableDisable(), r=echou 2014-08-28 16:57:26 +08:00
Ben Tian
c49cd3933e Bug 1060245 - Patch 2/3: Cleanup header of adapter, r=echou 2014-08-29 15:38:44 +08:00
Ben Tian
e198ab2be5 Bug 1060245 - Patch 1/3: Cleanup headers of manager and device, r=echou 2014-09-02 18:31:18 +08:00
Wes Kocher
6be703108c Merge fx-team to m-c a=merge 2014-09-02 19:28:14 -07:00
Felipe Gomes
136be0505a Bug 1053716 - Mouse events over content-process area need to set capturing so that the entire mouse interaction is forwarded to the child. r=smaug 2014-09-02 15:31:12 -04:00
Ryan VanderMeulen
ac29441911 Merge m-c to b2g-inbound. a=merge
CLOSED TREE
2014-09-02 14:36:29 -04:00
Ryan VanderMeulen
dfd4efa147 Merge inbound to m-c. a=merge
CLOSED TREE
2014-09-02 14:23:25 -04:00
Ryan VanderMeulen
f0f846d875 Merge b2g-inbound to m-c. a=merge 2014-09-02 14:02:58 -04:00
Thomas Zimmermann
541d6e9f52 Bug 1056539: Replace |MainThreadTask| by |CloseScoRunnable| (under bluetooth2/), r=btian
|MainThreadTask| performs different operations on the main thread,
depending on a given command flag. There is only one command, CLOSE_SCO,
in use.

This patch removes the command infrastructure and replaces |MainThreadTask|
by |CloseScoRunnable|, which implements only this single operation.
2014-09-02 18:02:57 +02:00
Thomas Zimmermann
c6d11f4e48 Bug 1056539: Cleanup Bluetooth Handsfree manager (under bluetooth2/), r=btian
This patch removes the unusued callback code from Bluetooth's
Handsfree manager.
2014-09-02 18:02:56 +02:00
Thomas Zimmermann
a3c3f0346f Bug 1056539: Integrate runnables into Handsfree notifications (under bluetooth2/), r=btian
A number of notifications dispatch runnables to the main thread for
invoking actions. This is not requireed, as notifications already
run on the main thread. This patch merges the runnable's code into
the respective notifications.
2014-09-02 18:02:56 +02:00
Thomas Zimmermann
519eae713e Bug 1056539: Use Bluetooth Handsfree notifications (under bluetooth2/), r=btian
This patch replaces Handsfree callbacks by notifications. One
important change is that the first call to |BluetoothHandsfreeManager::Get|
now happens during initialization. Hence the Handsfree manager is now setup
immediately, instead of later at use.
2014-09-02 18:02:56 +02:00
Thomas Zimmermann
7a32c354b9 Bug 1056539: Implement Bluetooth Handsfree notifications (under bluetooth2/), r=btian
The patch adds notifications support to the Handsfree manager. Each
notification's method is taken from the respective callback code, with
changes to the arguments' data types.
2014-09-02 18:02:55 +02:00
Thomas Zimmermann
6863b412ce Bug 1056539: Add Bluetooth Handsfree notifications (under bluetooth2/), r=btian
The notification interface consists of virtual methods that are
invoked form the Bluetooth backend on certain events. The Handsfree
manager can implement the methods to handle these events.
2014-09-02 18:02:55 +02:00
Thomas Zimmermann
fedc29b918 Bug 1061126: Cleanup ANDROID_VERSION from BluetoothA2DPManager, r=shuang
All interfaces for Bluetooth profiles are now always available, so we
don't have to check for specific versions of Bluedroid. Instead, we
try to call the methods, and check their results.
2014-09-02 12:46:08 +02:00
Thomas Zimmermann
1234f00e91 Bug 1061126: Make Bluetooth AVRCP interface generally available, r=shuang
The methods of |BluetoothAVRCPInterface| are now always available. On
Android versions before 18, which don't support AVRCP, they always
fail with STATUS_UNSUPPORTED.
2014-09-02 12:46:07 +02:00
Thomas Zimmermann
10ae671228 Bug 1061126: Fix constants in Bluedroid HFP manager, r=shuang
This patch replaces the remaining Bluedroid constants from Bluedroid's
|BluetoothHfpManager| with Gecko constants.
2014-09-02 12:46:07 +02:00
Thomas Zimmermann
46e6f7feba Bug 1061126: Add AVRCP_UID_SIZE to Bluetooth, r=shuang
This constant AVRCP_UID_SIZE replaces the corresponding Bluedroid
constant BTRC_UID_SIZE.
2014-09-02 12:46:07 +02:00
Thomas Zimmermann
044199e66a Bug 1054242: Cleanup |BluetoothServiceBluedroid| and related functions (under bluetooth2/), r=btian
This patch removes unsued code from |BluetoothServiceBluedroid|, related
functions, and cleans up the file. It

 * removes callbacks,
 * removes callback helper tasks,
 * removes helper functions, and
 * cleans up global variables.
2014-09-02 12:38:46 +02:00
Thomas Zimmermann
dbd4ad5330 Bug 1054242: Integrate helper runnables into notification methods (under bluetooth2/), r=btian
Bluedroid callbacks were usually called on a separate thread that
was specific to this task. So Gecko's Bluetooth Core contained a
number of runnables for executing callback operations on the main
thread.

Since all notifications always run on the main thread, the extra
runnables are not required any longer. This patch integrates them
into the notification methods where possible.
2014-09-02 12:38:46 +02:00
Thomas Zimmermann
0e8745814f Bug 1054242: Use Bluetooth Core notifications (under bluetooth2/), r=btian
This patch connects backend and Gecko side of the notification
code. Gecko will now receive notifications instead of Bluedroid
callbacks.
2014-09-02 12:38:46 +02:00
Thomas Zimmermann
20b8e8fc6d Bug 1054242: Implement Bluetooth Core notifications (under bluetooth2/), r=btian
This patch adds the Gecko-side of the Core notifications. The current
implementation of the notification methods has been copied from the
repsective Bluedroid callback methods, with only minor changes to adapt
them to Gecko data types.
2014-09-02 12:38:45 +02:00
Thomas Zimmermann
3d6383e252 Bug 1054242: Add Bluetooth Core notifications (under bluetooth2/), r=btian
A notification is a callback from the Bluetooth backend to inform
Gecko about a event. Bluedroid uses function pointers for this, but
in Gecko we use method calls instead.

Gecko implements notification handlers for the Bluetooth backend. The
backend converts incomming events to Gecko types and forwards them to
the registered notification handler.
2014-09-02 12:38:45 +02:00
Thomas Zimmermann
063cdc9441 Bug 1054242: Add infrastructure for Bluetooth notifications (under bluetooth2/), r=btian
This patch adds some runnable classes for running class methods on
the main thread. This is the base of the upcomming notification
mechanism for Bluetooth.
2014-09-02 12:38:45 +02:00
Thomas Zimmermann
f17536cd4a Bug 1061219: Don't protect |ConvertAttributeString| by ANDROID_VERSION, r=shuang
The function |ConvertAttributeString| doesn't depend on the Android
version is is used by generic code in Gecko. Don't protect it by
ANDROID_VERSION.
2014-09-02 12:33:05 +02:00
Thomas Zimmermann
765250a67b Bug 1061219: Fix string conversion for A2DP connection states, r=shuang
The C++ compiler for Flatfish lacks support for initialized arrays of
C-string pointers. This patch fixes the problem by using a switch
statement for the string conversion of A2DP connection states.
2014-09-02 12:33:05 +02:00
Phil Ringnalda
c9f7cee60a Merge m-c to m-i, a=merge 2014-09-01 19:29:13 -07:00
Carsten "Tomcat" Book
6032dae895 Backed out changeset c345da3eef13 (bug 1058440) for regressions 2014-09-01 12:47:43 +02:00
Thomas Zimmermann
8fa4597127 Bug 1057337: Cleanup BluetoothA2DPManager and related code, r=shuang
The patch removes unused callbacks and helper runnables from the
Bluedroid implementation of BluetoothA2DPManager. It also removes
the last Bluedroid-specific code from BluetoothUtils.{cpp,h}.
2014-09-01 10:11:54 +02:00
Thomas Zimmermann
d634b0fd10 Bug 1057337: Integrate helper runnables into A2DP and AVRCP notifications, r=shuang
The helper runnables where necessary to perform certain operations on
the main thread after having received a callback from Bluedroid. The
new notification methods already run on the main thread, so the helper
runnables can be replaced by direct calls.
2014-09-01 10:11:54 +02:00
Thomas Zimmermann
5a658b2e3c Bug 1057337: Use Bluetooth A2DP and AVRCP notifications, r=shuang
This patch converts Bluetooth's A2DP manager and Bluedroid interface
to use notifications instead of callbacks.
2014-09-01 10:11:54 +02:00
Thomas Zimmermann
5e6ee3055d Bug 1057337: Implement Bluetooth A2DP notifications, r=shuang
This patch adds Bluetooth A2DP and AVRCP notifications to Gecko's
A2DP manager. The code has been taken from taken from the callback
implementations, and adapted to run on the main thread. No further
cleanups have been applied.
2014-09-01 10:11:53 +02:00
Thomas Zimmermann
4df54b3f2d Bug 1057337: Add Bluetooth A2DP and AVRCP notifications, r=shuang
This patch adds A2DP and AVRCP notifications and callbacks to
Gecko's Bluedroid interface. Support for AVRCP depends on the
version of the Android base system and is only available on
versions 18, 19 or later.
2014-09-01 10:11:53 +02:00