Merge "Add haptic feedback constants for rotary-input haptic events."

This commit is contained in:
Jamie Garside
2021-08-19 09:36:11 +00:00
committed by Android (Google) Code Review

View File

@@ -121,6 +121,29 @@ public class HapticFeedbackConstants {
*/
public static final int REJECT = 17;
/**
* A haptic effect to provide texture while a rotary input device is being scrolled.
*
* @hide
*/
public static final int ROTARY_SCROLL_TICK = 18;
/**
* A haptic effect to signal that a list element has been focused while scrolling using a rotary
* input device.
*
* @hide
*/
public static final int ROTARY_SCROLL_ITEM_FOCUS = 19;
/**
* A haptic effect to signal reaching the scrolling limits of a list while scrolling using a
* rotary input device.
*
* @hide
*/
public static final int ROTARY_SCROLL_LIMIT = 20;
/**
* The phone has booted with safe mode enabled.
* This is a private constant. Feel free to renumber as desired.