Commit Graph

3 Commits

Author SHA1 Message Date
Ricardo Cerqueira 03130f33fc charger: Use the same metrics as recovery to pick a density
Change-Id: Ieb046c493ca3d367cff570bd08d38c84c74e5fbd
2016-10-13 13:30:36 +01:00
Adrian DC cadd0be089 cm: charger: Add support for double backlight displays
* Some devices using AMS AS36xx LEDs controllers
    are using 2 backlight paths to light the display,
    mostly on Sony Huashan and Sony Blue board devices

 * Although most of the displays have interlaced backlights
    and the half dark path can be hard to see, other displays
    have a top / bottom path that make half the screen on / off

 * Control the backlight level of both path if the device does have
    BACKLIGHT_PATH set, and if present, SECONDARY_BACKLIGHT_PATH

 * Leave the HEALTD_BACKLIGHT_LEVEL config accessible
    to override the default 100 / 255 brightness used in healthd

Change-Id: If774c3e66acedddf7ba676581e7c88b7e83a66b6
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2016-08-14 21:53:37 -07:00
Steve Kondik 7595620750 cm: Add custom off-mode charging screen
* Moving this to open-source from CyanogenOS :)
  * Thanks to Chao Chen, Ethan Chen, Pat Erley, Scott Mertz,
    and Keith Mok for various contributions to this.

Change-Id: If79f9c279668d14ee0cde62889bb09e7185ef08c
2016-08-14 14:10:53 -07:00