Commit graph

18 commits

Author SHA1 Message Date
Volodymyr Zhdanov
20505e9ca1 charger: add 400dpi symlink
* used by google bonito
* https://android.googlesource.com/device/google/bonito/+/refs/tags/android-9.0.0_r39/device-bonito.mk#18

Change-Id: Idd0b4640ee4896c86b25a5457fe889c28e49a283
2019-05-23 02:50:50 +02:00
Christopher N. Hesse
5ee8c8b0a9 images: Add 420dpi symlink
Change-Id: If184d3e3c5e4545e8baba665366b59390718ac02
Signed-off-by: Christopher N. Hesse <raymanfx@gmail.com>
(cherry picked from commit 70e7015d73b8fdd5258732863012f7b06d8347f5)
2019-04-09 09:20:28 +02:00
Luca Stefani
76dd1e5e16 Charger: Remove old alarm interface and update timerfd interface
Oreo doesn't allow usage of the old alarm interface anymore, so
simply remove it and switch to timerfd. Also update the timerfd
interface from CAF O release

Change-Id: I22fc00630072cbf18976239dc039bf2135946045
2017-09-11 04:10:59 +00:00
Adrian DC
f69910d67f libhealthd: Add android-base and minui include paths
* Required to access android-base/unique_fd.h

 * Includes following commit from CAF device/qcom/common

healthd: Add include path for minui.h
The minui.h header file path has changed such that it
now resides within recovery/minui/include. Update the
healthd makefile to reflect this
Change-Id: I4ed371156b075f5b96404480b3703f113003979b

Change-Id: I60bc31ecaa07dad40b37265ded37d64b492bd029
2017-09-11 04:10:35 +00:00
Luca Stefani
5c60e4fd24
lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state

Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
2017-08-23 17:33:22 +03:00
Michael Bestas
4279948a43 charger: Remove battery_fail images
* These are copied from system/core/healthd,
  avoid unnecessary build warnings

Change-Id: Id087169ebb2d70d2d1ad4d8c9a8cfd20578fc7f2
2017-08-20 12:58:56 +00:00
Michael W
ea82b9f6f7 charger: Fix small battery capacity font
* Load the correct font to display the capacity in appropriate size
* Fall back to gr_sys_font() in case it can't be loaded

Change-Id: I7a05be70da3b8f0cf2895e844dfc29d66d5dbab1
2017-07-22 20:18:26 +00:00
Dan Pasanen
8ee2386925 charger: updates for 7.1.2 minui
Change-Id: I613799e7ed332d11333ba166f7df310b86deb450
2017-04-05 10:40:52 -05:00
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