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

Commit c854c95b authored by Jinsuk Kim's avatar Jinsuk Kim
Browse files

CEC: Comment for clarification of <Text View On>

Added a comment to clarify how the service is designed to handle
CEC commands <Text View On>/<Image View On>.

Bug: 24690166
Change-Id: Iaa1813b3ded76e8525141555d2aaff6dfb67888d
(cherry picked from commit 6667797016a28551202b40067fe90512185a7a61)
parent c2c17c4e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -732,6 +732,14 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
    @ServiceThreadOnly
    protected boolean handleTextViewOn(HdmiCecMessage message) {
        assertRunOnServiceThread();

        // Note that <Text View On> (and <Image View On>) command won't be handled here in
        // most cases. A dedicated microcontroller should be in charge while Android system
        // is in sleep mode, and the command need not be passed up to this service.
        // The only situation where the command reaches this handler is that sleep mode is
        // implemented in such a way that Android system is not really put to standby mode
        // but only the display is set to blank. Then the command leads to the effect of
        // turning on the display by the invocation of PowerManager.wakeUp().
        if (mService.isPowerStandbyOrTransient() && mAutoWakeup) {
            mService.wakeUp();
        }