diff options
author | Todd Poynor <toddpoynor@google.com> | 2013-09-18 20:09:33 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2013-10-22 16:32:54 -0700 |
commit | 020369d8724eff2b87350e54e157a609846166e4 (patch) | |
tree | 57eed3999a23125cfc1666b4c1c6305b36f10bb3 /healthd/BatteryMonitor.h | |
parent | 6dcc45ed6dd455d82ecfb3addf247125846f3019 (diff) | |
download | system_core-020369d8724eff2b87350e54e157a609846166e4.zip system_core-020369d8724eff2b87350e54e157a609846166e4.tar.gz system_core-020369d8724eff2b87350e54e157a609846166e4.tar.bz2 |
healthd: BatteryService dumpstate support
Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
Diffstat (limited to 'healthd/BatteryMonitor.h')
-rw-r--r-- | healthd/BatteryMonitor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.h b/healthd/BatteryMonitor.h index f0e6454..4866cc2 100644 --- a/healthd/BatteryMonitor.h +++ b/healthd/BatteryMonitor.h @@ -40,11 +40,13 @@ class BatteryMonitor { void init(struct healthd_config *hc); bool update(void); status_t getProperty(int id, struct BatteryProperty *val); + void dumpState(int fd); private: struct healthd_config *mHealthdConfig; Vector<String8> mChargerNames; bool mBatteryDevicePresent; + struct BatteryProperties props; int getBatteryStatus(const char* status); int getBatteryHealth(const char* status); |