summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2019-08-15 11:05:08 -0700
committerRobin Lee <rgl@google.com>2020-05-25 10:22:38 +0200
commit7c7016071a2e3feec67d06e447257751f23e2b60 (patch)
treecedef66a1d2fdd18f2c6cbdd20f377d81634c3c2 /tools/aapt2/java/JavaClassGenerator.cpp
parent1d22ea4ecabc197e92ff03aa8d5eacdabd2241d6 (diff)
Fix volume key handling for key press repeat
The original code for translating volume key presses into CEC commands was sending the equivalent of a key up / key down for each call to adjustSuggestedStreamVolume. This behavior caused CEC commands to pile up in HdmiControlService, and a repeated key press (user keeping finger on volume button on remote) would cause volume to still change on the CEC device handling volume even after the key was released. The fix consists in changing how PhoneWindowManager communicates with AudioService, by passing the key event directly, so AudioService can communicate the key up / key down information to the CEC library, which already deals with repeated commands on the CEC bus. Bug: 137311120 Test: connect DUT to CEC TV or receiver capable of handling vol cmds, keep pressing on vol key, verify releasing key stops volume changes on TV/receiver. Change-Id: I7a75af651b6b424129515a8991b5afb15c62dba3 Merged-In: I7a75af651b6b424129515a8991b5afb15c62dba3 (cherry picked from commit 12ba113894ec8ad7c24913a0a09ea70047d25353) (cherry picked from commit 7e58c9145d71ba92053ad6629f910456566cfea9)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions