summaryrefslogtreecommitdiffstats
path: root/healthd/BatteryMonitor.h
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2015-06-28 00:55:25 +0200
committerShareef Ali <shareefalis@gmail.com>2015-10-19 00:51:16 -0400
commit31c2a740d5554e9c0d5dd5e7a4a3f8d7d93911ea (patch)
treed2ed9e6b5e568f0cb9c48cda1afce5ea2d24a2ee /healthd/BatteryMonitor.h
parent72d52954af098600818d9afdc15ccdad289ba473 (diff)
downloadsystem_core-31c2a740d5554e9c0d5dd5e7a4a3f8d7d93911ea.zip
system_core-31c2a740d5554e9c0d5dd5e7a4a3f8d7d93911ea.tar.gz
system_core-31c2a740d5554e9c0d5dd5e7a4a3f8d7d93911ea.tar.bz2
healthd: dock battery
Change-Id: I2ad09e5e87d55c47af4d1efc14cc585cc08e2dce Require: topic:dock_battery Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'healthd/BatteryMonitor.h')
-rw-r--r--healthd/BatteryMonitor.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/healthd/BatteryMonitor.h b/healthd/BatteryMonitor.h
index 3425f27..6e3ec98 100644
--- a/healthd/BatteryMonitor.h
+++ b/healthd/BatteryMonitor.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013 The Android Open Source Project
+ * Copyright (C) 2015 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,18 +35,22 @@ class BatteryMonitor {
ANDROID_POWER_SUPPLY_TYPE_AC,
ANDROID_POWER_SUPPLY_TYPE_USB,
ANDROID_POWER_SUPPLY_TYPE_WIRELESS,
- ANDROID_POWER_SUPPLY_TYPE_BATTERY
+ ANDROID_POWER_SUPPLY_TYPE_BATTERY,
+ ANDROID_POWER_SUPPLY_TYPE_DOCK_AC,
+ ANDROID_POWER_SUPPLY_TYPE_DOCK_BATTERY
};
void init(struct healthd_config *hc);
bool update(void);
status_t getProperty(int id, struct BatteryProperty *val);
+ status_t getDockProperty(int id, struct BatteryProperty *val);
void dumpState(int fd);
private:
struct healthd_config *mHealthdConfig;
Vector<String8> mChargerNames;
bool mBatteryDevicePresent;
+ bool mDockBatteryDevicePresent;
int mBatteryFixedCapacity;
int mBatteryFixedTemperature;
struct BatteryProperties props;