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

Commit 3b86068d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add basic documentation about cec key handling" into rvc-dev am:...

Merge "Add basic documentation about cec key handling" into rvc-dev am: ee1e37df am: caa768b4 am: c7d6e910

Change-Id: Idf44de5b13a739e285bcf8bbb1f5c0ed3ec54ff6
parents 65954f6b c7d6e910
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
# Package com.android.server.hdmi

HDMI service for Android with focus on CEC

## Links

*   [CEC Key Handling](cec_key_handling.md)
+36 −0
Original line number Diff line number Diff line
# CEC Key Handling

The mapping of CEC key codes to Android key codes are at
[HdmiCecKeycode](HdmiCecKeycode.java)

# Android TV

Android TV requires special handling of some keys.

The general action for key handling is described in the table

| Android Key | TV Panel                             | OTT                                  | Soundbar                          |
| ----------- | -----------------                    | -------------------                  | -------------------               |
| general     | Send to active source                | handle on device                     | handle on device                  |
| POWER       | Toggle the device power state        | Toggle the TV power state            | Toggle the TV power state         |
| TV_POWER    | Toggle the device power state        | Toggle the TV power state            | Toggle the TV power state         |
| HOME        | Turn on TV, Set active Source to TV, go to home screen | OTP, and go to home screen | OTP, and go to home screen |
| volume keys | Handle on device or send to soundbar | Send to TV or soundbar               | Handle on device or send to TV    |

Special cases and flags for each key are described below

## POWER

### TV Panel

TODO

### OTT

TODO

### Soundbar

TODO