Merge "Update documentation of KEYCODE_TV_POWER"

This commit is contained in:
TreeHugger Robot
2020-11-19 15:52:06 +00:00
committed by Android (Google) Code Review

View File

@@ -9,13 +9,13 @@ 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 |
| 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 OTT power state, TV power state follows | Toggle the soundbar power state, TV power state follows|
| TV_POWER | Toggle the device power state | Toggle the TV power state, OTT power state follows | Toggle the TV power state, soundbar power state follows|
| 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