diff options
author | Todd Poynor <toddpoynor@google.com> | 2013-10-21 20:26:25 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2013-10-22 11:15:50 -0700 |
commit | 6dcc45ed6dd455d82ecfb3addf247125846f3019 (patch) | |
tree | 5fcc97210de7d5c97aecc521507807d0f5150937 /healthd/BatteryMonitor.h | |
parent | 83dfaa8853fd485bc5d4307c282b093f6e140f1e (diff) | |
download | system_core-6dcc45ed6dd455d82ecfb3addf247125846f3019.zip system_core-6dcc45ed6dd455d82ecfb3addf247125846f3019.tar.gz system_core-6dcc45ed6dd455d82ecfb3addf247125846f3019.tar.bz2 |
healthd: Fixups for systems without batteries or removable batteries
* Replace unnecessary warnings about missing attributes with a more
informative message when no battery devices provided by the system.
* Turn off periodic battery checks when no battery devices (thereby
reducing unnecessary kernel log spam).
* Replace battery properties in log messages with a more informative
message when no battery is provided or the battery is removed.
Change-Id: I68a514aa7315ae2b5d22cb8861d3c9b1b38035a1
Diffstat (limited to 'healthd/BatteryMonitor.h')
-rw-r--r-- | healthd/BatteryMonitor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.h b/healthd/BatteryMonitor.h index 3dd2ef0..f0e6454 100644 --- a/healthd/BatteryMonitor.h +++ b/healthd/BatteryMonitor.h @@ -44,6 +44,7 @@ class BatteryMonitor { private: struct healthd_config *mHealthdConfig; Vector<String8> mChargerNames; + bool mBatteryDevicePresent; int getBatteryStatus(const char* status); int getBatteryHealth(const char* status); |