diff options
author | arthurhung <arthurhung@google.com> | 2020-11-30 11:20:49 +0800 |
---|---|---|
committer | arthurhung <arthurhung@google.com> | 2021-02-25 00:39:13 +0800 |
commit | 29f27e8d8b368a0c9b37c0695313a1c0a2af61ee (patch) | |
tree | 17b5763aa2840432330470ef26c9df6d6c2dcd9b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | f6ed5fc57c0955bf040438abd8bde6457c124a91 (diff) |
Introduce SingleKeyGestureDetector to PhoneWindowManager
The SingleKeyGestureDetector is used to detect the single key gesture
such as short press, long press or multi presses.
If the key has been handled by other policy, it should call 'cancel'
to reset all gesture states.
This patch refactor the power key and back key (long press behavior
enabled), it can detect below gestures:
- single press
- long press
- very long press
- multiple press ( <= 3)
Bug: 169058831
Bug: 127687575
Test: atest KeyEventTest SingleKeyGestureTests
Test: manual (short press power, long press power, double tap power)
Change-Id: I1c042e693e9844e30ce568eded7681fa4101daf9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions