summaryrefslogtreecommitdiffstats
path: root/healthd/BatteryMonitor.h
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2014-05-21 16:28:13 -0700
committerTodd Poynor <toddpoynor@google.com>2014-05-22 01:56:15 +0000
commit3db03a5ab0cb7713529c298531be6da7c2193525 (patch)
tree8f48bf7e8a704a142bd73390c522c46d4d997fe3 /healthd/BatteryMonitor.h
parentacc13d7b27aa7046b4cc705e08947e19091a41cd (diff)
downloadsystem_core-3db03a5ab0cb7713529c298531be6da7c2193525.zip
system_core-3db03a5ab0cb7713529c298531be6da7c2193525.tar.gz
system_core-3db03a5ab0cb7713529c298531be6da7c2193525.tar.bz2
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
Diffstat (limited to 'healthd/BatteryMonitor.h')
-rw-r--r--healthd/BatteryMonitor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.h b/healthd/BatteryMonitor.h
index 4866cc2..3425f27 100644
--- a/healthd/BatteryMonitor.h
+++ b/healthd/BatteryMonitor.h
@@ -46,6 +46,8 @@ class BatteryMonitor {
struct healthd_config *mHealthdConfig;
Vector<String8> mChargerNames;
bool mBatteryDevicePresent;
+ int mBatteryFixedCapacity;
+ int mBatteryFixedTemperature;
struct BatteryProperties props;
int getBatteryStatus(const char* status);