diff options
| author | Adam Lesinski <adamlesinski@google.com> | 2017-03-23 00:48:48 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-23 00:48:48 +0000 |
| commit | c0405200b80711a4d6be214e00f51e472ae08b36 (patch) | |
| tree | c906314f83e06ebc312c1c7b6361a6908129531e /healthd | |
| parent | 535520480ab2bb6f0ec38f0966cae6dee77166f1 (diff) | |
| parent | 6edabc75ab6658554e4d68fa99d0951c191f9185 (diff) | |
| download | system_core-c0405200b80711a4d6be214e00f51e472ae08b36.tar.gz system_core-c0405200b80711a4d6be214e00f51e472ae08b36.tar.bz2 system_core-c0405200b80711a4d6be214e00f51e472ae08b36.zip | |
Merge "healthd: Implement scheduleUpdate"
am: 6edabc75ab
Change-Id: I80082322b77cbd74b70b4d3c25e172d1c51f6072
Diffstat (limited to 'healthd')
| -rw-r--r-- | healthd/BatteryPropertiesRegistrar.cpp | 4 | ||||
| -rw-r--r-- | healthd/BatteryPropertiesRegistrar.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/healthd/BatteryPropertiesRegistrar.cpp b/healthd/BatteryPropertiesRegistrar.cpp index d28ba41ff..523e1f136 100644 --- a/healthd/BatteryPropertiesRegistrar.cpp +++ b/healthd/BatteryPropertiesRegistrar.cpp @@ -77,6 +77,10 @@ status_t BatteryPropertiesRegistrar::getProperty(int id, struct BatteryProperty return healthd_get_property(id, val); } +void BatteryPropertiesRegistrar::scheduleUpdate() { + healthd_battery_update(); +} + status_t BatteryPropertiesRegistrar::dump(int fd, const Vector<String16>& /*args*/) { IPCThreadState* self = IPCThreadState::self(); const int pid = self->getCallingPid(); diff --git a/healthd/BatteryPropertiesRegistrar.h b/healthd/BatteryPropertiesRegistrar.h index 095f3d37c..14e914514 100644 --- a/healthd/BatteryPropertiesRegistrar.h +++ b/healthd/BatteryPropertiesRegistrar.h @@ -32,6 +32,7 @@ class BatteryPropertiesRegistrar : public BnBatteryPropertiesRegistrar, public: void publish(const sp<BatteryPropertiesRegistrar>& service); void notifyListeners(const struct BatteryProperties& props); + void scheduleUpdate(); private: Mutex mRegistrationLock; |
