summaryrefslogtreecommitdiffstats
path: root/healthd/BatteryMonitor.cpp
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-09-06 15:14:24 -0700
committerTodd Poynor <toddpoynor@google.com>2013-09-17 11:18:36 -0700
commit7b27f27d3de9e39d0de86c6e592d49bd4cc89158 (patch)
tree52c8fb62ebcd0c458a1ad86a8f5d410a7d6be1e4 /healthd/BatteryMonitor.cpp
parentc2c5a2410a2d7861d3c4f07f039eb8c471741cfa (diff)
downloadsystem_core-7b27f27d3de9e39d0de86c6e592d49bd4cc89158.tar.gz
system_core-7b27f27d3de9e39d0de86c6e592d49bd4cc89158.tar.bz2
system_core-7b27f27d3de9e39d0de86c6e592d49bd4cc89158.zip
healthd: break link between BatteryMonitor and BatteryPropertiesRegistrar
Make it easier to later separate out binder-related code. Add helper functions healthd_battery_update(), healthd_get_property() to allow these operations without needing references to the BatteryMonitor object. Change-Id: Ie584bf53e5178ce0a098d0d940d6c311fdff62d4
Diffstat (limited to 'healthd/BatteryMonitor.cpp')
-rw-r--r--healthd/BatteryMonitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp
index 5b3cac65a..424d180cd 100644
--- a/healthd/BatteryMonitor.cpp
+++ b/healthd/BatteryMonitor.cpp
@@ -469,7 +469,7 @@ void BatteryMonitor::init(struct healthd_config *hc, bool nosvcmgr) {
KLOG_WARNING(LOG_TAG, "BatteryTechnologyPath not found\n");
if (nosvcmgr == false) {
- mBatteryPropertiesRegistrar = new BatteryPropertiesRegistrar(this);
+ mBatteryPropertiesRegistrar = new BatteryPropertiesRegistrar();
mBatteryPropertiesRegistrar->publish();
}
}