summaryrefslogtreecommitdiffstats
path: root/healthd/healthd.h
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2014-09-25 19:44:42 -0700
committerRuchi Kandoi <kandoiruchi@google.com>2014-09-26 14:37:17 -0700
commitbdf11c76a39d979abd105a4f27bc1973b88893ad (patch)
tree44cbc7e59b8069e7d27339679d047e2497ba1a1d /healthd/healthd.h
parentea52030bc6819c7ea6ffc921df9c3f13b7f8b94c (diff)
downloadcore-bdf11c76a39d979abd105a4f27bc1973b88893ad.tar.gz
core-bdf11c76a39d979abd105a4f27bc1973b88893ad.tar.bz2
core-bdf11c76a39d979abd105a4f27bc1973b88893ad.zip
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>
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 972e728d2..4704f0b4a 100644
--- a/healthd/healthd.h
+++ b/healthd/healthd.h
@@ -67,6 +67,7 @@ struct healthd_config {
android::String8 batteryChargeCounterPath;
int (*energyCounter)(int64_t *);
+ bool (*screen_on)(android::BatteryProperties *props);
};
// Global helper functions