summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorArthur Hung <arthurhung@google.com>2021-03-02 08:43:37 +0000
committerArthur Hung <arthurhung@google.com>2021-03-02 15:22:34 +0000
commit2188e105faee46875e28a8dd1209c1ec5f86d650 (patch)
tree841e6d8cdd06fb5089cd8f4d9f801482e64a773c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentaf76755ff76e5e323ee31af593870dcde154b1d2 (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 'reset' to reset all gesture states. This patch also refactor the power key and back key if the long press behavior is enabled. The detector can detect below gestures: - single press - long press - very long press - multiple presses (press count > 1) Bug: 169058831 Bug: 127687575 Test: atest KeyEventTest SingleKeyGestureTests Test: atest GlobalActionsImeTest PowerButtonTest Test: manual (short press power, long press power, double tap power) Change-Id: I28ff4373ba57b16e580b8eaaca26a3fa81770d0f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions