Loading services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -250,7 +250,8 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { @ServiceThreadOnly @ServiceThreadOnly boolean dispatchMessage(HdmiCecMessage message) { boolean dispatchMessage(HdmiCecMessage message) { assertRunOnServiceThread(); assertRunOnServiceThread(); if (mService.isPowerStandby() && mStandbyHandler.handleCommand(message)) { if (mService.isPowerStandby() && !mService.isWakeUpMessageReceived() && mStandbyHandler.handleCommand(message)) { return true; return true; } } return super.onMessage(message); return super.onMessage(message); Loading services/core/java/com/android/server/hdmi/HdmiControlService.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -2017,6 +2017,10 @@ public final class HdmiControlService extends SystemService { // the intent, the sequence will continue at onStandby(). // the intent, the sequence will continue at onStandby(). } } boolean isWakeUpMessageReceived() { return mWakeUpMessageReceived; } @ServiceThreadOnly @ServiceThreadOnly private void onWakeUp() { private void onWakeUp() { assertRunOnServiceThread(); assertRunOnServiceThread(); Loading Loading @@ -2119,7 +2123,6 @@ public final class HdmiControlService extends SystemService { device.onStandby(mStandbyMessageReceived, standbyAction); device.onStandby(mStandbyMessageReceived, standbyAction); } } mStandbyMessageReceived = false; mStandbyMessageReceived = false; mAddressAllocated = false; mCecController.setOption(OptionKey.SYSTEM_CEC_CONTROL, false); mCecController.setOption(OptionKey.SYSTEM_CEC_CONTROL, false); mMhlController.setOption(OPTION_MHL_SERVICE_CONTROL, DISABLED); mMhlController.setOption(OPTION_MHL_SERVICE_CONTROL, DISABLED); } } Loading Loading
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -250,7 +250,8 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { @ServiceThreadOnly @ServiceThreadOnly boolean dispatchMessage(HdmiCecMessage message) { boolean dispatchMessage(HdmiCecMessage message) { assertRunOnServiceThread(); assertRunOnServiceThread(); if (mService.isPowerStandby() && mStandbyHandler.handleCommand(message)) { if (mService.isPowerStandby() && !mService.isWakeUpMessageReceived() && mStandbyHandler.handleCommand(message)) { return true; return true; } } return super.onMessage(message); return super.onMessage(message); Loading
services/core/java/com/android/server/hdmi/HdmiControlService.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -2017,6 +2017,10 @@ public final class HdmiControlService extends SystemService { // the intent, the sequence will continue at onStandby(). // the intent, the sequence will continue at onStandby(). } } boolean isWakeUpMessageReceived() { return mWakeUpMessageReceived; } @ServiceThreadOnly @ServiceThreadOnly private void onWakeUp() { private void onWakeUp() { assertRunOnServiceThread(); assertRunOnServiceThread(); Loading Loading @@ -2119,7 +2123,6 @@ public final class HdmiControlService extends SystemService { device.onStandby(mStandbyMessageReceived, standbyAction); device.onStandby(mStandbyMessageReceived, standbyAction); } } mStandbyMessageReceived = false; mStandbyMessageReceived = false; mAddressAllocated = false; mCecController.setOption(OptionKey.SYSTEM_CEC_CONTROL, false); mCecController.setOption(OptionKey.SYSTEM_CEC_CONTROL, false); mMhlController.setOption(OPTION_MHL_SERVICE_CONTROL, DISABLED); mMhlController.setOption(OPTION_MHL_SERVICE_CONTROL, DISABLED); } } Loading