platform_system_core/healthd
Todd Poynor 4d7ee2ebbb healthd: don't report fake data for battery-less devices
If the kernel does not implement a power_supply class device of type
battery, do not report fake data, instead report the following by
default:

* batteryPresent = false (instead of true),
* charging status = unknown (instead of charging),
* capacity = 0 (instead of 100%),
* health = unknown (instead of good),
* AC charger online not modified (instead of forcing true)

If no charger and no battery devices are supplied by the kernel, the
AC charger online property will no longer be forced to true.  Devices
that are always plugged into AC power should either implement a
power_supply class charger device or implement a Health HAL that sets
properties appropriately.

Bug: 34507420
Test: manual: gce_x6_phone (no battery or charger),
      boots and stays booted, inspect properties
Merged-In: I14cb3b685e8130428e417e7d08c4246f7415210a

Change-Id: I64bd4431af10f3d232f36fcf8d356b6d88b08013
2018-02-05 19:48:30 +00:00
..
images
include/healthd healthd: don't report fake data for battery-less devices 2018-02-05 19:48:30 +00:00
tests Allow customization of charger animation 2016-09-12 21:07:27 -07:00
Android.bp Added libhealthd-headers. 2017-07-10 16:05:51 -07:00
Android.mk healthd: restructure healthd_mode_charger 2017-07-19 22:46:54 +00:00
animation.h Allow customization of charger animation 2016-09-12 21:07:27 -07:00
AnimationParser.cpp Allow customization of charger animation 2016-09-12 21:07:27 -07:00
AnimationParser.h Allow customization of charger animation 2016-09-12 21:07:27 -07:00
BatteryMonitor.cpp healthd: don't report fake data for battery-less devices 2018-02-05 19:48:30 +00:00
BatteryPropertiesRegistrar.cpp healthd: notify listeners using local copy of list, drop lock 2017-06-29 22:25:40 +00:00
BatteryPropertiesRegistrar.h healthd: Implement scheduleUpdate 2017-03-22 12:15:11 -07:00
charger.cpp healthd: refactor healthd code to split into 'charger' and 'healthd' 2016-11-08 07:36:07 -08:00
healthd.cpp health HAL uses "default" service name 2017-02-23 19:32:29 +00:00
healthd_common.cpp healthd: refactor healthd code to split into 'charger' and 'healthd' 2016-11-08 07:36:07 -08:00
healthd_draw.cpp healthd: restructure healthd_mode_charger 2017-07-19 22:46:54 +00:00
healthd_draw.h healthd: restructure healthd_mode_charger 2017-07-19 22:46:54 +00:00
healthd_mode_android.cpp healthd: refactor healthd code to split into 'charger' and 'healthd' 2016-11-08 07:36:07 -08:00
healthd_mode_charger.cpp resolve merge conflicts of 796987482 to stage-aosp-master 2017-10-17 12:36:14 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00