Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 917253002: [Android] Move the android Device Sensors API to the UI thread. (Closed)

Created:
5 years, 10 months ago by timvolodine
Modified:
5 years, 10 months ago
CC:
chromium-reviews, riju_, jam, timvolodine, darin-cc_chromium.org, mlamouri+watch-sensors_chromium.org, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Move the android Device Sensors API to the UI thread. Move the Java-implementation of Device Motion/Orientation/Light APIs to run on the UI thread. This is to avoid a blocking call from the IO thread to the UI thread inside DeviceSensors.java. That call can lead to deadlock and hence is removed in this patch. BUG=455767 Committed: https://crrev.com/c166ffe71f201a40c6e7b237f76e0b3e63b41137 Cr-Commit-Position: refs/heads/master@{#316562}

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 8

Patch Set 3 : comments #

Total comments: 4

Patch Set 4 : comments #

Patch Set 5 : simplify shutdown #

Messages

Total messages: 24 (9 generated)
timvolodine
5 years, 10 months ago (2015-02-13 14:48:36 UTC) #2
jdduke (slow)
https://codereview.chromium.org/917253002/diff/20001/content/browser/device_sensors/sensor_manager_android.cc File content/browser/device_sensors/sensor_manager_android.cc (right): https://codereview.chromium.org/917253002/diff/20001/content/browser/device_sensors/sensor_manager_android.cc#newcode179 content/browser/device_sensors/sensor_manager_android.cc:179: Java_DeviceSensors_stop(AttachCurrentThread(), So will all Java calls now take place ...
5 years, 10 months ago (2015-02-13 16:26:57 UTC) #3
timvolodine
https://codereview.chromium.org/917253002/diff/20001/content/browser/device_sensors/sensor_manager_android.cc File content/browser/device_sensors/sensor_manager_android.cc (right): https://codereview.chromium.org/917253002/diff/20001/content/browser/device_sensors/sensor_manager_android.cc#newcode179 content/browser/device_sensors/sensor_manager_android.cc:179: Java_DeviceSensors_stop(AttachCurrentThread(), On 2015/02/13 16:26:57, jdduke wrote: > So will ...
5 years, 10 months ago (2015-02-13 18:07:26 UTC) #4
jdduke (slow)
lgtm, thanks! (though it might be worth getting another reviewer more familiar with the code ...
5 years, 10 months ago (2015-02-13 18:19:17 UTC) #5
timvolodine
thanks Jared, https://codereview.chromium.org/917253002/diff/40001/content/browser/device_sensors/data_fetcher_shared_memory_android.cc File content/browser/device_sensors/data_fetcher_shared_memory_android.cc (right): https://codereview.chromium.org/917253002/diff/40001/content/browser/device_sensors/data_fetcher_shared_memory_android.cc#newcode19 content/browser/device_sensors/data_fetcher_shared_memory_android.cc:19: } On 2015/02/13 18:19:17, jdduke wrote: > ...
5 years, 10 months ago (2015-02-16 16:36:50 UTC) #7
timvolodine
+ cc: mvanouwerkerk@ who may be familiar with some device sensor bits..
5 years, 10 months ago (2015-02-16 16:38:01 UTC) #8
jdduke (slow)
On 2015/02/16 16:38:01, timvolodine wrote: > + cc: mvanouwerkerk@ who may be familiar with some ...
5 years, 10 months ago (2015-02-16 17:28:13 UTC) #9
Michael van Ouwerkerk
lgtm
5 years, 10 months ago (2015-02-16 18:42:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917253002/80001
5 years, 10 months ago (2015-02-17 10:50:19 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/43145)
5 years, 10 months ago (2015-02-17 10:55:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917253002/80001
5 years, 10 months ago (2015-02-17 11:07:28 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/43155)
5 years, 10 months ago (2015-02-17 11:12:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917253002/80001
5 years, 10 months ago (2015-02-17 11:25:52 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-17 11:38:03 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 11:38:41 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c166ffe71f201a40c6e7b237f76e0b3e63b41137
Cr-Commit-Position: refs/heads/master@{#316562}

Powered by Google App Engine
This is Rietveld 408576698