auto_screen_brightness: Add LightProviderMojo and LightSamplesObserver
This commit adds and uses LightProviderMojo and LightSamplesObserver when IIO Service is available. LightProviderMojo will request information and the target light sensor's samples from IIO Service instead of script: backlight_tool and reading raw values directly from sysfs. BUG=b:173485266, b:176871193 TEST=unit tests and run on nightfury(hatch) Change-Id: I8b7e23677def14261296378a9d205f3d310b47d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2568999Reviewed-by:Thanh Nguyen <thanhdng@chromium.org> Commit-Queue: Cheng-Hao Yang <chenghaoyang@chromium.org> Cr-Commit-Position: refs/heads/master@{#845988}
Showing
This diff is collapsed.
Please register or sign in to comment