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

Commit c5903bb9 authored by Paul Colta's avatar Paul Colta
Browse files

HDMICEC: Rename shouldAcquireWakeLock to be more specific

This follow comments left from @robhor in ag/23411678 .

Test: make
Bug: 253535259
Change-Id: Id25dfa5c44de7aa330947ea7fedfeeb024c1d475
parent fb160c56
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3664,7 +3664,7 @@ public class HdmiControlService extends SystemService {
    @ServiceThreadOnly
    @VisibleForTesting
    protected void onStandby(final int standbyAction) {
        if (shouldAcquireWakeLock()) {
        if (shouldAcquireWakeLockOnStandby()) {
            acquireWakeLock();
        }
        mWakeUpMessageReceived = false;
@@ -3793,7 +3793,7 @@ public class HdmiControlService extends SystemService {
        mStandbyMessageReceived = false;
    }

    private boolean shouldAcquireWakeLock() {
    private boolean shouldAcquireWakeLockOnStandby() {
        boolean sendStandbyOnSleep = false;
        if (tv() != null) {
            sendStandbyOnSleep = mHdmiCecConfig.getIntValue(
@@ -3809,7 +3809,7 @@ public class HdmiControlService extends SystemService {
    }

    /**
     * Acquire the wake lock used to hold the thread until the standby process is finished.
     * Acquire the wake lock used to hold the system awake until the standby process is finished.
     */
    @VisibleForTesting
    protected void acquireWakeLock() {