Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50094d98 authored by Adam Lesinski's avatar Adam Lesinski Committed by android-build-merger
Browse files

Merge "healthd: Implement scheduleUpdate" am: 6edabc75

am: c0405200

Change-Id: I46ebe99dfe4c0188cfae63db845c86efe1ec3bf3
parents d0230266 c0405200
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
+1 −0
Original line number Diff line number Diff line
@@ -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;