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

Commit 87120cb0 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "Revert "NuPlayer: use acquireWakeLockAsync in AWakeLock"" into tm-dev...

Merge "Revert "NuPlayer: use acquireWakeLockAsync in AWakeLock"" into tm-dev am: 71d536bf am: 5080d762

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/19167088



Change-Id: I7aff3a31e45290ac4ed9533e77fba9c483ae7937
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 38d6fd00 5080d762
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -59,10 +59,11 @@ bool AWakeLock::acquire() {
        if (mPowerManager != NULL) {
            sp<IBinder> binder = new BBinder();
            int64_t token = IPCThreadState::self()->clearCallingIdentity();
            binder::Status status = mPowerManager->acquireWakeLockAsync(
            binder::Status status = mPowerManager->acquireWakeLock(
                    binder, POWERMANAGER_PARTIAL_WAKE_LOCK,
                    String16("AWakeLock"), String16("media"),
                    {} /* workSource */, {} /* historyTag */);
                    {} /* workSource */, {} /* historyTag */, -1 /* displayId */,
                    nullptr /* callback */);
            IPCThreadState::self()->restoreCallingIdentity(token);
            if (status.isOk()) {
                mWakeLockToken = binder;