diff options
author | Johanna Ye <xincheny@google.com> | 2020-11-16 16:31:57 +0100 |
---|---|---|
committer | Johanna Ye <xincheny@google.com> | 2020-11-16 16:37:37 +0100 |
commit | f06c9efc408569d1906eaf25adf63f8014a8ef7e (patch) | |
tree | 6e0f70c00d179ef0197a9d7655b82f717df9c424 /native/android/surface_control.cpp | |
parent | 2f5313a71d46c048fe44bde8b3f9ad89aeba593f (diff) |
Add AKEY_ASSIST mapping in native input framework to allow programmatically inject KEY_ASSISTANT.
Currently, the TV input bridge can only inject Linux KEY_SEARCH through injecting Android AKEYCODE_SEARCH; injecting AKEYCODE_ASSIST gets the following error due to lack of mapping.
```TvRemote-native-uiBridge: Received an unknown keycode of 219.```
Adding the mapping functionality will allow product flexibility in virtual keyboard behaviors.
Test: Programmatically inject KeyEvent.KEYCODE_ASSIST through google3/java/com/google/android/tv/remote/service/RemoteUInputBridge.java, and successfully invoked Katniss when Youtube was playing in foreground.
Bug: 173388770
Change-Id: Ic7c0a447996bb0d33babcba10fd5332f9d1b2738
Diffstat (limited to 'native/android/surface_control.cpp')
0 files changed, 0 insertions, 0 deletions