Hello gaia team!
Something that I would really find helpful is a way to get the current light value. My apps need to know the ambient light level immediately without waiting for a change event.
Just something to think about =)
Joshua Smith
Something that I would really find helpful is a way to get the current light value. My apps need to know the ambient light level immediately without waiting for a change event.
Just something to think about =)
Joshua Smith
Thanks Andreas.
1.The system computed the incoming light and
calculated the clamped value as its target light value.
If the computed value and clamped value are difference,
then go to transition step.
2.In transition step, the system gets the current brightness value
and compares this value to the target value. If the value is larger than
delta, then the brightness will be changed.
The transition step will keep checking the value in each interval time until
the difference is smaller than delta. It returns.
Above is what I checked about how FxOS implements automatic brightness. please let me know if anything I am wrong in my understanding.
I haven't checked the algorithm that Android takes.
The reason why I checked the source of auto brightness because it seems unstable on my FxOS device.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
1.The system computed the incoming light and
calculated the clamped value as its target light value.
If the computed value and clamped value are difference,
then go to transition step.
2.In transition step, the system gets the current brightness value
and compares this value to the target value. If the value is larger than
delta, then the brightness will be changed.
The transition step will keep checking the value in each interval time until
the difference is smaller than delta. It returns.
Above is what I checked about how FxOS implements automatic brightness. please let me know if anything I am wrong in my understanding.
I haven't checked the algorithm that Android takes.
The reason why I checked the source of auto brightness because it seems unstable on my FxOS device.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
