diff --git a/Android.mk b/Android.mk
index 623b5220747d7..d847d49e89c47 100644
--- a/Android.mk
+++ b/Android.mk
@@ -598,6 +598,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
android.hardware.usb-V1.0-java-constants \
android.hardware.usb-V1.1-java-constants \
android.hardware.vibrator-V1.0-java-constants \
+ android.hardware.vibrator-V1.1-java-constants \
# Loaded with System.loadLibrary by android.view.textclassifier
LOCAL_REQUIRED_MODULES += libtextclassifier
diff --git a/core/java/android/os/VibrationEffect.java b/core/java/android/os/VibrationEffect.java
index 6aa601a98f3bb..fe9e8c67e5666 100644
--- a/core/java/android/os/VibrationEffect.java
+++ b/core/java/android/os/VibrationEffect.java
@@ -16,7 +16,7 @@
package android.os;
-import android.hardware.vibrator.V1_0.Constants.Effect;
+import android.hardware.vibrator.V1_1.Constants.Effect_1_1;
import java.util.Arrays;
@@ -41,7 +41,7 @@ public abstract class VibrationEffect implements Parcelable {
* @see #get(int)
* @hide
*/
- public static final int EFFECT_CLICK = Effect.CLICK;
+ public static final int EFFECT_CLICK = Effect_1_1.CLICK;
/**
* A double click effect.
@@ -49,7 +49,14 @@ public abstract class VibrationEffect implements Parcelable {
* @see #get(int)
* @hide
*/
- public static final int EFFECT_DOUBLE_CLICK = Effect.DOUBLE_CLICK;
+ public static final int EFFECT_DOUBLE_CLICK = Effect_1_1.DOUBLE_CLICK;
+
+ /**
+ * A tick effect.
+ * @see #get(int)
+ * @hide
+ */
+ public static final int EFFECT_TICK = Effect_1_1.TICK;
/** @hide to prevent subclassing from outside of the framework */
public VibrationEffect() { }
@@ -382,9 +389,14 @@ public abstract class VibrationEffect implements Parcelable {
@Override
public void validate() {
- if (mEffectId != EFFECT_CLICK) {
- throw new IllegalArgumentException(
- "Unknown prebaked effect type (value=" + mEffectId + ")");
+ switch (mEffectId) {
+ case EFFECT_CLICK:
+ case EFFECT_DOUBLE_CLICK:
+ case EFFECT_TICK:
+ break;
+ default:
+ throw new IllegalArgumentException(
+ "Unknown prebaked effect type (value=" + mEffectId + ")");
}
}
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 94228ab6a33aa..e085697628f5a 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -965,14 +965,6 @@
- 10
-
-
- - 0
- - 1
- - 20
- - 21
-
-
false