summaryrefslogtreecommitdiffstats
path: root/healthd/healthd.h
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2014-10-21 18:24:11 -0700
committerRuchi Kandoi <kandoiruchi@google.com>2014-10-22 22:01:07 +0000
commita84b1f64ccc5dda8e31854d4fc206b6c3d27ec39 (patch)
tree61aa8aea71d5be465a2fa1ec5fd5216b89d39f3c /healthd/healthd.h
parent95d52548b9c0b4c7761a2c3c34324dbb31784e62 (diff)
downloadcore-a84b1f64ccc5dda8e31854d4fc206b6c3d27ec39.tar.gz
core-a84b1f64ccc5dda8e31854d4fc206b6c3d27ec39.tar.bz2
core-a84b1f64ccc5dda8e31854d4fc206b6c3d27ec39.zip
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>
Diffstat (limited to 'healthd/healthd.h')
-rw-r--r--healthd/healthd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/healthd/healthd.h b/healthd/healthd.h
index 4704f0b4a..84b6d76a2 100644
--- a/healthd/healthd.h
+++ b/healthd/healthd.h
@@ -67,6 +67,7 @@ struct healthd_config {
android::String8 batteryChargeCounterPath;
int (*energyCounter)(int64_t *);
+ int boot_min_cap;
bool (*screen_on)(android::BatteryProperties *props);
};