summaryrefslogtreecommitdiffstats
path: root/healthd/BatteryPropertiesRegistrar.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused files in healthd.Yifan Hong2017-10-191-50/+0
| | | | | Test: mma Change-Id: I19c13aa3f1fdecd3f7072dccfe9dbd580f09e22a
* healthd: Implement scheduleUpdateAdam Lesinski2017-03-221-0/+1
| | | | | | | | | scheduleUpdate forces a healthd battery update, which will notify all listeners. Test: Manual (strace -p $healthd_pid) Bug: 32645990 Change-Id: I8b19f79b633ca8988f0e3dd5be14757f6421ddcb
* Fix clang-tidy performance warnings in healthd.Chih-Hung Hsieh2016-07-271-1/+1
| | | | | | | | * Use const reference type for parameters to avoid unnecessary copy. Bug: 30407689 Change-Id: I926ea7b6e9e020a228c812b7e23087a2b7ed9809 Test: build with WITH_TIDY=1
* healthd: BatteryPropertiesRegistrar binder service ref count fixupTodd Poynor2016-01-281-1/+1
| | | | | | | | | Call addService using a reference to a strong pointer to the service object, such that the proper IBinder object is ref counted, instead of passing the object's this pointer. Bug: None Change-Id: I72cac08c835a17b8cc263b2dc34864420b7a2841
* healthd: BatteryService dumpstate supportTodd Poynor2013-10-221-0/+2
| | | | Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
* healthd: break link between BatteryMonitor and BatteryPropertiesRegistrarTodd Poynor2013-09-171-6/+0
| | | | | | | | | | Make it easier to later separate out binder-related code. Add helper functions healthd_battery_update(), healthd_get_property() to allow these operations without needing references to the BatteryMonitor object. Change-Id: Ie584bf53e5178ce0a098d0d940d6c311fdff62d4
* healthd: read individual battery property value on demandTodd Poynor2013-08-221-0/+1
| | | | | | | Adding support for batteryChargeCounter and batteryCurrentNow as parameters likely to be useful for power consumption analysis. Change-Id: Ib23b05d3c31c22ece0d21e55cc481c1b5dabe59e
* healthd: Add system health monitoring daemonTodd Poynor2013-07-261-0/+52
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