summaryrefslogtreecommitdiffstats
path: root/healthd/BatteryMonitor.h
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-09-10 12:40:00 -0700
committerTodd Poynor <toddpoynor@google.com>2013-09-17 14:41:07 -0700
commitc7464c9150eb63ad277cc5b5f704f4fd5e6678c5 (patch)
tree06aff1135a7ef66a7a3b64f1c478fe010f696ac6 /healthd/BatteryMonitor.h
parent98c23d82f03fede6f434ad8800a7b3bb9175e348 (diff)
downloadsystem_core-c7464c9150eb63ad277cc5b5f704f4fd5e6678c5.zip
system_core-c7464c9150eb63ad277cc5b5f704f4fd5e6678c5.tar.gz
system_core-c7464c9150eb63ad277cc5b5f704f4fd5e6678c5.tar.bz2
healthd: move Android communication code to separate source
* 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
Diffstat (limited to 'healthd/BatteryMonitor.h')
-rw-r--r--healthd/BatteryMonitor.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/healthd/BatteryMonitor.h b/healthd/BatteryMonitor.h
index 34b423d..3dd2ef0 100644
--- a/healthd/BatteryMonitor.h
+++ b/healthd/BatteryMonitor.h
@@ -23,12 +23,9 @@
#include <utils/Vector.h>
#include "healthd.h"
-#include "BatteryPropertiesRegistrar.h"
namespace android {
-class BatteryPropertiesRegistrar;
-
class BatteryMonitor {
public:
@@ -40,7 +37,7 @@ class BatteryMonitor {
ANDROID_POWER_SUPPLY_TYPE_BATTERY
};
- void init(struct healthd_config *hc, bool nosvcmgr);
+ void init(struct healthd_config *hc);
bool update(void);
status_t getProperty(int id, struct BatteryProperty *val);
@@ -48,8 +45,6 @@ class BatteryMonitor {
struct healthd_config *mHealthdConfig;
Vector<String8> mChargerNames;
- sp<BatteryPropertiesRegistrar> mBatteryPropertiesRegistrar;
-
int getBatteryStatus(const char* status);
int getBatteryHealth(const char* status);
int readFromFile(const String8& path, char* buf, size_t size);