Merge "healthd: Implement scheduleUpdate"
This commit is contained in:
commit
6edabc75ab
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue