From dd6027e5f1bc1d465c81bf40aa1fff927fea5f4c Mon Sep 17 00:00:00 2001 From: Lais Andrade Date: Tue, 13 Apr 2021 13:20:49 +0000 Subject: [PATCH] Expose SPIN and THUD vibration effects to public Fix: 167947207 Test: N/A Change-Id: I0785ba8efbd8edea5813715e0891bda9341b5cea --- core/api/current.txt | 2 ++ core/java/android/os/VibrationEffect.java | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 0639d7273dda7..8431b7c1750fe 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -32054,6 +32054,8 @@ package android.os { field public static final int PRIMITIVE_QUICK_FALL = 6; // 0x6 field public static final int PRIMITIVE_QUICK_RISE = 4; // 0x4 field public static final int PRIMITIVE_SLOW_RISE = 5; // 0x5 + field public static final int PRIMITIVE_SPIN = 3; // 0x3 + field public static final int PRIMITIVE_THUD = 2; // 0x2 field public static final int PRIMITIVE_TICK = 7; // 0x7 } diff --git a/core/java/android/os/VibrationEffect.java b/core/java/android/os/VibrationEffect.java index c78bf8c04c91a..781800dd49ce8 100644 --- a/core/java/android/os/VibrationEffect.java +++ b/core/java/android/os/VibrationEffect.java @@ -749,14 +749,10 @@ public abstract class VibrationEffect implements Parcelable { * A haptic effect that simulates downwards movement with gravity. Often * followed by extra energy of hitting and reverberation to augment * physicality. - * - * @hide Not confident enough to expose publicly yet */ public static final int PRIMITIVE_THUD = 2; /** * A haptic effect that simulates spinning momentum. - * - * @hide Not confident enough to expose publicly yet */ public static final int PRIMITIVE_SPIN = 3; /**