Loading core/java/android/view/HapticFeedbackConstants.java +6 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,12 @@ public class HapticFeedbackConstants { */ public static final int VIRTUAL_KEY_RELEASE = 7; /** * The user has performed a selection/insertion handle move on text field. * @hide */ public static final int TEXT_HANDLE_MOVE = 8; /** * This is a private constant. Feel free to renumber as desired. * @hide Loading services/core/java/com/android/server/policy/PhoneWindowManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -7713,6 +7713,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { return VibrationEffect.get(VibrationEffect.EFFECT_TICK); case HapticFeedbackConstants.VIRTUAL_KEY_RELEASE: return VibrationEffect.get(VibrationEffect.EFFECT_TICK); case HapticFeedbackConstants.TEXT_HANDLE_MOVE: return VibrationEffect.get(VibrationEffect.EFFECT_TICK); default: return null; } Loading Loading
core/java/android/view/HapticFeedbackConstants.java +6 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,12 @@ public class HapticFeedbackConstants { */ public static final int VIRTUAL_KEY_RELEASE = 7; /** * The user has performed a selection/insertion handle move on text field. * @hide */ public static final int TEXT_HANDLE_MOVE = 8; /** * This is a private constant. Feel free to renumber as desired. * @hide Loading
services/core/java/com/android/server/policy/PhoneWindowManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -7713,6 +7713,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { return VibrationEffect.get(VibrationEffect.EFFECT_TICK); case HapticFeedbackConstants.VIRTUAL_KEY_RELEASE: return VibrationEffect.get(VibrationEffect.EFFECT_TICK); case HapticFeedbackConstants.TEXT_HANDLE_MOVE: return VibrationEffect.get(VibrationEffect.EFFECT_TICK); default: return null; } Loading