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

Issue 292693004: [DeviceLight] Browser+java part (Closed)

Created:
6 years, 7 months ago by riju_
Modified:
6 years, 3 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, Michael van Ouwerkerk, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[DeviceLight] Browser+java part This is part 2 of the Adding Device Light [content side] Adding the Browser and Java part in the content side for the DeviceLight API. BUG=336424 Committed: https://crrev.com/f07da3973fd2bc8cdd739fed2522634bd475b2d2 Cr-Commit-Position: refs/heads/master@{#295937}

Patch Set 1 #

Patch Set 2 : rebase + add some tests #

Patch Set 3 : Add android instrumentation tests for DeviceLight #

Total comments: 18

Patch Set 4 : Tim's comments + BrowserTests #

Patch Set 5 : update #

Patch Set 6 : Wip null event #

Total comments: 2

Patch Set 7 : fix test case #

Patch Set 8 : add command line switch #

Patch Set 9 : change pump frequncy to 199 + nits #

Patch Set 10 : change frequency in sensor_consts #

Total comments: 39

Patch Set 11 : Fix Tim's comments #

Patch Set 12 : Forgot some light bits removal from device_inertial_sensor_diagnostics.html #

Total comments: 26

Patch Set 13 : Fix Tim's comments #

Patch Set 14 : null event test case #

Total comments: 13

Patch Set 15 : Fix Tim's final comments #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -335 lines) Patch
M content/browser/device_sensors/data_fetcher_shared_memory.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/device_sensors/data_fetcher_shared_memory_android.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/device_sensors/data_fetcher_shared_memory_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc View 1 16 chunks +86 lines, -4 lines 0 comments Download
M content/browser/device_sensors/data_fetcher_shared_memory_default.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -1 line 0 comments Download
M content/browser/device_sensors/device_inertial_sensor_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +83 lines, -11 lines 0 comments Download
M content/browser/device_sensors/device_inertial_sensor_service.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/device_sensors/device_inertial_sensor_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -1 line 0 comments Download
A content/browser/device_sensors/device_light_message_filter.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A content/browser/device_sensors/device_light_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -0 lines 0 comments Download
M content/browser/device_sensors/inertial_sensor_consts.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/device_sensors/sensor_manager_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +18 lines, -7 lines 0 comments Download
M content/browser/device_sensors/sensor_manager_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +64 lines, -15 lines 0 comments Download
M content/browser/device_sensors/sensor_manager_android_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +48 lines, -4 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/DeviceSensorsTest.java View 1 2 3 4 5 6 7 8 9 10 9 chunks +55 lines, -0 lines 0 comments Download
M content/renderer/device_sensors/device_light_event_pump.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/device_sensors/device_light_event_pump.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +13 lines, -2 lines 0 comments Download
M content/renderer/device_sensors/device_light_event_pump_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
D content/test/data/device_orientation/device_inertial_sensor_diagnostics.html View 1 2 3 1 chunk +0 lines, -147 lines 0 comments Download
D content/test/data/device_orientation/device_motion_null_test_with_alert.html View 1 2 3 1 chunk +0 lines, -38 lines 0 comments Download
D content/test/data/device_orientation/device_motion_test.html View 1 2 3 1 chunk +0 lines, -40 lines 0 comments Download
D content/test/data/device_orientation/device_orientation_null_test_with_alert.html View 1 2 3 1 chunk +0 lines, -32 lines 0 comments Download
D content/test/data/device_orientation/device_orientation_test.html View 1 2 3 1 chunk +0 lines, -36 lines 0 comments Download
A + content/test/data/device_sensors/device_inertial_sensor_diagnostics.html View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A content/test/data/device_sensors/device_light_infinity_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +30 lines, -0 lines 0 comments Download
A content/test/data/device_sensors/device_light_test.html View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A + content/test/data/device_sensors/device_motion_null_test_with_alert.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/test/data/device_sensors/device_motion_test.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/test/data/device_sensors/device_orientation_null_test_with_alert.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/test/data/device_sensors/device_orientation_test.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 29 (1 generated)
riju_
6 years, 6 months ago (2014-06-13 17:03:36 UTC) #1
riju_
Hi Tim, please take a look. I am going to add the browser test part ...
6 years, 5 months ago (2014-07-15 12:01:30 UTC) #2
riju_
+jochen: content owner
6 years, 5 months ago (2014-07-16 07:17:59 UTC) #3
timvolodine
thanks for the patch riju, comments below. Also, I have a few general concerns: - ...
6 years, 5 months ago (2014-07-16 15:39:38 UTC) #4
jochen (gone - plz use gerrit)
is it worthwhile to use shared memory for 5 IPCs/s ?
6 years, 5 months ago (2014-07-17 07:36:01 UTC) #5
riju_
Tim: thanks for the comments. In case of No Sensor, like linux desktop, null event ...
6 years, 5 months ago (2014-07-18 15:59:18 UTC) #6
riju_
On 2014/07/17 07:36:01, jochen wrote: > is it worthwhile to use shared memory for 5 ...
6 years, 4 months ago (2014-07-31 16:50:29 UTC) #7
jochen (gone - plz use gerrit)
since there's a good reason (share infrastructure) to use shared memory, that's fine with me. ...
6 years, 4 months ago (2014-08-01 09:57:41 UTC) #8
riju_
On 2014/08/01 09:57:41, jochen wrote: > since there's a good reason (share infrastructure) to use ...
6 years, 4 months ago (2014-08-01 10:10:09 UTC) #9
riju_
On 2014/07/16 15:39:38, timvolodine wrote: > thanks for the patch riju, comments below. > > ...
6 years, 4 months ago (2014-08-04 16:45:05 UTC) #10
timvolodine
On 2014/08/04 16:45:05, riju_ wrote: > On 2014/07/16 15:39:38, timvolodine wrote: > > thanks for ...
6 years, 4 months ago (2014-08-05 10:39:17 UTC) #11
riju_
On 2014/08/05 10:39:17, timvolodine wrote: > On 2014/08/04 16:45:05, riju_ wrote: > > On 2014/07/16 ...
6 years, 4 months ago (2014-08-13 11:49:11 UTC) #12
timvolodine
https://codereview.chromium.org/292693004/diff/280001/content/test/data/device_sensors/device_light_null_test_with_alert.html File content/test/data/device_sensors/device_light_null_test_with_alert.html (right): https://codereview.chromium.org/292693004/diff/280001/content/test/data/device_sensors/device_light_null_test_with_alert.html#newcode6 content/test/data/device_sensors/device_light_null_test_with_alert.html:6: return event.value == null; should this be infinity?
6 years, 4 months ago (2014-08-19 17:38:46 UTC) #13
riju_
Thanks for having a look Tim. The bot is timing out, because on the blink ...
6 years, 4 months ago (2014-08-20 13:06:25 UTC) #14
riju_
Hi Tim, please take a look, hopefully final one. All tests pass now all bots ...
6 years, 3 months ago (2014-09-04 09:02:16 UTC) #15
timvolodine
> All tests pass now all bots are green. (patchset 9) cool, comments below: https://codereview.chromium.org/292693004/diff/380001/content/browser/device_sensors/data_fetcher_shared_memory_default.cc ...
6 years, 3 months ago (2014-09-04 17:16:58 UTC) #16
riju_
Thanks Tim, followed most of your comments, apart from NullTest without alert .. i tried ...
6 years, 3 months ago (2014-09-08 09:26:18 UTC) #17
riju_
6 years, 3 months ago (2014-09-08 12:59:01 UTC) #18
timvolodine
regarding null test with alert, I am pretty sure it will flake on our test ...
6 years, 3 months ago (2014-09-08 15:20:19 UTC) #19
riju_
Tim, please take another look. https://codereview.chromium.org/292693004/diff/420001/content/browser/device_sensors/data_fetcher_shared_memory_default.cc File content/browser/device_sensors/data_fetcher_shared_memory_default.cc (right): https://codereview.chromium.org/292693004/diff/420001/content/browser/device_sensors/data_fetcher_shared_memory_default.cc#newcode84 content/browser/device_sensors/data_fetcher_shared_memory_default.cc:84: return light_buffer_->data.value >= 0; ...
6 years, 3 months ago (2014-09-09 14:01:18 UTC) #20
timvolodine
lgtm with a few nits. basically I think there is some confusion with the use ...
6 years, 3 months ago (2014-09-10 13:47:26 UTC) #21
riju_
jochen@ : please take another look.
6 years, 3 months ago (2014-09-11 11:05:11 UTC) #22
jochen (gone - plz use gerrit)
stuff outside device_sensors lgtm with nit addressed https://codereview.chromium.org/292693004/diff/460001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/292693004/diff/460001/content/content_browser.gypi#newcode478 content/content_browser.gypi:478: 'browser/device_sensors/device_light_message_filter.h', please ...
6 years, 3 months ago (2014-09-12 13:57:46 UTC) #23
riju_
https://codereview.chromium.org/292693004/diff/460001/content/browser/device_sensors/device_inertial_sensor_browsertest.cc File content/browser/device_sensors/device_inertial_sensor_browsertest.cc (right): https://codereview.chromium.org/292693004/diff/460001/content/browser/device_sensors/device_inertial_sensor_browsertest.cc#newcode270 content/browser/device_sensors/device_inertial_sensor_browsertest.cc:270: // expects to get an event with null(Inf) values. ...
6 years, 3 months ago (2014-09-22 08:22:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/292693004/500001
6 years, 3 months ago (2014-09-22 08:25:10 UTC) #26
commit-bot: I haz the power
Committed patchset #16 (id:500001) as 26316d740c731639bef927faa64b543f11d16853
6 years, 3 months ago (2014-09-22 08:30:35 UTC) #27
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/f07da3973fd2bc8cdd739fed2522634bd475b2d2 Cr-Commit-Position: refs/heads/master@{#295937}
6 years, 3 months ago (2014-09-22 08:31:09 UTC) #28
timvolodine
6 years, 3 months ago (2014-09-22 11:12:37 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/292693004/diff/460001/content/public/android/...
File
content/public/android/javatests/src/org/chromium/content/browser/DeviceSensorsTest.java
(right):

https://codereview.chromium.org/292693004/diff/460001/content/public/android/...
content/public/android/javatests/src/org/chromium/content/browser/DeviceSensorsTest.java:184:
DeviceSensors.DEVICE_LIGHT, 100);
On 2014/09/22 08:22:21, riju_(OOO) wrote:
> On 2014/09/10 13:47:25, timvolodine wrote:
> > i think this fits on one line?
> 
> No. Its 87 chars if I put in a single line, git cl format tells me to use 2
> lines.

for java files we have a limit of 100 chars

Powered by Google App Engine
This is Rietveld 408576698