Exit dream mode on CEC wake message received

Bug: 183945838
Test: atest
Change-Id: I45c925e6fbba2b510482bb686d88294cadcc400f
This commit is contained in:
Nathalie Le Clair
2021-03-31 10:43:23 +02:00
parent 385414ee28
commit 19e81e4d88
2 changed files with 1 additions and 13 deletions

View File

@@ -257,18 +257,6 @@ public class HdmiCecLocalDevicePlayback extends HdmiCecLocalDeviceSource {
return super.handleUserControlPressed(message);
}
@Override
protected void wakeUpIfActiveSource() {
if (!isActiveSource()) {
return;
}
// Wake up the device if the power is in standby mode, or its screen is off -
// which can happen if the device is holding a partial lock.
if (mService.isPowerStandbyOrTransient() || !mService.getPowerManager().isScreenOn()) {
mService.wakeUp();
}
}
@ServiceThreadOnly
protected boolean handleSetMenuLanguage(HdmiCecMessage message) {
assertRunOnServiceThread();

View File

@@ -369,7 +369,7 @@ abstract class HdmiCecLocalDeviceSource extends HdmiCecLocalDevice {
if (!isActiveSource()) {
return;
}
// Wake up the device
// Wake up the device. This will also exit dream mode.
mService.wakeUp();
return;
}