Commit Graph

25416 Commits

Author SHA1 Message Date
Thomas Zimmermann
0ce9195195 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
80cfcd8000 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
eb87169279 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
223b3c8c51 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
ce880cd1db 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
22bd7a3082 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
e456465bea 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
ba20a966b7 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
374b11c2ec 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
6f4742436b 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
d905860919 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
a8c8d063d7 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
Carsten "Tomcat" Book
d8bf375062 Backed out changeset c345da3eef13 (bug 1058440) for regressions 2014-09-01 12:47:43 +02:00
Thomas Zimmermann
6d9eb8bfda 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
e94c49cdb6 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
c047d2359d 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
9500b07c38 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
445b23b5e2 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
Dimi Lee
aaa8026ad0 Bug 1058440 - B2G NFC: enable debug when NFC debug is enabled. r=allstars.chh 2014-08-29 19:13:51 +08:00
Phil Ringnalda
9def110412 Merge m-c to b-i 2014-08-31 18:44:20 -07:00
Phil Ringnalda
a127cbc54f Merge m-i to m-c, a=merge 2014-08-31 18:17:24 -07:00
Kyle Machulis
e281053428 Bug 1060934 - Remove SettingsQueue.jsm file; r=fabrice a=2.1 2014-08-31 14:42:47 -07:00
Ryan VanderMeulen
cb4bcf731a Merge m-c to b2g-inbound. a=merge 2014-08-30 12:45:54 -04:00
David Zbarsky
447962fe79 Bug 1033114 Part 4: Make mStartTime a nullable TimeDuration r=birtles 2014-08-30 02:11:57 -04:00
David Zbarsky
7276fd8572 Bug 1033114 Part 3: Make mStartTime a nullable TimeDuration r=birtles 2014-08-30 02:11:57 -04:00
David Zbarsky
55dff76341 Bug 1033114 Part 2: Rename mPauseStart to mHoldTime to match spec r=birtles 2014-08-30 02:11:56 -04:00
David Zbarsky
9f3b471024 Bug 1033114 Part 1: Update AnimationPlayer to spec changes r=birtles, r=bz 2014-08-30 02:11:56 -04:00
Kyle Machulis
651ae8d1aa Bug 1060691 - Fix error message comparison test; a=kwierso 2014-08-29 18:09:46 -07:00
Kyle Machulis
d7b4f3d674 Bug 1060691 - Clean up settings api debug messages; r=gwagner a=2.1 2014-08-29 16:36:02 -07:00
Andrea Marchesini
35125820b7 Bug 1058470 - Blob URL should contain the origin as part of the URI, r=bz 2014-08-31 11:40:11 +01:00
Kyle Machulis
91ef20c261 Bug 1015518 - Update users of settings observer 'message' field to use boolean; r=gene a=2.1 2014-08-27 21:01:31 -07:00
Kyle Machulis
c2bbeca192 Bug 1015518 - Update SettingsService mochitests; r=bent 2014-08-27 21:01:31 -07:00
Kyle Machulis
fb56d9d590 Bug 1015518 - Use SettingsRequestManager as SettingsService Backend; r=bent 2014-08-27 21:01:31 -07:00
Kyle Machulis
41a4e59da7 Bug 900551 - Make marionette webapi tests use transaction events for settings; r=edgar r=hchang r=dlee 2014-08-27 21:01:30 -07:00
Kyle Machulis
9ed9dbaba5 Bug 900551 - Mochitests for settings permissions; r=bent r=ehsan 2014-08-27 21:01:30 -07:00
Kyle Machulis
6b224be516 Bug 900551 - Add new permission for wallpaper setting; r=bent 2014-08-27 21:01:30 -07:00
Kyle Machulis
8127b43eeb bug 900551 - Settings API OOP; r=bent 2014-08-27 21:01:29 -07:00
Ryan VanderMeulen
a3c8179253 Merge b2g-inbound to m-c. a=merge 2014-08-29 15:26:40 -04:00
Ryan VanderMeulen
374cc6cb6c Backed out changesets de5cefa8e52e and 5f66ff9f11f2 (bug 1057898) for Gaia Python integration test failures. a=backout 2014-08-29 15:22:17 -04:00
Ryan VanderMeulen
b6151e4634 Merge fx-team to m-c. a=merge 2014-08-29 15:10:18 -04:00
Jason Orendorff
8ae7ff2a44 Follow-up 2 to bug 1041631 - Make several more tests work when Symbol is not defined. no_r=me, a=RyanVM on a CLOSED TREE.
--HG--
extra : rebase_source : 16b265e2c241278bc15f8aa6a976ed736fcafcac
2014-08-29 11:36:45 -05:00
Carsten "Tomcat" Book
b838e5c2a9 Merge mozilla-central to b2g-inbound a=merge 2014-08-29 15:41:02 +02:00
James Kolb
ea2c2a5c07 Bug 1028288 Add canvas global transparency support to svgs. r=seth 2014-08-29 23:04:34 +09:00
Szu-Yu Chen [:aknow]
4ca17745e5 Bug 1060222 - Fix an error in ril_worker.js. r=htsai 2014-08-28 23:10:00 -04:00
Jamin Liu
7c1c4f8f76 Bug 1060216 - [Bluedroid] Distribute "PropertyChanged" signal to notify BluetoothAdapter when discovery state changed. r=shuang 2014-08-29 02:10:00 -04:00
Randy Lin
a0097ef383 Bug 1055920 - [B2G][AudioChannel] Avoid to create unnecessary AudioChannel instance on child process. r=baku 2014-08-29 14:10:16 +08:00
Chuck Lee
fd34220848 Bug 1055380 - Cast network configs into correct data type. r=hchang 2014-08-29 11:18:02 +08:00
Kyle Machulis
d83f17e7d0 Bug 846200 - Update Marionette JS WebAPI Tests to use new settings-api permissions; r=echou r=echen
--HG--
extra : rebase_source : 36a9f3e055a2ff7bcf624e9ef7f8f1e4619de6da
2014-08-27 21:01:29 -07:00
Kyle Machulis
61adc43df3 Bug 846200 - Update mochitests to use new settings-api permissions; r=bent
--HG--
extra : rebase_source : edf9accf26a49a541c2f87847c2fe89c42a20fd6
2014-08-27 21:01:29 -07:00
Kyle Machulis
0c31500dac Bug 846200 - Support for granting settings permissions on a per-permission basis; r=bent
--HG--
extra : rebase_source : 941bc56c900d6eb96a49af80be2b328155c0ea45
2014-08-27 21:01:29 -07:00