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

Commit f6c73433 authored by Yuncheol Heo's avatar Yuncheol Heo Committed by Android Git Automerger
Browse files

am a566b462: Go to nap when receiving <Active Source> for the other devices.

* commit 'a566b462221010df49304c39e172e8df454c1346':
  Go to nap when receiving <Active Source> for the other devices.
parents b2816936 2849b7cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice {
        if (physicalAddress != mService.getPhysicalAddress()) {
            mIsActiveSource = false;
            if (mService.isPowerOnOrTransient()) {
                mService.standby();
                mService.nap();
            }
            return true;
        }
+5 −0
Original line number Diff line number Diff line
@@ -1451,6 +1451,11 @@ public final class HdmiControlService extends SystemService {
        // the intent, the sequence will continue at onStandby().
    }

    void nap() {
        PowerManager pm = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE);
        pm.nap(SystemClock.uptimeMillis());
    }

    @ServiceThreadOnly
    private void onWakeUp() {
        assertRunOnServiceThread();