abda7153fe
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 |
||
---|---|---|
.. | ||
api | ||
images | ||
include/healthd | ||
Android.bp | ||
android.hardware.health@2.0-service.rc | ||
Android.mk | ||
animation.h | ||
AnimationParser.cpp | ||
AnimationParser.h | ||
AnimationParser_test.cpp | ||
BatteryMonitor.cpp | ||
charger.cpp | ||
charger.sysprop | ||
charger_test.cpp | ||
charger_utils.cpp | ||
charger_utils.h | ||
healthd.rc | ||
healthd_draw.cpp | ||
healthd_draw.h | ||
healthd_mode_charger.cpp | ||
healthd_mode_charger.h | ||
healthd_mode_charger_nops.cpp | ||
healthd_mode_charger_nops.h | ||
HealthServiceDefault.cpp | ||
HealthServiceHealthd.cpp | ||
manifest_healthd.xml | ||
OWNERS | ||
TEST_MAPPING |