Re: Device light and proximity sensor

Awesome.  Looking forward to hearing what you discover.

Doug

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

> 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 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 20:18:09 UTC