platform_system_core/healthd
Yifan Hong abda7153fe charger: Load default resources from /system
When charger resources are missing from /product, before this change,
images are loaded from /res/images/charger. After this change, charger
first checks if the resource exists at that location, and if not, use
resource under /system/etc/res/images/charger.

On devices that uses resources from /product, this change has no effect.
On devices that uses resources from /res,
- if an old image is mounted at /, charger continues to load resources
  from /res.
- if a new image is mounted at /, that is, battery_fail and
  battery_scale may not exist under /res, charger loads them from /system.
  There are no font files installed by modules defined here, so any
  device-specific font files stay at /res.

Also create virtual function wrappers over minui APIs to be mocked
later.

See next change on moving battery_scale and battery_fail images to
/system.

Test: build and inspect system/etc/res/images/charger
Bug: 143907179
Change-Id: I4895b9602274fa4a1ebb4d7d3b842622b81b7b51
2020-08-07 17:07:09 -07:00
..
api Implement sysprop_library API stability check 2019-08-20 16:16:40 +09:00
images remove pixelflinger from healthd 2014-03-11 12:25:41 -07:00
include/healthd healthd: Don't take device-scoped battery as the main system battery. 2020-03-16 12:50:42 +09:00
Android.bp Add libhealthd_charger_test to presubmit. 2020-08-05 20:00:09 -07:00
android.hardware.health@2.0-service.rc health: Add CAP_WAKE_ALARM to service via init 2019-01-04 02:24:41 +01:00
Android.mk healthd: Remove libhealthd dependency from charger 2019-10-30 13:48:08 -07:00
animation.h charger: Load default resources from /system 2020-08-07 17:07:09 -07:00
AnimationParser.cpp Fix AnimationParser remove_prefix test 2020-08-05 20:00:09 -07:00
AnimationParser.h Fix AnimationParser remove_prefix test 2020-08-05 20:00:09 -07:00
AnimationParser_test.cpp Convert healthd_test to Soong 2020-08-05 20:00:09 -07:00
BatteryMonitor.cpp BatteryMonitor: report current_now in uA 2020-04-08 16:24:17 -07:00
charger.cpp charger: uses health HAL service. 2020-01-31 13:29:21 -08:00
charger.sysprop healthd: charger use runtime sysprops instead. 2019-07-24 17:01:40 -07:00
charger_test.cpp healthd: Remove libhealthd dependency from charger 2019-10-30 13:48:08 -07:00
charger_utils.cpp charger: uses health HAL service. 2020-01-31 13:29:21 -08:00
charger_utils.h charger: uses health HAL service. 2020-01-31 13:29:21 -08:00
healthd.rc healthd: add healthd.rc 2018-04-04 14:08:04 -07:00
healthd_draw.cpp healthd: charger use runtime sysprops instead. 2019-07-24 17:01:40 -07:00
healthd_draw.h charger: minui error handling fixups 2018-07-30 08:45:52 -07:00
healthd_mode_charger.cpp charger: Load default resources from /system 2020-08-07 17:07:09 -07:00
healthd_mode_charger.h charger: Load default resources from /system 2020-08-07 17:07:09 -07:00
healthd_mode_charger_nops.cpp charger: uses health HAL service. 2020-01-31 13:29:21 -08:00
healthd_mode_charger_nops.h healthd: Add charger.recovery module. 2019-03-06 14:41:47 -08:00
HealthServiceDefault.cpp healthd: move HealthServiceCommon 2018-01-22 12:34:04 -08:00
HealthServiceHealthd.cpp healthd: move HealthServiceCommon 2018-01-22 12:34:04 -08:00
manifest_healthd.xml healthd use vintf_fragments 2018-07-17 11:57:38 -07:00
OWNERS healthd: update owners 2019-01-28 14:55:39 -08:00
TEST_MAPPING Add libhealthd_charger_test to presubmit. 2020-08-05 20:00:09 -07:00