| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
int64_t needs to be printed with PRId64
Change-Id: If59b60bac71856e4266d459d159a570961e7340a
|
|
|
|
| |
Change-Id: I28e3d6adaf4bb59d14eca7103d7b063d54a41c75
|
|\
| |
| |
| | |
Change-Id: Iab9a857026de954d7497d6b0eaf3751d2d3904c7
|
| |
| |
| |
| |
| |
| |
| | |
BUFFER_LEN in the kobject_uevent in kernel.
Change-Id: Ia9f4b520847d40fe4e032875dfb79bd063bc723d
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
At present, charging animation runs irrespective of whether charger is
connected or not. When the charger is disconnected, device does not
shutdown for 10sec. Charger animation during this period should be
avoided.
Change-Id: I34dc5028522ca199d50a1a1b684b035b2d81ef68
|
| |
| |
| |
| | |
Change-Id: I6dc10c8220c0984b31a05534b576ca25afdf5383
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
Bug: 10118565
Change-Id: Ibabae2a78a600ae37ce9b91da0f5980ee94b05c2
|
| |
| |
| |
| |
| |
| |
| | |
Will add healthd HAL support for ENERGY_COUNTER, and support in some HALs,
in following CLs.
Change-Id: Ife2eaa30473be3a59183c6ce61fdaa61f32dd01b
|
| |
| |
| |
| |
| |
| | |
Fix a few warnings missed when turning on -Werror
Change-Id: I5728664a90d33b95ab3d6ea8823244c59643aedc
|
| |
| |
| |
| | |
Change-Id: I72caf38008ee7d842dfacd3f58add9bc8e4787e8
|
| |
| |
| |
| |
| |
| |
| | |
Prevents crash in batteryproperties. Now with two times as much NULL checking.
Bug: 13730158
Change-Id: Ica083da60c6543431c2d82d46aed48eaccc3b4b4
|
|\ \
| |/
| |
| |
| | |
* commit '43cb7ae6c31ced8cd518eab59dfea31ab1ade812':
Cleanup: warning fixit.
|
| |
| |
| |
| |
| |
| |
| | |
bootable/recovery has a dependent commit: I9adb470b04e4301989d128c9c3097b21b4dea431
Change-Id: Icf23e659265d71d5226d527c2b40cfbc132320ee
Signed-off-by: Sasha Levitskiy <sanek@google.com>
|
| |
| |
| |
| |
| |
| |
| | |
Add support for BATTERY_PROP_CAPACITY property in getProperty
Bug: 11985952
Change-Id: I905cda68f990fa96138a16a11c55f2d902d0bbc1
|
|\ \
| |/
| |
| |
| | |
* commit '706d57b2948cc2eec22dc16394cf5582586b4237':
update minui library call
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The minui library has changed to no longer use libpixelflinger. It
also offers a more efficient way of storing and loading frames of
animation; use it to represent the battery-full state images.
Also removes the unused battery_charge.png image.
Bug: 12131110
Change-Id: I6cc8b19f36a806c99cda30cc47b5968daf6b333b
|
|\ \
| |/
| |
| | |
Change-Id: If402e68292a183064afe35cb77a4437682ee373a
|
| |
| |
| |
| | |
Change-Id: Id65ffe4f80aa870a1d1f3f3d67c3bb687490c27f
|
| |
| |
| |
| | |
Change-Id: I548d837afbde8a66826bb2cdb79ede7edda42b1f
|
| |
| |
| |
| | |
Change-Id: I6cc1570e23c1c1468f08579f633997e95327347a
|
| |
| |
| |
| | |
Change-Id: Iac24af6a59453686fca145d0814dc5ff045efcec
|
| |
| |
| |
| |
| |
| | |
Part 1 of 2 (to avoid transitory runtime crashes).
Change-Id: I40d990ef7ee18cea99e5add39738bbe9fd5701ca
|
| |
| |
| |
| | |
Change-Id: Ia6938b7126751801310632c995af0f96e41f5f64
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| | |
Change-Id: I47a24d4284f502858ee929b2cda8881165ef4ef3
|
| |
| |
| |
| |
| |
| |
| | |
Previously because /sbin/healthd does not exist on the build host, make
always tries to rebuild the symlink even in an already-up-to-date tree.
Change-Id: I41201282281476b14eaf4c7d9b2e09fe367c1422
|
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| |
| |
| |
| |
| | |
Facilitates registering events from external source files.
Add epoll events param to callbacks.
Change-Id: Icf8fb0c62af11453cbcc92877ff2c3bc03b9bb1b
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| |
| |
| | |
battery power
* commit 'ee549d256f50ca3078a8537fa5b32a3f86295ea5':
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
|
| |
| |
| |
| | |
Change-Id: Ibc901fe1b550c0d72095ef5590e2db8962d1a7b2
|
|/
|
|
|
|
|
| |
Adding support for batteryChargeCounter and batteryCurrentNow as parameters
likely to be useful for power consumption analysis.
Change-Id: Ib23b05d3c31c22ece0d21e55cc481c1b5dabe59e
|
|
|
|
|
|
|
| |
Allow health HAL to select specific paths to be used, overriding
default search for arbitrary power supplies with the named paths.
Change-Id: I5f724739f58ef56087ab592b7403fc083db8f173
|
|
|
|
| |
Change-Id: I5a802f9b9a8ad4782c4d0c6376a068aef32a70cb
|
|
|
|
| |
Change-Id: Ibf5e28c657e0d9d193b266acd7b2912bebc3e71f
|
|
|
|
| |
Change-Id: I20b3f47c541c4321b0593e504090ad6573b9cb01
|
|
|
|
|
|
|
| |
Subsume healthd_board_poll_intervals, make clear the call is for init-time
actions.
Change-Id: I9267e4ce7c62b78d2997a43822f20bfa13b54cd8
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
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
|