summaryrefslogtreecommitdiffstats
path: root/healthd/BatteryMonitor.h
Commit message (Collapse)AuthorAgeFilesLines
* healthd: Set fixed battery level and temperature via propertiesTodd Poynor2014-05-221-0/+2
| | | | | | | | | | | | | setprop persist.sys.battery.capacity 77 setprop persist.sys.battery.temperature 123 and reboot to cause a fixed battery level of 77% and temperature of 12.3C to be reported to Android. Typically used on power evaluation boards without batteries connected. Bug: 14839868 Change-Id: Ibae5e16429d05891cb0787d74a2fe93b07013699
* healthd: BatteryService dumpstate supportTodd Poynor2013-10-221-0/+2
| | | | Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
* healthd: Fixups for systems without batteries or removable batteriesTodd Poynor2013-10-221-0/+1
| | | | | | | | | | | | | * 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
* healthd: move Android communication code to separate sourceTodd Poynor2013-09-171-6/+1
| | | | | | | | | | * add ops for different "modes" of healthd operation: android vs. recovery * recovery mode selected by runstring options -r * binder/Android communication moved to android mode * recovery mode ops avoiding binder service registration * "no service manager" flag removed; now handled by android vs. other modes Change-Id: I3d8c89bf96a18a6a00cc85306f9a07d3f408f2a0
* healthd: read individual battery property value on demandTodd Poynor2013-08-221-0/+2
| | | | | | | Adding support for batteryChargeCounter and batteryCurrentNow as parameters likely to be useful for power consumption analysis. Change-Id: Ib23b05d3c31c22ece0d21e55cc481c1b5dabe59e
* healthd: Move power_supply attribute paths to healthd_configTodd Poynor2013-08-141-11/+3
| | | | | | | Allow health HAL to select specific paths to be used, overriding default search for arbitrary power supplies with the named paths. Change-Id: I5f724739f58ef56087ab592b7403fc083db8f173
* healthd: add optional current_now and charge_counter to tracked stateTodd Poynor2013-08-071-0/+2
| | | | | | | | uA and uAh units are converted to mA and mAh. If current_now is present, add it to the heartbeat log (c=nnn). Change-Id: I2b5fe7b4505c98ca2d11c3f94564c1c38493c8b9
* healthd: Add system health monitoring daemonTodd Poynor2013-07-261-0/+67
Initially moving battery health monitoring here. Command line flag -n tells healthd not to use (or wait for) servicemanager in this execution, for charger and recovery modes. Change-Id: I1720594724af0c068497b359f9c6ad65aeaa1519