History log of /system/core/healthd/BatteryMonitor.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a78fc23491f3490bec4e4ac72c4bdc8c6d554fe3 11-Jul-2014 Ruchi Kandoi <kandoiruchi@google.com> healthd: Reports arbitrary numbers for capacity and temperature when
connected to fake battery.

Detects if the device is attached to a fake battery if yes, healthd
reports 42% battery charge and 42.2 degrees temperature.

Change-Id: I2508fd91c8d3848ea64f57ab59d20be1c2817913
/system/core/healthd/BatteryMonitor.cpp
3db03a5ab0cb7713529c298531be6da7c2193525 22-May-2014 Todd Poynor <toddpoynor@google.com> healthd: Set fixed battery level and temperature via properties

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
/system/core/healthd/BatteryMonitor.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/BatteryMonitor.cpp
8f132af495d208272ea55d0ca24068926fa80e51 09-May-2014 Todd Poynor <toddpoynor@google.com> healthd: Add ENERGY_COUNTER property placeholder, and 64-bit properties

Will add healthd HAL support for ENERGY_COUNTER, and support in some HALs,
in following CLs.

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

Change-Id: I72caf38008ee7d842dfacd3f58add9bc8e4787e8
/system/core/healthd/BatteryMonitor.cpp
347c8de285454af2d3cba3d9b43d3bf23b20babb 19-Mar-2014 Paul Lawrence <paullawrence@google.com> healthd: Add battery capacity to getProperty

Add support for BATTERY_PROP_CAPACITY property in getProperty

Bug: 11985952
Change-Id: I905cda68f990fa96138a16a11c55f2d902d0bbc1
/system/core/healthd/BatteryMonitor.cpp
c15e9934675d2f6b8dc19f042e6d045415e79359 23-Oct-2013 Todd Poynor <toddpoynor@google.com> healthd: remove/rearrange extra battery property handling

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

Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
/system/core/healthd/BatteryMonitor.cpp
6dcc45ed6dd455d82ecfb3addf247125846f3019 22-Oct-2013 Todd Poynor <toddpoynor@google.com> healthd: Fixups for systems without batteries or removable batteries

* 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
/system/core/healthd/BatteryMonitor.cpp
2e227fbc5ad735856ce016714440e377e85fb839 01-Oct-2013 Todd Poynor <toddpoynor@google.com> healthd: start switchover to BatteryExtraProperties

Change-Id: I47a24d4284f502858ee929b2cda8881165ef4ef3
/system/core/healthd/BatteryMonitor.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/BatteryMonitor.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/BatteryMonitor.cpp
bc102111845a48f79a4cf6ea058a0ca334cd613c 28-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: Add average current property

Change-Id: Ibc901fe1b550c0d72095ef5590e2db8962d1a7b2
/system/core/healthd/BatteryMonitor.cpp
c133b7198a02c8738aeef86d6cfd921a626adce7 15-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: read individual battery property value on demand

Adding support for batteryChargeCounter and batteryCurrentNow as parameters
likely to be useful for power consumption analysis.

Change-Id: Ib23b05d3c31c22ece0d21e55cc481c1b5dabe59e
/system/core/healthd/BatteryMonitor.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/BatteryMonitor.cpp
a41611f638f82cb8066f83b32f2610f0d00dafc6 12-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: fix botched logging call

Change-Id: Ibf5e28c657e0d9d193b266acd7b2912bebc3e71f
/system/core/healthd/BatteryMonitor.cpp
57fd0989cbb59f305514378e511e36c752b5aa20 09-Aug-2013 Todd Poynor <toddpoynor@google.com> healthd: preserve uA and uAh units for current_now and charge_counter

Change-Id: I20b3f47c541c4321b0593e504090ad6573b9cb01
/system/core/healthd/BatteryMonitor.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/BatteryMonitor.cpp
b45f1f5bd00c9a8380960d7c439eb14b3a334f50 31-Jul-2013 Todd Poynor <toddpoynor@google.com> healthd: add optional current_now and charge_counter to tracked state

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