summaryrefslogtreecommitdiffstats
path: root/healthd/healthd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of 03be4928 to lmp-mr1-dev-plus-aospAndreas Gampe2014-11-251-1/+0
|\ | | | | | | Change-Id: I7c72ed2c54ceae19c9dfe8b2e1707f869faad110
| * Healthd: Remove unused variablesAndreas Gampe2014-11-241-1/+0
| | | | | | | | | | | | For build-system CFLAGS clean-up, remove unused variables. Change-Id: Ifc5884518bfdb744ea9823b98db544dbe59c20d2
* | healthd: Add callback for screen_on to the healthdHALRuchi Kandoi2014-09-261-1/+2
|/ | | | | | | | Adds a callback to the healthdHAL which can check for device specific properties to decide if the screen should turn on. Change-Id: I543e7729ecb291157df4d3be1bd718f8af01ac40 Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
* resolved conflicts for merge of de7bdc94 to masterRuchi Kandoi2014-06-201-1/+1
| | | | Change-Id: I6dc10c8220c0984b31a05534b576ca25afdf5383
* healthd: Add hooks for ENERGY_COUNTER propertyTodd Poynor2014-05-201-0/+1
| | | | | Bug: 10118565 Change-Id: Ibabae2a78a600ae37ce9b91da0f5980ee94b05c2
* healthd: Turn on -WerrorMark Salyzyn2014-05-151-4/+4
| | | | Change-Id: I72caf38008ee7d842dfacd3f58add9bc8e4787e8
* healthd: fix runstring option error reportingTodd Poynor2013-11-211-1/+2
| | | | Change-Id: I548d837afbde8a66826bb2cdb79ede7edda42b1f
* healthd: BatteryService dumpstate supportTodd Poynor2013-10-221-0/+5
| | | | Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
* healthd: move charger executable to healthd charger modeTodd Poynor2013-09-171-9/+33
| | | | | | | | * Add healthd charger mode ops * Check for executable invocation as "charger", set charger mode if so * Incorporate charger executable as healthd charger mode Change-Id: I4a44e7a4c3a65ae9be94491f7f498aa48d4f8a84
* healthd: move Android communication code to separate sourceTodd Poynor2013-09-171-29/+58
| | | | | | | | | | * 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: add register event interfaceTodd Poynor2013-09-171-76/+87
| | | | | | | | Facilitates registering events from external source files. Add epoll events param to callbacks. Change-Id: Icf8fb0c62af11453cbcc92877ff2c3bc03b9bb1b
* healthd: break link between BatteryMonitor and BatteryPropertiesRegistrarTodd Poynor2013-09-171-3/+8
| | | | | | | | | | 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
* am ee549d25: am ff9ec2d9: healthd: perform periodic chores when awake and on ↵Todd Poynor2013-09-091-0/+3
|\ | | | | | | | | | | | | battery power * commit 'ee549d256f50ca3078a8537fa5b32a3f86295ea5': healthd: perform periodic chores when awake and on battery power
| * healthd: perform periodic chores when awake and on battery powerTodd Poynor2013-09-091-0/+3
| | | | | | | | | | | | | | | | Monitor battery/charging status at normal awake rate when on battery power. Bug: 10650797 Change-Id: I914d24af4963ab9d52b03c0a2615ad653ced9b12
* | healthd: Add average current propertyTodd Poynor2013-09-041-0/+1
|/ | | | Change-Id: Ibc901fe1b550c0d72095ef5590e2db8962d1a7b2
* healthd: Move power_supply attribute paths to healthd_configTodd Poynor2013-08-141-1/+10
| | | | | | | 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: create healthd_board_init()Todd Poynor2013-08-081-12/+12
| | | | | | | Subsume healthd_board_poll_intervals, make clear the call is for init-time actions. Change-Id: I9267e4ce7c62b78d2997a43822f20bfa13b54cd8
* healthd: add health HAL supportTodd Poynor2013-08-071-8/+23
| | | | | | | | | | Adds board-specific battery monitoring capabilities: * processing of battery property values and additional charging logic. * adjusted (or removed) polling intervals. * replaced (or removed) battery status heartbeat in kernel log. Change-Id: Ia77bca8dc92c6c2a51afa65d516cacca08da73ac
* healthd: Add system health monitoring daemonTodd Poynor2013-07-261-0/+258
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