commit | 020369d8724eff2b87350e54e157a609846166e4 | [log] [tgz] |
---|---|---|
author | Todd Poynor <toddpoynor@google.com> | Wed Sep 18 20:09:33 2013 -0700 |
committer | Todd Poynor <toddpoynor@google.com> | Tue Oct 22 16:32:54 2013 -0700 |
tree | 57eed3999a23125cfc1666b4c1c6305b36f10bb3 | |
parent | 6dcc45ed6dd455d82ecfb3addf247125846f3019 [diff] [blame] |
healthd: BatteryService dumpstate support Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 66b961d..095ce9d 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp
@@ -195,6 +195,11 @@ -1 : healthd_config.periodic_chores_interval_fast * 1000; } +void healthd_dump_battery_state(int fd) { + gBatteryMonitor->dumpState(fd); + fsync(fd); +} + static void periodic_chores() { healthd_battery_update(); }