Merge "Exit dream mode on CEC wake message received" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ab05512eca
@@ -258,18 +258,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
|
||||
@Constants.HandleMessageResult
|
||||
protected int handleSetMenuLanguage(HdmiCecMessage message) {
|
||||
|
||||
@@ -372,7 +372,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user