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

Commit a81be00d authored by Ady Abraham's avatar Ady Abraham Committed by android-build-merger
Browse files

PowerManagerService: notify SurfaceFlinger on power hint am: c0201ca9

am: f90d2321

Change-Id: I21f4ec88281bb7daab3b48c9fa1bd4c3659ed64b
parents 01605bcd f90d2321
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
#include <android_runtime/AndroidRuntime.h>
#include <android_runtime/Log.h>
#include <binder/IServiceManager.h>
#include <gui/SurfaceComposerClient.h>
#include <hardware/power.h>
#include <hardware_legacy/power.h>
#include <hidl/ServiceManagement.h>
@@ -147,6 +148,8 @@ static void sendPowerHint(PowerHint hintId, uint32_t data) {
            processPowerHalReturn(ret, "powerHint");
        }
    }

    SurfaceComposerClient::notifyPowerHint(static_cast<int32_t>(hintId));
}

void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType) {