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
