History log of /system/core/healthd/healthd.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f6dbc6d4b830c57c0155a607d0d8a2cb6b1e0040 17-Feb-2016 Yabin Cui <yabinc@google.com> healthd: separate libbatterymonitor for use in recovery.

Bug: 26879394

Change-Id: I97b5b4994c42988ce43f5085b8b4b25e9e80c9fa
(cherry picked from commit e98e177a34eb3200b9f95be8379223271933b885)
/system/core/healthd/healthd.cpp
ef1bb411cbe58034face26a8f5f1cd1ba46101dd 26-Aug-2015 Ruchi Kandoi <kandoiruchi@google.com> am 62729a1d: am 565e4c6a: Merge "healthd: Adds cycle_count, current_now and full_charge properties."

* commit '62729a1d195cd27b353da24be21bd0a855884431':
healthd: Adds cycle_count, current_now and full_charge properties.
cc338801e46776541fb661956ce76a3c97f5bb45 24-Aug-2015 Ruchi Kandoi <kandoiruchi@google.com> healthd: Adds cycle_count, current_now and full_charge properties.

Bug: 22981343
Change-Id: I4b942b891f61e6bf12e3b23f4e0ada5b7f14fd83
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/core/healthd/healthd.cpp
906ee0d75770028167cc504af412846f593246af 25-Nov-2014 Andreas Gampe <agampe@google.com> am 38c3386a: resolved conflicts for merge of 03be4928 to lmp-mr1-dev-plus-aosp

* commit '38c3386a6cd44789f540fb9700c284345e7269e3':
Healthd: Remove unused variables
38c3386a6cd44789f540fb9700c284345e7269e3 25-Nov-2014 Andreas Gampe <agampe@google.com> resolved conflicts for merge of 03be4928 to lmp-mr1-dev-plus-aosp

Change-Id: I7c72ed2c54ceae19c9dfe8b2e1707f869faad110
c0970d31f3089c16d6f230decfef2566731a529a 25-Nov-2014 Andreas Gampe <agampe@google.com> Healthd: Remove unused variables

For build-system CFLAGS clean-up, remove unused variables.

Change-Id: Ifc5884518bfdb744ea9823b98db544dbe59c20d2
/system/core/healthd/healthd.cpp
a84b1f64ccc5dda8e31854d4fc206b6c3d27ec39 22-Oct-2014 Ruchi Kandoi <kandoiruchi@google.com> Charger: Add a Charger to Android transition threshold

Existing code allows charger-mode to exit to Android even with 0%
battery.
This might lead to more battery discharge while booting to Android,
especially if only USB-charger is connected, and thus certain
features/components not functioning as expected in Android.

This patch adds a configurable parameter to improve the user experience
by preventing the charger exit till battery capacity is good enough to
boot Android

Change-Id: I56a283243551373e962ac562f25eaf11f07666c3
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Signed-off-by: Jenny TC <jenny.tc@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
/system/core/healthd/healthd.cpp
bdf11c76a39d979abd105a4f27bc1973b88893ad 26-Sep-2014 Ruchi Kandoi <kandoiruchi@google.com> healthd: Add callback for screen_on to the healthdHAL

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>
/system/core/healthd/healthd.cpp
4614f5097c66991319576e9adb68a834aae19f9e 20-Jun-2014 Ruchi Kandoi <kandoiruchi@google.com> resolved conflicts for merge of de7bdc94 to master

Change-Id: I6dc10c8220c0984b31a05534b576ca25afdf5383
/system/core/healthd/healthd.cpp
e14b37eb07b394fef05da5ee09dc6d33e3a25711 20-May-2014 Todd Poynor <toddpoynor@google.com> healthd: Add hooks for ENERGY_COUNTER property

Bug: 10118565
Change-Id: Ibabae2a78a600ae37ce9b91da0f5980ee94b05c2
/system/core/healthd/healthd.cpp
6f5b47f9144960412b0fb6bc417f0c41bf53438a 16-May-2014 Mark Salyzyn <salyzyn@google.com> healthd: Turn on -Werror

Change-Id: I72caf38008ee7d842dfacd3f58add9bc8e4787e8
/system/core/healthd/healthd.cpp
1c3d3cdea1ec549872dca3eae5ebc1d53052045c 21-Nov-2013 Todd Poynor <toddpoynor@google.com> healthd: fix runstring option error reporting

Change-Id: I548d837afbde8a66826bb2cdb79ede7edda42b1f
/system/core/healthd/healthd.cpp
020369d8724eff2b87350e54e157a609846166e4 19-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: BatteryService dumpstate support

Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
/system/core/healthd/healthd.cpp
fea5b4d44b2f646a4befb6be92ddc3987b38bb36 09-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: move charger executable to healthd charger mode

* 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
/system/core/healthd/healthd.cpp
c7464c9150eb63ad277cc5b5f704f4fd5e6678c5 10-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: move Android communication code to separate source

* 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
/system/core/healthd/healthd.cpp
98c23d82f03fede6f434ad8800a7b3bb9175e348 10-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: add register event interface

Facilitates registering events from external source files.

Add epoll events param to callbacks.

Change-Id: Icf8fb0c62af11453cbcc92877ff2c3bc03b9bb1b
/system/core/healthd/healthd.cpp
7b27f27d3de9e39d0de86c6e592d49bd4cc89158 07-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: break link between BatteryMonitor and BatteryPropertiesRegistrar

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
/system/core/healthd/healthd.cpp
47f284af49d2aef7c3bc0c2c9d1295c190e8be1a 10-Sep-2013 Todd Poynor <toddpoynor@google.com> am ee549d25: am ff9ec2d9: healthd: perform periodic chores when awake and on battery power

* commit 'ee549d256f50ca3078a8537fa5b32a3f86295ea5':
healthd: perform periodic chores when awake and on battery power
ff9ec2d9990fbf9a707df063f3d43e9169bdde16 09-Sep-2013 Todd Poynor <toddpoynor@google.com> healthd: perform periodic chores when awake and on battery power

Monitor battery/charging status at normal awake rate when on battery
power.

Bug: 10650797
Change-Id: I914d24af4963ab9d52b03c0a2615ad653ced9b12
/system/core/healthd/healthd.cpp
bc102111845a48f79a4cf6ea058a0ca334cd613c 28-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: Add average current property

Change-Id: Ibc901fe1b550c0d72095ef5590e2db8962d1a7b2
/system/core/healthd/healthd.cpp
f5d3012d2c6ac343a0b8bcc95b9cd5137d9ef02f 13-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: Move power_supply attribute paths to healthd_config

Allow health HAL to select specific paths to be used, overriding
default search for arbitrary power supplies with the named paths.

Change-Id: I5f724739f58ef56087ab592b7403fc083db8f173
/system/core/healthd/healthd.cpp
9face5cad5b4ffb883b23e1c45aafac73c712fd6 08-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: create healthd_board_init()

Subsume healthd_board_poll_intervals, make clear the call is for init-time
actions.

Change-Id: I9267e4ce7c62b78d2997a43822f20bfa13b54cd8
/system/core/healthd/healthd.cpp
10b235e7436256da9adc827125645f141bd8fac9 08-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: add health HAL support

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
/system/core/healthd/healthd.cpp
752faf2c18407fd79127fb3f3773910b4ddf669d 12-Jun-2013 Todd Poynor <toddpoynor@google.com> healthd: Add system health monitoring daemon

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
/system/core/healthd/healthd.cpp