Commit graph

10 commits

Author SHA1 Message Date
Zhao Wei Liew
c85375217f cm: charger: Correct res_create_multi_display_surface() usage
Number of frames comes first; frames per second comes after.

This fixes commit 7d2b6d238b.

Change-Id: I06218a01242a327cbb9be08d3efbb3d1e4cbb217
Issue-Id: LINN-11
2017-02-05 13:24:09 +08:00
Ricardo Cerqueira
5bf45276b7 charger: Use the same metrics as recovery to pick a density
Change-Id: Ieb046c493ca3d367cff570bd08d38c84c74e5fbd
2016-10-24 05:15:30 -07:00
Michael W
4cc370ebe5 cm: charger: Center capacity and vertical offset
* What the title says :). Looks way better
* Use half a vertical font size as offset

Change-Id: I3e5cc039932a1016d419c4dbe5af5f7673631733
2016-10-23 22:49:49 -07:00
Caio Oliveira
58c7d40ec9 cm: charger: Add support for Watch/LDPI devices
* resized by 75% from MDPI

Change-Id: I52fa71feb3813b412d01508c48699778a5a45d5f
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
2016-09-08 03:39:16 -07:00
Luca Stefani
7d2b6d238b cm: charger: Fix cm healthd
Change-Id: Ibd8e9470e01d14a11941e47c099d6dd13d5d51cc
2016-08-25 15:08:19 +02:00
Brandon McAnsh
5f562fde33 charger: Fix 640dpi symlink
Change-Id: Ibb2cd183221bc7887af52835bf33fe1b3ba0ab7e
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2016-08-19 00:02:45 -04:00
Brandon McAnsh
850dd22e12 charger: Add 640dpi support
* xxxhdpi

Change-Id: I53f86c3bf68d8ba3ad21273b44f75ea6434d7883
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2016-08-17 05:44:20 -07:00
Adrian DC
e91605ce48 cm: charger: Export the RTC Clock and Alarm timestamps
* Gives easy access to the RTC values in order to verify or debug
    the current status of the RTC clock and alarm, for example
    if a user says powered-off alarm doesn't work

Change-Id: I47e71433a53a25fe9880e7be6a1f5bdb1105ef78
2016-08-14 21:53:56 -07: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