Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b54271f authored by Yuncheol Heo's avatar Yuncheol Heo
Browse files

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
parent 31ac7552
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -281,7 +281,7 @@ public final class HdmiControlService extends SystemService {
        // A container for [Logical Address, Local device info].
        // A container for [Logical Address, Local device info].
        final SparseArray<HdmiCecLocalDevice> devices = new SparseArray<>();
        final SparseArray<HdmiCecLocalDevice> devices = new SparseArray<>();
        final SparseIntArray finished = new SparseIntArray();
        final SparseIntArray finished = new SparseIntArray();
        mCecController.clearLogicalAddress();
        clearLocalDevices();
        for (int type : deviceTypes) {
        for (int type : deviceTypes) {
            final HdmiCecLocalDevice localDevice = HdmiCecLocalDevice.create(this, type);
            final HdmiCecLocalDevice localDevice = HdmiCecLocalDevice.create(this, type);
            localDevice.init();
            localDevice.init();
@@ -1415,7 +1415,9 @@ public final class HdmiControlService extends SystemService {
                devices.remove(device);
                devices.remove(device);
                if (devices.isEmpty()) {
                if (devices.isEmpty()) {
                    onStandbyCompleted();
                    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.
                }
                }
            }
            }
        });
        });