summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJaewan Kim <jaewan@google.com>2017-02-17 23:14:10 +0900
committerJaewan Kim <jaewan@google.com>2017-02-20 10:57:37 +0900
commitd61a87baf09203cf24b1a2904a3458a0e34bb943 (patch)
tree15ba2c12c99a6b28e3bec7a0324377ca81487f6d /tools/aapt2/java/JavaClassGenerator.cpp
parentdf3164993307158a849efa12dbc81fdd0c0b2127 (diff)
MediaSessionService: Notify volume key long-presses when the screen is off
When the screen is off, MediaSessionService doesn't get the volume key long-press events from the PhoneWindowManager because PhoneWindowManager intercepts them and only sends initial down and up events. This is intended because users cannot see the safety warning dialog which warns users about too loud volume. This CL assumes that volume key is long-pressed if the key up doesn't happen after the initial down within the long-press timeout, and notify them with IOnVolumeKeyLongPressListener. Bug: 35328001 Test: Manual test Change-Id: I3b5aec4c2dd66a181bf41786f1417cc65874356c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions