From 4b54271f1bbd29957c47433155c58aa792105d6d Mon Sep 17 00:00:00 2001 From: Yuncheol Heo Date: Wed, 30 Jul 2014 20:31:06 +0900 Subject: [PATCH] Don't clear local device when it goes to the standby mode. Some OEM/SOC will keep passing the received packets until the application processor goes to the sleep mode actually. so we'll not clear the local devices to get the received packets and react like in the standby mode. Bug: 16661406 Change-Id: I6eb9c21877a29905bb0084256dc6692fe0d07170 --- .../java/com/android/server/hdmi/HdmiControlService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/hdmi/HdmiControlService.java b/services/core/java/com/android/server/hdmi/HdmiControlService.java index 390d1213b6f2b..bb9355e5e7a33 100644 --- a/services/core/java/com/android/server/hdmi/HdmiControlService.java +++ b/services/core/java/com/android/server/hdmi/HdmiControlService.java @@ -281,7 +281,7 @@ public final class HdmiControlService extends SystemService { // A container for [Logical Address, Local device info]. final SparseArray devices = new SparseArray<>(); final SparseIntArray finished = new SparseIntArray(); - mCecController.clearLogicalAddress(); + clearLocalDevices(); for (int type : deviceTypes) { final HdmiCecLocalDevice localDevice = HdmiCecLocalDevice.create(this, type); localDevice.init(); @@ -1415,7 +1415,9 @@ public final class HdmiControlService extends SystemService { devices.remove(device); if (devices.isEmpty()) { onStandbyCompleted(); - clearLocalDevices(); + // We will not clear local devices here, since some OEM/SOC will keep passing + // the received packets until the application processor enters to the sleep + // actually. } } });