From 3059556f6092af0e292d4b3cff97ec772d2d6bd1 Mon Sep 17 00:00:00 2001 From: Rob McConnell Date: Fri, 11 Mar 2016 11:03:00 +0000 Subject: [PATCH] HdmiControlService does not broadcast CEC message on shutdown When the STB is shutting down the CEC message should be broadcast to all CEC devices to place them in to standby. This is not happening because the ACTION_SHUTDOWN Intent has not been added to the list of Intent filters that the HdmiControlService should be listening for. This one-line change adds the ACTION_SHUTDOWN Intent filter so that when the STB is shutting down (e.g. via a long press of the POWER button), the CEC message can be broadcast to all devices. This allows a connected HDMI TV to be automatically placed in to standby. Bug: 27596547 Change-Id: I4cdd2eaaad86e98bdf86c74fb0c377eb716f3c83 --- .../core/java/com/android/server/hdmi/HdmiControlService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/hdmi/HdmiControlService.java b/services/core/java/com/android/server/hdmi/HdmiControlService.java index 459c47f028b53..fed7e4b7a8f95 100644 --- a/services/core/java/com/android/server/hdmi/HdmiControlService.java +++ b/services/core/java/com/android/server/hdmi/HdmiControlService.java @@ -419,6 +419,7 @@ public final class HdmiControlService extends SystemService { IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_OFF); filter.addAction(Intent.ACTION_SCREEN_ON); + filter.addAction(Intent.ACTION_SHUTDOWN); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); getContext().registerReceiver(mHdmiControlBroadcastReceiver, filter);