diff options
| author | Adam Lesinski <adamlesinski@google.com> | 2017-03-23 01:12:17 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-23 01:12:17 +0000 |
| commit | f04daccae99201df3697a0aea00d5165e378fc14 (patch) | |
| tree | 48b09cb38aa09b27812478b7565362ea39f03d94 /healthd | |
| parent | ce009490fbf3fffc7aa2d1cd91b1485d6e98eaf8 (diff) | |
| parent | 50094d9865b88de6e6f78da74e2fbc8170aa5629 (diff) | |
| download | system_core-f04daccae99201df3697a0aea00d5165e378fc14.tar.gz system_core-f04daccae99201df3697a0aea00d5165e378fc14.tar.bz2 system_core-f04daccae99201df3697a0aea00d5165e378fc14.zip | |
Merge "healthd: Implement scheduleUpdate" am: 6edabc75ab am: c0405200b8
am: 50094d9865
Change-Id: I75976e5d4d4a38fb0fcb9e0cb5bf33a5786b146d
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; |
