commit | 94cdf3a2b5db2a177f068bcf833b6480f1959daf | [log] [tgz] |
---|---|---|
author | Amy <amyjojo@google.com> | Thu Jun 13 15:06:15 2019 -0700 |
committer | Amy Zhang <amyjojo@google.com> | Tue Jul 02 20:09:16 2019 +0000 |
tree | a6aab64ead723542d90ecfad5e0e5a74e221c370 | |
parent | b4d7700e7c340d1b93e1c5bef955612986b9c437 [diff] |
Use sendVolumeKeyEvent API instead of sendKeyEvent API sendKeyEvent API always forwards the key control to the TV. But for volume keys, we want it to be forwarded to the audio system if system audio mode is on and if we are not a audio system itself. sendVolumeKeyEvent can handle this logic. Test: manual Bug: 129116245 Change-Id: I6b81072ab49c092fac65cd542c19e611fc939cea (cherry picked from commit ada40f59b63fe613448278a7cfbb7055146f8ccd)