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

Commit 03796065 authored by Sean Stout's avatar Sean Stout
Browse files

Update AWakeLock to supply a display id.

The wakelock API is being updated to take display id to support
per-DisplayGroup wakelocks. AWakeLock can supply -1 as the wakelock is a
partial wakelock and thus does not need a valid display id.

Bug: 168210495
Change-Id: I305d43f375ac33ebc805d4bffd07a799fab236bc
parent f09d5fa8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ bool AWakeLock::acquire() {
            binder::Status status = mPowerManager->acquireWakeLock(
                    binder, POWERMANAGER_PARTIAL_WAKE_LOCK,
                    String16("AWakeLock"), String16("media"),
                    {} /* workSource */, {} /* historyTag */);
                    {} /* workSource */, {} /* historyTag */, -1 /* displayId */);
            IPCThreadState::self()->restoreCallingIdentity(token);
            if (status.isOk()) {
                mWakeLockToken = binder;