W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2012

RE: Device light and proximity sensor

From: SULLIVAN, BRYAN L <bs3131@att.com>
Date: Wed, 9 May 2012 19:35:57 +0000
To: Doug Turner <dougt@mozilla.com>
CC: Niklas Widell <niklas.widell@ericsson.com>, Robin Berjon <robin@berjon.com>, "public-device-apis@w3.org public-device-apis@w3.org" <public-device-apis@w3.org>
Message-ID: <59A39E87EA9F964A836299497B686C350FEAD363@WABOTH9MSGUSR8D.ITServices.sbc.com>
OK, I'll start there and test all of the more recent Android devices I have. It may take a couple of weeks. I will send the test out first, once developed so others can fix it or try it out.

But setting up an automated test for this may be tricky - I need a test harness that involves moving the device around, and varying things close to the proximity sensor, and light intensity (if you had ambient sound implemented, I could prepare a harness for that...). Sounds like something an OEM or platform vendor might have in their lab, but not me. And I'm not looking forward to running a test over the hours that this might take to determine resource impact reliably.

Thanks,
Bryan Sullivan


From: Doug Turner [mailto:dougt@mozilla.com]
Sent: Wednesday, May 09, 2012 12:29 PM
To: SULLIVAN, BRYAN L
Cc: Niklas Widell; Robin Berjon; public-device-apis@w3.org public-device-apis@w3.org
Subject: Re: Device light and proximity sensor

We implemented device orientation, device motion, device proximity, device light in Firefox for Android.  You can take a look there?

Doug

On May 9, 2012, at 12:26 PM, SULLIVAN, BRYAN L wrote:


Yes, given an implementation I could create a test. But it might take someone with device-level debugging tools to draw accurate data from the CPU and/or battery status. So an OEM or platform vendor would be better to run specific tests on their platform(s). It could also vary by platform, per the implementation approach, so I don't think a limited test sample would be conclusive.

Thanks,
Bryan Sullivan


From: Doug Turner [mailto:dougt@mozilla.com]
Sent: Wednesday, May 09, 2012 12:21 PM
To: SULLIVAN, BRYAN L
Cc: Niklas Widell; Robin Berjon; public-device-apis@w3.org<mailto:public-device-apis@w3.org> public-device-apis@w3.org<mailto:public-device-apis@w3.org>
Subject: Re: Device light and proximity sensor


On May 9, 2012, at 12:18 PM, SULLIVAN, BRYAN L wrote:



But in both cases, my main concern is the delivery of superfluous events, which I believe would cost in terms of CPU battery etc (I don't have actual test results to validate that assertion).



This is an important concern, and we should test it to see what energy difference it can make.  Will you be willing to run that experiment?

Doug
Received on Wednesday, 9 May 2012 19:36:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 19:36:58 GMT