From 1ea7edd77e616a97f12af821e2f03c7e3b26d49a Mon Sep 17 00:00:00 2001 From: Alexey Kuzmin Date: Tue, 20 Mar 2018 18:05:12 +0000 Subject: [PATCH] Add haptic constants New hidden constants added to HapticFeedbackConstants. Test: m update-api shows no changes Bug: 74882420 Merged-in: I164a944b23e958e89b8d3064cb512cee739b27fd Change-Id: I164a944b23e958e89b8d3064cb512cee739b27fd --- .../android/view/HapticFeedbackConstants.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/core/java/android/view/HapticFeedbackConstants.java b/core/java/android/view/HapticFeedbackConstants.java index b14792842be61..db01cea3e72b3 100644 --- a/core/java/android/view/HapticFeedbackConstants.java +++ b/core/java/android/view/HapticFeedbackConstants.java @@ -76,6 +76,55 @@ public class HapticFeedbackConstants { */ public static final int TEXT_HANDLE_MOVE = 9; + /** + * The user unlocked the device + * @hide + */ + public static final int ENTRY_BUMP = 10; + + /** + * The user has moved the dragged object within a droppable area. + * @hide + */ + public static final int DRAG_CROSSING = 11; + + /** + * The user has started a gesture (e.g. on the soft keyboard). + * @hide + */ + public static final int GESTURE_START = 12; + + /** + * The user has finished a gesture (e.g. on the soft keyboard). + * @hide + */ + public static final int GESTURE_END = 13; + + /** + * The user's squeeze crossed the gesture's initiation threshold. + * @hide + */ + public static final int EDGE_SQUEEZE = 14; + + /** + * The user's squeeze crossed the gesture's release threshold. + * @hide + */ + public static final int EDGE_RELEASE = 15; + + /** + * A haptic effect to signal the confirmation or successful completion of a user + * interaction. + * @hide + */ + public static final int CONFIRM = 16; + + /** + * A haptic effect to signal the rejection or failure of a user interaction. + * @hide + */ + public static final int REJECT = 17; + /** * The phone has booted with safe mode enabled. * This is a private constant. Feel free to renumber as desired.