New haptic feedback constants

This CL introduces several haptic feedback constants that are ready
to be exposed to developers.

Test: checkbuild
Fixes: 64537070
Change-Id: If54d5bc6cab4e2c405615b7a40648c74a1097ea3
This commit is contained in:
Yohei Yukawa
2017-08-24 10:51:00 -07:00
parent 1c1e7095f3
commit 262dadf870
5 changed files with 31 additions and 9 deletions

View File

@@ -57,16 +57,24 @@ public class HapticFeedbackConstants {
public static final int CONTEXT_CLICK = 6;
/**
* The user has released a virtual or software keyboard key.
* @hide
* The user has pressed a virtual or software keyboard key.
*/
public static final int VIRTUAL_KEY_RELEASE = 7;
public static final int KEYBOARD_PRESS = KEYBOARD_TAP;
/**
* The user has released a virtual keyboard key.
*/
public static final int KEYBOARD_RELEASE = 7;
/**
* The user has released a virtual key.
*/
public static final int VIRTUAL_KEY_RELEASE = 8;
/**
* The user has performed a selection/insertion handle move on text field.
* @hide
*/
public static final int TEXT_HANDLE_MOVE = 8;
public static final int TEXT_HANDLE_MOVE = 9;
/**
* The phone has booted with safe mode enabled.