Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66149737 authored by Evan Severson's avatar Evan Severson
Browse files

Use ambient light sensor to adjust camera privacy light brightness

If there is a light sensor available at boot then we will watch for
changing values and compute the integral of the values over the past
specified interval. Light sensor values are transformed with a logorithm
since it was observed that values increase very quickly with addition of
artificial light although as a human it feels that brightness is
increasing linearly (some light research tells this is called
Fechner's law)

Bug: 216107392
Test: CameraPrivacyLightControlllerTest

Change-Id: I94742d099d6a5d074173a21e629a3044f0a10c9a
parent 5815b882
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment