History log of /system/core/healthd/healthd_mode_charger.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ac2aa7d7b1ec4c292c0f9061fa758c61974d4ca0 24-May-2018 Thierry Strudel <tstrudel@google.com> healthd_mode_charger: unblank the screen only on first frame

Original code is unblank screen for all frames of the first
cycle, unblank is needed only before the first frame of the
first cycle.

Bug: 74771887
Change-Id: I51d8390e359335a0b1cb127b096db1a8b889b169
Signed-off-by: Thierry Strudel <tstrudel@google.com>
/system/core/healthd/healthd_mode_charger.cpp
10c2b4013a2a33d1ab91fdffc6c7f98a48a63de9 08-Nov-2017 Yifan Hong <elsk@google.com> healthd: charger use health 2.0 HAL

Test: charger_test
Test: off-mode charging, charger runs correctly
Bug: 63702641
Bug: 69268160
Change-Id: I7dfc83ae4020ada7e9d11ab955f648abb74f435b
/system/core/healthd/healthd_mode_charger.cpp
503b63fe09e62b6a909c11969f1bbf51d6b70a95 07-Sep-2017 Elliott Hughes <enh@google.com> <stdbool.h> not necessary in C++.

Bug: N/A
Test: builds
Change-Id: I1f32b202e353414e74ace87a7d5b495b5deb5f99
/system/core/healthd/healthd_mode_charger.cpp
1d540dd0f44c1c7d40878f6a7bb447e85e6207ad 14-Jul-2017 Luke Song <songwalker@google.com> healthd: restructure healthd_mode_charger

Refactor drawing code into separate class, and allow for split screen
drawing with offset.

Cherry picked from commit 7f386dcab98b4a2827b5ffe29d7d3de7637841c0

Bug: 63541890
Test: Verify charging mode animation
Change-Id: I6c089460f55b8c2f75f4aa3153a5736f6f434b51
/system/core/healthd/healthd_mode_charger.cpp
3a156e6c2b75ae8fad999dc25196470bc40cc9c3 27-Jun-2017 Mark Salyzyn <salyzyn@google.com> Merge changes Ibe1feb39,I05be83e4,If1422e4d
am: a4f086ab20

Change-Id: I7e5d431c992f9860ca7b42ca81edfbfd1d8e0a1c
26f1dd764c357d024d3857295970f7e51cccaf25 27-Jun-2017 Mark Salyzyn <salyzyn@google.com> healthd: check console-ramoops-0

On later kernels /sys/fs/pstore/console-ramoops becomes
/sys/fs/pstore/console-ramoops-0

Test: none
Bug: 63058217
Change-Id: I05be83e40dfc1730ed62b74a146123cdb8573ca6
/system/core/healthd/healthd_mode_charger.cpp
c8183bb0711d74babaf5bc3bf77e9bd220621817 01-Feb-2017 Todd Poynor <toddpoynor@google.com> healthd: charger mode use reboot(), not android_reboot()

Preserve last Android reboot reason as recorded by android_reboot()
prior to entering charger mode. For example, a thermal shutdown that
reboots to charger mode leaves that reason in place, for user
notification purposes at next Android startup.

Bug: 30994946
Test: manual
Change-Id: I003f57bfff29a471bb647d2cf6b0986ff428985a
/system/core/healthd/healthd_mode_charger.cpp
bf9000583275c4b83e311d3fa142d8d589d17d91 25-Jan-2017 Tao Bao <tbao@google.com> Merge "healthd: Track the API change of minui/minui.h." am: fb8c70cf4b
am: 93e35655c4

Change-Id: Ic77cd6f293d2875e251def1e75aff33a612d7077
92c260159a6b69f0317d7b66dd11a52772494e48 19-Jan-2017 Tao Bao <tbao@google.com> healthd: Track the API change of minui/minui.h.

ev_init() and ev_iterate_available_keys() now take std::function
callback functions.

Test: mmma system/core/healthd
Change-Id: I8231b57ba816fcba8f698dd7145724021e235664
/system/core/healthd/healthd_mode_charger.cpp
fdce0878f1fac332adda2bbe8686f4e9cebeab39 29-Nov-2016 Damien Bargiacchi <drb@google.com> Always show the battery percentage unless it is unknown
am: 3f0250c3cc

Change-Id: If5027f2fc94aaf1f2db1d6df79866185e2cfe86d
3f0250c3cc84b2480ef70d51343204eecbe84532 25-Oct-2016 Damien Bargiacchi <drb@google.com> Always show the battery percentage unless it is unknown

Bug: 29547343
Change-Id: I55630be8033cd8074628a892960b5fafe0c83338
/system/core/healthd/healthd_mode_charger.cpp
b9ede3dbbaca591e08bde4dfbed63d3bee43f95f 21-Oct-2016 Tim Murray <timmurray@google.com> healthd: move binder fd to not use EPOLLWAKEUP am: e89ea5eb85
am: 098babc7c8

Change-Id: I9ff934ef70aa89c02edcc8687249655ad86d806f
098babc7c80cebef1bc2c39802d805338410d3fe 21-Oct-2016 Tim Murray <timmurray@google.com> healthd: move binder fd to not use EPOLLWAKEUP
am: e89ea5eb85

Change-Id: I2e5a55d3bc381baa679e39e63d37164f76ffdcfc
e89ea5eb85bae6b9257ac033996c8e64af432425 19-Oct-2016 Tim Murray <timmurray@google.com> healthd: move binder fd to not use EPOLLWAKEUP

The binder fd doesn't need to use EPOLLWAKEUP and shouldn't; if it does,
it will prevent suspend unnecessarily.

bug 32180327

Change-Id: I292f1ada0c698290f6bd5518b237867ed69ec391
/system/core/healthd/healthd_mode_charger.cpp
afd59e2f1126fd5ce7b8a7036be9e2696437ba85 13-Sep-2016 Damien Bargiacchi <drb@google.com> resolve merge conflicts of 565ba02 to nyc-mr1-dev-plus-aosp

Change-Id: Ic2152775c96dc28f808fc7b97433f8c3d2135948
565ba02b89b64deb8bf7232ac2c2a38b01f63523 12-Aug-2016 Damien Bargiacchi <drb@google.com> Allow customization of charger animation

Allow the charging animation to be customized with a configuration file
and custom assets.

- Add a parser to parse a custom configuration file.
- Add support for showing a clock and the battery percentage.
- Expand feature that conditionally shows animation frames using min_level
and level_only to min_level and max_level

BUG: 29547343
Change-Id: Ia33f4bb37dc7d4c7fa6507a63481e93bf0bf9738
/system/core/healthd/healthd_mode_charger.cpp
ada99f91b05134bb2fa2547f9d4bf94ac5688239 24-Aug-2016 Damien Bargiacchi <drb@google.com> Update to new minui text API
am: 0ee524de68

Change-Id: I19341d2639b6efeb13eddaae1083252eeafc77fc
0ee524de689e27379eaa3d0af0152183b844b0e8 19-Aug-2016 Damien Bargiacchi <drb@google.com> Update to new minui text API

Change-Id: Ic753564a397b90a9ba54660c78bec9c1a1ef583d
/system/core/healthd/healthd_mode_charger.cpp
cdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac 10-Jun-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings in system/core.

Add parentheses around macro arguments used beside operators.
Bug: 28705665

Change-Id: I9226f319e283be640eddc31687f75b51a8ef0ac6
/system/core/healthd/healthd_mode_charger.cpp
f6dbc6d4b830c57c0155a607d0d8a2cb6b1e0040 17-Feb-2016 Yabin Cui <yabinc@google.com> healthd: separate libbatterymonitor for use in recovery.

Bug: 26879394

Change-Id: I97b5b4994c42988ce43f5085b8b4b25e9e80c9fa
(cherry picked from commit e98e177a34eb3200b9f95be8379223271933b885)
/system/core/healthd/healthd_mode_charger.cpp
e98e177a34eb3200b9f95be8379223271933b885 17-Feb-2016 Yabin Cui <yabinc@google.com> healthd: separate libbatterymonitor for use in recovery.

Bug: 26879394

Change-Id: I97b5b4994c42988ce43f5085b8b4b25e9e80c9fa
/system/core/healthd/healthd_mode_charger.cpp
0db80236f387aed9740f9765a65699827660059d 16-Dec-2015 Tao Bao <tbao@google.com> healthd: Track the API change of res_create_multi_display_surface().

CL in [1] changes the minui API of res_create_multi_display_surface()
(bootable/recovery/minui/minui.h). Track the change accordingly.

[1] commit b723f4f38f53a38502abb1a63165ac0749bc9cd9

Change-Id: If9684019105ff91d5ade5b69e88849af766c2a19
/system/core/healthd/healthd_mode_charger.cpp
bbc7ca24da2470619d5e4aa9e59435865d535d4f 15-Apr-2015 Elliott Hughes <enh@google.com> resolved conflicts for merge of 6e9b28b2 to master

Change-Id: Icd1bbc33283c504691934256a4cf5989868d3caf
9e85ea140362c1d12a002653e310405b5fc20edb 15-Apr-2015 Elliott Hughes <enh@google.com> Move away from gr_surface.

Change-Id: Icfa81b18e5c99e3ffc5c55aba1d435eb26eb8680
/system/core/healthd/healthd_mode_charger.cpp
c49ceca278af08224a33f6ff74a0f3c4656c9b5d 24-Feb-2015 Chih-Hung Hsieh <chh@google.com> Fix print format mismatch in 64-bit mode.

Change-Id: I7f0b0ed87e4e544517be66418ff76596a084976f
/system/core/healthd/healthd_mode_charger.cpp
906ee0d75770028167cc504af412846f593246af 25-Nov-2014 Andreas Gampe <agampe@google.com> am 38c3386a: resolved conflicts for merge of 03be4928 to lmp-mr1-dev-plus-aosp

* commit '38c3386a6cd44789f540fb9700c284345e7269e3':
Healthd: Remove unused variables
38c3386a6cd44789f540fb9700c284345e7269e3 25-Nov-2014 Andreas Gampe <agampe@google.com> resolved conflicts for merge of 03be4928 to lmp-mr1-dev-plus-aosp

Change-Id: I7c72ed2c54ceae19c9dfe8b2e1707f869faad110
c0970d31f3089c16d6f230decfef2566731a529a 25-Nov-2014 Andreas Gampe <agampe@google.com> Healthd: Remove unused variables

For build-system CFLAGS clean-up, remove unused variables.

Change-Id: Ifc5884518bfdb744ea9823b98db544dbe59c20d2
/system/core/healthd/healthd_mode_charger.cpp
9a11aaabf1ef8722c41d1057312be7a716badd66 22-Oct-2014 Ruchi Kandoi <kandoiruchi@google.com> Charger: Improve screen on/off scenarios

In charger-mode, power off/on screen as required, for efficient
charging.
Turn on screen on power-key press rather than on key-release.
On charge-cable removal, kick animation to show the correct battery
level.

Change-Id: I74eaf8681466c44dbd76a820adf154053e0fc43a
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Signed-off-by: Jenny TC <jenny.tc@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
/system/core/healthd/healthd_mode_charger.cpp
a84b1f64ccc5dda8e31854d4fc206b6c3d27ec39 22-Oct-2014 Ruchi Kandoi <kandoiruchi@google.com> Charger: Add a Charger to Android transition threshold

Existing code allows charger-mode to exit to Android even with 0%
battery.
This might lead to more battery discharge while booting to Android,
especially if only USB-charger is connected, and thus certain
features/components not functioning as expected in Android.

This patch adds a configurable parameter to improve the user experience
by preventing the charger exit till battery capacity is good enough to
boot Android

Change-Id: I56a283243551373e962ac562f25eaf11f07666c3
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Signed-off-by: Jenny TC <jenny.tc@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
/system/core/healthd/healthd_mode_charger.cpp
bdf11c76a39d979abd105a4f27bc1973b88893ad 26-Sep-2014 Ruchi Kandoi <kandoiruchi@google.com> healthd: Add callback for screen_on to the healthdHAL

Adds a callback to the healthdHAL which can check for device specific
properties to decide if the screen should turn on.

Change-Id: I543e7729ecb291157df4d3be1bd718f8af01ac40
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
/system/core/healthd/healthd_mode_charger.cpp
ce6bfc93a1843a48f1f459fcefb30bf9f05aa013 24-Sep-2014 Ruchi Kandoi <kandoiruchi@google.com> am 301a907f: Merge "healthd: charger: Run animation even if capacity is 0" into lmp-dev

* commit '301a907f28570ff1627e30a37069e6c5ab6a4b75':
healthd: charger: Run animation even if capacity is 0
9b0d442385fa1376f5115f9c167c50aa0d275b47 20-Sep-2014 Devin Kim <dojip.kim@lge.com> healthd: charger: Run animation even if capacity is 0

If charger is connected and battery capacity is 0, charging animation should
run. The device would be booted up even if capacity is 0 in off-mode charging.
At that time, it would take some time to be 1 from 0 for capacity if you
use USB charger.

Bug: 17606689
Change-Id: I37e0f1b6ab0ee1f6d833882e169bf3ea06cf2399
/system/core/healthd/healthd_mode_charger.cpp
ebeb0c0ea63af9fd8b2c8a7a20f919e48098ad9a 23-Sep-2014 Todd Poynor <toddpoynor@google.com> healthd: use warning level for info logs

To allow healthd/charger info to appear in systems where the loglevel
has been bumped to squelch chatty drivers.

Change-Id: I4ab135765700d7584a1ce5d972ea473d77f299f8
/system/core/healthd/healthd_mode_charger.cpp
342a2264b96ab05dc8fdbfa8bbe354ce2f4b06ca 18-Aug-2014 Todd Poynor <toddpoynor@google.com> healthd: charger: fix check for charger connected to enter suspend

Logic for this check was inadvertently reversed when porting this from
the charger daemon to healthd. Request suspend if a charegr is connected,
else stay out of suspend waiting for a charger connect or power off if
none.

Bug: 17112463
Change-Id: Iffdb6dbcd0d0a2a614ff8f50bf5f2e22e1ad552f
/system/core/healthd/healthd_mode_charger.cpp
d2b5bfa0cdf18c3b8593c777ccfcb1221df4e953 01-Jul-2014 Colin Cross <ccross@android.com> healthd: fix 64-bit build

int64_t needs to be printed with PRId64

Change-Id: If59b60bac71856e4266d459d159a570961e7340a
/system/core/healthd/healthd_mode_charger.cpp
a7300274fdc5c92144471b1fe6dd19a8d18ae393 30-Jun-2014 Todd Poynor <toddpoynor@google.com> charger: leave screen off when entered with very low battery

Change-Id: I28e3d6adaf4bb59d14eca7103d7b063d54a41c75
/system/core/healthd/healthd_mode_charger.cpp
6bd4588d65977956cadf2e5d384673c64329c8e8 24-Jun-2014 Riley Andrews <riandrews@google.com> resolved conflicts for merge of 079c637f to master

Change-Id: Iab9a857026de954d7497d6b0eaf3751d2d3904c7
9015eaa30fec3b5763e49124d7aa822862261842 23-Jun-2014 Ruchi Kandoi <kandoiruchi@google.com> healthd: Avoid animation while not charging.

At present, charging animation runs irrespective of whether charger is
connected or not. When the charger is disconnected, device does not
shutdown for 10sec. Charger animation during this period should be
avoided.

Change-Id: I34dc5028522ca199d50a1a1b684b035b2d81ef68
/system/core/healthd/healthd_mode_charger.cpp
e1d5247e0090b57f1f5c63df7eba6754c502a449 16-May-2014 Colin Cross <ccross@android.com> healthd: fix warnings

Fix a few warnings missed when turning on -Werror

Change-Id: I5728664a90d33b95ab3d6ea8823244c59643aedc
/system/core/healthd/healthd_mode_charger.cpp
6f5b47f9144960412b0fb6bc417f0c41bf53438a 16-May-2014 Mark Salyzyn <salyzyn@google.com> healthd: Turn on -Werror

Change-Id: I72caf38008ee7d842dfacd3f58add9bc8e4787e8
/system/core/healthd/healthd_mode_charger.cpp
2f10b6bc23e092df9eace913794a5b5fa1bd3ca2 18-Mar-2014 Doug Zongker <dougz@google.com> am 706d57b2: am 769c6452: update minui library call

* commit '706d57b2948cc2eec22dc16394cf5582586b4237':
update minui library call
ee6ef15e677fd3168b4a0d221175fbf0ecd96ff5 11-Mar-2014 Doug Zongker <dougz@android.com> remove pixelflinger from healthd

The minui library has changed to no longer use libpixelflinger. It
also offers a more efficient way of storing and loading frames of
animation; use it to represent the battery-full state images.

Also removes the unused battery_charge.png image.

Bug: 12131110
Change-Id: I6cc8b19f36a806c99cda30cc47b5968daf6b333b
/system/core/healthd/healthd_mode_charger.cpp
1c38f5d9587396288997a568a01b2faa79ce1613 13-Feb-2014 Colin Cross <ccross@android.com> resolved conflicts for merge of 1fef485f to master

Change-Id: If402e68292a183064afe35cb77a4437682ee373a
cd7c10438a3ea744a937a2100440e20a3960d745 23-Nov-2013 Todd Poynor <toddpoynor@google.com> healthd: charger mode dump previous console from pstore

Change-Id: Id65ffe4f80aa870a1d1f3f3d67c3bb687490c27f
/system/core/healthd/healthd_mode_charger.cpp
fea5b4d44b2f646a4befb6be92ddc3987b38bb36 09-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: move charger executable to healthd charger mode

* Add healthd charger mode ops
* Check for executable invocation as "charger", set charger mode if so
* Incorporate charger executable as healthd charger mode

Change-Id: I4a44e7a4c3a65ae9be94491f7f498aa48d4f8a84
/system/core/healthd/healthd_mode_charger.cpp